Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int32_t LuaScriptInterface::luaGetPlayerAttackSkill(lua_State* L)
- {
- uint32_t skillId = popNumber(L);
- //getPlayerAttackSkill(cid, skillid)
- ScriptEnviroment* env = getEnv();
- if(Player* player = env->getPlayerByUID(popNumber(L)))
- lua_pushnumber(L, player->getSkill(SKILL_CLUB, SKILL_LEVEL));
- else
- {
- errorEx(getError(LUA_ERROR_PLAYER_NOT_FOUND));
- lua_pushboolean(L, false);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement