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

How to create a hidden hole?

StevenatorOO7

New Member
Joined
Aug 5, 2007
Messages
5
Reaction score
0
Hi, I'm just wondering if anyone can actually tell me how to make a hidden hole using OT MAP Editor so its possible for me to dig it up in a couple of tries like the secret holes in Ankrahmun.
 
Last edited:
You must give the are in which you want the whole to appear an actionid and then script the actionid in the actions section in order when you use the pick or whatever on the whole in order to open it.
 
just keep you specifision and look around beach and look was new symetric
 
Well oyu need to make an action file.

In the action file u need to add cordinates where the should should come id of what there should come, and a Random formule so players cant dig it up in 1 time..
 
keep on trying, its nice man you get it.
say it when you got it then i will put that in my server aswell
 
You need an action script to get that working...
Many places where you can find "already" done scripts like that... All you have to do is change the coordinates...!

//Massen
 
Code:
function onUse(cid, item, frompos, item2, topos)
if item2.actionid == 1000 then
openid = 0000 -- change to id of the open hole
chance = math.random(1,10)
if chance = 5 then
doTransformItem(item2.uid, openid)
doDecayItem(item2.uid)
end
elseif item2.actionid == 1001 then
openid = 0000 -- change to id of the open hole
chance = math.random(1,10)
if chance = 5 then
doTransformItem(item2.uid, openid)
doDecayItem(item2.uid)
end
-- add more elseifs here to add more holes
end
return 1
end
 
Hmm you have to add in actions.xml. and the same action id in the map editor. properties -> ActionID:3333 example.
 
Hello! Guys

It exists one id already makes this work, it it opens and closeds alone and later turns sand ;)

This ID is: 489.


Cya!
 
Hello! Guys

It exists one id already makes this work, it it opens and closeds alone and later turns sand ;)

This ID is: 489.


Cya!

When you use the shovel there to open it, it will come a scarab so how do i fix so i can go down instead? is it possible?

(in map editor, without any other scripts)
 
Last edited:
i've always wondered how to do this =] you should take the script and make a tutorial
 
Code:
function onUse(cid, item, frompos, item2, topos)
if item2.actionid == 1000 then
openid = 0000 -- change to id of the open hole
chance = math.random(1,10)
if chance = 5 then
doTransformItem(item2.uid, openid)
doDecayItem(item2.uid)
end
elseif item2.actionid == 1001 then
openid = 0000 -- change to id of the open hole
chance = math.random(1,10)
if chance = 5 then
doTransformItem(item2.uid, openid)
doDecayItem(item2.uid)
end
-- add more elseifs here to add more holes
end
return 1
end


You forgot to add somting, now u can digup an hole every where.

Few tips

1st way---
-Make an -Flour check (To see if there is an stair down, or rope hole

1st way--
Add an Corordination check if he digs at that corordination and rand =...... then it will open..
 
Back
Top