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 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 BagOfSending()
Orion.Wait(100);