• 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!

skrypt na item

KuczyProceder

House Music 4eVeR
Joined
Feb 1, 2011
Messages
68
Reaction score
1
Location
Stalowa Wola
ma ktoś może gotowy skrypt na to, że:
wchodze np. w thais na item XXXX, przenosi mnie na pozycje np. x-1123 y-1023 z-6
wchodzę w carlin na ten sam item i przenosi mnie w tą samą pozycję,
w tej pozycji (1123 1023 6) bedzie inny item, ktory przeniesie postac tam skad przyszla, np. tpnal sie z thais i go tepnie na thais, tepnie z carlin to go na carlin spowrotem ma tpnac

coś w stylu teleportu PVP na pokemonbr.

rep za to ;]
 
Pod niektóre itemy da się postawić Teleport, może o to ci chodzi ?
 
no tak jakby
chodzi o to że:

wejde w ten teleport na thais, przeniesie mnie w jedno miejsce, wejde w taki sam teleport na carlin, przeniesie mnie w to samo miejsce co z thais, a w tym okreslonym miejscu bedzie stal jeden teleport ktory pozwoli wrocic tam skad sie przybylo

rozumiesz? :>
 
No to proste.
Wchodzisz w TP i nadaje ci Storage np. da Thais = 1, dla Carlin = 2.
No i TP, ktore ma cie wracac odczytuje to Storage i na tej podstawie teleportuje - proste c'nie?
 
No napisalem Ci jak dokladnie, nie ustawisz tego w map editorze, musisz napisac w lua, chcesz to ci to zrobie za donatora.
PW.
 
w skrypcie teleporta carlin dajesz
setPlayerStorage(cid, 550011, 0)

w skrypcie teleporta thais dajesz
setPlayerStorage(cid, 550011, 1)

w skrypcie powrotu dajesz:
local towns = {{x,y,zcarlin}, {x,y,zthais}}
doPlayerTeleport(cid, getPlayerStorage(cid, 550011))
 
dzieki kula o to mi chodzilo ;]
powinno byc setPlayerStorageValue ;]

Kula_

powiedz mi co jest źle w tym skrypcie ;]

function onStepIn(cid, item, pos)
if item.actionid == 4632 then
local pos = getPlayerStorageValue(cid, 550011)
local towns = {{1132,969,7}}
doTeleportThing(cid,getPlayerStorageValue(cid, 550011))

end
return 1
end
 
Last edited by a moderator:
Lua:
function onStepIn(cid, item, pos)
if(item.actionid == 4632)then
local id = getPlayerStorageValue(cid, 550011)
local towns = {{1132,969,7}}
doTeleportThing(cid, towns[id]) 

end
return true
end
 
No to może zrób coś sam i zobacz co Ci zwraca storage, co zwraca tablica town[1] etc. =(
 
Back
Top