Dragonslayer Posted July 27, 2015 Report Share Posted July 27, 2015 Bueno yo esto lo utilizo para el cambio de raza. Archivo: questlua_pc.cpp int pc_unequip_armor_weapon(lua_State * L) { LPITEM weapon = CQuestManager::instance().GetCurrentCharacterPtr()->GetWear(WEAR_WEAPON); LPITEM armor = CQuestManager::instance().GetCurrentCharacterPtr()->GetWear(WEAR_BODY); LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr(); if (!weapon) lua_pushnumber(L, 0); else ch->UnequipItem(weapon); if (!armor) lua_pushnumber(L, 0); else ch->UnequipItem(armor); return 1; } { "unequip_armor_weapon", pc_unequip_armor_weapon }, Ale, luego añadis la funciona en quest_fuction en el server y listo. pc.unequip_armor_weapon MiGueLiT0, Jeo, ZoneLife and 3 others 6 Quote Link to comment Share on other sites More sharing options...
carlos21 Posted July 27, 2015 Report Share Posted July 27, 2015 muy bueno gracias Quote Link to comment Share on other sites More sharing options...
Guest DreamHQ Posted July 28, 2015 Report Share Posted July 28, 2015 Gracias por el aporte +1 Un saludo. Quote Link to comment Share on other sites More sharing options...
MiGueLiT0 Posted July 30, 2015 Report Share Posted July 30, 2015 Para que sirve? no lo entendi :/ Quote Link to comment Share on other sites More sharing options...
Dragonslayer Posted July 31, 2015 Author Report Share Posted July 31, 2015 Para que sirve? no lo entendi :/ Para que se te desequipe el arma y la armadura. ZoneLife 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.