Hello
I changed engine 0.2.5 --> 0.3.5 [all tibia 8.5]. Everything ok, but Pits of Inferno doesn't work. And I don't know why, because in mystic spirit it worked.
for example
It^ doesn't work
but when I change first line^ to
And for example, it works[script from svar arena]:
I changed engine 0.2.5 --> 0.3.5 [all tibia 8.5]. Everything ok, but Pits of Inferno doesn't work. And I don't know why, because in mystic spirit it worked.
for example
<movevent event="StepIn" uniqueid="10200" script="PitsOfInferno/GraveEntrance.lua" />
local newpos = {x=398, y=1385, z=9}
function onStepIn(cid, item, position, fromPosition)
doSendMagicEffect(getPlayerPosition(cid), 2)
doTeleportThing(cid,newpos)
doSendMagicEffect(newpos,10)
end
It^ doesn't work
but when I change first line^ to
then<movevent event="StepIn" uniqueid="10200" event="script" script="PitsOfInferno/GraveEntrance.lua" />
------------------------------14:47 Reloading moveevents...
14:47 Failed to reload.
And for example, it works[script from svar arena]:
<movevent type="StepIn" fromaid="42321" toaid="42330" event="script" value="leavearena.lua"/>
Can someone help me? :huh:function onStepIn(cid, item, pos, fromPosition)
if getPlayerStorageValue(cid, 42309) < 1 then
for i = 42300, 42309 do
setPlayerStorageValue(cid, i, 0)
end
end
-- if he did not make full arena 2 he must start from zero
if getPlayerStorageValue(cid, 42319) < 1 then
for i = 42310, 42319 do
setPlayerStorageValue(cid, i, 0)
end
end
-- if he did not make full arena 3 he must start from zero
if getPlayerStorageValue(cid, 42329) < 1 then
for i = 42320, 42329 do
setPlayerStorageValue(cid, i, 0)
end
end
doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_ORANGE,'Wyszedles z areny!')
doTeleportThing(cid, arenaKickPosition, TRUE)
setGlobalStorageValue(item.actionid-21, 0) -- free room
setPlayerStorageValue(cid, 42350, os.time()+5) -- time to kick 0
setPlayerStorageValue(cid, 42352, 0) -- is not in arena
return TRUE
end