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

Lua Movements don't work- 0.3.5 TFS

Fiodor

Lua & Maps
Joined
Mar 14, 2009
Messages
400
Reaction score
10
Location
Poland
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
<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
<movevent event="StepIn" uniqueid="10200" event="script" script="PitsOfInferno/GraveEntrance.lua" />
then
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"/>
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
Can someone help me? :huh:
 
Back
Top