Fixed Infinite player.updatePvPFlag(1); via code?

fa1thDEV

Baron
Customer
Hello, I am attempting to create my own flag code, but I want it to be infinite. However, I have encountered some weaknesses in the logic:

If I hit someone, the flag counter starts, and after several seconds, the flag is lost (even if I set it to flag automatically).

If I enter the zone and don't perform any action, the flag is infinite.

If I die and revive, the flag disappears in retail mode.

I have a question: what would the parameter be to keep it always active?

player.getPvpFlag() == 0)
player.updatePvPFlag(1)
player.setPvpFlag(1)
 
what about setting the pvp flag time to 9999? or try to use the epic zone example from the Deazer's code?
 
When you fix and resolve problems like this I think its good to add a solution so anyone here if need this to know what to do.
I have seen many here that do the same and do not share anything, and when you ask for help they only give you hints and do not give you a clear example, and then you see them asking for help and then sell the codes, I have shared the codes with those who have helped me, and in fact I did a massive spam to Deazer to help me but he never gave me a hint, just for this I can say make a watct_code_to_player_listener that gives flag every 30 seconds to the player that is inside the instance, this way the flag counter will never reach 0 and never will show the blank name.
 
Back
Top