UOGamers Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

  • To obtain new Razor updates, please reinstall Razor from our new website.

Autotargetobject 'found'

ThePope

Traveler
Hi i am having this problem where i cant seem to be able to use the autotargetobject on a 'found' item with the promptalias command.

Can any of you guys could help me figure what im doing wrong here.

This is for setting spellbook to be filled with scroll. Prior to that the organizer have loaded the necessary scroll, reagent and 1 spellbook.

thank!

findtype '0xefa' 'any' 'backpack' 1
pause 500
if not @findalias 'book'
promptalias 'book'
waitingfortarget
autotargetobject 'found'
endif
 
Try this:

findtype '0xefa' 'any' 'backpack' 1
pause 500
if not @findalias 'book'
setalias 'book' 'found'
endif

EDIT:
actually you probably also want to make sure it exists first. Also I don't think you have to wait after a find type. Maybe try this instead:

if not @findalias 'book' and @findtype '0xefa' 'any' 'backpack' 1
setalias 'book' 'found'
endif
 
Last edited:
Top