lua_pushnumber(L, ch->ChangeEmpire((unsigned char)lua_tonumber(L, 1)));
return 1;
}
#ifdef lb_h_org
ALUA(pc_get_ip)
{
LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr();
lua_pushstring(L, ch->GetDesc()->GetHostName());
return 1;
}
ALUA(pc_set_max_health)
{
LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr();
ch->PointChange(POINT_HP, ch->GetMaxHP() - ch->GetHP());
ch->PointChange(POINT_SP, ch->GetMaxSP() - ch->GetSP());
return 0;
}
#endif
#ifdef lb_h_org
{ "set_max_health", pc_set_max_health },
{ "get_ip", pc_get_ip },
#endif
pc_set_max_health
pc_get_ip