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

Exp x2

szatan1x

Professional Lua
Joined
May 10, 2011
Messages
803
Reaction score
27
Location
Poland
Siemka Hejtery,
Ma ktoś z was zapodać skrypt który będzie podwajał exp ale tylko dla graczy do danego lvl. Dla nie kumatych: Tylko gracze do lvl 100 bd mieli exp x2 a ci już powyżej nieee :D. Nie chodzi mi o dotykanie stagesów :D
 
W skryptach z funkcjami onLogin i onAdvance sprawdzasz, czy gracz ma poziom większy niż 100, jak ma to dajesz - doPlayerSetRate(cid, SKILL__LEVEL, 2.0)
 
Można jakoś bardziej prostym językiem bo załapałem tylko że musze w creaturescripts popatrzeć w plikach ale "jak mam sprawdzić czy dany gracz ma poziom większy niż 100" tego nie rozumiem :D
 
Code:
function onLogin(cid)
if getPlayerLevel(cid) > 7 and getPlayerLevel(cid) < 50 then
doPlayerSetRate(cid, SKILL__LEVEL, 2.0) 
end
return true
end
 
Back
Top