Kownikuzyt
Member
- Joined
- Feb 11, 2020
- Messages
- 174
- Solutions
- 1
- Reaction score
- 8
@M0ustafaJust add this in your pick script and change action id/position and OFC add the action id to the crack.
LUA:if target.actionid == xxxx then player:teleportTo(Position(x, y, z)) end
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(itemEx.actionid == 50090) then
local tmp = getThingPos(cid)
doTeleportThing(cid, {x=32566, y=31338, z=10})
doSendMagicEffect(tmp, CONST_ME_TELEPORT)
doSendMagicEffect({x=32566, y=31338, z=10}, CONST_ME_TELEPORT)
return onUsePick(player, item, fromPosition, target, toPosition, isHotkey)
end
return false
end
The problem is there is no script
and in pick.lua I only have the script on shiny stone![]()
After using the pickaxe on the crack, it should move you down.what should happend after using it?
if target.actionid == xxxx then
player:teleportTo(Position(x, y, z))
end
@Evil PunckerI suppose you are using otservbr (please always provide as much information as you can, we can't guess anything)
![]()
otservbr-global/data/scripts/lib/register_actions.lua at main · opentibiabr/otservbr-global
OTServBR-Global datapack was migrated to Canary repository: https://github.com/opentibiabr/canary - opentibiabr/otservbr-globalgithub.com
@Evil Puncker
Sorry, I found the server on the disk and decided to take care of some active tasks and the console.
From what I recall, the server was downloaded from tibiaservers.net.
It is on TFS 1.1 engine, trying to repair it, but the server is too broken.
@M0ustafaJust add this in your pick script and change action id/position and OFC add the action id to the crack.
LUA:if target.actionid == xxxx then player:teleportTo(Position(x, y, z)) end
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(itemEx.actionid == 50090) then
local tmp = getThingPos(cid)
doTeleportThing(cid, {x=32566, y=31338, z=10})
doSendMagicEffect(tmp, CONST_ME_TELEPORT)
doSendMagicEffect({x=32566, y=31338, z=10}, CONST_ME_TELEPORT)
return onUsePick(player, item, fromPosition, target, toPosition, isHotkey)
end
return false
end