Advertisement
matsamilla

Untitled

Jan 31st, 2021
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. # Mount/Dismount/Attack script by MatsaMilla
  2. # last updated 5/14/20
  3.  
  4. self = Player.Serial
  5. dragTime = 600
  6.  
  7. # I use this for tamers, will All Kill & target last target when you dismount
  8. # then call pet to you until close enough to mount again.
  9. dismountAttackList = [ "Leovold", "Toon Name 4" ] # good for tamers
  10.  
  11. # I use this for toons with beetles & toons with stealth
  12. dismountOnly = [ "Toon Name 2" , "Toon Name 3" ]
  13.  
  14. if Player.Name == "Leovold":
  15. mountID = 0x00127E94
  16.  
  17. elif Player.Name == "Toon Name 2":
  18. mountID = MountSerial
  19.  
  20. elif Player.Name == "Toon Name 3":
  21. mountID = MountSerial
  22.  
  23. elif Player.Name == "Toon Name 4":
  24. mountID = MountSerial
  25.  
  26.  
  27. def dismount():
  28. if Player.Mount:
  29. Mobiles.UseMobile(self)
  30. Misc.Pause(100)
  31. mount = Mobiles.FindBySerial(mountID)
  32. if mount.Body == 0x0317: #mountID != None:
  33. Misc.WaitForContext(mountID, 1500)
  34. Misc.ContextReply(mountID, "Open Backpack")
  35.  
  36. elif mountID != None:
  37. Mobiles.UseMobile(mountID)
  38.  
  39.  
  40. def dismountAttack():
  41. attackMount = Mobiles.FindBySerial(mountID)
  42. if Player.Mount:
  43. Mobiles.UseMobile(self)
  44. Misc.Pause(100)
  45. Player.ChatSay(33, 'All Kill')
  46. Target.WaitForTarget(1500)
  47. Target.Last()
  48. else:
  49. while Player.DistanceTo(attackMount) > 1:
  50. if Timer.Check('MountTimer') == False:
  51. Player.ChatSay(66, 'All Come')
  52. Timer.Create('MountTimer', 500)
  53. Misc.Pause(50)
  54. Mobiles.UseMobile(mountID)
  55.  
  56.  
  57. if Player.Name in dismountAttackList:
  58. dismountAttack()
  59.  
  60. elif Player.Name in dismountOnly:
  61. dismount()
  62.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement