![]() |
#1 |
Member
Join Date: Apr 2002
Location: Aberdeen MD
Posts: 56
![]() |
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?
|
![]() |
![]() |
![]() |
#2 |
Member
|
Is this a masturbation snippet? I've never heard of it before.
|
![]() |
![]() |
![]() |
#3 |
Member
Join Date: Apr 2002
Location: Chicago, Illinois
Posts: 152
![]() |
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... |
![]() |
![]() |
![]() |
#4 |
Member
Join Date: Apr 2002
Location: Aberdeen MD
Posts: 56
![]() |
![]() 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.
|
![]() |
![]() |
![]() |
#5 |
Member
|
<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] |
![]() |
![]() |
![]() |
![]() |
||||
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 |
|
|