|
Post by Darth Maul on Oct 22, 2015 9:17:27 GMT
Event Team CheckerChecks which team you're on using your outfit colours. Sets anyone with the same colour as you as a Friend, and anyone that doesn't have the same colour as an Enemy. This script is quite useful while participating in teamed events. This script is a stepping-stone script for future Event scripts that require the need to check which team a player is on. Limitations: - Players that go invisible will be considered an Enemy, even if they're on your team. Any player that goes invisible will have there outfit colours set as 1 (white).
- Players that use a spell, rune, or in-game feature to turn them into an object, or creature, will be considered an Enemy, even if they're on your team. Any player that doesn't have an actual player outfit will have there outfit colours set as 1 (white).
Feel free to test the script out and let me know if you find any bugs. auto 100 | listas 'Event Team checker: ON' | foreach 'allplayers' $l {if[$l.color2 == $self.color2] {setrelation '$l.name' 'friend'} | foreach 'allplayers' $ll {ifnot [$ll.color2 == $self.color2] {setrelation '$ll.name' 'enemy'}
Event Script List:
|
|