Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1.  
  2.  
  3. BOOL CWndGuildWarJoinConfirm::OnChildNotify( UINT message, UINT nID, LRESULT* pLResult )
  4. {
  5. if( nID == WIDC_YES )
  6. {
  7. if( g_pPlayer )
  8. {
  9. if( g_pPlayer->IsBaseJob() )
  10. {
  11. g_WndMng.OpenMessageBox( prj.GetText(TID_GAME_GUILDCOMBAT_NOTENTER_VAGRANT) ); //¹æ¶ûÀÚ´Â ÀÔÀåÇÒ¼ö ¾ø½À´Ï´Ù. 1Â÷ ÀüÁ÷ ÈÄ¿¡ ÀÔÀåÀ» ÇØÁֽñ⠹ٶø´Ï´Ù.
  12. Destroy( TRUE );
  13. return FALSE;
  14. }
  15.  
  16.  
  17.  
  18. #ifdef NO_PET_60GW
  19.  
  20. CPet* pPet = g_pPlayer->GetPet();
  21. if( pPet )
  22. {
  23. g_WndMng.OpenMessageBox( _T( "Please remove your Pet, they are not allowed for Lv60 Siege." ) );
  24. Destroy( TRUE );
  25. return FALSE;
  26. }
  27.  
  28. #endif //NO_PET_60GW
  29.  
  30. #ifdef NO_ULTI_60GW
  31.  
  32. ItemProp* pItemProp;
  33.  
  34. if( g_pPlayer )
  35. {
  36. if( g_pPlayer->m_Inventory.IsEquip(pItemProp->dwReferStat1 == WEAPON_ULTIMATE))
  37. {
  38. g_WndMng.OpenMessageBox( _T( "Please Unequip your Ultimate Weapon, they are not allowed for the Lv60 Siege." ) );
  39. Destroy( TRUE );
  40. return FALSE;
  41. }
  42.  
  43. if( g_pPlayer )
  44. {
  45.  
  46. 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 ))
  47. {
  48. g_WndMng.OpenMessageBox( _T( "Please Unequip your Ultimate Weapon, they are not allowed for the Lv60 Siege." ) );
  49. Destroy( TRUE );
  50. return FALSE;
  51. }
  52. #endif //NO_ULTI_60GW
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement