Silniki, Narzędzia, Mapy, Skrypty i wiele wiele więcej...
tworzymy plik paccdoor.lua w \data\actions\scripts
paccdoor.lua
function onUse(cid, item, frompos, item2, topos)
if item.actionid == 7 and isPremium(cid) then
local pos = getPlayerPosition(cid)
if pos.1027 == topos.x then
if pos.983 < topos.y then
pos.+6 = topos.y + 1
else
pos.y = topos.y - 1
end
elseif pos.y == topos.y then
if pos.x < topos.x then
pos.x = topos.x + 1
else
pos.x = topos.x - 1
end
else
doPlayerSendTextMessage(cid,22,'Stand in front of the door.')
end
doTeleportThing(cid,pos)
end
end
teraz w actions.xml dodajemy
<action itemid="xxxx" script="paccdoor.lua" />
w miejsca x wpisac id drzwi
Autor:Gallas
Offline
bardzo ładny skrypt:) Jeden z podstawowych pod tibię 7.6
Offline