Top Mud Sites Forum Return to TopMudSites.com
Go Back   Top Mud Sites Forum > Mud Development and Administration > MUD Coding
Click here to Register

Reply
 
Thread Tools
Old 02-21-2003, 12:26 PM   #1
Keljorian
Member
 
Join Date: Apr 2002
Location: Aberdeen MD
Posts: 56
Keljorian is on a distinguished road
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?
Keljorian is offline   Reply With Quote
Old 02-21-2003, 12:42 PM   #2
Yuki
Member
 
Join Date: Jun 2002
Location: My laptop, my apt, Columbus, Ohio, USA
Posts: 42
Yuki is on a distinguished road
Send a message via ICQ to Yuki
Is this a masturbation snippet? I've never heard of it before.
Yuki is offline   Reply With Quote
Old 02-21-2003, 01:30 PM   #3
Terloch
Member
 
Join Date: Apr 2002
Location: Chicago, Illinois
Posts: 152
Terloch is on a distinguished road
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...
Terloch is offline   Reply With Quote
Old 02-22-2003, 10:01 AM   #4
Keljorian
Member
 
Join Date: Apr 2002
Location: Aberdeen MD
Posts: 56
Keljorian is on a distinguished road
Question

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.
Keljorian is offline   Reply With Quote
Old 02-22-2003, 11:04 AM   #5
DSer
Member
 
Join Date: Apr 2002
Location: Virginia
Posts: 65
DSer is on a distinguished road
Send a message via ICQ to DSer Send a message via AIM to DSer
<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]
DSer is offline   Reply With Quote
Reply


Thread Tools


Trying to find a skill - Similar Threads
Thread Thread Starter Forum Replies Last Post
SKill Systems & Exponential Growth Trevalen MUD Administration 1 04-30-2006 05:18 PM
Help me find a mud! caspin00 Newbie Help 16 09-10-2004 11:45 PM
Why can't I find a MUD like this? Luthien Advertising for Players 15 06-25-2004 04:55 PM
Got talent? Got skill? Got determination? AlazlamBL Advertising for Staff 1 11-02-2002 01:17 PM
Anyone know where I can find.... Brianna MUD Builders and Areas 4 05-31-2002 02:17 PM

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT -4. The time now is 01:13 PM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Style based on a design by Essilor
Copyright Top Mud Sites.com 2014