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 ➜ Dawn of Time ➜ Configuration ➜ Ferry

Ferry

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


Posted by Polarus   Canada  (69 posts)  Bio
Date Thu 09 Jan 2003 04:27 AM (UTC)
Message
This may sound like a dumb question, but I've never come up against it before. I need to build some sort of ferry system between a few points of land, what would be the best way to go about this?

-=Flitting from Project to Project=-
Top

Posted by Meerclar   USA  (733 posts)  Bio
Date Reply #1 on Thu 09 Jan 2003 05:44 PM (UTC)
Message
Actually, there isn't a particularly easy or pretty way to handle this if you want to actually use something similar to boats. We've been working on something for quite a while now but it's just slow and extremely ugly. My personal advice is to use mprogs to teleport players around unless the boats are absolutely essential to your mud.

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org
Top

Posted by Polarus   Canada  (69 posts)  Bio
Date Reply #2 on Thu 09 Jan 2003 07:35 PM (UTC)
Message
I will probably have to do something with boats, as one of the races in my game is vikings. I am making all changes to my code before looking for staff or doing any serious building, this enables me to make drastic changes.

-=Flitting from Project to Project=-
Top

Posted by Meerclar   USA  (733 posts)  Bio
Date Reply #3 on Thu 09 Jan 2003 08:11 PM (UTC)
Message
Hope you have a kick ass coder on retainer because the only snipet Ive seen thats capable of this has taken us almost 6 months to convert to what we want it to do.... course what really hurts is the fact that the "boats" are only minimally flexible in how they operate. All destination times are set within the code as are all of the rooms visited. I still advise finding another way if at all possible.

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org
Top

Posted by Polarus   Canada  (69 posts)  Bio
Date Reply #4 on Thu 09 Jan 2003 09:48 PM (UTC)
Message
I will probably give up on ferries and just force people to buy a boat then, or maybe rent one.

-=Flitting from Project to Project=-
Top

Posted by Cirin   USA  (19 posts)  Bio
Date Reply #5 on Tue 15 Apr 2003 10:07 PM (UTC)
Message
There are actually quite a few different ways to do this.

Here's one idea for you, that doesn't involve making it so that you have to set a starting and ending point in the actual code and it really makes boats work with flexibility.

It would take some coding as far as checking to see if they're in a boat, in water, but if you recoded it in act_move you could still use the north/south/west/east etc.. moving, while still emulating sailing.

Make it check if they're on a boat in the water, if so it would simply set a flag on the person and the boat(assuming you are making the boat be in the room) when you type a direction, such as SAILING_NORTH or SAILING_SOUTH, etc.., then what you would need is a sailing_update in update.cpp, this would go through all active boats and move them the direction of the flag until they stop the boat or until they are out of water. Doing this would allow you to emulate the speed of boats and still make it flexible enough that people could actually move themselves while in the water.

Using the above it wouldn't take too terribly long, then you could easily just write an mprog to be a ferry.

ººººººººººººººººººººººº
ºº»º¢îrìñ hëllþørñ身ºº
ººººººººººººººººººººººº
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,077 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.