priMELval

drop macro

Nov 15th, 2016
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. $${
  2.  
  3. // Bind to ONSENDCHATMESSAGE and YOUR DROP KEY
  4. // MUST CHECK DROP KEY OPTION "Always override conflicting keybinds"
  5. // I TAKE NO RESPONSIBILITY FOR ANY ITEMS LOST DUE TO MY CRAPPY CODING
  6.  
  7. IF(%KEYNAME%="onSendChatMessage")
  8. IFMATCHES(%CHAT%,^/drop)
  9. IFMATCHES(%CHAT%,^/drop$)
  10. KEY(drop)
  11. ENDIF
  12. IFMATCHES(%CHAT%,^/drop toggle$)
  13. IF(@dropkeydisabled)
  14. UNSET(@dropkeydisabled)
  15. LOG(&6[&4Drop&6] &aDropping items via key is now enabled.)
  16. ELSE
  17. SET(@dropkeydisabled)
  18. LOG(&6[&4Drop&6] &aDropping items via key is now disabled.)
  19. ENDIF
  20. ENDIF
  21. IFMATCHES(%CHAT%,^/drop enable$)
  22. UNSET(@dropkeydisabled)
  23. LOG(&6[&4Drop&6] &aDropping items via key is now enabled.)
  24. ENDIF
  25. IFMATCHES(%CHAT%,^/drop disable$)
  26. SET(@dropkeydisabled)
  27. LOG(&6[&4Drop&6] &aDropping items via key is now disabled.)
  28. ENDIF
  29. IFMATCHES(%CHAT%,^/drop yogurt$)
  30. LOG(&6[&4Drop&6] &aMade some yogurt.)
  31. LOG(&6[&4Drop&6] &aDropped the yogurt. :((()
  32. ENDIF
  33.  
  34. FILTER
  35. ENDIF
  36. ELSE
  37. IF(@dropkeydisabled)
  38. LOG(&6[&4Drop&6] &aDropping items via key is disabled.)
  39. ELSE
  40. KEY(drop)
  41. ENDIF
  42. ENDIF
  43. }$$
Advertisement
Add Comment
Please, Sign In to add comment