Hi, i have ot based on YurOTS 7.6 version.
i have added a lever to the map but its not useable. Can someone explain me how to make it work ? I have added aid and uid in map editor to lever 6368.
i have added action to lever in actions.xml - <action uniqueid="6368" script="reblever.lua" />
and also added script - reblever.lua
could someone explain me what is wrong or what i forgot to do ?
i have added a lever to the map but its not useable. Can someone explain me how to make it work ? I have added aid and uid in map editor to lever 6368.
i have added action to lever in actions.xml - <action uniqueid="6368" script="reblever.lua" />
and also added script - reblever.lua
Lua:
function onUse(cid, item, frompos, item2, topos)
mpos = {x=62, y=320, z=0, stackpos=255}
if item.itemid == 1945 then
thing = getThingfromPos(mpos)
if thing.itemid == 2688 and thing.type >= 0 then
doSendMagicEffect(mpos,10)
doRemoveItem(thing.uid,1)
itemz = math.random(1,1580)
if itemz == 1 then
doCreateItem(2295,1,mpos)
end
end
end
end