Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $${
- // Bind to onSendChatMessage and onFoodChange
- IF(%KEYNAME%="onFoodChange")
- IF(%@autofeed%)
- IF(%HUNGER% < 10)
- ECHO(/feed)
- ENDIF
- ENDIF
- ELSE
- IFMATCHES(%CHAT%,"^/autofeed")
- FILTER
- IF(%@autofeed%)
- UNSET(@autofeed)
- LOG(&6[&4AUTOFEED&6] &aAuto feed off)
- ELSE
- SET(@autofeed)
- LOG(&6[&4AUTOFEED&6] &aAuto feed on)
- ENDIF
- ENDIF
- ENDIF
- }$$
Advertisement
Add Comment
Please, Sign In to add comment