|
|
Author |
Message |
Kosoleld
Group: Members Joined: 26 Feb 2019 Posts: 1 Gold: 0.60
Status: Warn: Reputation: 0
|
#1 Posted: 26 Feb 2019 11:20 am Post subject: Offering bot programming service |
|
|
I will write custom scripts or fixes in KOLBOT for fg or payment via bank transfer.
Example:
[img]https://imgur.com/ByaG5HG[/img]
For those who know what they are doing here is a freebie.
getDistance(me, missile) < 20 -- defined circle around yourself to detect missiles
getDistance(missile,missile.getParent()) < 20 -- defined circle around missile owner
function returns true for missiles which are in the area where these two circles overlap - in other words missiles which you can/should be dodging.
Code: | findMissiles: function () {
var range = 20;
var missile = getUnit(3, -1);
if (!missile) {
return false;
}
do {
if (getDistance(me, missile) < 20 && getDistance(missile,missile.getParent()) < 20) {
return true;
}
} while (missile.getNext());
return false;
},
|
|
|
Back to top |
|
|
Aciddrop
Group: Members Joined: 18 Apr 2019 Posts: 14 Gold: 1.90
Status: Warn: Reputation: 0
|
#2 Posted: 03 Jun 2019 08:39 pm Post subject: |
|
|
Are you doing updates? for outdated mods? |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
D3jsp is proudly powered by phpBB © 2.0 Theme and Forum by tramway
|