Page 2 of 12

Re: Shaiya Fighter Bot

Posted: Fri Jun 20, 2008 12:22 pm
by Dnic
One thing I have noticed when attacking and more specifically when an NPC is killed.

Once an NPC dies sometimes it doesn't seem to register that it died and moves on to the next NPC. So basically it skips the pickup and moves. All in itself not really too big of a deal. However, when it kills and instantly moves to the next NPC the timeout will kick in and says obstacle in the way. Now it moves over to another NPC with at least one other in tow.

Re: Shaiya Fighter Bot

Posted: Fri Jun 20, 2008 8:23 pm
by deaznracer
centik wrote:oh ok nvm i get it now..soz :

i just notice my only my 3rd key ( attack skill) only works but not my 4th and 5th..
-- Set to 0 if you don't want to use a skill
skill1_time = secondsToTimer(10);
skill2_time = secondsToTimer(15);
skill3_time = secondsToTimer(20);

i love the idea that we stack up on pots now using the 2nd hotkeys and my character moves more normal than a bot ( i love the way he step back after a kill) ..just wondering is it possible to insert my 3rd buff on the 2nd hot keys?how do i do that thank u very much :)

another questions.i notice the bot picks the 2nd farthest monster to kill but both monster is orange and i put 6 on both,how can i fix that and if a UM died using this bot..would he use res rune automatically?
Yes you can create the 2nd hot key to buff or the 3rd 4th which ever you like.

I recreated another way to buff.

do this for 5th hot key.

Code: Select all

Skill5_reuse_time = 4;  -- measured by minutes
this code should be placed at the very beginning.
If you want 4 minutes enter 4, if you want 5 minutes enter 5.
Example: If your buff expires in 5 minutes then put 5.

Code: Select all

Skill5 =  skill5_reuse_time *60
skill5_beginTime = os.time();
place this code ender the skill5_reuse_time
this will do the very simple math to convert minutes into seconds.
skill5_beginTime will take your current OS time and place the information into the variable we created which is skill5_beginTime

Code: Select all

function skill5()
   local startTime = os.time();
   if(os.difftime(startTime, skill5_beginTime)>skill5) then 
     skill5_beginTime = os.time();
     keyboardPress(key_skill3);
     yrest(2000);
   end
end

You can study the last code if you want. Now you can call skill5() whenever you want.

For example if you want to use key_skill3, which is hot key 5 (if you examine the code),to buff then put the code skill5(); below reAttack = 0; in the function main()

just play with it where ever you want to place skill5();

yea i fixed the problem where it targets the farthest mob. You'll have to put keyboardPress(key.VK_F1); after a kill. Be carefull where to place it lol. Play with that. I actually posted the old fighter bot, lolol I have the new one but i wanted to see what is everyones feedback first.

If you are playing UM and you wanted to res using res rune , you can. I havn't got to UM since the GM deleted my char for good. Until I get there, i can't create it. Unless you step up and share ideas it would help the community.

Re: Shaiya Fighter Bot

Posted: Fri Jun 20, 2008 8:26 pm
by deaznracer
Dnic wrote:One thing I have noticed when attacking and more specifically when an NPC is killed.

Once an NPC dies sometimes it doesn't seem to register that it died and moves on to the next NPC. So basically it skips the pickup and moves. All in itself not really too big of a deal. However, when it kills and instantly moves to the next NPC the timeout will kick in and says obstacle in the way. Now it moves over to another NPC with at least one other in tow.
yeas that bug is fixed but its fixed in archer bot. I'll take some time next week to post in the actual fighter bot that i was holding back. At the moment i'm currently working on a different anti ks. Through memory and not HDC(right now it is detecting mob through HDC)

Re: Shaiya Fighter Bot

Posted: Sat Jun 21, 2008 4:28 am
by centik
ok..let me edit my post..i thought he only attack the farthest but i just notice he dont wanna attack a certain mob..im in a area with goblin hunter and seakel warrior ( both are orange to me ) but it seems he only likes to attack the goblins and let go of the seakel even im being attack or chased by the seakel he still dont wanna fight back..


@ sir deaznracer

i tried using those code but im afraid i only messed up my scripts :D i just want my 2nd hotkey 1st key to be a 5 minute buff but after messing with it im getting error :D soz ..im really no0b when it comes to scripts..

and regarding for UMs to auto use rez runes i dont even know how and where to start :D if u can supply me the scripts i can try it for u but rez rune should be activate instantly or 10-15 seconds later so that if it didnt work i can activate the rez rune manually.thats all i can really contribute ( a few rez rune ) for the trial test if it does work :)

Re: Shaiya Fighter Bot

Posted: Sat Jun 21, 2008 3:34 pm
by deaznracer
centik wrote:ok..let me edit my post..i thought he only attack the farthest but i just notice he dont wanna attack a certain mob..im in a area with goblin hunter and seakel warrior ( both are orange to me ) but it seems he only likes to attack the goblins and let go of the seakel even im being attack or chased by the seakel he still dont wanna fight back..


@ sir deaznracer

i tried using those code but im afraid i only messed up my scripts :D i just want my 2nd hotkey 1st key to be a 5 minute buff but after messing with it im getting error :D soz ..im really no0b when it comes to scripts..

and regarding for UMs to auto use rez runes i dont even know how and where to start :D if u can supply me the scripts i can try it for u but rez rune should be activate instantly or 10-15 seconds later so that if it didnt work i can activate the rez rune manually.thats all i can really contribute ( a few rez rune ) for the trial test if it does work :)
give me the pr pg pb readings when you target the seakel.

Re: Shaiya Fighter Bot

Posted: Sun Jun 22, 2008 12:47 am
by centik
Sun Jun 22 13:37:50 2008 : target_status=1
Sun Jun 22 13:37:50 2008 : target_status=0
Sun Jun 22 13:37:50 2008 : target_status=0
Sun Jun 22 13:37:51 2008 : target_status=2
Sun Jun 22 13:37:51 2008 : pr: 253, pg: 127, pb: 0
Sun Jun 22 13:37:51 2008 : pr: 254, pg: 127, pb: 0
Sun Jun 22 13:37:51 2008 : pr: 1, pg: 1, pb: 0
Sun Jun 22 13:37:51 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:37:51 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:37:51 2008 : pr: 254, pg: 127, pb: 0
Sun Jun 22 13:37:51 2008 : pr: 255, pg: 128, pb: 0
Sun Jun 22 13:38:07 2008 : target_status=2
Sun Jun 22 13:38:07 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:07 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:07 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:07 2008 : pr: 253, pg: 127, pb: 0
Sun Jun 22 13:38:07 2008 : pr: 254, pg: 127, pb: 0
Sun Jun 22 13:38:07 2008 : pr: 254, pg: 127, pb: 0
Sun Jun 22 13:38:07 2008 : pr: 1, pg: 1, pb: 0
Sun Jun 22 13:38:07 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:07 2008 : pr: 254, pg: 127, pb: 0
Sun Jun 22 13:38:07 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:07 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:07 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:07 2008 : pr: 253, pg: 127, pb: 0
Sun Jun 22 13:38:08 2008 : target_status=0
Sun Jun 22 13:38:08 2008 : target_status=0
Sun Jun 22 13:38:08 2008 : target_status=2
Sun Jun 22 13:38:08 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:08 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:08 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:08 2008 : pr: 253, pg: 127, pb: 0
Sun Jun 22 13:38:08 2008 : pr: 254, pg: 127, pb: 0
Sun Jun 22 13:38:08 2008 : pr: 254, pg: 127, pb: 0
Sun Jun 22 13:38:08 2008 : pr: 1, pg: 1, pb: 0
Sun Jun 22 13:38:08 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:09 2008 : pr: 254, pg: 127, pb: 0
Sun Jun 22 13:38:09 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:09 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:09 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:09 2008 : pr: 253, pg: 127, pb: 0
Sun Jun 22 13:38:10 2008 : target_status=2
Sun Jun 22 13:38:10 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:10 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:10 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:10 2008 : pr: 253, pg: 127, pb: 0
Sun Jun 22 13:38:10 2008 : pr: 254, pg: 127, pb: 0
Sun Jun 22 13:38:10 2008 : pr: 254, pg: 127, pb: 0
Sun Jun 22 13:38:10 2008 : pr: 1, pg: 1, pb: 0
Sun Jun 22 13:38:10 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:10 2008 : pr: 254, pg: 127, pb: 0
Sun Jun 22 13:38:10 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:10 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:10 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:10 2008 : pr: 253, pg: 127, pb: 0
Sun Jun 22 13:38:11 2008 : target_status=0
Sun Jun 22 13:38:11 2008 : target_status=0
Sun Jun 22 13:38:11 2008 : target_status=2
Sun Jun 22 13:38:11 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:11 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:11 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:11 2008 : pr: 253, pg: 127, pb: 0
Sun Jun 22 13:38:11 2008 : pr: 254, pg: 127, pb: 0
Sun Jun 22 13:38:11 2008 : pr: 254, pg: 127, pb: 0
Sun Jun 22 13:38:11 2008 : pr: 1, pg: 1, pb: 0
Sun Jun 22 13:38:11 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:11 2008 : pr: 254, pg: 127, pb: 0
Sun Jun 22 13:38:11 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:11 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:11 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:12 2008 : pr: 253, pg: 127, pb: 0
Sun Jun 22 13:38:13 2008 : target_status=2
Sun Jun 22 13:38:13 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:13 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:13 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:13 2008 : pr: 253, pg: 127, pb: 0
Sun Jun 22 13:38:13 2008 : pr: 254, pg: 127, pb: 0
Sun Jun 22 13:38:13 2008 : pr: 254, pg: 127, pb: 0
Sun Jun 22 13:38:13 2008 : pr: 1, pg: 1, pb: 0
Sun Jun 22 13:38:13 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:13 2008 : pr: 254, pg: 127, pb: 0
Sun Jun 22 13:38:13 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:13 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:13 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:13 2008 : pr: 253, pg: 127, pb: 0
Sun Jun 22 13:38:14 2008 : target_status=0
Sun Jun 22 13:38:14 2008 : target_status=0
Sun Jun 22 13:38:14 2008 : target_status=2
Sun Jun 22 13:38:14 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:14 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:14 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:14 2008 : pr: 253, pg: 127, pb: 0
Sun Jun 22 13:38:14 2008 : pr: 254, pg: 127, pb: 0
Sun Jun 22 13:38:14 2008 : pr: 254, pg: 127, pb: 0
Sun Jun 22 13:38:14 2008 : pr: 1, pg: 1, pb: 0
Sun Jun 22 13:38:14 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:14 2008 : pr: 254, pg: 127, pb: 0
Sun Jun 22 13:38:14 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:14 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:14 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:14 2008 : pr: 253, pg: 127, pb: 0
Sun Jun 22 13:38:16 2008 : target_status=2
Sun Jun 22 13:38:16 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:16 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:16 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:16 2008 : pr: 253, pg: 127, pb: 0
Sun Jun 22 13:38:16 2008 : pr: 254, pg: 127, pb: 0
Sun Jun 22 13:38:16 2008 : pr: 254, pg: 127, pb: 0
Sun Jun 22 13:38:16 2008 : pr: 1, pg: 1, pb: 0
Sun Jun 22 13:38:16 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:16 2008 : pr: 254, pg: 127, pb: 0
Sun Jun 22 13:38:16 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:16 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:16 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:16 2008 : pr: 253, pg: 127, pb: 0
Sun Jun 22 13:38:16 2008 : target_status=0
Sun Jun 22 13:38:17 2008 : target_status=0
Sun Jun 22 13:38:17 2008 : target_status=2
Sun Jun 22 13:38:17 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:17 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:17 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:17 2008 : pr: 253, pg: 127, pb: 0
Sun Jun 22 13:38:17 2008 : pr: 254, pg: 127, pb: 0
Sun Jun 22 13:38:17 2008 : pr: 254, pg: 127, pb: 0
Sun Jun 22 13:38:17 2008 : pr: 1, pg: 1, pb: 0
Sun Jun 22 13:38:17 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:17 2008 : pr: 254, pg: 127, pb: 0
Sun Jun 22 13:38:17 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:17 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:17 2008 : pr: 0, pg: 0, pb: 0
Sun Jun 22 13:38:17 2008 : pr: 253, pg: 127, pb: 0
thats a fresh log file..he attacked the goblin then started scanning,he scanned the seakel but ignored to attack and started scanning the area again..i had to pause the bot then manually killed the seakel ( the area is in temple of flame in map3 )..but i tried going to the next area,now full of seakel hunter and summoner and now he attacks only the summoner and not the hunters,same lvl mob as the ones he ignored from the area with seakel mixed goblins ( all orange ) then in roange and red mob area i set the script to min= (6) orange and max= (7) red and he only attacks the red..dunno if its a slight bot bug or just my script configeration..i uploaded my script just to make sure..if u guys see anything wrong with my scripts or can make it better feel free to make changes..im really new at this :oops:


