标签:style c class blog code java
GetProto()->ItemLevel 判断装备等级 HandleBattleFieldPortOpcode 进入战场,。 bool ChatHandler::HandlegetHitemlvlCommand(const char* args) { Player* target; uint64 target_guid; std::string target_name; uint32 itemlevel = 0; if (!extractPlayerTarget((char*)args,&target,&target_guid,&target_name)) return false; Player* _player = m_session->GetPlayer(); if (target) { for(int slot = EQUIPMENT_SLOT_START; slot < EQUIPMENT_SLOT_END; ++slot) { Item *pItem = target->GetItemByPos( INVENTORY_SLOT_BAG_0, slot ); if(!pItem) continue; if(itemlevel < pItem->GetProto()->ItemLevel) itemlevel = pItem->GetProto()->ItemLevel; } PSendSysMessage("Most Hight itemlevel = %d ",itemlevel); return true; } }
标签:style c class blog code java
原文地址:http://www.cnblogs.com/needly/p/3753177.html