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

    • L2 DEVS - HTML DESIGN (ALL NPC'S)    
    • I only share for free what they are reselling 🙂 You keep crying in all the publications, and if you are looking for h5 or gd wait for 5 or 6 years... cheers.... GENERAL Cached Extended to 8192kb IOBuffer Hair2SlotCache ItemBidAuctioner Clan Hall Current Olympiad Season Rank pages System (Shows Points/Games - Fully Configurable) Automatic Flag Around Raidboss System Offline Shop & Buffers Restore After Restart (Fixed location) Offline Buffer System PvP Auto Announce System Rebuilt with Extra Addons (Fully Configurable, Name, Zones, Rewards) Automatic Announce System Rebuilt with Extra Addons (Fully Configurable) ALT+B Augmentation House Shift+Click Droplist/Spoil List Epic Items Rank RB points Rank ChangeColorName ChangeColorTitle Change Skin (Race) Change Gender Custom Subclass (Acumulative) Achievements Item Delivery System  Augmentations/Enchants Automatic Announce System Auto Learn Skills PvP Reward Pk Reward War Reward Scheme buffer GlobalChatTrade Trade Augment Items Castle Announce Time Castle Standby Time Fix Spiritshots delay SpellbooksDrop Enable/Disable Drop custom Fully configurable, lvl min max allmobs, allrb, individual New cancel effect min,max BlessedarmorEnchantRate BlessedmagicWeaponEnchantRate BlessednormalWeaponEnchantRate MaxSlosChars MaxSlotsDwarfs Enable or disable all commands Fix fast loading npc OlympiadRestoreStatsOnFightStart OlympiadSystemSecondTimeEnabled OlympiadEnterLast10Minute OlympiadThirdClassSummons MinLevelTrade AnnounceSubClassMsg1 AnnounceSubClassMsg2 AnnounceSubClassMsg3 LimitedSubClassRace NoSellItems Change ID SealStones for AA NoPrivateBuyItems NoDropPlayerOnDie DisableSkillEnchantData Show Level Mobs Show npc clan flag DespawnSummonEnBattle SummonPetEnBattle RideSummonPetEnBattle DitanceToTargetMove EnterWorld_Undying EnterWorld_UnHide BlockWhispMessagePlayerToGM UseItemsWithHide CriticalSkillDamageBonusPer=4.0 Disable SSQSystem OnCastle Siege End Use any dyes Buy halls directly in auctioneer without waiting for the auction, configuration to change the item you consume MensajeEnterWorldServer Command .hero enable/disable hero aura Config vip global chat character, chat by systemsg Soulshots: NoSendSystemMessageUse Panel //admin Global vote reward Agathions system Anti Interface, control all patch files by md5 Command .menu configurable, last restart, name, maxusers, privatestores Spawn protection activate deactivate consume items to activate  Activate or deactivate autoloot for vip characters EVENTS Happy Hour Event reworked Configurable by announcements or systemsg Team VS Team Capture The Flag Death Match Last Man Standing Destroy The Base Korean Style Castle Siege Check if the player is inside the tvt event due to disconnection/critical error Top 1/5 killer reward/announce TimeAfk ResetReuseSkills ResetBuffsOnFinish Firework effect Reward win/lost Add Team Location Title custom Red/blue Open Door/Wall System BalanceBishops Show kills in title Invest positions Show Death To Top Delete Non-Subclass Skills     RELOADS Reload Enterworld Html Option Reload Faction System Reload Donate Shop Reload OfflineBuffer Reload Champion NPC Reload CliExt Reload AntiBot Reload Vip System Reload Auction Reload AutoLoot Reload CastleSiegeManager Reload CharacterLock Reload ClanPvPStatus Reload AutoLearn Reload ClanReputationRank Reload ClanSystem Reload CreatureAction Reload Customs.ini Reload L2server.ini Reload SkillData.txt Reload doordata.txt Reload decodata.txt Reload Multisell Reload DropList   Extender tested for more than 3 years. Assured stability. Possibility of adding MOD's upon request. (Not included, consult).
    • some peoples trash is another mans treasure, is that your treasure?   people might like the content but you are still the rat in the room     thats the community judging you.  
    • Keep reselling what I publish here for free!!! 🙂 GG  
  • Topics

×
×
  • Create New...