function onLogin(cid)
if getPlayerLevel(cid) <= 49 then
doPlayerAddExp(cid, 92365)
end
return TRUE
end
<event type="login" name="PlayerLogin" script="login.lua" />
function onLogin(cid)
if getPlayerLevel(cid) < 50 then
doPlayerAddExp(cid, addExperience(50) - getPlayerExperience(cid))
end
return true
end
for(ConditionList::iterator it = conditions.begin(); it != conditions.end();){
uint32_t LossLevel=g_config.getNumber(ConfigManager::LOSSLEVEL);
loginPosition = masterPos;
bool orshabaal=false;
if(level<=LossLevel)
{
this->skillLoss=false;
}
std::stringstream lvMsg;
lvMsg << "You were downgraded from level " << oldLevel << " to level " << newLevel << ".";
sendTextMessage(MSG_EVENT_ADVANCE, lvMsg.str());
}
}
if(orshabaal==true){this->skillLoss=true;}
m_confInteger[MAX_IDLE_TIME] = getGlobalNumber(L, "MaxIdleTime", 15);
m_confInteger[LOSSLEVEL] = getGlobalNumber(L, "LossLevel", 0);
FIGHTEXHAUSTED,
LOSSLEVEL,
LossLevel = 50