Transferring a current party leader's variables to a new one
Posted: Sat Jul 28, 2012 2:38 am
I have a custom quest that onKill event is getting the party leader's L2PcInstance and adding 1 to an int variable inside it. The whole party's progress is calculated by the party leader's variable. Now, if the party leader were to change leader then the quest progress would be reset. I have tried doing a for loop through the party members and syncing their variable to the party leader but it acted awkward and didn't work. Any ideas on how I can make it not reset if the leader were to get disconnected? I need some way of transferring the leader's variable to the new leader.
Also, is there a way to detect if someone enters the party? I'd like to display the party's current progress.
Thanks for any input.
Also, is there a way to detect if someone enters the party? I'd like to display the party's current progress.
Thanks for any input.