Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int LuaScriptInterface::luaDoPlayerEnableSharedExperience(lua_State *L)
- {
- uint8_t sharedExpActive = popNumber(L);
- uint32_t cid = popNumber(L);
- ScriptEnviroment* env = getScriptEnv();
- Player* player = env->getPlayerByUID(cid);
- if(player){
- player->getParty()->setSharedExperience(player, sharedExpActive == 1);
- lua_pushboolean(L, true);
- }
- else{
- reportErrorFunc(getErrorDesc(LUA_ERROR_PLAYER_NOT_FOUND));
- lua_pushboolean(L, false);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement