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

exp access - nie dziala

dima0909

Banned User
Joined
Oct 18, 2012
Messages
271
Reaction score
0
TEMAT DO ZAMKNIECIA

Witam. No więc na starszej wersji forgotten mi dzialalo all, ale od czasu jak zmienilem silnik na 0.4 to coś nie działa...

Chce aby po wejściu na kratkę o współrzędnych x , y , z... teleportowalo mnie na kratke x, y ,z jeżeli nie posiadam exp acces....

niby wszystkie pliki takie same są a nie teleportuje mnie po wejsciu na kratke...wgl jakby nie bylo takiego skryptu...



movements.xml
<movevent type="StepIn" actionid="891" event="script" value="exp access.lua"/>

exp access.lua
function onStepIn(cid, item, position, fromPosition)
tileback = {x=1464, y=876, z=7, stackpos=255}

if (getPlayerStorageValue(cid,21446) < 1) then
doTeleportThing(cid, tileback)
doSendMagicEffect(tileback,10)
doPlayerSendTextMessage(cid,22,"Nie posiadasz Exp Access.")
else
end
return true
end
 
Last edited:
Masz to powinno zadzialac:
function onStepIn(cid, item, position, fromPosition)
local tileback = {x=1464, y=876, z=7}

if (getPlayerStorageValue(cid,21446) < 1) then
doTeleportThing(cid, tileback)
doSendMagicEffect(cid,10)
doPlayerSendTextMessage(cid,22,"Nie posiadasz Exp Access.")
else
doPlayerSendTextMessage(cid,22,"Posiadasz Exp Access.")
end
return true
end
 
Masz to powinno zadzialac:

dziala...ale jakos dziwnie :D bo jak sie idzie bez exp acces to cofa...bez napisu...a jak sie ma exp acces to pisze "posiadasz exp acces"

tego magic effect również niema ;p

poprostu cofa bez żadnych efektow

@edit

tu cos z tym magic effect jest...bo jak go usuwam to wtedy napis "nie posiadasz exp acces" jest...a z magic effectem go niema
 
Last edited:
moj blad...

function onStepIn(cid, item, position, fromPosition)
local tileback = {x=1464, y=876, z=7}
local tileexpacces = {x=XXX, y=YYY, z=Z}

if (getPlayerStorageValue(cid,21446) < 1) then
doTeleportThing(cid, tileback)
doSendMagicEffect(getPlayerPosition(cid),10)
doPlayerSendTextMessage(cid,22,"Nie posiadasz Exp Access.")
else
doSendMagicEffect(getPlayerPosition(cid),20)
doTeleportThing(cid, tileexpacces )
doPlayerSendTextMessage(cid,22,"Posiadasz Exp Access.")
end
return true
end
 
Back
Top