Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ Area Editor ➜ General ➜ Item level in shops

Item level in shops

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Zanoff   (6 posts)  Bio
Date Sat 01 Dec 2001 06:47 AM (UTC)
Message
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
Top

Posted by Zanoff   (6 posts)  Bio
Date Reply #1 on Sat 01 Dec 2001 08:55 AM (UTC)
Message
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
Top

Posted by Zanoff   (6 posts)  Bio
Date Reply #2 on Sat 01 Dec 2001 09:10 AM (UTC)
Message
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
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #3 on Sat 01 Dec 2001 09:17 AM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Mademoiselle   Australia  (35 posts)  Bio
Date Reply #4 on Sun 02 Dec 2001 08:28 AM (UTC)
Message
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.
Top

Posted by Zanoff   (6 posts)  Bio
Date Reply #5 on Mon 03 Dec 2001 (UTC)
Message
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
Top

Posted by Zanoff   (6 posts)  Bio
Date Reply #6 on Mon 03 Dec 2001 04:27 AM (UTC)
Message
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
Top

Posted by GenmaC   (22 posts)  Bio
Date Reply #7 on Wed 20 Feb 2002 10:53 PM (UTC)
Message
I found a fix (more like a shortcut) and posted it here:
http://dualtranslations.org/smaug/shopitem_fix.html
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


22,480 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.