Locking System / PS

02/16/2014 01:39 beatemaeon#1
how do i modify how a ship locks, and who gets the kill etc? I can't seem to find it anywhere.

thankyou
02/16/2014 01:41 Requi#2
Learn programming and reversing, and you'll know it.

Privateserver stuff belong to this thread:
[Only registered and activated users can see links. Click Here To Register...]
02/16/2014 10:21 0wnix#3
Quote:
Originally Posted by beatemaeon View Post
how do i modify how a ship locks, and who gets the kill etc? I can't seem to find it anywhere.

thankyou
Create an int / string named attackedBy=0

Then when the ship is getting attacked, check if attackedBy = 0, if it is then set attackedBy to the enemy ship id

Code:
if (this.Ship.attackedBy == 0)
{
this.Ship.attackedBy = attackerId;
}
and then when the ship is getting destroyed give the reward to the account with userid this.Ship.attackedBy

(you can also make a "timer" to reset attackedBy every 30 seconds)
02/16/2014 12:36 Elsastylez#4
Quote:
Originally Posted by Requi View Post
Learn programming and reversing, and you'll know it.

Privateserver stuff belong to this thread:
[Only registered and activated users can see links. Click Here To Register...]
#closed