Advertisement
Guest User

Untitled

a guest
Aug 21st, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. local addons = {128, 129, 131} --id outfitow z clienta :)
  2.  
  3.  
  4. function onThink(cid)
  5. if getCreatureStorage(cid, 47562) == -1 then
  6. n = 0
  7. for _, s in ipairs(addons) do
  8. if not canPlayerWearOutfit(cid, s, 2) then
  9. break
  10. end
  11. n = n + 1
  12. end
  13.  
  14. if #addons == n then
  15. doCreatureSetStorage(cid, 47562, 1)
  16. doCreatureSay(cid, "+20% HP/MP! For FULL ADDONS!", 19)
  17. doCreatureAddMana(cid, getCreatureMaxMana(cid)*(10/100))
  18. doCreatureAddHealth(cid, getCreatureMaxHealth(cid)*(10/100))
  19. end
  20. end
  21. return true
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement