Using AgBot Constructor

01/26/2009 00:10 lunapt#1
Im new to agBot..

SO I open the 4.2 Script Constructer, scripted it to buy some pots, repair the items, then go train on Aduna Lapons..

I added it to the agBot script...

When my character goes to town, the agBot starts the Walkscript

But all it does it walk to the NPCs, then stop at the Blacksmith.
It doesnt even talk to the NPCs at all...

This is my script"

"//","..............^^.............................^^ ..............","//"
"//",".......................... AgDev ..........................","//"
"//","........ The agbot-Scripts Constructor ........","//"
"//","........... Coded by: Hussert & KillaH ..........","//"
"//",".......................Version 4.2 ....................","//"
"//","............................................... ..................","//"
"//","Town: Constantinople","//"
"//","Monster: lvl-14 ----- Aduna Ladon.txt","//"
"//","Buys 20 HP Small Potions","//"
"//","Buys 20 MP Small Potions","//"
"//","Protect off","//"
"//","Starts autopotion","//"
"//","............................................... ..................","//"
"ConditionScript","-10655;2604;20","1"
"cmd","[protect off]",""
"cmd","[stop bot]",""
"cmd","[clear hunting]",""
"cmd","[start autopotion]",""
"LogData","Statistics","1"
"-10648","2602","1"
"-10630","2598","1"
"-10623","2594","1"
"cmd","[stop walking]",""
"-10631","2601","1"
"-10666","2631","1"
"-10670","2641","1"
"cmd","[stop walking]",""
"store open","0101000000","Weapon Trader Balbardo"
"store repair","",""
"store close","",""
"-10664","2634","1"
"-10634","2635","1"
"-10622","2635","1"
"cmd","[stop walking]",""
"store open","0101000000","Nun Retaldi"
"store buy","HP recovery potion (Small)","20"
"store buy","MP recovery Potion (Small)","20"
"store close","",""
"-10634","2586","1"
"-10643","2559","1"
"-10666","2539","1"
"-10676","2530","1"
"cmd","[stop walking]",""
"-10678","2537","1"
"-10748","2537","1"
"-10757","2534","1"
"cmd","[stop walking]",""
"//","......^^.........................^^......", "//"
"//","...This was the Townscript...","//"
"//",".....Here is the Walkscript.....","//"
"//",".....Starting place: Stable......","//"
"//",".............................................", "//"
"-10753","2552","1"
"-10729","2572","1"
"-10731","2645","1"
"-10723","2639","1"
"-11170","2645","1"
"//","Out Of Town","//"
"-11184","2646","1"
"-11198","2622","1"
"-11215","2601","1"
"-11230","2579","1"
"-11250","2570","1"
"-11270","2560","1"
"-11291","2558","1"
"-11324","2560","1"
"-11354","2566","1"
"-11374","2573","1"
"-11390","2586","1"
"-11410","2601","1"
"-11430","2614","1"
"-11443","2606","1"
"-11438","2569","1"
"-11422","2530","1"
"-11420","2487","1"
"-11422","2450","1"
"-11434","2422","1"
"-11484","2329","1"
"-11496","2300","1"
"-11496","2261","1"
"-11484","2230","1"
"-11469","2202","1"
"-11449","2178","1"
"-11434","2155","1"
"-11427","2125","1"
"-11425","2095","1"
"-11412","2074","1"
"-11400","2042","1"
"cmd","[stop walking]",""
"cmd","[add hunting]","-11400;2042;150"
"cmd","[start bot]",""
"//","......^^.........................^^......", "//"
"//",".......Thank you for using.......","//"
"//",".................AgDev.................","//"
"//",".............................................", "//"



What is wrong with it?
01/26/2009 00:15 theoneofgod#2
All I can see that's wrong here is the condition script.

Remove

Code:
"ConditionScript","-10655;2604;20","1"
01/26/2009 00:29 lunapt#3
No difference. The bot just walks back and forth between the Nun and the Blacksmith. I have plenty of gold, too...

I re did my script, this time to go to stable keeper and buy horses, etc...

And all it does it run back and forth between the NPCs.

Can anyone tell me why it doesnt click them?
01/26/2009 10:03 Hussert#4
That's from AgDev 4.2
We do have a thread for it. Anyway, ...

Your script is fine. Maybe you're expecting for the NPC window to appear like it usually do when you buy yourself, but that does not happen with agbot. It just go near the NPC and buys like directly from him without opening any windows.

From your script there, you should have bought 20 HP, 20 MP pots and repaired your weapons. Then, it goes to Aduna Ladon.
01/26/2009 17:03 lunapt#5
Thanks ;).

Do I still need to remove this?


"ConditionScript","-10655;2604;20","1"