potzrebuje skryptu gdy stane na jakas podloge to mnie teleportnie w wybrane pzrezemnie wspolrzedne
to bida ;<
Nie potrafisz przerobic sobie np wyjscia z areny?
rep++Code:function onStepIn(cid, item, pos, fromPosition) local gdzie = {x=32312, y= 31148, z=7} doTeleportThing(cid, frompos, gdzie) return TRUE end
Przenies tablice z pozycjami nad funkcje, zaktualizuj headery funkcji i wyjeb returna, jo!
@2up
dzieki.Code:local gdzie = {x=32312, y= 31148, z=7} function onStepIn(cid, item, pos, frompos) doTeleportThing(cid, frompos, gdzie) end
af.
@edit
co zle z funkcja? O.0Code:function onstepin(cid,pos = {x=32312, y= 31148, z=7}, frompos) doteleportthing(cid, pos) end
ostatni argument null?
Ma byc tak?
Code:doteleportthing(cid, pos,true)
af.
@edit
Co zle z funkcja? o.0Code:function onStepIn(cid,pos = {x=32312, y= 31148, z=7}, frompos) doTeleportThing(cid, pos) end
Ostatni argument null?
ma byc tak?
Code:doTeleportThing(cid, pos,TRUE)
o moj boshe.
to co ty podales to jest tam gdzie ma teleportowac gracza.
skad ma go teleportowac?
musisz dodac funkcje do movements.xml(zakaldam, ze umiesz) i nadac jej action id nastepnie na map editorze podlozu ktore teleportuje nadac to samo aid![]()