PDA

View Full Version : Making a (not so full) afk script :)



sakux323
02-28-2016, 04:23 AM
Hi everyone i need some help because im new to the Lua language and i would like to get some information how to make the walker go to a certain label after it sees a certain orange message, basically

Stage 1/label 1

Start in depo
Talk to an npc and say
~Hi
~Giant spider

Stage 2/label 2
Go to the hunt

Stage 3/label 3
Start hunting
and if an orange message Task message: 60 of 60 Giant Spiders killed. comes up i want him to go to stage 4/label 4

Stage 4/label 4
Go back to depo
stand near the npc and say
~Hi
~Yes

Stage 5/label 5
Go Depot
Put the items from the task inside the depot
Start the entire script over again.


Please help me since i have no clue what im doing, i tried doing it myself but did not work.

Jontor
02-28-2016, 09:34 AM
Hi everyone i need some help because im new to the Lua language and i would like to get some information how to make the walker go to a certain label after it sees a certain orange message, basically

Stage 1/label 1

Start in depo
Talk to an npc and say
~Hi
~Giant spider

Stage 2/label 2
Go to the hunt

Stage 3/label 3
Start hunting
and if an orange message Task message: 60 of 60 Giant Spiders killed. comes up i want him to go to stage 4/label 4

Stage 4/label 4
Go back to depo
stand near the npc and say
~Hi
~Yes

Stage 5/label 5
Go Depot
Put the items from the task inside the depot
Start the entire script over again.


Please help me since i have no clue what im doing, i tried doing it myself but did not work.

Does the message appears in server log? If yes, you could use Generic Messages Proxy
Try also looking in this thread (http://forums.xenobot.net/showthread.php?41399-Kill-counter-amp-reset-script)

sakux323
02-28-2016, 11:35 AM
checked the thread and as i read the script (correct me if im wrong please as i said, im new) it does not seem to loop? after it kills that 500 just goes to dp but does not seem to reset the counter itself, or maybe im wrong?