Strona Główna Belxena 8.4 RPG

Forum poświęcone powstawaniu Belxena OTS


#1 2009-05-02 09:43:30

Wiesiu

Administrator

Zarejestrowany: 2009-04-03
Posty: 59
Punktów :   

Ground Tp

Witam.Znalazłem skrypt na ground teleport.
Służy on do tego,jak staję się na daną kratkę,i teleportuje cie w dane miejsce.

Data/movements/script tworzymy: ground.lua

Cytat:

--edit by Banco dla tnp --

function onStepIn(cid, item, pos)
if item.actionid == 9977 then

local pos = getPlayerPosition(cid)
local tppos = {x=1000, y=1000, z=7}

doTeleportThing(cid,tppos)
doPlayerSendTextMessage(cid, 19, "Zostales teleportowany")

end
return 1
end

Następnie do movements.xml

Cytat:

<movevent event="StepIn" actionid="9977" script="ground.lua" />

A teraz wyjaśnienia:
Ten kolor oznacza,id kratki na ktorej staniesz to cie tepnie.


http://images.net.pl/file/u6iur6fo6sojbxta16uv.jpg

Offline

 

Stopka forum

RSS
Powered by PunBB
© Copyright 2002–2008 PunBB
Polityka cookies - Wersja Lo-Fi


Darmowe Forum | Ciekawe Fora | Darmowe Fora
www.msg.pun.pl www.ogt.pun.pl www.zspjasliska.pun.pl www.realnet.pun.pl www.promotyle.pun.pl