priMELval

auto feed macro

Mar 31st, 2017
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. $${
  2.  
  3. // Bind to onSendChatMessage and onFoodChange
  4. IF(%KEYNAME%="onFoodChange")
  5. IF(%@autofeed%)
  6. IF(%HUNGER% < 10)
  7. ECHO(/feed)
  8. ENDIF
  9. ENDIF
  10. ELSE
  11. IFMATCHES(%CHAT%,"^/autofeed")
  12. FILTER
  13. IF(%@autofeed%)
  14. UNSET(@autofeed)
  15. LOG(&6[&4AUTOFEED&6] &aAuto feed off)
  16. ELSE
  17. SET(@autofeed)
  18. LOG(&6[&4AUTOFEED&6] &aAuto feed on)
  19. ENDIF
  20. ENDIF
  21. ENDIF
  22.  
  23. }$$
Advertisement
Add Comment
Please, Sign In to add comment