Item level in shops

Posted by Zanoff on Sat 01 Dec 2001 06:47 AM — 8 posts, 30,866 views.

#0
Is there a way to set the level of the items in the shops. I wanted to make a newbie shop for newbie items that people level 1 could buy, but instead my items are displayed as lvl 5+ and people can't buy them.

Thanks,
Zanoff
#1
Btw, Im using the updated 1.4a with the save fix. And there is no src folder with those cpp files to modify. I read on the SMAUG board about a solution, but I don't see how I can do that with the verison I have now.

Zanoff
#2
Also, once again :)

If there isnt a way to fix this, how would I be able to give each player a set of armor and a weapon to last them to lvl 5 upon creation of thier character.

Therefore they can use those items they were "born" with till they are high enough level to buy other items.

Zanoff
Australia Forum Administrator #3
I think newbies are equipped with the stuff given to them in function do_newbieset in act_wiz.c.

You could modify that to equip them with more items.
Australia #4
If I recall correctly, the level of items in shops is determined by the stats on those items. Lower the stats, and lower players should be able to buy them.
#5
I could have a item such as a sword, doing 1d2 damage, its condition practically worthless, cost at 1gp. Yet, the item is still listed as a lvl 5 sword. What other stats can I change?


Zanoff
#6
After many hours of reading and researching. I came to a solution to solve my problem with newbie items starting at level 5.

I have found out that if you declare the item as a weapon, no matter what the stats are, the item will be at the lowest level 5. So to fix that all I did was not declare the item type. (Using area editor it would be Type: (none), and manually it would be 0). This sets the item level to 0.

This was the easiest solution for me, since Im not much of the programmer, yet.


Zanoff
#7
I found a fix (more like a shortcut) and posted it here:
http://dualtranslations.org/smaug/shopitem_fix.html