• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

pewien skrypcik

tibiek

Banned User
Joined
Jun 3, 2009
Messages
320
Reaction score
0
Location
Poland
potzrebuje skryptu gdy stane na jakas podloge to mnie teleportnie w wybrane pzrezemnie wspolrzedne
 
to bida ;<
Nie potrafisz przerobic sobie np wyjscia z areny?
Code:
function onStepIn(cid, item, pos, fromPosition)
local gdzie = {x=32312, y= 31148, z=7}
    doTeleportThing(cid, frompos, gdzie)
    return TRUE
end
rep++
 
Last edited:
czekaj cos jest nie tak tam podajesz wspolzredne gdzie sie znajduje podloga a gdzie wpisac gdzie ma teleportowac?
 
to bida ;<
Nie potrafisz przerobic sobie np wyjscia z areny?
Code:
function onStepIn(cid, item, pos, fromPosition)
local gdzie = {x=32312, y= 31148, z=7}
    doTeleportThing(cid, frompos, gdzie)
    return TRUE
end
rep++

Przenies tablice z pozycjami nad funkcje, zaktualizuj headery funkcji i wyjeb returna, jo!
 
@2up
Code:
local gdzie = {x=32312, y= 31148, z=7}
function onStepIn(cid, item, pos, frompos)
    doTeleportThing(cid, gdzie)
end
dzieki.
 
@2up
Code:
local gdzie = {x=32312, y= 31148, z=7}
function onStepIn(cid, item, pos, frompos)
    doTeleportThing(cid, frompos, gdzie)
end
dzieki.

Skoro i tak uzywasz tylko raz tej zmiennej to lepiej po prostu tablice wrzuc jako parametr funkcji, pozatym zle uzyles funkcji doTeleportThing i zapomniales zaktualizowac header.
 
af.
@edit
Code:
function onStepIn(cid,pos = {x=32312, y= 31148, z=7}, frompos)
    doTeleportThing(cid, pos)
end
Co zle z funkcja? o.0
Ostatni argument null?
ma byc tak?
Code:
    doTeleportThing(cid, pos,TRUE)
 
Last edited:
zle jest bo powinny byc 2 linijki do uzupelnienia wspolrzednych gdzie sie znajduje podloga i gdzie ma teleportowac a ty napisales jedna
function onStepIn(cid,pos = {x=32312, y= 31148, z=7}, frompos)
 
af.
@edit
Code:
function onstepin(cid,pos = {x=32312, y= 31148, z=7}, frompos)
    doteleportthing(cid, pos)
end
co zle z funkcja? O.0
ostatni argument null?
Ma byc tak?
Code:
    doteleportthing(cid, pos,true)

olaboga
 
af.
@edit
Code:
function onStepIn(cid,pos = {x=32312, y= 31148, z=7}, frompos)
    doTeleportThing(cid, pos)
end
Co zle z funkcja? o.0
Ostatni argument null?
ma byc tak?
Code:
    doTeleportThing(cid, pos,TRUE)

Zly header, a tak w ogole podales wczesniej 2x pozycje w funkcji, a i w lua jest nil, a nie NULL czlowieku, a tak w ogole to trzeci argument to pushMove, a i w ogole trzeci nie jest ostatni bo jest jeszcze czwarty.
 
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 ;)
(@tibiek)
 
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 ;)

Wez czlowieku wypierdalaj.
Chuja wiesz, a innym rad udzielasz.

- Nie odnosze sie do tego posta, tylko ogolnie, heh.
 
Tak w ogole to trzeci i czwarty parametr funkcji doTeleportThing jest opcjonalny.
 
Co tu jeszcze moze byc zle?
Code:
function onStepIn(cid,pos = {x=32312, y= 31148, z=7},item)
    doTeleportThing(cid, pos)
end
 
Back
Top