Welcome to the Builder Academy

Question Skill wear off messages

More
09 Apr 2021 23:13 #9818 by JTP
Replied by JTP on topic Skill wear off messages
Unfortunately it seems that I dont have the memory to do it

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

More
11 Apr 2021 20:42 #9819 by thomas
Replied by thomas on topic Skill wear off messages
I mean, in your do_meditate function, add a little debugging:

log("is_affected: %s", affected_by_spell(ch, SKILL_MEDITATE));

And similar

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

More
28 Apr 2021 22:00 #9833 by JTP
Replied by JTP on topic Skill wear off messages
I just added you skill wear off. It compiled just fine...but when my skill ran out, <i received no message :(

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

More
28 Apr 2021 22:13 #9834 by thomas
Replied by thomas on topic Skill wear off messages
I still think you need to debug. In github.com/tbamud/tbamud/blob/dceb563a9b...b6f5/src/magic.c#L71 the function affect_update(), I suggest you add a bit of temporary logging:
Code:
+ log("Wearoff: char: %s, af->spell: %d, wear_off_msg: %s", GET_NAME(i), af->spell, spell_info[af->spell].wear_off_msg); if ((af->spell > 0) && (af->spell <= MAX_SPELLS)) if (!af->next || (af->next->spell != af->spell) || (af->next->duration > 0)) if (spell_info[af->spell].wear_off_msg) send_to_char(i, "%s\r\n", spell_info[af->spell].wear_off_msg); affect_remove(i, af);
This will hopefully give you a clue.

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

More
28 Apr 2021 22:26 - 28 Apr 2021 22:28 #9836 by JTP
Replied by JTP on topic Skill wear off messages
Apr 28 16:25:41 :: Wearoff: char: Slash, af->spell: 201, wear_off_msg: You feel you have meditated all that you can now.
Last edit: 28 Apr 2021 22:28 by JTP.

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

More
28 Apr 2021 22:37 #9837 by JTP
Replied by JTP on topic Skill wear off messages
Next skill also ran out with no displayed message...but log shows:

Apr 28 16:35:41 :: Wearoff: char: Slash, af->spell: 206, wear_off_msg: The red glow fades.

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

Time to create page: 0.612 seconds