Author Topic: Use Bag of Sending  (Read 792 times)

0 Members and 1 Guest are viewing this topic.

Offline CrisisTopic starter

  • Global Moderator
  • *
  • *
  • Posts: 2561
  • Activity:
    3.4%
  • Reputation Power: 37
  • Crisis has a powerful will.Crisis has a powerful will.Crisis has a powerful will.Crisis has a powerful will.Crisis has a powerful will.Crisis has a powerful will.Crisis has a powerful will.
  • Gender: Male
  • Scripting well enough to break things!
  • Referrals: 2
    • View Profile
Use Bag of Sending
« on: April 03, 2021, 06:00:21 AM »
Code: [Select]
function BagOfSending () {
if (Player.Weight () >= Player.MaxWeight ()-20) {
   Orion.UseType('0x0E76');
   Orion.Wait(100);
   Orion.TargetType('0x0EED');
 }
}

I am still learning and posting as I go so that maybe other might get into Orion. So, like EasyUO things are uniquely identifiable. Instead of using an itemid that is shared by anything with that graphic, it uses a graphic. I am using
Code: [Select]
Orion.UseType('graphic'); where you would replace the word graphic with the graphic number. 0x0E76 is the graphic for a bag of sending and 0x0EED is the graphic for a gold pile. Orion uses Java and is fairly easy to follow, even if you are like me, and never used Java before.

This would be equivalent to a sub but not called the same way. All Orion "functions" can be stored on one huge script. To add this into something else you would add it in as
Code: [Select]
BagOfSending()
    Orion.Wait(100);

Tags: