Author Topic: trying to write a discord script, its very basic and I am struggling liike mad,  (Read 898 times)

0 Members and 1 Guest are viewing this topic.

Offline K33GZTopic starter

  • Newbie
  • *
  • Posts: 2
  • Activity:
  • Reputation Power: 1
  • K33GZ has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
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 :'(

Target.WaitForTarget(10000, False)
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,

Offline unisharp

  • Elite
  • ***
  • *
  • Posts: 196
  • Activity:
  • Reputation Power: 4
  • unisharp has no influence.
  • Gender: Male
  • Respect: +40
  • Referrals: 0
    • View Profile
I checked their API and I don't see a FindByID method under the Mobiles class.

There's a FindBySerial method

Highly suggest running through the scripting section in

Quick Google search, FindByID is a method under the Items class, so you can't use it with mobiles.
« Last Edit: April 12, 2021, 04:01:35 AM by unisharp »