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

C++ Action stove opens hole

jigsaw

Member
Joined
Dec 21, 2008
Messages
137
Solutions
4
Reaction score
16
Hello everyone,

I'm in a real old tibia project which is online right now but i'm not finished yet.

So, in order to solve the SoF mistery (which will include maze of fury) I want to make the stove on the minomage area in rookgaard to open a hole in the skel cave in the maze of fury cave.

In a sense is this:

Player turn the stove on, a cave is open somewhere in the map. That's it.
 
Solution
Change what position it is and also what id of the oven and ground
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    return true, doTransformItem(item.uid, item.itemid == 1787 and 1786 or 1787), doTransformItem(getTileThingByPos({x=100, y=100, z=7}).uid, item.itemid == 1787 and 383 or 351)
end
Change what position it is and also what id of the oven and ground
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    return true, doTransformItem(item.uid, item.itemid == 1787 and 1786 or 1787), doTransformItem(getTileThingByPos({x=100, y=100, z=7}).uid, item.itemid == 1787 and 383 or 351)
end
 
Solution
Back
Top