• 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!

OnUse transform door?

kito2

www.masteria.net
Joined
Mar 9, 2009
Messages
3,764
Solutions
1
Reaction score
227
Location
Chile, Santiago
Hi there, I would like a script for all item id: 10776 and 10777, when you use 10777 it transform to 10776 and when you use 10776 it transform to 10777 (it is a door).
 
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
return item.itemid == 10776 and doTransformItem(item.uid,10777) or item.itemid == 10777 and doTransformItem(item.uid,10776)
end

add both items id in the line in action.xml with itemid="10777-10776"
 
Back
Top