lordkronox
Scripter & Helper
- Joined
- Sep 9, 2010
- Messages
- 52
- Reaction score
- 1
i need help with this script:
Help.. My TFS is 0.3.4...
i get error in function getPlayerSummons ..
i have created this script to summon one monster only, if the summon die the player summon he again..
HELP
PHP:
function onUse(cid, item, frompos, item2, topos)
local summon = doSummonCreature("Demon",topos)
local summons = getCreatureSummons(cid)
if summons == 0 then
doConvinceCreature(cid, summon)
doCreatureSay(cid, "Demon, i need your help!!", TALKTYPE_SAY)
doSendMagicEffect(topos, 46)
elseif summons == 1
doPlayerSendCancel(cid, "Max summons is one.")
end
end
Help.. My TFS is 0.3.4...
i get error in function getPlayerSummons ..
i have created this script to summon one monster only, if the summon die the player summon he again..
HELP