girogius Posted January 24, 2021 Posted January 24, 2021 (edited) my buffer npc have no reaction when i try to talk, its not showing buffer_npc001.htm here is my ai script. class 0 buffer : citizen parameter_define_begin string fnHi "buffer_npc001.htm" string fnYouAreChaotic "buffer_npc002.htm" string fnNotEnoughAdena "buffer_npc003.htm" string fnWait "buffer_npc004.htm" int ItemBuff 57 int Amount 1000 int Delay 500 parameter_define_end handler 13 11 // CREATED variable_begin "myself" "_choiceN" "_code" "_from_choice" variable_end push_event // myself push_const 728 add fetch_i // i_ai0 push_const 308 add push_reg_sp fetch_i push_const 0 assign4 shift_sp -1 handler_end handler 3 38 // TALKED variable_begin "talker" "myself" "_choiceN" "_code" "_from_choice" variable_end push_event // talker push_const 40 add fetch_i // karma push_const 468 add fetch_i4 push_const 0 greater branch_false L2 L1 push_event // myself push_const 728 add fetch_i push_event // talker push_const 40 add fetch_i push_parameter fnYouAreChaotic func_call 235012165 // func[ShowPage] shift_sp -2 shift_sp -1 jump L3 L2 push_event // myself push_const 728 add fetch_i push_event // talker push_const 40 add fetch_i push_parameter fnHi func_call 235012165 // func[ShowPage] shift_sp -2 shift_sp -1 L3 handler_end handler 32 134 // MENU_SELECTED variable_begin "talker" "ask" "reply" "myself" "_choiceN" "_code" "_from_choice" variable_end push_event // ask push_const 160 add fetch_i4 push_const 201 negate equal push_reg_sp fetch_i branch_false L4 shift_sp 1 push_event // myself push_const 704 add fetch_i push_event // talker push_const 40 add fetch_i push_parameter ItemBuff func_call 184680579 // func[OwnItemCount] shift_sp -2 push_parameter Amount greater_equal and L4 branch_false L5 L6 push_event // myself push_const 704 add fetch_i // i_ai0 push_const 308 add fetch_i4 push_const 0 equal branch_false L8 L7 push_event // myself push_const 704 add fetch_i // i_ai0 push_const 308 add push_reg_sp fetch_i push_const 1 assign4 shift_sp -1 push_event // myself push_const 704 add fetch_i push_event // talker push_const 40 add fetch_i push_parameter ItemBuff push_parameter Amount func_call 184746114 // func[DeleteItem1] shift_sp -3 shift_sp -1 push_event // myself push_const 704 add fetch_i push_event // talker push_const 40 add fetch_i push_event // reply push_const 164 add fetch_i push_const 1 push_const 1 push_const 1000000 func_call 184877074 // func[AddUseSkillDesire] shift_sp -5 shift_sp -1 push_event // myself push_const 704 add fetch_i push_event // talker push_const 40 add fetch_i push_parameter fnHi func_call 235012165 // func[ShowPage] shift_sp -2 shift_sp -1 push_event // myself push_const 704 add fetch_i push_const 1 push_parameter Delay func_call 184680487 // func[AddTimerEx] shift_sp -2 shift_sp -1 jump L9 L8 shift_sp 1 push_event // myself push_const 704 add fetch_i push_event // talker push_const 40 add fetch_i push_parameter fnWait func_call 235012165 // func[ShowPage] shift_sp -2 shift_sp -1 L9 jump L10 L5 shift_sp 1 push_event // myself push_const 704 add fetch_i push_event // talker push_const 40 add fetch_i push_parameter fnNotEnoughAdena func_call 235012165 // func[ShowPage] shift_sp -2 shift_sp -1 L10 handler_end handler 12 20 // TIMER_FIRED_EX variable_begin "timer_id" "myself" "_choiceN" "_code" "_from_choice" variable_end push_event // timer_id push_const 236 add fetch_i4 push_const 1 equal branch_false L12 L11 push_event // myself push_const 704 add fetch_i // i_ai0 push_const 308 add push_reg_sp fetch_i push_const 0 assign4 shift_sp -1 L12 handler_end class_end Edited August 18, 2021 by Vision
0 Vision Posted February 6, 2021 Posted February 6, 2021 On 1/25/2021 at 11:27 PM, girogius said: I guess you only editing existing htm files, i find out that when you creating new htm files must be encoded as UCS-2 LE BOM, I was using UTF-8 that was the problem. The End. Thank you for your help i appreciate it Since you found the solution to your problem. I will lock this one.
Question
girogius
my buffer npc have no reaction when i try to talk, its not showing buffer_npc001.htm
here is my ai script.
31 answers to this question
Recommended Posts