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.

I need help about script

Xeasin

Sorceror
Ok i give up trying to create scirip. Even i cant create simple ones :s I'm about to lose my mind...
I was saving wood for chaos shield. Today I decide to start donate but my char 45days old and I dont have any 'com. deed box' so I have to do this donation little amount and again and agian :S I try to create simple script, copying others and using recod options. I handle restock wood to backpack in my backpack.
I restock one time and when turn back to restock location it says 'moving item type not found' this message touch on my nerves because 'same box! same wood! same code!" how it can mange not find them...
Anyway could somebody help to me befor i loose my mind

Code:
if not @findobject 'restock'
  headmsg 'Select the container with your boards'
  promptalias 'restock'
  useobject 'restock'
endif
if not @findobject 'targetcon'
  headmsg 'Select the targetcon with your boards'
  promptalias 'targetcon'
  useobject 'targetcon'
endif
if @counttype 0x1bd7 0x0 'targetcon' < 1
  movetype 0x1bd7 'restock' 'targetcon' 0 0 0 0x0 350
  pause 1000
endif
useobject 0x415502cc
waitforgump 0x554b87f3 15000
replygump 0x554b87f3 41
pause 2000
useobject 0x40001c04
waitforgump 0xe158184c 15000
replygump 0xe158184c 1115606
waitfortarget 15000
target! 0x4229528d
waitforgump 0xf320470b 15000
replygump 0xf320470b 9999
pause 500
useobject 0x415502cc
waitforgump 0x554b87f3 15000
replygump 0x554b87f3 47
 

Xeasin

Sorceror
Nope still it doesnt work I add line "useobject 0x41d60e3f" but still saying moving type not found
 

Nordon

Sorceror
change this:

Code:
if not @findobject 'targetcon'
 headmsg 'Select the targetcon with your boards'
 promptalias 'targetcon'
 useobject 'targetcon'
endif

to

Code:
if not @findobject 'targetcon'
  headmsg 'Select the targetcon with your boards'
  promptalias 'targetcon'
  useobject 'targetcon'
else
 useobject 'targetcon'
endif
 

Xeasin

Sorceror
Thank you guys now it's working. When I can earn 1 year veteran reward donetin like this gonna takes ages :(

Code:
if mana < 11
  clearjournal
  useskill 'meditation'
  while mana < maxmana
  endwhile
endif
if not @findobject 'restock'
  headmsg 'Select the container with your boards'
  promptalias 'restock'
  useobject 'restock'
endif
if not @findobject 'targetcon'
  headmsg 'Select the targetcon with your boards'
  promptalias 'targetcon'
  useobject 'targetcon'
endif
useobject 0x41d60e3f
pause 1000
if @counttype 0x1bd7 0x0 'targetcon' < 1
  movetype 0x1bd7 'restock' 'targetcon' 0 0 0 0x0 350
  pause 1000
endif
pause 500
useobject 0x415502cc
waitforgump 0x554b87f3 15000
replygump 0x554b87f3 41
pause 2000
useobject 0x40001c04
waitforgump 0xe158184c 15000
replygump 0xe158184c 1115606
waitfortarget 15000
target! 0x4229528d
waitforgump 0xf320470b 15000
replygump 0xf320470b 9999
pause 500
useobject 0x415502cc
waitforgump 0x554b87f3 15000
replygump 0x554b87f3 47
pause 3500
 

c0d3r

Traveler
you can also check the waitforcontents command, could be useful, from documentation:
Code:
Wait For Contents
Wait for the server to send container contents, it will also try opening the container once.

Usage
waitforcontents (serial) (timeout)

Sample
// Ask for a new bag
promptalias 'bag'
// Try opening once and wait for contents for 2 seconds
waitforcontents 'bag' 2000
it wont keep opening the container unless it is necessary, you probably wont need that extra fixed pause making it more effective.
 
  • Like
Reactions: MB
Find a script that goes through an open gate. Put all your wood in a bag in your house. Gate to a bank. Drag the bag so it's on your cursor. Run your macro to go through gate. Say bank and drop your bag in your bank box.
 
Top