• 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 open invisible hole?

Binho®

KooL =D
Joined
May 27, 2008
Messages
344
Reaction score
0
Location
BrZ Style
Is possible open a invisible hole using a pick?

See pics:
s5bo87.jpg
6jq87t.jpg
 
Hmmm ... there is no script at that moment that I use to pick and the hole appear?

Type:
Marking the ground using the coordinates xyz;
Using a pick the ground changes to a cave hole;
And after a few minutes the cellar hole in the ground previously becomes;

If anyone knows, put there.

Cya ;*
 
Last edited:
No marcinek, thats the pick's script. You need make a script with function onUse.. using doTransformItem.

If item.itemid = HOLE ID
doTransformItem(blablabla)

something like that.
 
Yea, you are right...
...Not.

pick.lua:
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
[COLOR="Red"]	if(itemEx.uid <= 65535 or itemEx.actionid > 0) and (itemEx.itemid == 354 or itemEx.itemid == 355) then
		doTransformItem(itemEx.uid, 392)[/COLOR]
		doDecayItem(itemEx.uid)
		doSendMagicEffect(toPosition, CONST_ME_POFF)
		return TRUE
	end
	return FALSE
end
 
Yea, you are right...
...Not.

pick.lua:
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
[COLOR=Red]    if(itemEx.uid <= 65535 or itemEx.actionid > 0) and (itemEx.itemid == 354 or itemEx.itemid == 355) then
        doTransformItem(itemEx.uid, 392)[/COLOR]
        doDecayItem(itemEx.uid)
        doSendMagicEffect(toPosition, CONST_ME_POFF)
        return TRUE
    end
    return FALSE
end

Hmmmm.... I'm going to try something.
 
Wooooooooork!!!
Now, need config to hole de-appears or change to muddy floor again. (In few minutes)

It should decay itself, also, dont use uniqueid since it can not be used on any other hole then. Use the same actionid for each pickhole.
 
Check the items.xml if the item, I suppose it was 392, has the attribute to decay to muddy floor, if not, add it.
 
Only 1 item ingame can have a unique id. Thats why you should change the script too make the hole get an actionID instead...

Here's a script that will open any ground tile to a hole that has ACTIONID 777

Code:
--Pick script using action ids by AGS or God Lord
function onUse(cid, item, frompos, item2, topos)

aID = 777 --Action Id the ground tile must have to turn into a hole.
ticks = 30 --How many seconds the hole will last before turning into a normal tile again
topos = {x=topos.x, y=topos.y, z=topos.z}
GRASS = {4526, 4527, 4528, 4529, 4530, 4531, 4532, 4533, 4534, 4535, 4536, 4537, 4538, 4529, 4540, 4541, 4567, 4568, 4569, 4756}
DIRT = {351, 352, 353, 354, 355}
SNOW = {671, 6683, 6684, 6685, 6686, 7002}

if item2.actionid == aID then
	if isInArray(GRASS, item2.itemid) == 1 then
		doTransformItem(item2.uid,470)
		doDecayItemTo(topos, item2.itemid, ticks)
	elseif isInArray(DIRT, item2.itemid) == 1 then
		doTransformItem(item2.uid,383)
		doDecayItemTo(topos, item2.itemid, ticks)
	elseif item2.itemid == 231 then
		doTransformItem(item2.uid,482)
		doDecayItemTo(topos, item2.itemid, ticks)
	elseif isInArray(SNOW, item2.itemid) == 1 then
		doTransformItem(item2.uid,485)
		doDecayItemTo(topos, item2.itemid, ticks)
	else
		doCreateItem(3324, 1, topos)
		doDecayItemTo(topos, 0, ticks) 
	end
elseif item2.itemid == 7200 then
	doTransformItem(item2.uid,7236)
end
end

Credits "AGS or God Lord"

//Massen
 
Back
Top