Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onCastSpell(cid, var)
- local isFuckingplayer = isPlayer
- local level = 300000
- local toSummon = "Firo Elementalus"
- if isFuckingplayer(cid) then
- if getPlayerLevel(cid) >= level then
- if table.maxn(getCreatureSummons(cid)) ~= 1 then
- local ret = doSummonMonster(cid, "Firo Elementalus")
- if(ret ~= RETURNVALUE_NOERROR) then
- effect = CONST_ME_POFF
- doPlayerSendDefaultCancel(cid, ret)
- end
- doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT)
- else
- doPlayerSendCancel(cid, "Sorry Nigga,You Have Reached Max Summons")
- doSendMagicEffect(getThingPos(cid),CONST_ME_POFF)
- end
- else
- doPlayerSendCancel(cid, "Sorry Nigga,You Are too Level")
- doSendMagicEffect(getThingPos(cid),CONST_ME_POFF)
- end
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement