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

Cialo znika po smieci

fleszu_pl

New Member
Joined
Jul 8, 2011
Messages
91
Reaction score
1
Witam mam problem ze znikajacym cialem w momencie gdy postac zalicza deche nie wazne czy od potwora czy gracza pojawia sie nastepujace okienko
a przy probie ponownego zalogowania wrong possition temple blad.jpg
 
Ciało znika bo masz cos w creaturescripcie nawalone mialem to samo po prostu w xml zrób <!-- linia kodu --> i tak sobie wyłącz po 3 az wkoncu dojdziesz co ktora linia od jakiego skryptu tak robi... proste i logiczne
 
Code:
dofile("./config.lua")

function onDeath(cid, corpse, killer)
	doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You are dead.")
	if deathListEnabled == "yes" then
		if sqlType == "mysql" then
			env = luasql.mysql()
			sql = env:connect(mysqlDatabase, mysqlUser, mysqlPass, mysqlHost, mysqlPort)
		else -- sqlite
			env = luasql.sqlite3()
			sql = env:connect(sqliteDatabase)
		end
		local byPlayer = FALSE
		if killer == FALSE then
			killerName = "field item"
		else
			if isPlayer(killer) == TRUE then
				byPlayer = TRUE
			end
			killerName = getCreatureName(killer)
		end
		sql:execute("INSERT INTO `player_deaths` (`player_id`, `time`, `level`, `killed_by`, `is_player`) VALUES (" .. getPlayerGUID(cid) .. ", " .. os.time() .. ", " .. getPlayerLevel(cid) .. ", '" .. escapeString(killerName) .. "', " .. byPlayer .. ");")
		local result = sql:execute("SELECT `player_id` FROM `player_deaths` WHERE `player_id` = " .. getPlayerGUID(cid) .. ";")
		local deathRecords = numRows(result)
		if sqlType == "mysql" then
			while deathRecords > maxDeathRecords do
				delete = sql:execute("DELETE FROM `player_deaths` WHERE `player_id` = " .. getPlayerGUID(cid) .. " ORDER BY `time` LIMIT 1;")
				deathRecords = deathRecords - 1
			end
		else
			while deathRecords > maxDeathRecords do
				delete = sql:execute("DELETE FROM `player_deaths` WHERE `rowid` = (SELECT `rowid` FROM `player_deaths` WHERE `player_id` = " .. getPlayerGUID(cid) .. " ORDER BY `time` LIMIT 1);")
				deathRecords = deathRecords - 1
			end
		end			
		sql:close()
		env:close()
	end
end
 
Niestety nie pomoglo chyba to nie wina tego skryptu a jakiegos innego poniewaz pojawia sie ten napis przy dead'zie Alas! Brave adventurer, you have met a sad fate. But do not despair, for the gods will bring you back into the world in exchange for a small sacrifice. Simply click 'ok' and you will be returned back to Tibia.
 
i czego tu nie rozumiesz? -.- naciśnij ok i wrócisz do gry, sprawdź czy ustawiłeś temple w map edytorze, tak jak ci up napisali
 
Back
Top