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 ➜ Pipes and Herbs

Pipes and Herbs

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


Posted by Kain   USA  (43 posts)  Bio
Date Sun 30 Jun 2002 05:42 PM (UTC)
Message
Hi,

I have a question about creating new herbs and using them in pipes (I haven't been able to find much documentation and am still learning Smaug 1.4)...

Anyway, I've created a new object for a pipe and created an herb object.

But when I type in fill <pipename> <herbname>, I get a message saying the pipe is already filled.
So then I try emptying and tamping the pipe but then get the same message when I try to fill it.

I looked through the smaug source code to try and get a little background about how the pipe function works, but I couldn't get a good feel for it. I've looked in the herbs.dat file and was wondering if I specifically have to enter my new herb in that file or if creating one for my area is enough?

Here is a piece of my area file:

#15201
Jade Pipe~
Jade Pipe~
A jade pipe. It is covered in elaborately carved elephants. It is more
decorative than useful.~
~
30 0 1
2 0 0 0
2 5000 500
#15202
Arcasa~
Arcasa~
Arcasa is known to cure light injuries~
~
26 0 1
3 -1 -1 16
1 10 1


Thanks for the help
Top

Posted by Kain   USA  (43 posts)  Bio
Date Reply #1 on Sun 30 Jun 2002 06:16 PM (UTC)
Message
Please ignore the code I have below for two reasons, 1. I figured it out and 2. the object I had put there was for a pill object and not an herb object.

So if anyone is curious, I'll put the correct code below maybe it will help someone out...I found a good reference at http://www.shadow-lands.com/sml/1999/msg08673.html

#15201
Jade Pipe~
Jade Pipe~
A jade pipe. It is covered in elaborately carved elephants. It is more
decorative than useful.~
~
30 0 1
2 2 0 0
2 5000 500
#15203
Wraithweed~
Wraithweed~
~
~
32 0 1
0 1 4 22
1 0 0
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.


11,630 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.