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

po dedzie tracimy caly exp

Yol

yes
Joined
Aug 13, 2009
Messages
97
Reaction score
0
witam jak zrobic by po dedzie koles stracil caly swoj exp i znow mial 8 lvl??
 
Code:
function onKill(cid, target, lastHit)
    if(getCreatureName(cid) ~= getCreatureName(target)) then
        if(isPlayer(target)) then
            doPlayerAddLevel(target, -getPlayerLevel(target))
        end
    end
    return TRUE
end
 
@Xadrian: Noob.

@Topic: W vocations ustawiasz lossa na 100%/.
 
@elf:
jezeli gracz padnie jeszcze raz na 8 lvl, to zbije go do 1 lvl.
przydalo by się coś w stylu doPlayerSetLevel~
Code:
function onKill(cid, target, lastHit)
        if(isPlayer(target)) then
           doPlayerAddLevel(target, -(getPlayerLevel(cid) - 8)) 		
        end
    return TRUE
end
 
zacznij od poprawnego napisania mojego nicku
data/creaturesripts/creaturescripts.xml dodaj:
Code:
<event type="kill" name="resetLevel" script="resetLevel.lua"/>
data/creaturesripts/scripts/login.lua dodaj:
Code:
    registerCreatureEvent(cid, "resetLevel")
Potem tworzysz resetLevel.lua z skryptem.
 
function onKill(cid, target, lastHit)
if(isPlayer(target)) then
doPlayerAddLevel(target, -(getPlayerLevel(cid) - 8))
end
return TRUE
end

reset lvl z tym skryptem?
 
function doPlayerSetLevel(cid, level)
return doPlayerAddExperience(cid, (getExperienceForLevel(level) - getPlayerExperience(cid)))
end

... Skrypt ściągnięty z jakiegoś wara z tego forum..
 
Back
Top