Blood BlvD Ot
Member
- Joined
- Jun 12, 2010
- Messages
- 243
- Reaction score
- 7
I got it set up so u can summon the creature on item use.
I need it so that u can only summon one creature on using this, and u cannot summon again untill that creature has died or gone away on the event of a player log off.
This is the beginning of what we've got.
I need it so that u can only summon one creature on using this, and u cannot summon again untill that creature has died or gone away on the event of a player log off.
This is the beginning of what we've got.
Code:
function onUse(cid, item, frompos, item2, topos)
local pos = getThingPos(cid)
if item.itemid == # then
doConvinceCreature(cid, doCreateMonster("SUMMON", pos))
else
doPlayerSendCancel(cid,"MESSAGE")
end
doSendMagicEffect(topos,40)
return 1
end
function