Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. function EZpots(){
  2. Orion.ClearJournal();
  3. if (Player.MaxHits() - Player.Hits() < 50){
  4. Orion.Terminate('EZpotsNoDelay');
  5. if (Orion.Count('0x0F0D', '0x0000', backpack, '0', true) == 0) return;
  6. //var obj = Orion.FindObject(lasttarget);
  7. Orion.TargetObject(lasttarget);
  8. Orion.Wait(50);
  9. if (Orion.InJournal('You must wait a moment before using another explosion potion.', 'my', self, '0x000C1022', '0x0022')) return;
  10. Orion.UseType('0x0F0D');
  11. Orion.CharPrint('self', '1153', 'Cooking Pot!!');
  12. while (!Orion.HaveTarget()) {
  13. Orion.Wait(1);
  14. }
  15. Orion.CancelTarget();
  16. Orion.WaitJournal('2', Orion.Now(), Orion.Now()+5000, 'my', self, '0x0022');
  17. Orion.Wait(100);
  18. Orion.UseType('0x0F0D');
  19. while (!Orion.HaveTarget()) {
  20. Orion.Wait(1);
  21. }
  22. if (Orion.GetDistance(lasttarget) <= 12) {
  23. Orion.TargetObject(lasttarget);
  24. Orion.Wait(10);
  25. Orion.CharPrint('self', '49', 'Delayed Throw! (100)');
  26. Orion.Wait(50);
  27. return;
  28. } else {
  29. Orion.CharPrint('self', '1153', 'Out Of Range');
  30. while (!Orion.HaveTarget()) {
  31. }
  32. Orion.TargetTileRelative('0', 0, 3, 0);
  33. Orion.Wait(100);
  34. Orion.CharPrint('self', '49', 'Get Ride of It!!');
  35. Orion.Wait(100);
  36. return;
  37. }
  38. }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement