Welcome to the Builder Academy

Question Age question - Down side to using a spell

More
16 May 2017 02:10 #6739 by JTP
Hey

Just tried making an item with +1 age.

That worked just fine. Age 47 without the item, 48 with the item. And removed it and was again 47.

Hmm

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

More
18 May 2017 20:51 #6746 by JTP
Any new ideas to make this ?

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

More
20 May 2017 14:03 #6750 by Parnassus
As a builder, not a coder, I don't have a clue. However, the reason I suggested it is that somewhere in the code, there should be a section that deals with how to handle the applies. From there, I'd think you could get an idea of what to do to make the affect permanent.

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

More
21 May 2017 00:03 - 21 May 2017 00:03 #6755 by thomas

JTP wrote: if (!IS_NPC(victim))
victim->player.time.birth -= 1;


Age didnt change when casting haste on a player :/


because player.time.birth is in seconds. Try this:
Code:
victim->player.time.birth -= (1 * SECS_PER_MUD_YEAR);
Last edit: 21 May 2017 00:03 by thomas. Reason: typo
The following user(s) said Thank You: JTP

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

More
22 May 2017 13:10 #6764 by JTP
That worked like a charm,,,Thanks Thomas

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

Time to create page: 0.440 seconds