Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ Programming
➜ General
➜ Another problem with merc 2.2 with high explosive
Another problem with merc 2.2 with high explosive
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Gunner
Argentina (31 posts) Bio
|
Date
| Thu 28 Aug 2014 12:01 AM (UTC) |
Message
| Hi! I have another problem with merc 2.2
the spell 'high explosive', has a bug that does not allow to start a fight using that spell.
Does not start the fight, or starts but does not hurt, as if he had sent the command to kill.
the code here , any idea to solve this problem?
I'm sorry for my f****** english :/
void spell_high_explosive( int sn, int level, CHAR_DATA *ch, void *vo )
{
CHAR_DATA *victim = (CHAR_DATA *) vo;
int dam;
int pmove;
int i;
int max;
dam = number_range( level/2, 100 );
pmove = ch->move / 10;
ch->move -= 3*pmove;
dam += 6 * pmove ;
max = ch->level*5 + 300;
if (ch->max_move > max ) ch->max_move-=10;
if ( saves_spell( level, victim ) )
dam = (dam*2)/3;
if (ch->in_room)
{
victim=ch->in_room->people;
while (victim)
{
if (victim->fighting == ch)
{
damage( ch, victim, dam, sn );
if (ch->pcdata)
{
for (i=0;i<ch->pcdata->remorts;i++)
{
if (victim->fighting)
damage( ch, victim, dam, sn );
}
}
}
victim=victim->next_in_room;
}
}
return;
}
| Top |
|
Posted by
| Fiendish
USA (2,534 posts) Bio
Global Moderator |
Date
| Reply #1 on Thu 28 Aug 2014 03:19 PM (UTC) |
Message
| Try comparing the code for that function with the code for a spell that works correctly to see what might be missing. |
https://github.com/fiendish/aardwolfclientpackage | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
9,277 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top