Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local storage = 19387
- local damage = 580
- function onAttack(cid, target)
- if isMonster(target) and getCreatureName(target):lower() == 'training monk' then
- getSto = getPlayerStorageValue(cid, storage)
- if isNumber(getSto) then
- doPlayerSetStorageValue(cid, storage, getSto+1)
- if getSto+1 >= damage then
- doPlayerSetStamina(cid, getPlayerStamina(cid) + 1)
- doPlayerSetStorageValue(cid, storage, 0)
- end
- else
- doPlayerSetStorageValue(cid, storage, 0)
- end
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment