Page 1 of 1
NPC recall macro Trick or Treat
Posted: October 15th, 2017, 7:40 pm
by Tanya
Code: Select all
// Author: Tanya
// Description: recalls to NPC's defined in runebooks, says 'trick or treat' and targets them, only when distance is 4 tiles between you and NPC
// v1.0: add as many books as you want and push them into the list below
// train skill begging
// Have fun!
if not @findobject 'NPC_book_One'
promptalias 'NPC_book_One'
endif
//if not @findobject 'NPC_book_Two'
//promptalias 'NPC_book_Two'
//endif
if not listexists 'NPCbooks'
createlist 'NPCbooks'
pushlist 'NPCbooks' 'NPC_book_One'
//pushlist 'NPCbooks' 'NPC_book_Two'
endif
@removelist 'Runes'
if not listexists 'Runes'
@createlist 'Runes'
pushlist 'Runes' 5
pushlist 'Runes' 11
pushlist 'Runes' 17
pushlist 'Runes' 23
pushlist 'Runes' 29
pushlist 'Runes' 35
pushlist 'Runes' 41
pushlist 'Runes' 47
pushlist 'Runes' 53
pushlist 'Runes' 59
pushlist 'Runes' 65
pushlist 'Runes' 71
pushlist 'Runes' 77
pushlist 'Runes' 83
pushlist 'Runes' 89
pushlist 'Runes' 95
endif
if not listexists 'npcbodies'
createlist 'npcbodies'
pushlist 'npcbodies' 0x190
pushlist 'npcbodies' 0x191
endif
clearignorelist
@clearjournal
for 0 to 'NPCbooks'
for 0 to 'Runes'
while mana < 18
endwhile
if @injournal 'world will save'
while not @injournal 'world save complete'
endwhile
@clearjournal
endif
useobject NPCbooks[]
waitforgump 0x554b87f3 5000
sysmsg 'NPCbooks[]' 33
sysmsg 'Runes[]' 33
replygump 0x554b87f3 Runes[]
pause 2000
clearignorelist
for 0 to 'npcbodies'
while @findtype npcbodies[] 'any' 'ground' 1 4
waitforproperties 'found' 5000
msg 'trick or treat'
waitfortarget 15000
target! 'found'
pause 1000
ignoreobject 'found'
endwhile
endfor
endfor
if @injournal 'world will save'
while not @injournal 'world save complete'
endwhile
@clearjournal
endif
endfor
pause 1000
Re: NPC recall macro Trick or Treat
Posted: October 15th, 2017, 8:05 pm
by Calvin
>can totally be done with razor
there wont be much point tho if lots of people doing it, the good items are already only 50k each
Re: NPC recall macro Trick or Treat
Posted: October 17th, 2017, 2:01 am
by leo_azenha
What do i win from npcs doing this?
Re: NPC recall macro Trick or Treat
Posted: October 14th, 2018, 3:45 pm
by april0395
So, for some reason it never recalls from book 2. I uncommented the lines for book two and selected book two when prompted, but when the macro runs, it only recalls from book one. Anyone know what I've done wrong?
Re: NPC recall macro Trick or Treat
Posted: October 14th, 2018, 4:32 pm
by Arden
Does this train begging ?
Are you allowed to do this afk?
Re: NPC recall macro Trick or Treat
Posted: October 14th, 2018, 5:47 pm
by Tanya
Arden wrote:Does this train begging ?
Are you allowed to do this afk?
Not train begging,
no, not allowed to do this afk.
I didn't test this macro this year, and I don't have any time to play...
Re: NPC recall macro Trick or Treat
Posted: October 14th, 2018, 5:47 pm
by Tanya
april0395 wrote:So, for some reason it never recalls from book 2. I uncommented the lines for book two and selected book two when prompted, but when the macro runs, it only recalls from book one. Anyone know what I've done wrong?
But it works with 1 book? Nice!
Probably a bug in the macro, sorry
Re: NPC recall macro Trick or Treat
Posted: October 14th, 2018, 7:27 pm
by april0395
I just made a secondary macro and put different names for the list and book, and it's working. Just have to playmacro 'Trick or Tanya 2' at the end of the first macro. Like the name I gave it?
Re: NPC recall macro Trick or Treat
Posted: October 15th, 2018, 11:41 pm
by Cunnana
Remove // from book two line
Re: NPC recall macro Trick or Treat
Posted: October 16th, 2018, 10:50 am
by april0395
I uncommented the lines and it still recalls from book 1 over and over. I fixed it by making a separate macro.
Re: NPC recall macro Trick or Treat
Posted: October 16th, 2018, 12:11 pm
by The Silvertiger
april0395 wrote:I uncommented the lines and it still recalls from book 1 over and over. I fixed it by making a separate macro.
Did you uncomment and remove the list npc books in active objects? If you ran the script before uncommenting you have to remove the list because the list now exists and doesn't update.
Re: NPC recall macro Trick or Treat
Posted: October 16th, 2018, 2:21 pm
by Tanya
The Silvertiger wrote:april0395 wrote:I uncommented the lines and it still recalls from book 1 over and over. I fixed it by making a separate macro.
Did you uncomment and remove the list box books in active objects? If you ran the script before uncommenting you have to remove the list because the list now exists and doesn't update.
I think this should fix it! Thanks!