/*----------------------------------------- 弁仿奶失件玄井日忒勻化五凶凜卞裟太請今木月〔 -------------------------------------------*/ void NPC_WindowHealerWindowTalked( int meindex, int talkerindex, int seqno, int select, char *data) { if( NPC_Util_CharDistance( talkerindex, meindex ) > (CHAR_getWorkInt(meindex,CHAR_WORK_RANGE)+4)) return; switch( seqno){ case CHAR_WINDOWTYPE_WINDOWHEALER_STARTMSG: if(atoi(data)==2) /*--薊 仄凶嫩 1--*/ { NPC_WindowHealer_selectWindow( meindex, talkerindex, 1 ); }else if(atoi(data)==3){ /*--薊 仄凶嫩 2--*/ NPC_WindowHealer_selectWindow( meindex, talkerindex, 2 ); }else if(atoi(data)==4){ /*--薊 仄凶嫩 2--*/ NPC_WindowHealer_selectWindow( meindex, talkerindex, 6 ); }else if(atoi(data)==6){ /*--薊 仄凶嫩 2--*/ if(NPC_PetHealerCheck( talkerindex)==TRUE){ NPC_WindowHealer_selectWindow( meindex, talkerindex, 9 ); }else{ NPC_WindowHealer_selectWindow( meindex, talkerindex, 10 ); } }else if(select==WINDOW_BUTTONTYPE_CANCEL){ /*--仇仇引匹仁月午蔽 卅及匹窒手仄卅中--*/ } break; /*-----覲菁 莢汊毛雲仇卅丹-----*/ case CHAR_WINDOWTYPE_WINDOWHEALER_HPMSG: if(select==WINDOW_BUTTONTYPE_OK){ NPC_WindowHealer_selectWindow( meindex, talkerindex, 0 ); }else if(select==WINDOW_BUTTONTYPE_YES){ /*--雲嗯及民尼永弁--*/ if(NPC_WindowMoneyCheck(meindex,talkerindex,1)==TRUE){ NPC_WindowHealer_selectWindow( meindex, talkerindex, 3 ); }else{ NPC_WindowHealer_selectWindow( meindex, talkerindex, 8 ); } }else if(select==WINDOW_BUTTONTYPE_NO){ NPC_WindowHealer_selectWindow( meindex, talkerindex, 0 ); } break; /*-----竣 莢汊毛雲仇卅丹-----*/ case CHAR_WINDOWTYPE_WINDOWHEALER_SPIRITMSG: if(select==WINDOW_BUTTONTYPE_OK){ NPC_WindowHealer_selectWindow( meindex, talkerindex, 0 ); }else if(select==WINDOW_BUTTONTYPE_YES){ /*--雲嗯及民尼永弁--*/ if(NPC_WindowMoneyCheck(meindex,talkerindex,2)==TRUE){ NPC_WindowHealer_selectWindow( meindex, talkerindex, 4 ); }else{ NPC_WindowHealer_selectWindow( meindex, talkerindex, 8 ); } }else if(select==WINDOW_BUTTONTYPE_NO){ NPC_WindowHealer_selectWindow( meindex, talkerindex, 0 ); } break; /*-----覲菁 莢汊及瑛絆-----*/ case CHAR_WINDOWTYPE_WINDOWHEALER_OKHPMSG: if(select==WINDOW_BUTTONTYPE_OK){ NPC_WindowHealer_selectWindow( meindex, talkerindex, 0 ); } break; case CHAR_WINDOWTYPE_WINDOWHEALER_OKSPIRITMSG: if(select==WINDOW_BUTTONTYPE_OK){ NPC_WindowHealer_selectWindow( meindex, talkerindex, 0 ); } break; /*--蟈莢汊今六月--*/ case CHAR_WINDOWTYPE_WINDOWHEALER_ALLMSG: if(select==WINDOW_BUTTONTYPE_OK){ NPC_WindowHealer_selectWindow( meindex, talkerindex, 0 ); }else if(select==WINDOW_BUTTONTYPE_YES){ if(NPC_WindowMoneyCheck(meindex,talkerindex,3)==TRUE){ NPC_WindowHealer_selectWindow( meindex, talkerindex, 7 ); }else{ NPC_WindowHealer_selectWindow( meindex, talkerindex, 8 ); } }else if(select==WINDOW_BUTTONTYPE_NO){ NPC_WindowHealer_selectWindow( meindex, talkerindex, 0 ); } break; /*--蟈莢汊及瑛絆--*/ case CHAR_WINDOWTYPE_WINDOWHEALER_OKALLMSG: if(select==WINDOW_BUTTONTYPE_YES){ NPC_WindowHealer_selectWindow( meindex, talkerindex, 0 ); } break; } if(select==WINDOW_BUTTONTYPE_CANCEL && CHAR_getWorkInt( talkerindex, CHAR_WORKPARTYMODE ) == 2) { CHAR_sendWatchEvent( CHAR_getWorkInt( talkerindex, CHAR_WORKOBJINDEX), CHAR_ACTPLEASURE,NULL,0,TRUE); CHAR_setWorkInt( talkerindex, CHAR_WORKACTION, CHAR_ACTPLEASURE); } }
/*----------------------------------------- ¥¯¥é¥¤¥¢¥ó¥È¤«¤éÊ֤äƤ¤¿»þ¤Ë¸Æ¤Ó½Ð¤µ¤ì¤ë¡e -------------------------------------------*/ void NPC_WindowHealerWindowTalked( int meindex, int talkerindex, int seqno, int select, char *data) { if( NPC_Util_CharDistance( talkerindex, meindex ) > (CHAR_getWorkInt(meindex,CHAR_WORK_RANGE)+4)) return; switch( seqno){ case CHAR_WINDOWTYPE_WINDOWHEALER_STARTMSG: if(atoi(data)==2) /*--Áª ¤·¤¿¹à 1--*/ { NPC_WindowHealer_selectWindow( meindex, talkerindex, 1 ); }else if(atoi(data)==3){ /*--Áª ¤·¤¿¹à 2--*/ NPC_WindowHealer_selectWindow( meindex, talkerindex, 2 ); }else if(atoi(data)==4){ /*--Áª ¤·¤¿¹à 2--*/ NPC_WindowHealer_selectWindow( meindex, talkerindex, 6 ); }else if(atoi(data)==6){ /*--Áª ¤·¤¿¹à 2--*/ if(NPC_PetHealerCheck( talkerindex)==TRUE){ NPC_WindowHealer_selectWindow( meindex, talkerindex, 9 ); }else{ NPC_WindowHealer_selectWindow( meindex, talkerindex, 10 ); } }else if(select==WINDOW_BUTTONTYPE_CANCEL){ /*--¤³¤³¤Þ¤Ç¤¯¤ë¤È½ª ¤Ê¤Î¤Ç²¿¤â¤·¤Ê¤¤--*/ } break; /*-----ÂÑµ× ²óÉü¤ò¶³¤³¤Ê¤¦-----*/ case CHAR_WINDOWTYPE_WINDOWHEALER_HPMSG: if(select==WINDOW_BUTTONTYPE_OK){ NPC_WindowHealer_selectWindow( meindex, talkerindex, 0 ); }else if(select==WINDOW_BUTTONTYPE_YES){ /*--¶³¶â¤Î¥Á¥§¥Ã¥¯--*/ if(NPC_WindowMoneyCheck(meindex,talkerindex,1)==TRUE){ NPC_WindowHealer_selectWindow( meindex, talkerindex, 3 ); }else{ NPC_WindowHealer_selectWindow( meindex, talkerindex, 8 ); } }else if(select==WINDOW_BUTTONTYPE_NO){ NPC_WindowHealer_selectWindow( meindex, talkerindex, 0 ); } break; /*-----µ¤ ²óÉü¤ò¶³¤³¤Ê¤¦-----*/ case CHAR_WINDOWTYPE_WINDOWHEALER_SPIRITMSG: if(select==WINDOW_BUTTONTYPE_OK){ NPC_WindowHealer_selectWindow( meindex, talkerindex, 0 ); }else if(select==WINDOW_BUTTONTYPE_YES){ /*--¶³¶â¤Î¥Á¥§¥Ã¥¯--*/ if(NPC_WindowMoneyCheck(meindex,talkerindex,2)==TRUE){ NPC_WindowHealer_selectWindow( meindex, talkerindex, 4 ); }else{ NPC_WindowHealer_selectWindow( meindex, talkerindex, 8 ); } }else if(select==WINDOW_BUTTONTYPE_NO){ NPC_WindowHealer_selectWindow( meindex, talkerindex, 0 ); } break; /*-----ÂÑµ× ²óÉü¤Î·ë²Ì-----*/ case CHAR_WINDOWTYPE_WINDOWHEALER_OKHPMSG: if(select==WINDOW_BUTTONTYPE_OK){ NPC_WindowHealer_selectWindow( meindex, talkerindex, 0 ); } break; case CHAR_WINDOWTYPE_WINDOWHEALER_OKSPIRITMSG: if(select==WINDOW_BUTTONTYPE_OK){ NPC_WindowHealer_selectWindow( meindex, talkerindex, 0 ); } break; /*--Á´²óÉü¤µ¤»¤ë--*/ case CHAR_WINDOWTYPE_WINDOWHEALER_ALLMSG: if(select==WINDOW_BUTTONTYPE_OK){ NPC_WindowHealer_selectWindow( meindex, talkerindex, 0 ); }else if(select==WINDOW_BUTTONTYPE_YES){ if(NPC_WindowMoneyCheck(meindex,talkerindex,3)==TRUE){ NPC_WindowHealer_selectWindow( meindex, talkerindex, 7 ); }else{ NPC_WindowHealer_selectWindow( meindex, talkerindex, 8 ); } }else if(select==WINDOW_BUTTONTYPE_NO){ NPC_WindowHealer_selectWindow( meindex, talkerindex, 0 ); } break; /*--Á´²óÉü¤Î·ë²Ì--*/ case CHAR_WINDOWTYPE_WINDOWHEALER_OKALLMSG: if(select==WINDOW_BUTTONTYPE_YES){ NPC_WindowHealer_selectWindow( meindex, talkerindex, 0 ); } break; } if(select==WINDOW_BUTTONTYPE_CANCEL && CHAR_getWorkInt( talkerindex, CHAR_WORKPARTYMODE ) == 2) { CHAR_sendWatchEvent( CHAR_getWorkInt( talkerindex, CHAR_WORKOBJINDEX), CHAR_ACTPLEASURE,NULL,0,TRUE); CHAR_setWorkInt( talkerindex, CHAR_WORKACTION, CHAR_ACTPLEASURE); } }