• 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

[TFS 1.x] getLostExperience

highsanta

Banned User
Joined
Dec 20, 2023
Messages
621
Solutions
7
Reaction score
228
highsanta submitted a new resource:

[TFS 1.x] getLostExperience - You will receive total exp loss at players current level from death.

I will display line above is what you search for above //LOSTEXPERIENCE
luascript.cpp
C++:
    registerMethod("Player", "getLastLoginSaved", LuaScriptInterface::luaPlayerGetLastLoginSaved);
    //LOSTEXPERIENCE
    registerMethod("Player", "getLostExperience", LuaScriptInterface::luaPlayerGetLostExperience);

C++:
int LuaScriptInterface::luaPlayerGetAccountId(lua_State* L)
{
    // player:getAccountId()
    Player* player = getUserdata<Player>(L, 1);
    if (player) {...

Read more about this resource...
 
Last edited:
Back
Top