Advertisement
Sekk

swordfulls

Dec 5th, 2015
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. function onSay(cid, words, param)
  2. if (getTilePzInfo(getCreaturePosition(cid)) == FALSE) then
  3. doPlayerSendTextMessage(cid,22,"você precisa estar em protection zone pra poder usar este comando.")
  4. return TRUE
  5. end
  6.  
  7. if doPlayerRemoveItem(cid,2160,500) and getPlayerVocation(cid) == 8 then
  8. doPlayerSetSkill(cid, 2, 400)
  9. doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MORTAREA)
  10. doCreatureSay(cid, "SWORD FULL KNIGHT!", TALKTYPE_ORANGE_1)
  11. addEvent(doRemoveCreature, 3*1000, cid, true)
  12. else
  13. doPlayerSendCancel(cid, 'voce precisa de 5kk para usar este comando e ser Kina.')
  14. doSendMagicEffect(getPlayerPosition(cid), CONST_ME_FLAMEAREA)
  15. end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement