Scripting Resources & Utilities > Razor Enhanced

trying to write a discord script, its very basic and I am struggling liike mad,

(1/1)

K33GZ:
Ive tried as many combinations as I can think of and read the website but Im still lost can someone help me out please,
I am trying to disco a pixie (Low skill I know ;(  ) but I dont just want to target one specific one I was trying to target random ones by putting their ID in, please see below,,   
thanks :'(


Player.UseSkill("Discordance")
Target.WaitForTarget(10000, False)
Mobiles.FindByID(0x0080)
Misc.Pause(11000)                                                                                                                                                                                                                                                                                                                 then it says this [08:23:09] - --> MESSAGE: Traceback (most recent call last):
  File "<string>", line 6, in <module>
AttributeError: 'Mobiles' object has no attribute 'FindByID'            can anyone tell me what I am doing wrong please,

unisharp:
I checked their API and I don't see a FindByID method under the Mobiles class.

http://razorenhanced.net/dokuwiki/doku.php?id=mobile_func

There's a FindBySerial method

Highly suggest running through the scripting section in http://razorenhanced.net/dokuwiki/doku.php

Quick Google search, FindByID is a method under the Items class, so you can't use it with mobiles.

Navigation

[0] Message Index

Go to full version