*edit*

i went back to the same area seakel and goblin when they both turn yellow..and now it works fine..it seems it only have bugs on orange mobs

Re: Shaiya Fighter Bot

Posted: Sun Jun 22, 2008 1:56 pm
by deaznracer
thats a fresh log file..he attacked the goblin then started scanning,he scanned the seakel but ignored to attack and started scanning the area again..i had to pause the bot then manually killed the seakel ( the area is in temple of flame in map3 )..but i tried going to the next area,now full of seakel hunter and summoner and now he attacks only the summoner and not the hunters,same lvl mob as the ones he ignored from the area with seakel mixed goblins ( all orange ) then in roange and red mob area i set the script to min= (6) orange and max= (7) red and he only attacks the red..dunno if its a slight bot bug or just my script configeration..i uploaded my script just to make sure..if u guys see anything wrong with my scripts or can make it better feel free to make changes..im really new at this :oops:


*edit*

i went back to the same area seakel and goblin when they both turn yellow..and now it works fine..it seems it only have bugs on orange mobs
find this code

Code: Select all

[target_name_color["orange"]]  = {r_min=255, r_max=255,
                                    g_min=128, g_max=128,
                                    b_min=0, b_max=0},

and change it to this

Code: Select all

[target_name_color["orange"]]  = {r_min=253, r_max=255,
                                    g_min=127, g_max=128,
                                    b_min=0, b_max=0},

I never tried hunting orange and above, but it can easily be fixed.

Re: Shaiya Fighter Bot

Posted: Mon Jun 23, 2008 2:15 am
by caccolone
hi Deaz,
I have found one little problem on healer bot, the string : emergency heal dosent take the changes, exemple, on standard vesion was at 70 % I change it with 50% but he heal me same as before = tons of mana pot, how did I can set the % of emergency?

thanks

Re: Shaiya Fighter Bot

Posted: Mon Jun 23, 2008 2:32 am
by centik
nope..still the same..i guess ill stick with yellows for now..ur script still rox :)

Re: Shaiya Fighter Bot

Posted: Mon Jun 23, 2008 3:04 pm
by deaznracer
caccolone wrote:hi Deaz,
I have found one little problem on healer bot, the string : emergency heal dosent take the changes, exemple, on standard vesion was at 70 % I change it with 50% but he heal me same as before = tons of mana pot, how did I can set the % of emergency?

thanks
The HP_emergency_Heal doesn't work as I turned it off.

Here is a updated version of Emergency Heal.
I been working on it. Not yet finished.

Tell me what you think. The buff is more accurate. It heals faster, and you can adjust a little more then before.

Re: Shaiya Fighter Bot

Posted: Tue Jun 24, 2008 4:31 am
by TheRealPlayer
I have a problem with the bot it allways says bad argument like its outdated can anyone help me pls? thx

Re: Shaiya Fighter Bot

Posted: Tue Jun 24, 2008 7:14 am
by caccolone
TheRealPlayer wrote:I have a problem with the bot it allways says bad argument like its outdated can anyone help me pls? thx
normally when say it is for , wrong string on LUA or you are not using the last version of GG and LUA, if you can post log.txt and lua it will help

Re: Shaiya Fighter Bot

Posted: Tue Jun 24, 2008 7:41 am
by centik
sir im just wondering..is it possible to take out the mob color option in this script?yellow mob is gives lousy exp for me even with exp stone and charms and i cant seem to fix the attacking order on orange and mob thing ( only attacks one kind of monster and leave the other kind alone even its agro and same color )..tnx

Re: Shaiya Fighter Bot

Posted: Tue Jun 24, 2008 10:18 am
by Administrator
Centik: Start by adding a new variable to the script near the top. Lets call it ignore_target_color. Set it to true for your purposes.

Code: Select all

ignore_target_color = true;
Now in function cycle_target(), you'll see this line:

Code: Select all

if (l_color >= l_color_min and l_color <= l_color_max) then
If you change it to this:

Code: Select all

if ( (l_color >= l_color_min and l_color <= l_color_max) or ignore_target_color ) then
then it should attack the target regardless of what color it is. I haven't tested this, but logically, it should work.

Re: Shaiya Fighter Bot

Posted: Tue Jun 24, 2008 10:24 am
by centik
OMG!!it worked..thank thank u very much sir :)

Re: Shaiya Fighter Bot

Posted: Tue Jun 24, 2008 9:19 pm
by TheRealPlayer
i got it 2 work i didn't know that you need the GG running so the bot works i was useing bomber.exe (you can start you client twice and gg don't even starts)

Re: Shaiya Fighter Bot

Posted: Fri Jun 27, 2008 6:46 pm
by deaznracer
Shaiya Fighter bot version 2 is passed out.

Please report any bug , feedbacks, ideas to continuelly receiving updates. If you passed out to a friend they must do the same.

Re: Shaiya Fighter Bot

Posted: Sat Jun 28, 2008 2:25 am
by centik
deaznracer wrote:Shaiya Fighter bot version 2 is passed out.

Please report any bug , feedbacks, ideas to continuelly receiving updates. If you passed out to a friend they must do the same.
ooh..really nice..ill try this out when i get home..

ull have my feed backs later tonight

Re: Shaiya Fighter Bot

Posted: Sat Jun 28, 2008 10:34 am
by botforlive
how could i get a copy of your new script.. I run 2 PC's almostr 24-7 1 hunter 1 warrior

Re: Shaiya Fighter Bot

Posted: Sat Jun 28, 2008 12:53 pm
by deaznracer
botforlive wrote:how could i get a copy of your new script.. I run 2 PC's almostr 24-7 1 hunter 1 warrior
it is very simple. Use the current script. Find some bug and post it here. Or give feedback what you like/dislike. or Tell us what can be approved. I'll keep updating the script for those who do this. I can't find every bug in the script by myself.

one question. How many people in this forum wants an archer bot.