// 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
Peerless Hunter
Guide to Whammy - viewtopic.php?f=10&t=314
My youtube channel - /watch?v=sx5zGCbILtA
Weekly Bedlam Spawns - viewtopic.php?f=2&t=9131
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?
Made In Quebec wrote:Some people's pleasure are sticking vegetables up their asses. While it's not my personal cup of tea, they can do as they please, since it's their asshole's and not mine, and I will not judge them.
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
Peerless Hunter
Guide to Whammy - viewtopic.php?f=10&t=314
My youtube channel - /watch?v=sx5zGCbILtA
Weekly Bedlam Spawns - viewtopic.php?f=2&t=9131
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?
Made In Quebec wrote:Some people's pleasure are sticking vegetables up their asses. While it's not my personal cup of tea, they can do as they please, since it's their asshole's and not mine, and I will not judge them.
I uncommented the lines and it still recalls from book 1 over and over. I fixed it by making a separate macro.
Made In Quebec wrote:Some people's pleasure are sticking vegetables up their asses. While it's not my personal cup of tea, they can do as they please, since it's their asshole's and not mine, and I will not judge them.
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.
Last edited by The Silvertiger on October 16th, 2018, 6:37 pm, edited 1 time in total.
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!
Peerless Hunter
Guide to Whammy - viewtopic.php?f=10&t=314
My youtube channel - /watch?v=sx5zGCbILtA
Weekly Bedlam Spawns - viewtopic.php?f=2&t=9131