Cornwallis
Member
- Joined
- Jan 3, 2010
- Messages
- 480
- Reaction score
- 16
I'm not getting any errors, it just won't summon anything.
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.id == 10029 or item.id == 10030 and getPlayerLevel(cid) >= 1 and getPlayerLevel(cid) < 50 then
doSummonCreature("Skunk", pos)
elseif getPlayerLevel(cid) >= 50 and getPlayerLevel(cid) < 200 then
doSummonCreature("Dragon", pos)
elseif getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) < 500 then
doSummonCreature("Demon", pos)
elseif getPlayerLevel(cid) >= 500 and getPlayerLevel(cid) < 1000 then
doSummonCreature("Hellhound", pos)
return TRUE
end
end