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

Lua Boost experience for red skull and black skull players

Solution
data/events/scripts/player.lua in the function Player:onGainExperience(source, exp, rawExp)

use creature:getSkull()

Lua:
if self:getSkull() == SKULL_RED then
    exp = exp * 2
end

if self:getSkull() == SKULL_BLACK then
    exp = exp * 4
end
data/events/scripts/player.lua in the function Player:onGainExperience(source, exp, rawExp)

use creature:getSkull()

Lua:
if self:getSkull() == SKULL_RED then
    exp = exp * 2
end

if self:getSkull() == SKULL_BLACK then
    exp = exp * 4
end
 
Solution
Back
Top