Making Vendors Sell Rejuvenation Potions

Post here about all aspects of D2 mod making whether it's information, problems or whatever. Please specify whether your post is relating to Classic D2 or the Expansion.

Moderator: Nizari

Post Reply
User avatar
RyanFialcowitz
Junior Member
Paladin
Posts: 100
Joined: Fri Jan 19, 2007 8:15 pm
Location: Santa Ana, California

Making Vendors Sell Rejuvenation Potions

Post by RyanFialcowitz » Fri Jul 10, 2009 5:55 pm

I want vendors to sell rejuvenation potions in Nightmare and Hell rather then health and mana potions. I can do this via the Nightmare and Hell upgrade columns in Misc.txt- however doing this causes them to be bought rather then permantly staying in the vendors inventory. Spawnable, PermItem and Multibuy have all been checked and yet the potions won't permantly stay in the vendor's inventory. Any ideas?

-Ryan P. Fialcowitz

User avatar
marhawkman
Retired staff
Angel
Posts: 698
Joined: Thu May 13, 2004 2:21 am
Location: CO

Re: Making Vendors Sell Rejuvenation Potions

Post by marhawkman » Fri Jul 10, 2009 6:42 pm

Upgrade is intended for adding weapon types. Those are obviously not perm items. It's probably being caused by a mismatch between the code flags. It's probably coded for the upgrade flag to cause the perm flag to be ignored. hmm... it probably only spawns one thus causing you to need to leave town to spawn another. You could fix that by changing the number it spawns. That page doesn't usually have much stuff on it, thus there should be enough room to tell it to spawn 8-12 of them.
Currently working on making an Andariel Player character.
Status of my Mod: Assimilated

User avatar
RyanFialcowitz
Junior Member
Paladin
Posts: 100
Joined: Fri Jan 19, 2007 8:15 pm
Location: Santa Ana, California

Post by RyanFialcowitz » Fri Jul 10, 2009 6:45 pm

The upgrade field is what what causes Super Health/Mana potions to be sold. Neither are included in ANY of the vendors inventories.

-Ryan P. Fialcowitz

User avatar
marhawkman
Retired staff
Angel
Posts: 698
Joined: Thu May 13, 2004 2:21 am
Location: CO

Post by marhawkman » Fri Jul 10, 2009 6:49 pm

hmm... did you try copying the code used for them?
Currently working on making an Andariel Player character.
Status of my Mod: Assimilated

User avatar
RyanFialcowitz
Junior Member
Paladin
Posts: 100
Joined: Fri Jan 19, 2007 8:15 pm
Location: Santa Ana, California

Post by RyanFialcowitz » Fri Jul 10, 2009 6:51 pm

None of the code is different aside from the obvious item effects and the fields I listed above.

-Ryan P. Fialcowitz

User avatar
marhawkman
Retired staff
Angel
Posts: 698
Joined: Thu May 13, 2004 2:21 am
Location: CO

Post by marhawkman » Fri Jul 10, 2009 6:54 pm

hmm... well, that does make for a strange quandry. did you look at both the items themselves and the vendor inventory data?
Currently working on making an Andariel Player character.
Status of my Mod: Assimilated

User avatar
RyanFialcowitz
Junior Member
Paladin
Posts: 100
Joined: Fri Jan 19, 2007 8:15 pm
Location: Santa Ana, California

Post by RyanFialcowitz » Fri Jul 10, 2009 7:00 pm

As I said Super Potions are not naturally sold by vendors. They only appear because other potions have them listed as their upgrade item. In this case one may buy as many as they like from the vendor as the item itself never leaves the vendors's inventory. If, however, the exact same process is done with the purple potions the move to the player's inventory rather then staying with the vendor. I don't see why it would work with one and not the other.

Looking through misc.txt does not provide any hint of what the problem might be and I've tried the fields that might make a difference to no avail.

-Ryan P. Fialcowitz

User avatar
marhawkman
Retired staff
Angel
Posts: 698
Joined: Thu May 13, 2004 2:21 am
Location: CO

Re: Making Vendors Sell Rejuvenation Potions

Post by marhawkman » Fri Jul 10, 2009 7:45 pm

The only remaining thing I can think of is: what upgrades to become a rejuvenation potion?
Currently working on making an Andariel Player character.
Status of my Mod: Assimilated

User avatar
Necrolis
Senior Admin
Throne
Posts: 9125
Joined: Sat Mar 25, 2006 1:22 pm
Location: The Land of the Dead
Contact:
South Africa

Hand-picked

