[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  Several problems

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Several problems

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Edgeofforever   (25 posts)  [Biography] bio
Date Thu 28 Oct 2004 03:39 PM (UTC)  quote  ]
Message
I am having several problems with my smaug code modifications and also a perhaps simpler problem.

1: How would I create a random prog that selects a character at random from a room and then transes them? I tried:

if isGood($r)
mptrans $n <roomnum>
endif

and that didnt work. I assumed that if I replace the $n with a second $r, it would randomly select a second character to trans instead of the first.


2: I am getting a continuing error, random in occurence it seems, but the windows debuggers tells me it is always one of a few lines of code designed to replace normal descriptions etc with morph descriptons. ie:

if (victim->morph != NULL && victim->morph->morph != NULL)

and the same in several other places.

3: My third difficult comes with adding of new wearlocations. I added:

{
"2", "d", 16, 39, "%1.1s", NULL, STRING, 1, "oset %s wear tattoo"
},
{
"2", "d", 16, 64, "%1.1s", NULL, STRING, 1, "oset %s wear orbit"
},

and changed the "2", "d", 16, 64, in the wearloc before that to "2", "d", 16, 24.

all to obj_page_e_data[] in ibuild.c

This has seriously messed up my object making, completely disabling prototype use and various other problems. I would really appriciate help on this.
[Go to top] top

Posted by Zeno   USA  (2,867 posts)  [Biography] bio   Moderator
Date Reply #1 on Thu 28 Oct 2004 03:57 PM (UTC)  quote  ]
Message
First problem, just use $r again. I'm pretty sure it uses the same char again throughout that prog.

Not sure about new wear place, I've never changed it. Wait for another person to help you out, while I look it over.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Robert Powell   Australia  (349 posts)  [Biography] bio
Date Reply #2 on Thu 28 Oct 2004 10:23 PM (UTC)  quote  ]
Message
There is a thread reciently about wear location problems, there are like 5 different places that you need to add the new wear loc into, take a look at http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=4338&page=1
without reading it all again im pretty sure all the spots were talked about in there.

EldhaMUD Game Developments
The_Fury: Lead Developer, Head Coder
http://fury.eldhamud2.org
[Go to top] top

Posted by Edgeofforever   (25 posts)  [Biography] bio
Date Reply #3 on Thu 28 Oct 2004 11:11 PM (UTC)  quote  ]
Message
Thank you for the input, both of you. The first problem is solved, however the link to adding the new wearloc is not working, because it shows nothing about the page data in ibuild.c. The data that is messing up is the problem with the actual online building with 'oset' and the like. I believe the actual text editing works fine and the wearlocs are ok, its just the building interface that is not working.
[Go to top] top

Posted by Edgeofforever   (25 posts)  [Biography] bio
Date Reply #4 on Fri 29 Oct 2004 04:30 AM (UTC)  quote  ]
Message
Well, I've changed some things and now it seems to be working fine... except for the fact that whenever I make a new object it comes up as being flags "haste" instead of prototype... I have no idea why this is.
[Go to top] top

Posted by Mirrodan   USA  (28 posts)  [Biography] bio
Date Reply #5 on Fri 29 Oct 2004 09:09 AM (UTC)  quote  ]
Message
make sure when you add flags and wear locs that they're in the exact same order every where you add them other wise it's going to throw it off a tadd...


Admin and Head Coder
For Techno-Magicka
techno-magicka.dreasphere.org 4000
AIM: tchnmgck
MSN: newell_everett@hotmail.com
YAHOO: everettnewell
[Go to top] top

Posted by Edgeofforever   (25 posts)  [Biography] bio
Date Reply #6 on Fri 29 Oct 2004 01:29 PM (UTC)  quote  ]
Message
I checked the order of things, and it turns out I added a bunch of anitflags before the prototype flag which screwed up the order and gave me the problem. All sorted out now, thanks for all the help everyone.
[Go to top] 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.


2,045 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]