Autor Wiadomość
GOD Kamilex
PostWysłany: Sob 10:32, 13 Paź 2007    Temat postu:

ty wiesz ze to moze sie przydac dzieki Wink
teleport1
PostWysł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 Very Happy

Pozdro.

Powered by phpBB © 2001,2002 phpBB Group