Advertisement
Guest User

Untitled

a guest
May 31st, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. function onCastSpell(cid, var)
  2. local isFuckingplayer = isPlayer
  3. local level = 300000
  4. local toSummon = "Firo Elementalus"
  5. if isFuckingplayer(cid) then
  6. if getPlayerLevel(cid) >= level then
  7. if table.maxn(getCreatureSummons(cid)) ~= 1 then
  8. local ret = doSummonMonster(cid, "Firo Elementalus")
  9. if(ret ~= RETURNVALUE_NOERROR) then
  10. effect = CONST_ME_POFF
  11. doPlayerSendDefaultCancel(cid, ret)
  12. end
  13. doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT)
  14. else
  15. doPlayerSendCancel(cid, "Sorry Nigga,You Have Reached Max Summons")
  16. doSendMagicEffect(getThingPos(cid),CONST_ME_POFF)
  17. end
  18. else
  19. doPlayerSendCancel(cid, "Sorry Nigga,You Are too Level")
  20. doSendMagicEffect(getThingPos(cid),CONST_ME_POFF)
  21. end
  22. end
  23. return true
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement