Jump to content
  • 0

Help about a multisell


MarGaZeaS

Question

i want to make upgrade shop (if you need to upgrade your weapon the next weapon is +5)

example: upgrade from dynasty weapon to vesper.

	<item id="1">
		<ingredient id="7140" count="10000"/>
		<production id="10001" count="1"/>
	</item>

vesper(you give dynasty for vesper)

in vesper multisell

	<item id="1">
		<ingredient id="7140" count="2500"/>
		<ingredient id="10001" count="1"/>
		<production id="10300" count="1"/>
	</item>

if you have +5 weapon dynasty and you upgrade to vesper you got +0 vesper. how can i fix?

Link to comment
Share on other sites

Recommended Posts

  • 0
2 hours ago, PaRaNoiC* said:

if you have +5 weapon dynasty and you upgrade to vesper you got +0 vesper. how can i fix?

 

1 minute ago, SweeTs said:

No he didn't.

Trade dynasty +5 into vesper +0.

 

he wants the vesper +5 but not as constant. He wants the dynasty enchant

Link to comment
Share on other sites

  • 0

My opinion ,

If he want vesper as constant enchant then @Evie Frye showed the code , 

else if he want to maintain dynasty enchant he go with  npc_%objectId%_exc_multisell XXXX  .

 

with multisell including this :

<item id="1">
        <ingredient id="7140" count="2500"/>
        <ingredient id="10001" count="1"/>
        <production id="10300" count="1"/>
    </item>

Edited by Sebana
Link to comment
Share on other sites

  • 0
10 minutes ago, camenomat0 said:

bro to make it easier,  ex : he wants a +5 item to be upgraded to another item ,and the enchant value stays he same. 

 

6 minutes ago, Sdw said:

My 2 cents : he wants to maintain the weapon enchant

 

exactly what's been said above,this what he needs

Link to comment
Share on other sites

  • 0
4 minutes ago, camenomat0 said:

 

 

exactly what's been said above,this what he needs

yea thats corerct . i mentioned the wrong Evie's code 

Edited by melron
Link to comment
Share on other sites

  • 0

Holy moly! I was mistaken sir. Now you can report me for oxygen waste abuse. 

Although to the topic owner i made you a super-fast code which i don't know if it works 

https://pastebin.com/wvHGckP0

 

Also you need to adjust Multisell.java and add new filed to read the "exchangeId" from your multisells. 

Something like this:

 

if (node.getAttributes().getNamedItem("exchangeId") != null)
{
	exchangeId = Integer.parseInt(node.getAttributes().getNamedItem("exchangeId").getNodeValue());
}

and this

entry.addProduct(new Ingredient(id, count, false, false));

to this

entry.addProduct(new Ingredient(id, count, exchangeId, false, false));

 

Edited by Evie Frye
Link to comment
Share on other sites

  • 0
33 minutes ago, Evie Frye said:

Holy moly! I was mistaken sir. Now you can report me for oxygen waste abuse. 

Although to the topic owner i made you a super-fast code which i don't know if it works 

https://pastebin.com/wvHGckP0

 

Also you need to adjust Multisell.java and add new filed to read the "exchangeId" from your multisells. 

Something like this:

 


if (node.getAttributes().getNamedItem("exchangeId") != null)
{
	exchangeId = Integer.parseInt(node.getAttributes().getNamedItem("exchangeId").getNodeValue());
}

and this


entry.addProduct(new Ingredient(id, count, false, false));

to this


entry.addProduct(new Ingredient(id, count, exchangeId, false, false));

 

 

npc_%objectId%_exc_multisell

is enough ... 

Reported.

Edited by melron
Link to comment
Share on other sites

  • 0

Gosh so he said two opposite things in one sentence..  :D

 

So, simply use maintainenchantment option and voila. Guess can be locked. 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Posts

    • Thank you very much, but now, if i spawn a raid, i see in chat, but npc isn;t spawned, it's visual bug?  
    • +256783219521 N1 WITCHCRAFT SPELLS CASTER IN TEXAS USA/UK EU.   ARE YOU DESPERATE FOR ATTRACTION OR YOU WANT YOUR EX LOVER BACK INTO YOUR LIFE AND YOU ARE , DESPERATE  BECAUSE YOU HAVE NO ONE TO TALK TO,  THEN WORRY AND CRY NO MORE BECAUSE THE SOLUTION IS AT HAND AND YOUR PROBLEMS WILL BE NO MORE. HERE COMES PSYCHIC MAGGU A SPECIALIST WITH VAST EXPERIENCE SPANNING 25 YEARS AS A LOVE SPELLS CASTER, MARRIAGE SPELLS CASTER, BINDING SPELLS CASTER, LOST LOVE SPELLS CASTER, ATTRACTION SPELLS CASTER, PSYCHIC,WEALTH SPELLS, TRADITIONAL HEALER, DIVINER,MEDIUM, FINANCIAL SPELLS, VOODOO,WORK RELATED SPELLS, BLACK MAGIC, WHITE MAGIC.  WITH SUCH EXPERTISE, I HAVE BEEN ABLE TO WORK ON CLIENTS FROM DIFFERENT PARTS OF THE WORLD INCLUDING BUT NOT LIMITED TO USA, CANADA, EUROPE, UAE, INDIA, SOUTH AFRICA, ASIA, INDONESIA, BOTSWANA. IF AT ALL YOUR PROBLEMS PERSISTED FOR A LONG TIME  AND YOU HAVE FAILED TO GET A LASTING AND PERMANENT REMEDY SO THAT YOU LIVE A HAPPY AND BLISSFUL LIFE, PLEASE DON'T HESITATE TO CALL/ WHATSAPP +256 783219521  . 
    • #REAL BLACK MAGIC SPELLS CASTER IN USA UK +256783219521 POWERFUL BLACK MAGIC SPELLS CASTER|Witchcraft Spells Caster In USA UK AUSTRALIA CANADA NEW ZEALAND EUROPE SOUTH AFRICA SOUTH AMERICA ASIA IRELAND (USA) New York,California,Florida,Georgia,South Carolina,North Carolina,Virginia,West Virginia,Alabama,Louisiana,Mississippi,Tennessee,Kentucky,Delaware,New Jersey,Maryland,Ohio,Indiana,Michigan,Pennsylvania,Connecticut,Rhode Island,Massachusetts,New Hampshire,Vermont,Maine,Texas,Oklahoma,Arkansas,Wisconsin,Illinois,Minnesota,Iowa,Missouri,Kansas,New Mexico,Arizona,Nevada,Utah,Colorado,Nebraska,South Dakota,North Dakota,Montana,Wyoming,Oregon,Idaho,Washington,Fertility,Attraction,Binding Spell Caster In South America,24 Hours Online Love Psychic Reader,Native Herbalist,Sangoma,Traditional Healer in South Africa,Canada Best Lost Love Spell Caster,Strong Medium For Gays/Lesbians Relationships,Trusted Interracial Love Marriage Healer,POWERFUL Native Incantation Love Spell Caster in UK,Europe,Australia,Faithful Islamic-Arabic Divine Love Spells In Middle East,Top Online Love Traditional Doctor In USA,The Bahamas,Trusted Traditionalist in ALL Counties,A Love Spell Caster in Poland UK,Binding Love Spell In Dubai,Bring Back Lost Love Spells In Australia,Online Magic Love Charms In Australia,Bahama Best Online Love SPELL Caster,A Powerful Voodoo Love Spell Caster In German,France,Norway,A Powerful Native Binding Spell Caster In United Kingdom,Powerful Love Doctor In Ireland,Sweden,Italy,Black Magic Spell Caster In Philippines,NEW LAND,Denmark,Sangoma In Gauteng South Africa,Spain Love Medium Psychic,Islami Arabic Divine Lost Love Medium,EX Back Spell Caster In Mauritius,A Best Bring Back Lost Love Spell Caster In The Bahamas,Saudi Arabia,Kuwait,A Love Spell Caster In South America,A powerful Traditional Healer In Caribbean."IF YOU CAN'T SEE IT,DOESN'T MEAN IT'S NOT THERE"WELCOME TO AN EXPERIENCED[19 YEARS OF SERVICE] BLACK MAGIC NATIVE TRADITIONAL HEALER, LOST LOVE SPELLS CASTER, LOVE SPELL CASTER, HEALER, HERBALIST, BINDING SPELL CASTER,MEDIUM OF LOVE,BEST ONLINE PSYCHIC READER,SANGOMA,WITCH DOCTOR [PSYCHIC- MAGGU +256783219521.
    • FAMOUS  BLACK MAGIC SPELL CASTER IN ALL USA +256783219521. +256783219521 POWERFUL BLACK MAGIC SPELLS CASTER|Witchcraft Spells Caster In USA UK AUSTRALIA CANADA NEW ZEALAND EUROPE SOUTH AFRICA SOUTH AMERICA ASIA IRELAND (USA) New York,California,Florida,Georgia,South Carolina,North Carolina,Virginia,West Virginia,Alabama,Louisiana,Mississippi,Tennessee,Kentucky,Delaware,New Jersey,Maryland,Ohio,Indiana,Michigan,Pennsylvania,Connecticut,Rhode Island,Massachusetts,New Hampshire,Vermont,Maine,Texas,Oklahoma,Arkansas,Wisconsin,Illinois,Minnesota,Iowa,Missouri,Kansas,New Mexico,Arizona,Nevada,Utah,Colorado,Nebraska,South Dakota,North Dakota,Montana,Wyoming,Oregon,Idaho,Washington,Fertility,Attraction,Binding Spell Caster In South America,24 Hours Online Love Psychic Reader,Native Herbalist,Sangoma,Traditional Healer in South Africa,Canada Best Lost Love Spell Caster,Strong Medium For Gays/Lesbians Relationships,Trusted Interracial Love Marriage Healer,POWERFUL Native Incantation Love Spell Caster in UK,Europe,Australia,Faithful Islamic-Arabic Divine Love Spells In Middle East,Top Online Love Traditional Doctor In USA,The Bahamas,Trusted Traditionalist in ALL Counties,A Love Spell Caster in Poland UK,Binding Love Spell In Dubai,Bring Back Lost Love Spells In Australia,Online Magic Love Charms In Australia,Bahama Best Online Love SPELL Caster,A Powerful Voodoo Love Spell Caster In German,France,Norway,A Powerful Native Binding Spell Caster In United Kingdom,Powerful Love Doctor In Ireland,Sweden,Italy,Black Magic Spell Caster In Philippines,NEW LAND,Denmark,Sangoma In Gauteng South Africa,Spain Love Medium Psychic,Islami Arabic Divine Lost Love Medium,EX Back Spell Caster In Mauritius,A Best Bring Back Lost Love Spell Caster In The Bahamas,Saudi Arabia,Kuwait,A Love Spell Caster In South America,A powerful Traditional Healer In Caribbean."IF YOU CAN'T SEE IT,DOESN'T MEAN IT'S NOT THERE"WELCOME TO AN EXPERIENCED[19 YEARS OF SERVICE] BLACK MAGIC NATIVE TRADITIONAL HEALER, LOST LOVE SPELLS CASTER, LOVE SPELL CASTER, HEALER, HERBALIST, BINDING SPELL CASTER,MEDIUM OF LOVE,BEST ONLINE PSYCHIC READER,SANGOMA,WITCH DOCTOR [PSYCHIC- MAGGU +256783219521.
  • Topics

×
×
  • Create New...