Advertisement
Guest User

Untitled

a guest
Jul 30th, 2014
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. int32_t LuaScriptInterface::luaGetPlayerAttackSkill(lua_State* L)
  2. {
  3. uint32_t skillId = popNumber(L);
  4. //getPlayerAttackSkill(cid, skillid)
  5. ScriptEnviroment* env = getEnv();
  6. if(Player* player = env->getPlayerByUID(popNumber(L)))
  7. lua_pushnumber(L, player->getSkill(SKILL_CLUB, SKILL_LEVEL));
  8. else
  9. {
  10. errorEx(getError(LUA_ERROR_PLAYER_NOT_FOUND));
  11. lua_pushboolean(L, false);
  12. }
  13. return 1;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement