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.

attack monster

MMMartin

Squire
i wanna only attack at 4 type enemy, like under is for one type, how to make for attack 4 type enemy ?

if @findtype XXXX
attack 'found'
endif
pause 600
 

c0d3r

Traveler
Code:
if not @listexists 'targets'
  createlist 'targets'
  pushlist 'targets' 0x12
  pushlist 'targets' 0x13
  pushlist 'targets' 0x14
  pushlist 'targets' 0x15
endif
clearignorelist
for 0 to 'targets'
  while @findtype 'targets[]' 0 0 0 10
    attack 'found'
    pause 150
    ignoreobject 'found'
  endwhile
endfor
 
Last edited:

MMMartin

Squire
oh, so it was array with repeat
use for and 'targets[ ]'

i was wonder how it write :D, thanks you this will really help me,
 

MMMartin

Squire
before i use this [for only 1 enemy type]

if @findtype XXXXXXXXXXX
if mana > 18
setability 'primary' 'on'
endif
attack 'found'
ignoreobject 'found'
pause 100
else
clearignorelist
pause 100
endif

is +- same ignore and attack, make all enemy attack :) propably you code need more add

else
clearignorelist
pause 100
endif
 
Top