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

Nagły problem ze skryptem!?

Jixxufi

tibia.at player
Joined
Jun 27, 2008
Messages
199
Reaction score
0
Location
Poland
Witam, wróciłem po 3 dniach i dowiaduje się od graczy, że areny nie działają. Polega to na tym, że gracz płaci dla npca za możliwośc wykonania areny a gdy staje na tp do 1 rooma consola wywala błąd:
Code:
Lua Script Error: [MoveEvents Interface]
data/movements/scripts/arenaroom.lua:onStepIn

data/movements/scripts/arenaroom.lua:11: attempt to compare number with string stack traceback:
       data/movements/scripts/arenaroom.lua:11: in function <data/movements/scripts/arenaroom.lua:1>

dodam, że nikt skryptu nie ruszał a jest to tradycyjny skrypcik gesiora. Pozdrawiam i czekam na jakieś wskazówki.
ps: ważny kawałek skryptu arenaroom.lua (linijki od 1 do 14)

Code:
function onStepIn(cid, item, position, fromPosition)
	if InitArenaScript == 0 then
		InitArenaScript = 1
		checkArenaRooms({})
	end
	local arena_room = item.actionid
	local player_arena = getPlayerStorageValue(cid, 42355)
	if getPlayerStorageValue(cid, arena_room+getPlayerStorageValue(cid, 42355)*10-1) == 1 or arena_room+getPlayerStorageValue(cid, 42355)*10-1 == 42299 then
		if getGlobalStorageValue(cid, arena_room) == 0 then
			local monster_uid = getGlobalStorageValue(arena_room+100)
			if monster_uid > 0 then
				if isCreature(monster_uid) == TRUE then
					doRemoveCreature(monster_uid)
				end
 
a co pisze gdy wchodzi na tp?
ze nie zabil potwora?
 
Właśnie nic nie wyskakuje :( i tu jest ten problem bo gdyby coś wypisywało to pewnie bym doszedł o co chodzi a tak to nie mam pojęcia
 
function onStepIn(cid, item, position, fromPosition)
if InitArenaScript == 0 then
InitArenaScript = 1
checkArenaRooms({})
end
local arena_room = item.actionid
local player_arena = getPlayerStorageValue(cid, 42355)
if getPlayerStorageValue(cid, arena_room+getPlayerStorageValue(cid, 42355)*10-1) == 1 or arena_room+getPlayerStorageValue(cid, 42355)*10-1 == 42299 then
if getGlobalStorageValue(cid, arena_room) == 0 then
local monster_uid = getGlobalStorageValue(arena_room+100)
if monster_uid ~= 0 then
if isCreature(monster_uid) == TRUE then
doRemoveCreature(monster_uid)
end

To powinno zadzialac.
 
Śmiga jak trzeba :) dzięki wielkie! a powiesz w czym był problem ? bo to się stało nagle ;p
 
szczerze mówiąc nie wiem, tez tak miałem jak zmieniałem na TFS 0.3.5
 
Back
Top