• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.
Resource icon

onProgress aka onGainSkill

skeetzoo

Banned User
Joined
Aug 22, 2024
Messages
90
Reaction score
29
Location
theforgottenserver
skeetzoo submitted a new resource:

onProgress aka onGainSkill - onGainSkill

add all after onAdvance

C++:
registerMethod("CreatureEvent", "onProgress", LuaScriptInterface::luaCreatureEventOnCallback);

C++:
        case CREATURE_EVENT_ONPROGRESS:
            return "onProgress";

C++:
bool CreatureEvent::executeProgress(Player* player, skills_t skill, uint64_t tries)
{
    // onProgress(player, skill, tries)
    if (!scriptInterface->reserveScriptEnv()) {
        std::cout << "[Error - CreatureEvent::executeProgress] Call stack...

Read more about this resource...
 
Back
Top