Jump to content
  • 0

Question

3 answers to this question

Recommended Posts

  • 0
Posted
4 minutes ago, icarka said:

Hello any one can send me npc with s grade recipes?

 

How do you mean that? You need NPC with multisell with all S grade recipes?

 

If so, make a list of recpies you need there (you can find names in item_pch.txt), create your own multisell (in multisell.txt, give it ID 1000+), create some npc (copy existing npc that is merchant in npcdata.txt and npc_pch.txt), create AI class for it (can be just empty class derived from citizen) or set it's class to be just citizen and create html for it that will contain

<a action="bypass -h menu_select?ask=-303&reply=YOURMULTISELLID">Buy recipes</a>

  • 0
Posted (edited)
23 minutes ago, icarka said:

yeah i need npc with s grade recipes armor and weps

 

Then you need to do following:

  1. Decide whether you really need brand new NPC - it's MUCH easier to do with existing NPC. If you can use existing NPC, go to step 8
  2. Decide which NPC you will copy - just find proper NPC that suits you and pick a new name for it, I'll use recipe_seller as name on server side in this example (generally you can pick name as you need but use only small letters, numbers and underscore "_" character)
  3. Get some tools to edit client stuff
  4. Client - edit npcgrp.dat and npcname-e.dat
    1. find the original NPC you're copying
    2. copy it and give it unique ID (for example 32000)
    3. in npcname-e.dat also change the name; don't change anything else
  5. Server - edit npcdata.txt and npc_pch.txt, again as in client
    1. find the original NPC you're copying
    2. copy the line and give it same ID as in client (32000)
    3. in both npcdata.txt and npc_pch.txt pick change name to recipe_seller
    4. in npcdata.txt change npc_ai=... to npc_ai={[citizen];{[fnHi]=[recipe_seller.htm];{[MoveAroundSocial]=0};{MoveAroundSocial1]=90}}
  6. Server - create html/recipe_seller.htm and use this link there:
    <a action="bypass -h menu_select?ask=-303&reply=1000">Buy recipes</a>

     

  7. Now continue with step 9
  8. Select some NPC where you want to add the multisell and find it's HTML file in html/ folder, add link from step 6 there
  9. Create your multisell - edit multisell.txt and add this (and change price etc, also _i versions are 60/70%, the other ones are 100% - use what you need):
    MultiSell_begin	[s_recipes] 1000
    is_dutyfree = 1
    selllist={
    {{{[[rp_sealed_sanddragon's_earing_i];1}};{{[adena];1000000}}};
    {{{[[rp_sealed_sanddragon's_earing];1}};{{[adena];10000000}}};
    {{{[[rp_sealed_ring_of_aurakyria_i];1}};{{[adena];1000000}}};
    {{{[[rp_sealed_ring_of_aurakyria];1}};{{[adena];10000000}}};
    {{{[[rp_sealed_dragon_necklace_i];1}};{{[adena];1000000}}};
    {{{[[rp_sealed_dragon_necklace];1}};{{[adena];10000000}}};
    {{{[[rp_sealed_imperial_crusader_armor_i];1}};{{[adena];1000000}}};
    {{{[[rp_sealed_imperial_crusader_armor];1}};{{[adena];10000000}}};
    {{{[[rp_sealed_imperial_crusader_gaiters_i];1}};{{[adena];1000000}}};
    {{{[[rp_sealed_imperial_crusader_gaiters];1}};{{[adena];10000000}}};
    {{{[[rp_sealed_imperial_crusader_gauntlet_i];1}};{{[adena];1000000}}};
    {{{[[rp_sealed_imperial_crusader_gauntlet];1}};{{[adena];10000000}}};
    {{{[[rp_sealed_imperial_crusader_boots_i];1}};{{[adena];1000000}}};
    {{{[[rp_sealed_imperial_crusader_boots];1}};{{[adena];10000000}}};
    {{{[[rp_sealed_imperial_crusader_shield_i];1}};{{[adena];1000000}}};
    {{{[[rp_sealed_imperial_crusader_shield];1}};{{[adena];10000000}}};
    {{{[[rp_sealed_imperial_crusader_helmet_i];1}};{{[adena];1000000}}};
    {{{[[rp_sealed_imperial_crusader_helmet];1}};{{[adena];10000000}}};
    {{{[[rp_sealed_draconic_leather_armor_i];1}};{{[adena];1000000}}};
    {{{[[rp_sealed_draconic_leather_armor];1}};{{[adena];10000000}}};
    {{{[[rp_sealed_draconic_leather_gloves_i];1}};{{[adena];1000000}}};
    {{{[[rp_sealed_draconic_leather_gloves];1}};{{[adena];10000000}}};
    {{{[[rp_sealed_draconic_leather_boots_i];1}};{{[adena];1000000}}};
    {{{[[rp_sealed_draconic_leather_boots];1}};{{[adena];10000000}}};
    {{{[[rp_sealed_draconic_leather_helmet_i];1}};{{[adena];1000000}}};
    {{{[[rp_sealed_draconic_leather_helmet];1}};{{[adena];10000000}}};
    {{{[[rp_sealed_major_arcana_robe_i];1}};{{[adena];1000000}}};
    {{{[[rp_sealed_major_arcana_robe];1}};{{[adena];10000000}}};
    {{{[[rp_sealed_major_arcana_gloves_i];1}};{{[adena];1000000}}};
    {{{[[rp_sealed_major_arcana_gloves];1}};{{[adena];10000000}}};
    {{{[[rp_sealed_major_arcana_boots_i];1}};{{[adena];1000000}}};
    {{{[[rp_sealed_major_arcana_boots];1}};{{[adena];10000000}}};
    {{{[[rp_sealed_major_arcana_hood_i];1}};{{[adena];1000000}}};
    {{{[[rp_sealed_major_arcana_hood];1}};{{[adena];10000000}}};
    {{{[[rp_forgotten_blade_i];1}};{{[adena];1000000}}};
    {{{[[rp_forgotten_blade];1}};{{[adena];10000000}}};
    {{{[[rp_basalt_battlehammer_i];1}};{{[adena];1000000}}};
    {{{[[rp_basalt_battlehammer];1}};{{[adena];10000000}}};
    {{{[[rp_imperial_staff_i];1}};{{[adena];1000000}}};
    {{{[[rp_imperial_staff];1}};{{[adena];10000000}}};
    {{{[[rp_angel_slayer_i];1}};{{[adena];1000000}}};
    {{{[[rp_angel_slayer];1}};{{[adena];10000000}}};
    {{{[[rp_shining_bow_i];1}};{{[adena];1000000}}};
    {{{[[rp_shining_bow];1}};{{[adena];10000000}}};
    {{{[[rp_dragon_hunter_axe_i];1}};{{[adena];1000000}}};
    {{{[[rp_dragon_hunter_axe];1}};{{[adena];10000000}}};
    {{{[[rp_saint_spear_i];1}};{{[adena];1000000}}};
    {{{[[rp_saint_spear];1}};{{[adena];10000000}}};
    {{{[[rp_demon_splinter_i];1}};{{[adena];1000000}}};
    {{{[[rp_demon_splinter];1}};{{[adena];10000000}}};
    {{{[[rp_heavens_divider_i];1}};{{[adena];1000000}}};
    {{{[[rp_heavens_divider];1}};{{[adena];10000000}}};
    {{{[[rp_arcana_mace_i];1}};{{[adena];1000000}}};
    {{{[[rp_arcana_mace];1}};{{[adena];10000000}}}
    }
Edited by eressea
  • 0
Posted
On 24.11.2017 at 7:44 PM, eressea said:

 

Then you need to do following:

  1. Decide whether you really need brand new NPC - it's MUCH easier to do with existing NPC. If you can use existing NPC, go to step 8
  2. Decide which NPC you will copy - just find proper NPC that suits you and pick a new name for it, I'll use recipe_seller as name on server side in this example (generally you can pick name as you need but use only small letters, numbers and underscore "_" character)
  3. Get some tools to edit client stuff
  4. Client - edit npcgrp.dat and npcname-e.dat
    1. find the original NPC you're copying
    2. copy it and give it unique ID (for example 32000)
    3. in npcname-e.dat also change the name; don't change anything else
  5. Server - edit npcdata.txt and npc_pch.txt, again as in client
    1. find the original NPC you're copying
    2. copy the line and give it same ID as in client (32000)
    3. in both npcdata.txt and npc_pch.txt pick change name to recipe_seller
    4. in npcdata.txt change npc_ai=... to npc_ai={[citizen];{[fnHi]=[recipe_seller.htm];{[MoveAroundSocial]=0};{MoveAroundSocial1]=90}}
  6. Server - create html/recipe_seller.htm and use this link there:
    
    <a action="bypass -h menu_select?ask=-303&reply=1000">Buy recipes</a>

     

  7. Now continue with step 9
  8. Select some NPC where you want to add the multisell and find it's HTML file in html/ folder, add link from step 6 there
  9. Create your multisell - edit multisell.txt and add this (and change price etc, also _i versions are 60/70%, the other ones are 100% - use what you need):
    
    MultiSell_begin	[s_recipes] 1000
    is_dutyfree = 1
    selllist={
    {{{[[rp_sealed_sanddragon's_earing_i];1}};{{[adena];1000000}}};
    {{{[[rp_sealed_sanddragon's_earing];1}};{{[adena];10000000}}};
    {{{[[rp_sealed_ring_of_aurakyria_i];1}};{{[adena];1000000}}};
    {{{[[rp_sealed_ring_of_aurakyria];1}};{{[adena];10000000}}};
    {{{[[rp_sealed_dragon_necklace_i];1}};{{[adena];1000000}}};
    {{{[[rp_sealed_dragon_necklace];1}};{{[adena];10000000}}};
    {{{[[rp_sealed_imperial_crusader_armor_i];1}};{{[adena];1000000}}};
    {{{[[rp_sealed_imperial_crusader_armor];1}};{{[adena];10000000}}};
    {{{[[rp_sealed_imperial_crusader_gaiters_i];1}};{{[adena];1000000}}};
    {{{[[rp_sealed_imperial_crusader_gaiters];1}};{{[adena];10000000}}};
    {{{[[rp_sealed_imperial_crusader_gauntlet_i];1}};{{[adena];1000000}}};
    {{{[[rp_sealed_imperial_crusader_gauntlet];1}};{{[adena];10000000}}};
    {{{[[rp_sealed_imperial_crusader_boots_i];1}};{{[adena];1000000}}};
    {{{[[rp_sealed_imperial_crusader_boots];1}};{{[adena];10000000}}};
    {{{[[rp_sealed_imperial_crusader_shield_i];1}};{{[adena];1000000}}};
    {{{[[rp_sealed_imperial_crusader_shield];1}};{{[adena];10000000}}};
    {{{[[rp_sealed_imperial_crusader_helmet_i];1}};{{[adena];1000000}}};
    {{{[[rp_sealed_imperial_crusader_helmet];1}};{{[adena];10000000}}};
    {{{[[rp_sealed_draconic_leather_armor_i];1}};{{[adena];1000000}}};
    {{{[[rp_sealed_draconic_leather_armor];1}};{{[adena];10000000}}};
    {{{[[rp_sealed_draconic_leather_gloves_i];1}};{{[adena];1000000}}};
    {{{[[rp_sealed_draconic_leather_gloves];1}};{{[adena];10000000}}};
    {{{[[rp_sealed_draconic_leather_boots_i];1}};{{[adena];1000000}}};
    {{{[[rp_sealed_draconic_leather_boots];1}};{{[adena];10000000}}};
    {{{[[rp_sealed_draconic_leather_helmet_i];1}};{{[adena];1000000}}};
    {{{[[rp_sealed_draconic_leather_helmet];1}};{{[adena];10000000}}};
    {{{[[rp_sealed_major_arcana_robe_i];1}};{{[adena];1000000}}};
    {{{[[rp_sealed_major_arcana_robe];1}};{{[adena];10000000}}};
    {{{[[rp_sealed_major_arcana_gloves_i];1}};{{[adena];1000000}}};
    {{{[[rp_sealed_major_arcana_gloves];1}};{{[adena];10000000}}};
    {{{[[rp_sealed_major_arcana_boots_i];1}};{{[adena];1000000}}};
    {{{[[rp_sealed_major_arcana_boots];1}};{{[adena];10000000}}};
    {{{[[rp_sealed_major_arcana_hood_i];1}};{{[adena];1000000}}};
    {{{[[rp_sealed_major_arcana_hood];1}};{{[adena];10000000}}};
    {{{[[rp_forgotten_blade_i];1}};{{[adena];1000000}}};
    {{{[[rp_forgotten_blade];1}};{{[adena];10000000}}};
    {{{[[rp_basalt_battlehammer_i];1}};{{[adena];1000000}}};
    {{{[[rp_basalt_battlehammer];1}};{{[adena];10000000}}};
    {{{[[rp_imperial_staff_i];1}};{{[adena];1000000}}};
    {{{[[rp_imperial_staff];1}};{{[adena];10000000}}};
    {{{[[rp_angel_slayer_i];1}};{{[adena];1000000}}};
    {{{[[rp_angel_slayer];1}};{{[adena];10000000}}};
    {{{[[rp_shining_bow_i];1}};{{[adena];1000000}}};
    {{{[[rp_shining_bow];1}};{{[adena];10000000}}};
    {{{[[rp_dragon_hunter_axe_i];1}};{{[adena];1000000}}};
    {{{[[rp_dragon_hunter_axe];1}};{{[adena];10000000}}};
    {{{[[rp_saint_spear_i];1}};{{[adena];1000000}}};
    {{{[[rp_saint_spear];1}};{{[adena];10000000}}};
    {{{[[rp_demon_splinter_i];1}};{{[adena];1000000}}};
    {{{[[rp_demon_splinter];1}};{{[adena];10000000}}};
    {{{[[rp_heavens_divider_i];1}};{{[adena];1000000}}};
    {{{[[rp_heavens_divider];1}};{{[adena];10000000}}};
    {{{[[rp_arcana_mace_i];1}};{{[adena];1000000}}};
    {{{[[rp_arcana_mace];1}};{{[adena];10000000}}}
    }

helpfulness %100 :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Inventory restock: Premium business accounts are now available.   ✔ Wallester Business EU 🇪🇺|💳 Unlimited virtual cards, physical cards, 🏦 multi-currency IBAN, ₿ crypto & stablecoin deposits. ✔ Stripe Business UK 🇬🇧|💳 Instant virtual cards (Visa/Mastercard), high-conversion checkout, multi-currency payouts, ₿ crypto payments, no-code payment links. ✔ Mercury Business US 🇺🇸|🏦 US checking & savings, 💳 unlimited virtual cards, domestic & International wires, native stablecoin settlement. ✔ Payset Business EU 🇪🇺|🏦 Multiple IBANs, UK sort code, SEPA Instant, 💳 unlimited virtual cards, multi-currency accounts. ✔ Novo Business US 🇺🇸|🏦 Business checking account, ACH payments & invoicing, 💳 virtual & physical cards, novo boost.
    • Let me see if I understand correctly, older gentlemen, when a newcomer shows up to create modern things with the help of AI, doing what you charge them to do, you point the finger and laugh. I believe that's why everything is stagnant. The product isn't for programming experts, it's for newcomers. Don't buy from you if they can do it themselves using this base. You're going to deliver a similar product, maybe even worse than this one, so why are you complaining? PowerShell, as you well know, started with it, then came new platforms and new apps, new creation models, all with different languages; I chose the simplest one for my taste. This is about being organized and knowing how to choose the right words for each situation. It's not 100%, but it already gives a good impression. Nothing is 100%, so a topic written by AI, and all the code that you charge an absurd amount for to prohibit and sell hacks, could be open source so that everyone can create new practices, new models, new information for passing packets, prohibiting the use of cheats that cause server owners to break so much. Let's remember that the Admin doesn't always shut down the server; it's the players who find problems and take advantage by buying and reselling items, and they say that the GM shuts down the server every week, but that's a lie. What they do is duplicate items with packages and sell them, but perhaps this could give some future developers a starting point to create their own protection following the model in the initial documentation. Because none of you answer a question from a newbie, you think you're superior because you have knowledge, but with AI, people like that can have the same knowledge as you, but with less practice. And if they practice a lot, 10,000 hours, they can be as good as all of you older developers in the L2J field.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..