Jump to content
  • 0

npc dont showing hi page [epilogue]


Question

Posted (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 by Vision

Recommended Posts

  • 0
Posted (edited)
16 minutes ago, slavergigi said:

for server part i only use note++

 

Untitled.jpg

 

 

🥳🥳🥳🥳🥳

 

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 ❤️

 

 

 

Edited by girogius
  • 0
Posted
3 hours ago, slavergigi said:

Maybe the htm havent right skill pch number?

No, i just deleted everything and wrote hi in htm for testing but still nothing

  • 0
Posted
19 minutes ago, girogius said:

ara dzma epilogue aris

ui ho, ver davinaxe kai 🙂 da vivaraudeb hi-shi welcomes gulisxmob? interludeshi welcome configidan unda charto manda ar vici magram iqneb raime msgavsi iyos..

  • 0
Posted (edited)
10 minutes ago, dramaa93 said:

ui ho, ver davinaxe kai 🙂 da vivaraudeb hi-shi welcomes gulisxmob? interludeshi welcome configidan unda charto manda ar vici magram iqneb raime msgavsi iyos..

ara ra welcome :d npc bufferis ai s vwer :d mgoni gavaswore funqciis id ebi iyo araswori, tan shen mgoni l2j ze ambob es pts aris,

buffebis magivrad hi chavwere prosta htm shi tu gamochndeboda mainteresebda skilebis brali xoaraatqo metqi

1 hour ago, Nightw0lf said:

can you show the decoded language it will help alot to understand where is the mistake.

I copied ai code from this topic but looks like its not for epilogue.

function ids and everything is incorrect

[Guide] [L2Off]: Gmshop,teleporter,buffer Creation.(All In One) - Server Development Discussion [L2OFF] - MaxCheaters.com | Lineage 2 Development Marketplace Bots and Cheats

 

I will try to write my own

 

 

Edited by girogius
  • 0
Posted (edited)
14 minutes ago, slavergigi said:

if you want i have right file for you and html too

 

 

I created new ai now window is showing but window is empty 😕 

 

this is my html:

<html>
<head>
<title>Server Manager</title>
<body>
<button value="Shop" align="CENTER" action="bypass -h menu_select?ask=-601&reply=1" width=100 height=30 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"><br>
</body>
</html>

 

do you see something wrong?

 

Untitled.jpg

 

I saved that file as .htm not .html i see other files are also htm but working well.

 

this is a server manager i will put buffer and class master into this npc later ai programming is not problem i know how to do it but this empty windows are headache

Edited by girogius
  • 0
Posted
On 1/22/2021 at 11:42 PM, MasterToma said:

Add new pet to the category strider, here

 



category_define_begin

name=[strider]

category={@wind_strider;@star_strider;@twilight_strider}

category_define_end

 

 

3 hours ago, girogius said:

ara ra welcome :d npc bufferis ai s vwer :d mgoni gavaswore funqciis id ebi iyo araswori, tan shen mgoni l2j ze ambob es pts aris,

buffebis magivrad hi chavwere prosta htm shi tu gamochndeboda mainteresebda skilebis brali xoaraatqo metqi

I copied ai code from this topic but looks like its not for epilogue.

function ids and everything is incorrect

[Guide] [L2Off]: Gmshop,teleporter,buffer Creation.(All In One) - Server Development Discussion [L2OFF] - MaxCheaters.com | Lineage 2 Development Marketplace Bots and Cheats

 

I will try to write my own

 

 

 

Just now, girogius said:

 

this html that i shared is a fnHi.. i dont know where chat is coming from

You need put fnhi to the npc file 

 

  • 0
Posted
Just now, slavergigi said:

 

 

You need put fnhi to the npc file 

 

 

this is a decompiled code:

handler:
    EventHandler TALKED(talker) {

        if(talker.karma > 0){
            ShowPage(talker, fnYouAreChaotic);
        }
        else{
            ShowPage(talker, fnHi);
        }
        
    } 

 

just ai name is not enough in npcdata file? fn hi will not show from talked event? 

  • 0
Posted

Man... go in npcdata.txt and go to on the npc where you want put the ai .... and search npc_ai={[yourainameforbuffer]};{[fnHi]=[yourhtm.htm]};{[MoveAroundSocia ect.....]}

npc_begin	merchant	7100	[__emilia]	level=70	acquire_exp_rate=0	acquire_sp=0	unsowing=1	clan={}	ignore_clan_list={}	clan_help_range=300	slot_chest=[]	slot_rhand=[]	slot_lhand=[]	shield_defense_rate=0	shield_defense=0	skill_list={@s_race_undead;@s_full_magic_defence}	npc_ai={[npc_buffer];{[fnHi]=[npc_buffer_main.htm]};{[MoveAroundSocial]=0};{[MoveAroundSocial1]=0};{[MoveAroundSocial2]=0}}	category={}	race=human	sex=female	undying=1	can_be_attacked=0	corpse_time=7	no_sleep_mode=0	agro_range=1000	ground_high={120;0;0}	ground_low={50;0;0}	exp=429634528	org_hp=2444.46819	org_hp_regen=7.5	org_mp=10000	org_mp_regen=200	collision_radius={7;7}	collision_height={23;23}	str=60	int=90	dex=50	wit=90	con=60	men=40	base_attack_type=sword	base_attack_range=40	base_damage_range={0;0;80;120}	base_rand_dam=30	base_physical_attack=688.86373	base_critical=4	physical_hit_modify=4.75	base_attack_speed=253	base_reuse_delay=0	base_magic_attack=470.40463	base_defend=295.91597	base_magic_defend=216.53847	physical_avoid_modify=0	soulshot_count=0	spiritshot_count=0	hit_time_factor=0.6	item_make_list={}	corpse_make_list={}	additional_make_list={}	additional_make_multi_list={}	hp_increase=0	mp_increase=0	safe_height=100	npc_end

This is my npc.. see?

Guest
This topic is now closed to further replies.



  • Posts

    • its not imagination we skip that on this topic my offer still stands i am accepting a house Mr. @ERROR501 for more information please contact me
    • Sell ready interlude server files, with all popular features and tested, stable source + fully functional premium geodata for free.   Features include: Events: DM CTF TVT LM Dressme system Custom Buffer GM Shop Custom community board Donation manager  Auto Farm   Album: sell c6 — ImgBB   Test Server online: Patch link: https://drive.google.com/file/d/1mvEbv9XESsvfWwc638xFyyzyESeE2U95/view?usp=drive_link Auto acc create and auto admin   Price: 300$. Discord: l2retro
    • Faltan demasiados archivos,  y lógicas en clases claves como L2pcInstance, entre otras. si bien muchas cosas están y el flujo es valorable.  Gracias por tu esfuerzo es bastante... pero realmente no esta completo el código, falta que subas todas las modificaciones en clases colaterales... podrías intentar subir un diff de todo el mod  completo de tu pack y bueno ahí si que cada uno adapte... pero faltan muchas cosas, dudo que haya gente que lo haya echo funcionar con esto... 
    • I know people who have fully bypassed and reversed AAC. One day, they might even release the full source code, but for now, they’re still making money off it. I won’t name anyone, but it’s clear that there aren’t any truly solid anticheats for Lineage2. As I’ve said before, kernel level anticheats are the only real solution. Anything that runs as Internal and injects gets flagged, and your account ends up getting kicked or banned. That’s just how most games handle it nowadays. To TL;DR the whole thing cheating will always exist because there are people out there smart enough to bypass any protection and run private cheats. Public cheats are always detected eventually, so I don’t see any point in buying AAC, especially when they claim it blocks adr, which simply isn’t true.
    • 🌐 Website: https://l2adonis.com 📅 GRAND OPENING: July 18, 2025 – 20:00 (UTC+2) 💬 Discord: https://discord.com/invite/tZBj8JxAwx 🚫 No auto-farm • No auto-macro • No pay-to-win • No custom   Some Basic Info's (More detalied info's on website)  EXP/SP: x25  Adena: x15  Drop: x15  Spoil: x15  Seal Stones: x15  Raid Boss Drop: x10  Epic Boss Drop: x1  Manor: x10  Safe Enchant: +4  Max Enchant: +16  Normal Scroll Chance: 50%  Blessed Scroll Chance: 66% (If enchant fail item remain +4)  Buff Slots (30+4 extra with Divine Inspiration)  Dances/Songs Slots 14  Auto-learn skills  ⚔️ Real PvP • Real Progression • Retail-like experience JOIN NOW and relive the real L2 experience!
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock