But When I add line with charges to items.xml, rune don't lose charges, and without this line the same.
I'm killing first arena monster, and the script still thinks that I didn't.
function onLogin(cid)
local loss = getConfigValue('deathLostPercent')
if(loss ~= nil) then
for i = PLAYERLOSS_EXPERIENCE, PLAYERLOSS_ITEMS do
doPlayerSetLossPercent(cid, i, getConfigValue('deathLostPercent'))
end
end
registerCreatureEvent(cid, "PlayerKill")
if (InitArenaScript ~= 0) then
InitArenaScript = 1
-- make arena rooms free
for i = 42300, 42309 do
setGlobalStorageValue(i, 0)
setGlobalStorageValue(i+100, 0)
end
end
-- if he did not make full arena 1 he must start from zero
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
if getPlayerStorageValue(cid, 42355) == -1 then
setPlayerStorageValue(cid, 42355, 0) -- did not arena level
end
setPlayerStorageValue(cid, 42350, 0) -- time to kick 0
setPlayerStorageValue(cid, 42352, 0) -- is not in arena
if(InitShopComunication == 0) then
local eventServ = addEvent(sql_communication, SQL_COMUNICATION_INTERVAL, {})
local historyPage = addEvent(historyPage, 60000, {})
InitShopComunication = eventServ
end
registerCreatureEvent(cid, "PlayerDeath")
return TRUE
end
okay...i have this huge problem and really need help SO DONT IGNORE ME PLZ!!
1:
Why are there 2 config files? .lua and .lua~
2: THE IMPORTANT ONE!!:
When i want to make it connect i get this error: (with gesiors acc maker)
STEP 1
Check server configuration
Warning: Error parsing C:/Users/Jaroen/Desktop/Xenion/config.lua on line 126 in C:\Users\Jaroen\Desktop\Xenion\Xampp\htdocs\install.php
on line 150
File config.lua loaded from C:/Users/Jaroen/Desktop/Xenion/config.lua and it's not valid TFS config.lua file.
Go to STEP 1 - select other directory. If it's your config.lua file from TFS contact with acc. maker author.
please help me,
Yours, Jaroen2
What is the pass for gm acc ? cuz I cannot find the players file. Or am I suppost to make my own ?
it's ur login.lua problem
insert this into ur data/creaturescripts/scripts/login.lua
then open server.Code:function onLogin(cid) local loss = getConfigValue('deathLostPercent') if(loss ~= nil) then for i = PLAYERLOSS_EXPERIENCE, PLAYERLOSS_ITEMS do doPlayerSetLossPercent(cid, i, getConfigValue('deathLostPercent')) end end registerCreatureEvent(cid, "PlayerKill") if (InitArenaScript ~= 0) then InitArenaScript = 1 -- make arena rooms free for i = 42300, 42309 do setGlobalStorageValue(i, 0) setGlobalStorageValue(i+100, 0) end end -- if he did not make full arena 1 he must start from zero 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 if getPlayerStorageValue(cid, 42355) == -1 then setPlayerStorageValue(cid, 42355, 0) -- did not arena level end setPlayerStorageValue(cid, 42350, 0) -- time to kick 0 setPlayerStorageValue(cid, 42352, 0) -- is not in arena if(InitShopComunication == 0) then local eventServ = addEvent(sql_communication, SQL_COMUNICATION_INTERVAL, {}) local historyPage = addEvent(historyPage, 60000, {}) InitShopComunication = eventServ end registerCreatureEvent(cid, "PlayerDeath") return TRUE end
I've copied whole login.lua from beta3 so that should work ;s if it did at beta3
You didn't remove the Cleaning items from houses bug :/
just tested it works normally with binary saving house items . This not changing fact that I didn't tested with normal but i'm almost sure that this is not a bug.
This is a bug.
I'm to lazy to wrote it in english ;s
PL:
Słuchaj to jest tak:
Za pierwszym razem jak odpalam silnik (miałem wcześniej otsa z tfs 0.2 więc oczywiście baza danych starsza), ale jak za 1 razem odpalam silnik to on upgraduje bazę danych na luzie i wszystko działa itp. nic nie usuwa, natomiast jeśli jest jakiś crahs np. po 20 h uptimu to podczas następnego włączania OTSa ten znowu upgraduje bazę danych i tym razem usuwa itemki.
Ja jeszcze później zrobię coś takiego, że sobie zgram tylko tę pojedyńczą tabelę w której są itemki przechowywane i wgram ją do aktualnej bazy danych, jednak nie mam zamiaru tak robić po każdym crashu :/