Top Mud Sites Forum

Top Mud Sites Forum (http://www.topmudsites.com/forums/index.php)
-   MUD Coding (http://www.topmudsites.com/forums/forumdisplay.php?f=9)
-   -   Trying to find a skill (http://www.topmudsites.com/forums/showthread.php?t=471)

Keljorian 02-21-2003 12:26 PM

I know somewhere out there in the wide world of the internet there is a code snippet for rub. There's only one problem, it's too big of a place to search so I have come to you guys asking if anyones got a snippet of rub can you let me know?

Yuki 02-21-2003 12:42 PM

Is this a masturbation snippet? I've never heard of it before.

Terloch 02-21-2003 01:30 PM

I must admit, I had the same initial reaction as Yuki...heh

What codebase is the snippet for, what does it do, etc.

Give us something to work with and maybe someone can help you...

Keljorian 02-22-2003 10:01 AM

It's a RoT skill that cures firebreath; I have also heard of it called eyerub. My players have been complaining because firebreath is a pain in the butt and I gotta admit it is. So to make them a bit happy I decided to put it in yet I just can't fid it anywhere.

DSer 02-22-2003 11:04 AM

<font = "arial">
[code] //************************************************** **********************
// RUB SKILL (Rub your eyes clean.) **************************************
// Used with permission from Devil's Silence MUD (dsmud.com 5000) ********
//************************************************** **********************
void do_rub( CHAR_DATA *ch, char *argument )
{
   char arg[INPUTLEN];
   int chance, dex;

   if( (chance = get_skill(ch,gsn_rub)) < 1 )
   {
               send_to_char("You don't know the first thing about rubbing your eyes out!\n\r",ch);
               return;
   }

   one_argument(argument, arg);

       if( IS_AFFECTED(ch,AFF_BLIND))
       {
                       if( !is_affected(ch, skill_lookup("fire breath")) &&
                       !is_affected(ch, skill_lookup("dirt kicking")))                {
                       send_to_char("Rubbing your eyes won't help that!\n\r",ch);
                       return;
               }
       }
       else
       {
               send_to_char("But you aren't blinded!\n\r",ch);
               return;
       }
   
   if( ch->stunned)
   {
       send_to_char("You're still a little woozy.\n\r",ch);
       return;
   }
               
       //*** Calculate chance of success.
       chance /= 2;
               
       if( (dex = get_curr_stat(ch,STAT_DEX)) > 15)
               chance += dex - 15;
       else
               chance -= UMIN(5, dex-15);
               
       if( IS_AFFECTED(ch,AFF_HASTE))
               chance += 10;

       if( IS_AFFECTED(ch,AFF_SLOW))
               chance -= 5;

       if( chance < 0)
               chance = 0;
   
       if( number_percent() < chance )
   {
               send_to_char("{rYou cleared your eyes!{0\n\r",ch);
       act("{k$n rubbed $s eyes clear!{x",ch,NULL,NULL,TO_ROOM);                
       if( is_affected(ch, skill_lookup("fire breath")))
         affect_strip(ch, skill_lookup("fire breath"));
       if( is_affected(ch, skill_lookup("dirt kicking")))
         affect_strip(ch, skill_lookup("dirt kicking"));
                   
                       
       check_improve(ch,gsn_rub,TRUE,2);
       WAIT_STATE(ch,skill_table[gsn_rub].beats);
   }
   else
   {
               send_to_char("{RYou failed to rub your eyes clear!{0\n\r",ch);
       check_improve(ch,gsn_rub,FALSE,2);
       WAIT_STATE(ch,skill_table[gsn_rub].beats);
   }
}

[/quote]


All times are GMT -4. The time now is 03:34 PM.

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright Top Mud Sites.com 2022