Hello everyone. Yesterday i started working on a new mod, party control. Every party leader can press .partycontrol and a window pops up. There, there will be some options for the party.
What is implemented so far:
- Leader can set his party in and out of pvp mode.
- When in pvp mode, his party can be detected by any player with the command .showpvpparties(it shows all parties in pvp more, near which town they are checking where most party members are and how many members at each party i might extend this one more, need ideas).
- He can recall all his party members.
- I have created a static FastList in L2Party that contains all parties in the server. Each time one is created, it is put there and when it is deleted it is removed.
- He can teleport all his party members to another zone. Zones are setted by the admin in the htmls.
- If party is in pvp mode, all members have custom color setted by the admin on their name/title.
- A channel for the party leaders, where only they can talk there and it can be viewed by all party members.
- Party's main assister. When in pvp mode, leader can set the main assister. When he attacks a player, all party members, except if they have a class mentioned in the configs, change their target automatically to the player he attacked. Also a text informs everybody which is the main assister's target.
- Possibility to view each party member's inventory. Works exactly like alt+g with gms, the only difference is that it is done with the .viewinventory command. It only works for party members.
I have tried to code it as simple as possible and i am going to improve it more. Also it's fully configurable.
It is coded on Interlude l2j. Don't ask me to code it for newer chronicles, i hate them. Do it by your self.
Here: http://pastebin.com/CE5rLjAz
CHECK IT
I need ideas to improve it, not only for pvp mode, but to add general party control features too.
My next steps(green=done, orange=undone):
- Rework the main assister thing, based on vampir's idea. I think i'll keep both systems. How will the new one work: Leader will be able to set groups at his party with group leaders. For example, he will be able to set all the tanks in one group and one of the tanks will be the leader. If he attacks someone, then every member of his group will target him automatically. Also a message will be sent too. It's much cooler this way.
Some pics(i'll update them on next update i decided not to upload new pics, it's boring, v1 pics are enough :) ):