• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Use lever remove item summon creature

klaasvaak

New Member
Joined
May 14, 2011
Messages
1
Reaction score
0
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
 
Back
Top