alexander0195 Publicado 30 de Mayo del 2021 Reportar Compartir Publicado 30 de Mayo del 2021 questlua_pc.cpp // actualización Arat: int pc_get_another_quest_flag(lua_State* L) Üstüne ekle: #ifdef ENABLE_GEM_SYSTEM int pc_open_gem_shop(lua_State * L) { LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr(); if (ch->IsOpenSafebox() || ch->GetExchange() || ch->GetMyShop() || ch->IsCubeOpen() || ch->isSashOpened(true) || ch->isSashOpened(false) || ch->isChangeLookOpened() || ch->isAuraOpened(true) || ch->isAuraOpened(false)) { ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("?? ???? ??????? ????? ?? ? ????.")); return 0; } #ifdef ENABLE_BOSS_GEM_SYSTEM int gemShopType = (int)lua_tonumber(L, 1); ch->OpenGemShop(gemShopType); #else ch->OpenGemShop(); #endif return 0; } int pc_create_gaya(lua_State * L) { if (!lua_isnumber(L, 1)) { lua_pushboolean(L, 0); return 1; } int cost = (int)lua_tonumber(L, 1); int pct = (int)lua_tonumber(L, 2); int metinstone_cell = (int)lua_tonumber(L, 3); int glimmerstone_count = (int)lua_tonumber(L, 4); LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr(); LPITEM metinstone_item = ch->GetStoneInventoryItem(metinstone_cell); if (metinstone_item) lua_pushboolean(L, ch->CreateGaya(glimmerstone_count, metinstone_item, cost, pct)); else lua_pushboolean(L, 0); return 1; } #endif Arat: { NULL, NULL } Üstüne ekle: #ifdef ENABLE_GEM_SYSTEM {"open_gem_shop", pc_open_gem_shop}, {"create_gaya", pc_create_gaya}, // {"open_gem_shops", pc_open_gem_shops}, #endif Debes iniciar sesión para ver el contenido del enlace en esta publicación. yankee360, Alveiro Mantilla Moreno, TheZurka y 6 mas reacciono a esto 9 Citar Enlace para comentar Compartir en otros sitios Mas opciones de compartir...
Mensajes recomendados
Unirse a la conversación
Puedes publicar ahora y registrarte más tarde. Si tienes una cuenta, regístrate para publicar con su cuenta.