Post by Necrolis » Fri Jul 10, 2009 9:19 pm

Make sure the rejuv pots are marked as perm store and multibuy, as the vendoring code doesn't care about the properties of the item it was upgrade from
Image
Netiquette, Do you USE it?!?! | Nefarius' Fixed TXT Files | Terms Of Service
Blackened | Day of Death | D2GFEx
"What was yours is mine. Your land, your people, and now your life." - Lim-Dul, the Necromancer
Judgement is Final, Death is Eternal

User avatar
RyanFialcowitz
Junior Member
Paladin
Posts: 100
Joined: Fri Jan 19, 2007 8:15 pm
Location: Santa Ana, California

Re: Making Vendors Sell Rejuvenation Potions

Post by RyanFialcowitz » Fri Jul 10, 2009 9:36 pm

[quote=RyanFialcowitz";p="419928"]Spawnable, PermItem and Multibuy have all been checked[/quote]

-Ryan P. Fialcowitz
Last edited by RyanFialcowitz on Fri Jul 10, 2009 9:37 pm, edited 1 time in total.

User avatar
marhawkman
Retired staff
Angel
Posts: 698
Joined: Thu May 13, 2004 2:21 am
Location: CO

Post by marhawkman » Sat Jul 11, 2009 7:37 pm

[quote=Necrolis";p="419945"]Make sure the rejuv pots are marked as perm store and multibuy, as the vendoring code doesn't care about the properties of the item it was upgrade from[/quote]Right, but doesn't it need the "upgrade from" item to exist in the vendor's inventory?
Currently working on making an Andariel Player character.
Status of my Mod: Assimilated

User avatar
RyanFialcowitz
Junior Member
Paladin
Posts: 100
Joined: Fri Jan 19, 2007 8:15 pm
Location: Santa Ana, California

Post by RyanFialcowitz » Sat Jul 11, 2009 8:50 pm

No, you can assign anything to a vendor's inventory. But to keep the purple's from showing up in Normal Difficulty you have to use the two upgrade fields. The only solution to this problem I can think of is to make the vendors sell more then one of each potion so that when they get upgraded in later difficulties there would be more then one purple potion.

-Ryan P. Fialcowitz
Last edited by RyanFialcowitz on Sat Jul 11, 2009 8:53 pm, edited 1 time in total.

User avatar
sudkamp
Posts: 58
Joined: Fri May 29, 2009 7:50 am

Re: Making Vendors Sell Rejuvenation Potions

Post by sudkamp » Tue Jul 14, 2009 3:15 pm

I am also curious what your solution was?

User avatar
RyanFialcowitz
Junior Member
Paladin
Posts: 100
Joined: Fri Jan 19, 2007 8:15 pm
Location: Santa Ana, California

Post by RyanFialcowitz » Tue Jul 14, 2009 3:48 pm

[quote=RyanFialcowitz";p="420017"]The only solution to this problem I can think of is to make the vendors sell more then one of each potion so that when they get upgraded in later difficulties there would be more then one purple potion.

-Ryan P. Fialcowitz[/quote]

User avatar
bmack11
Posts: 3
Joined: Sat Apr 29, 2006 1:38 am

Re: Making Vendors Sell Rejuvenation Potions

Post by bmack11 » Mon Jan 30, 2017 11:31 pm

Not sure if anyone is still looking for this but this works on 1.13 and 1.14

create <pathToGame>\data\global\excel
extract the misc.txt from PATCH_D2.mpq to there

Edit misc.txt and update
Full Rejuv Potion
spawnable = 1
Akara Min = 1
Akara Max = 1
Lysander Min = 1
Lyasnder Max = 1
Ormus Min = 1
Ormus Max = 1
Mala Min = 1
Mala Max = 1
Jamella Min = 1
Jamella Max = 1
Permstore Item = 1

Then update the target on the short cut to run with "<pathToGame>\Diablo II.exe" -direct -txt

User avatar
gogodanny
Forum Legend
Arch-Angel
Posts: 1243
Joined: Mon Nov 06, 2006 2:14 am
Location: Graz, Austria

Re: Making Vendors Sell Rejuvenation Potions

Post by gogodanny » Tue Jan 31, 2017 12:15 pm

nice necro-ing but this one was definitely worth it. Good job
only 2 things are infinite - the universe and human stupidity ... although i'm not sure yet about the universe (c) Albert Einstein
http://miyoshino.la.coocan.jp/eswiki/?p ... hot051.jpg (WOW)

Post Reply

Return to “General Mod Making”