NPC recall macro Trick or Treat

Share your guides, how-tos, FAQs, and so forth. This is not for support -- post questions in General Discussion.
Post Reply
User avatar
Tanya
Posts: 1796

NPC recall macro Trick or Treat

Post 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

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
hrs024 and aemneuspeed like this.
Top
User avatar
Calvin
Posts: 5686
Location: UK

Re: NPC recall macro Trick or Treat

Post 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
hrs024 and Tanya like this.
Top
User avatar
leo_azenha
Posts: 69

Re: NPC recall macro Trick or Treat

Post by leo_azenha »

What do i win from npcs doing this?
User avatar
april0395
Posts: 726

Re: NPC recall macro Trick or Treat

Post 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? :lol:
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.
Arden
Posts: 1703

Re: NPC recall macro Trick or Treat

Post by Arden »

Does this train begging ?


Are you allowed to do this afk?
User avatar
Tanya
Posts: 1796

Re: NPC recall macro Trick or Treat

Post 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...
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
User avatar
Tanya
Posts: 1796

Re: NPC recall macro Trick or Treat

Post 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? :lol:
But it works with 1 book? Nice!
Probably a bug in the macro, sorry :lol:
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
hrs024 likes this.
Top
User avatar
april0395
Posts: 726

Re: NPC recall macro Trick or Treat

Post 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? :lol:
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.
Tanya likes this.
Top
Cunnana
Posts: 1005

Re: NPC recall macro Trick or Treat

Post by Cunnana »

Remove // from book two line
User avatar
april0395
Posts: 726

Re: NPC recall macro Trick or Treat

Post by april0395 »

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.
Tanya likes this.
Top
User avatar
The Silvertiger
Posts: 4469

Re: NPC recall macro Trick or Treat

Post 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.
Last edited by The Silvertiger on October 16th, 2018, 6:37 pm, edited 1 time in total.
Never forget June 4th 1989!
Selling List & Vendor

"Screenshots will never be used as evidence but more of a reference tool for us to help in our investigations."
Tanya likes this.
Top
User avatar
Tanya
Posts: 1796

Re: NPC recall macro Trick or Treat

Post 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! :D
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
Post Reply