Jump to content

Question

Posted

Hi guys, can someone give me an example for this kind of npc

> For example  i want to buy Draconic Armor set with 1 click, and to be equipped to the char.
> and if its possible when buy the armor to be enchanted to +3/4/5 etc.

3 answers to this question

Recommended Posts

  • 0
Posted (edited)
12 minutes ago, Sinister Smile said:

Hi guys, can someone give me an example for this kind of npc

> For example  i want to buy Draconic Armor set with 1 click, and to be equipped to the char.
> and if its possible when buy the armor to be enchanted to +3/4/5 etc.

 

Either you mess with multisells (which somehow i gave the answer to some guy yesterday) and add extra fields on multisell

will automatic enchance the item and equip them if its weapon or armor or jewler of type: 

 

<item>
		<ingredient count="1" id="6909" />
		<production count="1" id="7609" equip="true" enchant="25" />
        <production count="1" id="7610" equip="true" enchant="25" />
        <production count="1" id="7611" equip="true" enchant="25" />
</item>

 

or you gonna make a new NPC instance which i tell you don't since you can make the same work with xml in a faster way.

Everything you need is in Multisell.java, Ingredient.java and MultisellChoose.java (It's the packet that you will do the proper check to enchance the item and equip it)

 

You can also check the code which i pasted yesterday to get the overall idea. https://maxcheaters.com/topic/220264-help-about-a-multisell/?page=2#comment-2669268

Edited by Evie Frye
  • 0
Posted

If it's a single use, then you could go with instance. Otherwise xml sounds more appealing, reload possibility and such. 

  • 0
Posted
28 minutes ago, Evie Frye said:

 

Either you mess with multisells (which somehow i gave the answer to some guy yesterday) and add extra fields on multisell

will automatic enchance the item and equip them if its weapon or armor or jewler of type: 

 


<item>
		<ingredient count="1" id="6909" />
		<production count="1" id="7609" equip="true" enchant="25" />
        <production count="1" id="7610" equip="true" enchant="25" />
        <production count="1" id="7611" equip="true" enchant="25" />
</item>

 

or you gonna make a new NPC instance which i tell you don't since you can make the same work with xml in a faster way.

Everything you need is in Multisell.java, Ingredient.java and MultisellChoose.java (It's the packet that you will do the proper check to enchance the item and equip it)

 

You can also check the code which i pasted yesterday to get the overall idea. https://maxcheaters.com/topic/220264-help-about-a-multisell/?page=2#comment-2669268

Thank you, i will check now.

 

17 minutes ago, SweeTs said:

If it's a single use, then you could go with instance. Otherwise xml sounds more appealing, reload possibility and such. 

It will be like custom shop/vote shop/gm shop in one npc.

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


×
×
  • 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..