Re: First Post: Tons of questions.

From: Angus Mezick (angus@EDGIL.CCMAIL.COMPUSERVE.COM)
Date: 09/21/98


1) Stop thinking like a player.  You have to think about what data you have
(point A) and what data you want (point B).
2) You need to create and ITEM_TICKET in structs.h (don't forget to add the
keyword for it in constants.c) that will say that this item is a TICKET.
3) We are going to force the char to hold the ticket, so they don't use the
wrong one.

I am assuming you have gotten to the point where the flight attendant knows who
wants to fly.  If so, you have a (struct char_data *)ch that points the the
person traveling.  Now,

struct obj_data *obj;

if(CMD_IS("board"))
{
   obj=GET_EQ(ch,WEAR_HOLD);
   if(obj && (GET_OBJ_TYPE(obj)==ITEM_TICKET) && (GET_OBJ_COST(obj) >
flight_cost))
      move_the_char;
   else
      send_to_char("But you don't have the right ticket.",ch);
   return TRUE;
}
return FALSE;



You will have to do some clean up but this is the basics.
--Angus
______________________________ Reply Separator _________________________________
Subject:  First Post: Tons of questions.
Author:  INTERNET:CIRCLE@POST.QUEENSU.CA at CSERVE
Date:    9/21/98 2:52 PM

*if you get this message twice, very sorry it's my mail server but I
will be switching soon
hope fully*
Actually many of my questions I've already answered but I think I will
need assistance on a couple.
 I am a newbie to having my own mud (about 1 week with it).
The first things is a spec proc on a mob.
I am deisgning an airport function in my mud. What I plan to do is have
a counter there and a airline attendant. You can buy a Class A, Class B
or Class C ticket. Each will have a aproximate value. Then there will be
a list of places you can fly to, each with a cost.
If the value of the ticket is = or greater than the destination the
flight attendant will let you through. but the problem I have is once
the player has the class[b,c, or a] ticket how will the flight attendant
get it from him and how will she give it back if it is not a valid
ticket.
I was thinking of using the "give" function, but it seems as if it could
have some problems with loss of  the ticket. I am open to all
suggestions, thank you.
Matt

P.S. Does anyone know how to get patches working for dos/win 95. I've
had no luck at all and I've checked all the docs.


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST