Commit Graph
12 Commits
Author SHA1 Message Date
Light c990690726 Implemented PvP Zones 2014-05-18 00:40:45 +02:00
Treeku dba74a6ebc Fixed calculatePvpStatus 2014-05-03 15:32:07 +01:00
Waverunner ea9a1fdd82 Added setting of player bounties
Mission for bounties still needs to be ironed out so you won't see them
in the bounty mission terminal, however you can now set bounties for
players.
2014-04-29 17:49:03 -04:00
Light2 a6d91379fe temp fix for /pvp bug, fixed null pointer on buffing ai 2014-03-30 00:54:09 +01:00
Light2 4fe5e6614e temp fix for /pvp 2014-03-29 21:00:51 +01:00
Treeku 9ff669832b calculatePvpStatus() used for everything, more...
This ensures nothing is ever missed out of the pvpStatus calculation,
such as faction standing.  It should calculate the following:

On Leave/neutral players should be #16

Combatant players should be #35

Opposing faction SF players should be #55

Opposing Combatant NPCs should be #19

Ally SF NPCs (ie.; hoth commandos) should be #4

Enemy SF NPCs (ie. hoth resistance) should be #7

Same faction NPCs should be #0 (pink)

Attackable NPCs should be #1

Aggressive NPCs should be #2 or #3

NPCs you have negative faction standing with should be #2 or #3
2014-03-29 09:29:34 +00:00
Treeku 73bef32efb Player flag is set when you align to a faction ->
When you join a faction, #16 is set to true.

When you go combatant, #32 is set to true.  The resulting flag: 48

When you go SF, #1, #2 and #4 are set to true.  The resulting flag: 55

When you go back to combatant, #1, #2 and #4 are set to false.  The resulting flag: 48

The error was either in the Player flag not being set anywhere, or setPvpStatus setting it instead of doing OR/XOR operations.

(The result of this would be bit #16 wouldn't be set to true, meaning SF would be 39 instead of 55)

We could still set all of the flags to true for SF without harm for safety, it just wasn't theoretically necessary.

Additionally any players that login automatically were getting #16 sent to the client by sendBaselines() regardless of if they had a faction, which should now be fixed.
2014-03-29 03:15:04 +00:00
Treeku cfcd5206b7 Fixed /pvp 2013-12-11 17:23:15 +00:00
Treeku 0809361349 PvP & OptionsBitmask refactor
These will need to be used in scripts to make NPCs invulnerable,
conversable, always aggressive, etc.
2013-12-03 16:29:17 +00:00
Light2 a8c61f8e50 Basic combat works now, fixed /pvp, added waypoint mail attachments, fixed several bugs 2013-08-04 21:15:12 +02:00
Waverunner 9a65deb917 /faction added, /pvp updates flags 2013-07-30 11:18:54 -04:00
Waverunner 99a7314294 /pvp command added
/pvp imperial or /pvp rebel to claim a faction for now. (will be removed
when NPCs in)
2013-07-16 21:27:02 -04:00