Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead. There is no support for other server builds than the official provided by l2jserver.com
That script is awful...
You're using both java.util.Random AND com.l2jserver.util.Rnd, coordinates are arrays of integers instead of an array of 3x Location objects, onEnter is simply terrible, you'll ruin the player's experience on your server (you're removing their clan and changing their name without restoring it when they come back out), and there's even an NPE in there (activeChar.getClan().setCrestId(0) will fail because you set the player's clan to null in the previous line).
I'd definitely advise not using that script.
And the error is probably because the zone XSD has a list of allowed zone types and you haven't added your new zone in that list, so the parser considers it invalid.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste! Discussion breeds innovation.
How to hide crest and put it back? Because that code don't work! The hide work but the putback doesn't. Event after you restart, the crest won't show back.. Btw is this affecting whole clan crest on all players or just the player's object copy of clan?
Zoey76 wrote:You need to save the old quest somewhere, otherwise you set crest 0 and then you restore last crest: 0.
You mean old clan in L2PcInstance? I done it but if someone get client crash in that zone he won't get the oldCLan back.. player.setClan() changes database or just running instance?
Thank you for making L2JServer happen!
"If you believe you will fail or succeed, in both ways you are right." - Henry Ford
What you are trying todo will remove crest for all clan members i would add a boolean on L2PcInstance that would make L2PcInstance.getClanCrestId() return 0.