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 ➜ SMAUG ➜ SMAUG coding ➜ Starting equipment

Starting equipment

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


Posted by Akula   (24 posts)  Bio
Date Mon 25 Feb 2002 10:15 PM (UTC)
Message
I found the part where it gives new players items (the adventurers guide), and was able to replace it with a dagger, but when I tried copying those lines of code and changing the VNUM to the other item it gave me an error, what should I add to give new players a second item?
And also, how can I make a player start off with 20 gold coins?

Thanks,
Akula
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Tue 26 Feb 2002 11:49 AM (UTC)
Message
Please post the code you added, and the exact error message.

- Nick Gammon

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

Posted by Tyr   (2 posts)  Bio
Date Reply #2 on Mon 22 Jul 2002 04:06 PM (UTC)

Amended on Mon 22 Jul 2002 04:08 PM (UTC) by Tyr

Message
I've been playing around with room_progs to give basic eq to a person. I have it load the weapon for their class and some sub level equipment....something like this

If IMMORT($n)
   say Welcome Holy One.
ENDIF
If LEVEL($n) == 1
   IF CLASS($n) == mage
      mpoload 101
      mpoload 105
      mpoload 106
      mpoload 107
      mpoload 199
      give dagger $n
      give cloak $n
      give hat $n
      give shoes $n
      mpforce $n wear all
      mpadvance $n 2
    ENDIF
    IF CLASS($n) == warrior
      mpoload 101
      mpoload 108
      mpoload 109
      mpoload 110
      mpoload 199
      give sword $n
      give shield $n
      give vest $n
      give boots $n
      mpforce $n wear all
      mpadvance $n 2
    ENDIF
ENDIF


199 is a gold pile of 25 coins. Playing around with the idea of adjusting the starting level to 0, that way all newbies would start out as level One. Just set the prog as an entry_prog in the starting room of your choice. Not the pop room, but a room they would enter first thing.
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.


14,536 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.