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

Wazne Help Me Pleas

szatan1x

Professional Lua
Joined
May 10, 2011
Messages
803
Reaction score
27
Location
Poland
Hello,
proszę o szybką odpowiedź :)
Mam problem mianowicie mam crash serwera kiedy ktoś pada z 7 lvl na 6 lvl czy wie ktoś jak zrobić zeby nie dalo sie pasc ponizej 8 lvl(startowego)?
Kto nie wie o co kaman:
Gdy gracz X ma poziom 8 i spadnie na poziom 7 to automatycznie po zalogowaniu ma poziom 8.

To dawałem do creaturescripts ale nie działało :(
function onLogin(cid)

if getPlayerLevel(cid) < 15 then
doPlayerAddExperience(cid, (getExperienceForLevel(15) - getPlayerExperience(cid)))
end
return TRUE
end
 
nie lepiej fixnąć problem xD? pewnie masz coś typu, że spadek z 7 ;lvl na 6 powinien kończyć się przemeldowaniem na rookgard jeśli dany gracz ma już profę
 
Zmień zapytanie na

Lua:
function onLogin(cid)

	local exp = 4200
	if getPlayerLevel(cid) < 8 then
		doPlayerAddExp(cid,-getPlayerExperience(cid) + exp)
	end

return true
end

Bo z Twoim jak ktoś padnie na 8 lvlu z 40-50% expa i się zaloguje zgarnie za free 9 lvl, a teraz będzie miał const. 4200 expa.
 
Back
Top