Follow along with the video below to see how to install our site as a web app on your home screen.
Notka: This feature may not be available in some browsers.
function onStepIn(cid, item, position, fromPosition)
local storage = 87321 -- Storage
local position = {x=1017, y=987, z=10} -- Position gdzie tp gdy nie ma storage
if getPlayerStorageValue(cid,storage) == 1 then
return true
else
doTeleportThing(cid, position)
doPlayerSendTextMessage(cid,22,"Musisz wykonac quest aby sie tu dostac")
end
return false
end
Mysle ze sie przyda ;pfunction onStepIn(cid, item, frompos, item2, topos)
playerpos = getPlayerPosition(cid)
pozycja1 = {x=985, y=1243, z=12} --gdzie ma teleportowac
pozycja2 = {x=985, y=1244, z=12} --jak wyzej
if item.uid == 2000 then --uid teleportu
getThingfromPos(playerpos)
doTeleportThing(cid,pozycja1)
doSendMagicEffect(pozycja1,10) --tutaj jaki efekt towarzyszy przy teleportacji
elseif item.uid == 2001 then --jak wyzej
getThingfromPos(playerpos)
doTeleportThing(cid,pozycja2)
doSendMagicEffect(pozycja2,10) --jak wyzej
end
end
<movevent type="StepIn" uniqueid="2000" script="1.lua" />
<movevent type="StepIn" uniqueid="2001" script="1.lua" />
function onStepIn(cid, item, frompos, item2, topos)
local playerpos = getPlayerPosition(cid)
local boss = {x=1005, y=1307, z=10} --wspolrzedne
local storage = 2000 --jakie storage potrzebuje
local boss1 = {x=1006, y=1367, z=7} --jak wyzej
local storage1 = 2001 --jak wyzej
if getPlayerStorageValue(cid, storage) > 0 then
getThingfromPos(playerpos)
doTeleportThing(cid,boss)
doSendMagicEffect(boss,10)
elseif getPlayerStorageValue(cid, storage1) > 0 then
getThingfromPos(playerpos)
doTeleportThing(cid,boss1)
doSendMagicEffect(boss1,10)
else
doPlayerSendTextMessage(cid, 19, "Nie mozesz tutaj wejsc.")
frompos.x = frompos.x - 1
doTeleportThing(cid, frompos)
doSendMagicEffect(frompos, 10)
end
return TRUE
end
<movevent type="StepIn" actionid="2000" event="script" value="nazwa.lua" />
<movevent type="StepIn" actionid="2001" event="script" value="nazwa.lua" />