Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BOOL CWndGuildWarJoinConfirm::OnChildNotify( UINT message, UINT nID, LRESULT* pLResult )
- {
- if( nID == WIDC_YES )
- {
- if( g_pPlayer )
- {
- if( g_pPlayer->IsBaseJob() )
- {
- g_WndMng.OpenMessageBox( prj.GetText(TID_GAME_GUILDCOMBAT_NOTENTER_VAGRANT) ); //¹æ¶ûÀÚ´Â ÀÔÀåÇÒ¼ö ¾ø½À´Ï´Ù. 1Â÷ ÀüÁ÷ ÈÄ¿¡ ÀÔÀåÀ» ÇØÁֽñ⠹ٶø´Ï´Ù.
- Destroy( TRUE );
- return FALSE;
- }
- #ifdef NO_PET_60GW
- CPet* pPet = g_pPlayer->GetPet();
- if( pPet )
- {
- g_WndMng.OpenMessageBox( _T( "Please remove your Pet, they are not allowed for Lv60 Siege." ) );
- Destroy( TRUE );
- return FALSE;
- }
- #endif //NO_PET_60GW
- #ifdef NO_ULTI_60GW
- ItemProp* pItemProp;
- if( g_pPlayer )
- {
- if( g_pPlayer->m_Inventory.IsEquip(pItemProp->dwReferStat1 == WEAPON_ULTIMATE))
- {
- g_WndMng.OpenMessageBox( _T( "Please Unequip your Ultimate Weapon, they are not allowed for the Lv60 Siege." ) );
- Destroy( TRUE );
- return FALSE;
- }
- if( g_pPlayer )
- {
- if( g_pPlayer->m_Inventory.IsEquip(pItemElem->GetProp()->dwID == II_WEA_SWO_SUHOUM pItemElem->GetProp()->dwID == II_WEA_SWT_SUHOUM pItemElem->GetProp()->dwID == II_WEA_AXE_SUHOUM pItemElem->GetProp()->dwID == II_WEA_AXT_SUHOUM pItemElem->GetProp()->dwID == II_WEA_KNU_SUHOUM pItemElem->GetProp()->dwID == II_WEA_CHE_SUHOUM pItemElem->GetProp()->dwID == II_WEA_WAN_SUHOUM pItemElem->GetProp()->dwID == II_WEA_STA_SUHOUM pItemElem->GetProp()->dwID == II_WEA_YOY_SUHOUM || pItemElem->GetProp()->dwID == II_WEA_BOW_SUHOUM ))
- {
- g_WndMng.OpenMessageBox( _T( "Please Unequip your Ultimate Weapon, they are not allowed for the Lv60 Siege." ) );
- Destroy( TRUE );
- return FALSE;
- }
- #endif //NO_ULTI_60GW
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement