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

Magic Lock

haji h ali

Member
Joined
Sep 10, 2013
Messages
59
Reaction score
6
Can someone use this script for Magic Level, Magic level lock at 9
;

function onLogin(cid)
if getPlayerLevel(cid) < 1000 then
doPlayerAddExperience(cid, (getExperienceForLevel(1000) - getPlayerExperience(cid)))
end
return TRUE
end
 
Solution
Can someone use this script for Magic Level, Magic level lock at 9
;

function onLogin(cid)
if getPlayerLevel(cid) < 1000 then
doPlayerAddExperience(cid, (getExperienceForLevel(1000) - getPlayerExperience(cid)))
end
return TRUE
end
Not sure what you want the script to do but this should do the trick
Lua:
function onLogin(cid)
    local magicLevel = 9    -- magic level you want the character to get
    if getPlayerMagLevel(cid) < magicLevel then
        doPlayerAddSpentMana(cid, getPlayerRequiredMana(cid, magicLevel))
    end
    return true
end
Can someone use this script for Magic Level, Magic level lock at 9
;

function onLogin(cid)
if getPlayerLevel(cid) < 1000 then
doPlayerAddExperience(cid, (getExperienceForLevel(1000) - getPlayerExperience(cid)))
end
return TRUE
end
Not sure what you want the script to do but this should do the trick
Lua:
function onLogin(cid)
    local magicLevel = 9    -- magic level you want the character to get
    if getPlayerMagLevel(cid) < magicLevel then
        doPlayerAddSpentMana(cid, getPlayerRequiredMana(cid, magicLevel))
    end
    return true
end
 
Solution

Similar threads

Back
Top