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
➜ SMAUG
➜ Running the server
➜ Smaug alignment
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Fri 25 Feb 2005 12:31 AM (UTC) |
Message
| How does the alignment work on Smaug? It seems to not work...
For example a player with 0 align kills a mob that has +500 align. The players align does not change how ever many times it kills the mob.
I looked over align_compute, but I can't really see how to change it or if I'm just setting mob aligns incorrectly.
Could someone shed some more light on this issue? |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Greven
Canada (835 posts) Bio
|
Date
| Reply #1 on Fri 25 Feb 2005 12:41 AM (UTC) |
Message
| I don't know how the SMAUG one works, but this is what I'm using on an SWRint align_compute(CHAR_DATA * gch, CHAR_DATA * victim)
{
/* never cared much for this system
int align, newalign;
align = gch->alignment - victim->alignment;
if ( align > 500 )
newalign = UMIN( gch->alignment + (align-500)/4, 1000 );
else
if ( align < -500 )
newalign = UMAX( gch->alignment + (align+500)/4, -1000 );
else
newalign = gch->alignment - (int) (gch->alignment / 4);
return newalign;
make it simple instead */
return URANGE(-1000,
(int) (gch->alignment - victim->alignment / 5), 1000);
}
Simply subtracts the victims align from yours. |
Nobody ever expects the spanish inquisition!
darkwarriors.net:4848
http://darkwarriors.net | 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,053 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top