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, Yandex, DotBot, Yahoo!

Members: 0
Guests: 5
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 » SmaugFUSS » Showing DMG dealt/recieved an...
Forum Rules | Mark all | Recent Posts

Showing DMG dealt/recieved and a bit on Items
< Newer Topic :: Older Topic > Learning C

Pages:<< prev 1 next >>
Post is unread #1 Feb 26, 2010, 3:40 am   Last edited Feb 26, 2010, 5:43 am by unrivaledneo
Go to the top of the page
Go to the bottom of the page

unrivaledneo
Fledgling
GroupMembers
Posts10
JoinedFeb 18, 2010

I wanted to change show DMG during combat, How much you deal/Receive during a fight,

Also Trying to look into equipment slots, instead of just showing what slots you have equip maybe show all the slots and if nothin is equipped in that slot just have like Empty/Nothin next to it so it can show the player what slots he has open to him.

{EDIT}
Another thing I been wondering, is where can I find all "script" for how a player starts. EX: Starting Location, starting VNUM etc etc. By default the player starts off at the academy at lvl 2 Already, I wanna change that up a bit. Even wanna change the max lvl of player(I know like lvl 65 ar IMMs)
So that way maybe they can reach up to lvl 200 even without becoming a IMM
       
Post is unread #2 Feb 26, 2010, 8:46 am   Last edited Feb 26, 2010, 8:55 am by dbna2
Go to the top of the page
Go to the bottom of the page

dbna2
Sorcerer
GroupMembers
Posts600
JoinedDec 2, 2008


1: I don't the know the answer too

2: The last part is found in nanny.c or comm.c depending on which version you are using. Vnum Defines are most likely in mud.h

3: As for equipment Try this: Note I did not code this, but simply pulled it out of the codebase I am using.

void do_equipment( CHAR_DATA * ch, char *argument ) 
{
   OBJ_DATA * obj;
   int iWear;
   bool slotOccupied;

   set_char_color( AT_RED, ch );
   send_to_char( "\n\rYou are using:\n\r&w", ch );
   send_to_char( "\n\r&w-----------------------------------------------------------\n\r", ch );

   
   for( iWear = 0; iWear < MAX_WEAR; iWear++ )    
   {
       slotOccupied = FALSE;
        
		if( (!IS_NPC(ch)) && (ch->race>0) && (ch->race<MAX_PC_RACE))
         send_to_char( where_name[iWear], ch );
        else
         send_to_char( where_name[iWear], ch );

      for( obj = ch->first_carrying; obj; obj = obj->next_content )      
      {
        if( obj->wear_loc == iWear )        
        {
          if( slotOccupied )          
          {
            send_to_char( "                     ", ch );
          }
         
		 if ( can_see_obj( ch, obj ) )
		 {
		   send_to_char( format_obj_to_char( obj, ch, TRUE ), ch );
		   
          //Displays the armor rating... Currently using v4 and v5
		   if( obj->item_type == ITEM_ARMOR )
            ch_printf_color( ch, " &z[&w%d&z/&W%d&z]", obj->value[4], obj->value[5] );
		    send_to_char( "&D\n\r", ch );
		    
		}
        else
		  send_to_char( "&W(&zsomething&W)&D\n\r", ch );
          slotOccupied = TRUE;
        } 
      }
      if( !slotOccupied )      
      {
	   send_to_char("&R(&rnothing!&R)&D\n\r",  ch);
      }
	  
    return;
}


I fixed the code above up a bit, Also if you are using of smaug that under g++ you will need to change
void do_equipment( CHAR_DATA * ch, char *argument ) 

to:
void do_equipment( CHAR_DATA * ch, const char *argument ) 

       
Pages:<< prev 1 next >>