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

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