Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function EZpots(){
- Orion.ClearJournal();
- if (Player.MaxHits() - Player.Hits() < 50){
- Orion.Terminate('EZpotsNoDelay');
- if (Orion.Count('0x0F0D', '0x0000', backpack, '0', true) == 0) return;
- //var obj = Orion.FindObject(lasttarget);
- Orion.TargetObject(lasttarget);
- Orion.Wait(50);
- if (Orion.InJournal('You must wait a moment before using another explosion potion.', 'my', self, '0x000C1022', '0x0022')) return;
- Orion.UseType('0x0F0D');
- Orion.CharPrint('self', '1153', 'Cooking Pot!!');
- while (!Orion.HaveTarget()) {
- Orion.Wait(1);
- }
- Orion.CancelTarget();
- Orion.WaitJournal('2', Orion.Now(), Orion.Now()+5000, 'my', self, '0x0022');
- Orion.Wait(100);
- Orion.UseType('0x0F0D');
- while (!Orion.HaveTarget()) {
- Orion.Wait(1);
- }
- if (Orion.GetDistance(lasttarget) <= 12) {
- Orion.TargetObject(lasttarget);
- Orion.Wait(10);
- Orion.CharPrint('self', '49', 'Delayed Throw! (100)');
- Orion.Wait(50);
- return;
- } else {
- Orion.CharPrint('self', '1153', 'Out Of Range');
- while (!Orion.HaveTarget()) {
- }
- Orion.TargetTileRelative('0', 0, 3, 0);
- Orion.Wait(100);
- Orion.CharPrint('self', '49', 'Get Ride of It!!');
- Orion.Wait(100);
- return;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement