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

Solved How to use pick open hole?

Rider Ones

New Member
Joined
Jan 12, 2009
Messages
104
Reaction score
2
I can't open hole to enter in poi
I have searched in actions.xml the actionID: 152 and nothing is there
2i8vfrn.png

Use the pick there and nothing happens, can someone explain me how to make in that place to open a hole with the pick?

HELP??

rep++
 
Open data/actions/actions.xml
add this line :-

Code:
    <action itemid="2553" event="script" value="pick.lua"/>

Then open data/actions/scripts, and create lua file and rename it "pick" and finally copy it into the file :-

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if((itemEx.uid <= 65535 or itemEx.actionid > 0) and isInArray({354, 355}, itemEx.itemid)) then
        doTransformItem(itemEx.uid, 392)
        doDecayItem(itemEx.uid)
        doSendMagicEffect(toPosition, CONST_ME_POFF)
        return true
    end

    if(itemEx.itemid == 7200) then
        doTransformItem(itemEx.uid, 7236)
        doSendMagicEffect(toPosition, CONST_ME_BLOCKHIT)
        return true
    end

    return false
end

it will work with you correctly. :)
 
Last edited:
Code:
(itemEx.uid <= 65535 or itemEx.actionid > 0)
This means the uniqueid should be lower than or egual to 65535 (it's the max uid you can add btw) or the actionid higher than 0.
Code:
isInArray({354, 355}, itemEx.itemid)
This will be true is the itemEx (item you use the pick on) is itemid 354 or 355.
So what you have will already work with this script.
 
Code:
(itemEx.uid <= 65535 or itemEx.actionid > 0)
This means the uniqueid should be lower than or egual to 65535 (it's the max uid you can add btw) or the actionid higher than 0.
Code:
isInArray({354, 355}, itemEx.itemid)
This will be true is the itemEx (item you use the pick on) is itemid 354 or 355.
So what you have will already work with this script.

Thank you a lot, the problem is solved :D
thank you to lucian too for the script pick.lua
 
Back
Top