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 :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...