Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
auth_update crash
Dec 23, 2017, 10:15 pm
By Remcon
check_tumble
Dec 18, 2017, 7:21 pm
By Remcon
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Yahoo!, Yandex

Members: 0
Guests: 18
Stats
Files
Topics
Posts
Members
Newest Member
478
3,708
19,242
612
Jacki72H
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » AFKMud Support & Development » Cast... bard
Forum Rules | Mark all | Recent Posts

Cast... bard
< Newer Topic :: Older Topic > Huh?

Pages:<< prev 1 next >>
Post is unread #1 May 21, 2005, 5:09 am   Last edited May 21, 2005, 5:10 am by Txzeenath
Go to the top of the page
Go to the bottom of the page

Txzeenath
Apprentice
GroupMembers
Posts86
JoinedJul 24, 2004

Not sure if this was intentional.. but in do_play it requires an instrument.. while in do_cast it doesn't check for this... i'm not quite sure if this was intentional or not, I just know if I was a bard... I'd never use the play command :-p.

If you want to restrict do_cast to also require bards to use an intrument, simply find:

   retcode = rNONE;

   switch ( ch->substate )
   {
      default:
         /*
          * no ordering charmed mobs to cast spells
          */



and under it place this:

if (ch->Class == CLASS_BARD)
{
   for( obj = ch->first_carrying; obj != NULL; obj = obj_next )
   {
      obj_next = obj->next_content;

      if( obj->item_type == ITEM_INSTRUMENT && obj->wear_loc == WEAR_HOLD )
      {
         found = TRUE;
         break;
      }
   }

   if( !found )
   {
      send_to_char( "You are not holding an instrument!\n\r", ch );
      return;
   }
}



Than in the declarations find OBJ_DATA *obj, add obj_next to it, and add: bool found = FALSE; to the list.



Once again.. i'm not sure on the intentions of the coding being this way, so don't yell at me if there's some secret behind this :-P
       
Post is unread #2 May 21, 2005, 6:03 am
Go to the top of the page
Go to the bottom of the page

Conner
Sorcerer
GroupMembers
Posts870
JoinedMay 8, 2005

Txzeenath said:

If you want to restrict do_cast to also require bards to use an intrument...


You could, alternatively, just use the online editor (it's sset in FUSS) to assign a required vnum (or group of vnums) for the spells in question as well. Though I suppose your way is better if you're trying to restrict all bardic casting to require a musical instrument...

Txzeenath said:

Once again.. i'm not sure on the intentions of the coding being this way, so don't yell at me if there's some secret behind this :-P


Perhaps some spells Bards can cast without playing a note and some require their musical talents.
       
Pages:<< prev 1 next >>