Welcome to the Builder Academy

Question Berserk skill question

More
04 May 2016 11:00 #5826 by JTP
Berserk skill question was created by JTP
Hey

I made this kinda cool berserk skill. When people go berserk they cant flee or rescue. When mob dies player cools down again.

But autoflee with wimpy still works. Any way i could toggle off wimpy when people go berserk, and toggle it on again when they cool down ?

Please Log in or Create an account to join the conversation.

More
04 May 2016 12:49 #5827 by rudeboyrave
Replied by rudeboyrave on topic Berserk skill question
Make an aff flag and affect the player with it after he goes berserk. then after he cools down remove it.

add the check to wimpy to see if the player is aff_flagged and if he is prevent the wimpy.

this should work in theory!

CyberASSAULT
www.cyberassault.org
cyberassault.org 11111
A post-apocalyptic, sci-fi MUD.

Please Log in or Create an account to join the conversation.

More
04 May 2016 13:08 #5828 by JTP
Replied by JTP on topic Berserk skill question
Already have the aff flag set.

Guess this is the place i would have to add something ?
Code:
Fight.c if (GET_HIT(victim) < (GET_MAX_HIT(victim) / 4)) { send_to_char(victim, "%sYou wish that your wounds would stop BLEEDING so much!%s\r\n", CCRED(victim, C_SPR), CCNRM(victim, C_SPR)); if (ch != victim && MOB_FLAGGED(victim, MOB_WIMPY)) do_flee(victim, NULL, 0, 0); } if (!IS_NPC(victim) && GET_WIMP_LEV(victim) && (victim != ch) && GET_HIT(victim) < GET_WIMP_LEV(victim) && GET_HIT(victim) > 0) { send_to_char(victim, "You wimp out, and attempt to flee!\r\n"); do_flee(victim, NULL, 0, 0); } break; }

Please Log in or Create an account to join the conversation.

More
04 May 2016 16:47 - 04 May 2016 16:48 #5829 by rudeboyrave
Replied by rudeboyrave on topic Berserk skill question
Code:
if (GET_HIT(victim) < (GET_MAX_HIT(victim) / 4)) { send_to_char(victim, "%sYou wish that your wounds would stop BLEEDING so much!%s\r\n", CCRED(victim, C_SPR), CCNRM(victim, C_SPR)); if (ch != victim && MOB_FLAGGED(victim, MOB_WIMPY)) do_flee(victim, NULL, 0, 0); } if (!IS_NPC(victim) && GET_WIMP_LEV(victim) && (victim != ch) && GET_HIT(victim) < GET_WIMP_LEV(victim) && GET_HIT(victim) > 0) && !AFF_FLAGGED(victim, AFF_BERSERK) { send_to_char(victim, "You wimp out, and attempt to flee!\r\n"); do_flee(victim, NULL, 0, 0); } break; }

maybe this

CyberASSAULT
www.cyberassault.org
cyberassault.org 11111
A post-apocalyptic, sci-fi MUD.
Last edit: 04 May 2016 16:48 by rudeboyrave.

Please Log in or Create an account to join the conversation.

More
04 May 2016 21:45 #5830 by JTP
Replied by JTP on topic Berserk skill question
Already wrote that :)

Just need to find out what and where to type it

Please Log in or Create an account to join the conversation.

More
04 May 2016 21:59 #5831 by rudeboyrave
Replied by rudeboyrave on topic Berserk skill question
its changed code. look at the place i added the aff check

CyberASSAULT
www.cyberassault.org
cyberassault.org 11111
A post-apocalyptic, sci-fi MUD.

Please Log in or Create an account to join the conversation.

Time to create page: 0.195 seconds