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 ➜ Running the server ➜ Flagged zones

Flagged zones

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


Posted by Malti   USA  (55 posts)  Bio
Date Tue 25 Apr 2006 04:39 AM (UTC)
Message
I am curious how you add quest flagging for zones. For example, when you complete Quest A, you get flagged so you can enter Plane A. I am hoping there is a way to do this without changing much if any code.
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #1 on Tue 25 Apr 2006 04:42 AM (UTC)
Message
There's really no way to do this without adding code.

Look into the qbit/abit snippet, that may be what you'd need.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Samryn   United Kingdom  (60 posts)  Bio
Date Reply #2 on Mon 02 Jul 2007 12:14 AM (UTC)
Message
I've been searching for this qbit/abit snippet and haven't had any luck. Does anyone know where i can get it from?

Thanks!

Samryn Medri
Top

Posted by Samson   USA  (683 posts)  Bio
Date Reply #3 on Mon 02 Jul 2007 04:20 AM (UTC)
Message
http://www.mudbytes.net/index.php?a=files&s=viewfile&fid=962

I just added it there after realizing it didn't exist anywhere that I could find.
Top

Posted by Samryn   United Kingdom  (60 posts)  Bio
Date Reply #4 on Mon 02 Jul 2007 08:41 PM (UTC)
Message
Cheers Samson, i was lookin on AFKmud site as i thought i saw them there but didn't =( but thanks again!

Samryn Medri
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #5 on Mon 02 Jul 2007 08:43 PM (UTC)
Message
Oh, and Malti. You could do something, I suppose.

Example: Reward the player an item for completing Quest A. When you try to enter Plane A, have a prog that checks if the player has the item or not. Crude, yes. But it doesn't require any coding.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Samryn   United Kingdom  (60 posts)  Bio
Date Reply #6 on Tue 03 Jul 2007 12:12 AM (UTC)
Message
Hmmm, with this snippet everything seems to work alright until you get to doing the ifcheck.

Log: [*****] BUG: hasabit: bad abit number, Room #1200.


>entry_prog 100
if hasabit($n) == 1
   mea $n Oh wow, this does work!
else
   mea $n seems you dont have the abit... let me set it for you.
   mpaset $n 1
endif


ABIT: 1
This is just me testing it out, was wondering it it can hold a string description =)

Any idea's why it could be causing that? Here is the code for "If hasabit".


      if( !str_cmp( chck, "hasabit" ) )
      {
         int number;

         if( is_number( rval ) )
         {
            number = atoi( rval );

            if( get_abit( chkchar, number ) == NULL )
               return mprog_veval( 0, opr, 1, mob );
            else
               return mprog_veval( 1, opr, 1, mob );
         }
         progbug( "hasabit: bad abit number", mob );
         return BERR;
      }


Thanks =)

Samryn Medri
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,608 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.