Starting equipment

Posted by Akula on Mon 25 Feb 2002 10:15 PM — 3 posts, 15,232 views.

#0
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
Australia Forum Administrator #1
Please post the code you added, and the exact error message.
#2
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.