Hello, I am new at scripting and I am tryting to make my own scirpt. The idea is: Use a lever -> remove and item from location X (bear paw) remove another item from location X (dragon claw).
Do summon demon.
SendPlayerMsg "You have summoned a demon".
Please help me. This is all I got so far but it doesn't work.
Also I don't know how to add the remove item thing.
function onUse(cid, item, frompos, item2, topos)
if (item.uid == 7000 and item.itemid == 9825) then
monster1pos = {x=1131, y=1220, z=11}
doSummonCreature("Demon", monster1pos)
doPlayerSendTextMessage(cid,22,"You have summoned a demon.")
end
return 1
end
Do summon demon.
SendPlayerMsg "You have summoned a demon".
Please help me. This is all I got so far but it doesn't work.
Also I don't know how to add the remove item thing.
function onUse(cid, item, frompos, item2, topos)
if (item.uid == 7000 and item.itemid == 9825) then
monster1pos = {x=1131, y=1220, z=11}
doSummonCreature("Demon", monster1pos)
doPlayerSendTextMessage(cid,22,"You have summoned a demon.")
end
return 1
end