teleport1 |
Wysłany: Pią 15:35, 12 Paź 2007 Temat postu: skrypt by me! |
|
oto skrypt na pacc door:
Cytat: | function onUse(cid, item, frompos, item2, topos)
if item.actionid == 8989 and isPremium(cid) then
local pos = getPlayerPosition(cid)
if pos.x == topos.x then
if pos.y < topos.y then
pos.y = 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
|
i w data,actions, actions.xml dodac linijke:
Cytat: | <action itemid="xxxx" script="paccdoor.lua" /> |
tam gdzie "xxxx" wpisac trzeba numer dzrzwi na paccdoor
mam nadzieje ze sie przyda
Pozdro. |
|