Multifuntion Zone

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
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
siphonex
Posts: 62
Joined: Wed Apr 16, 2014 6:42 pm

Multifuntion Zone

Post by siphonex »

If you want to receive support we need this info to help you properly.
ยป Find Revision
L2J Revision Number: 6522
L2JDP Revision Number: 10317

Sorry if this was posted in the wrong thread.

I found some code for a Multifunction Zone on another forum that I've been trying to implement. I have posted on the other forum but, I have yet to receive any assistance. I was hoping someone here might know something about it.

The original code is: http://pastebin.com/ZxKTTsBm

I have managed to fix all but one of the errors in the original code in order for it to be compatible on the latest Rev but, I cannot seem to fix this one located inside L2MultiFunctionZone.java

http://pastebin.com/q21VyLqr

Line 237:
int o = item.getItem().getCrystalType();

This error:
Type Mismatch: Cannot convert from CrystalType to int

Screenshot:
Error.png
You do not have the required permissions to view the files attached to this post.
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7005
Joined: Tue Aug 11, 2009 3:36 am

Re: Multifuntion Zone

Post by Zoey76 »

Try to add .ordinal() at the end.
Powered by Eclipse 4.30 ๐ŸŒŒ | Eclipse Temurin 21 โ˜• | MariaDB 11.2.2 ๐Ÿ—ƒ๏ธ | L2J Server 2.6.3.0 - High Five ๐Ÿš€

๐Ÿ”— Join our Discord! ๐ŸŽฎ๐Ÿ’ฌ
siphonex
Posts: 62
Joined: Wed Apr 16, 2014 6:42 pm

Re: Multifuntion Zone

Post by siphonex »

Zoey76...thank you so much this worked perfect!
siphonex
Posts: 62
Joined: Wed Apr 16, 2014 6:42 pm

Re: Multifuntion Zone

Post by siphonex »

I'd prefer not to make another thread seeing as the issue is similar but, I have been trying to get my TvT Voiced commands to work since the removal of TvT from core.

I was hoping this would end up being a "simple" fix like problem with the MultiFunctionZone.
Error2.png
Is there a new method I could use?

I use Pendragon's CTF event and have adapted these voiced commands to be compatible with it, the CTF versions still work fine.
You do not have the required permissions to view the files attached to this post.
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7005
Joined: Tue Aug 11, 2009 3:36 am

Re: Multifuntion Zone

Post by Zoey76 »

It's reported on another thread.

I'm working on it, just that I can't commit at the moment, sorry.
Powered by Eclipse 4.30 ๐ŸŒŒ | Eclipse Temurin 21 โ˜• | MariaDB 11.2.2 ๐Ÿ—ƒ๏ธ | L2J Server 2.6.3.0 - High Five ๐Ÿš€

๐Ÿ”— Join our Discord! ๐ŸŽฎ๐Ÿ’ฌ
siphonex
Posts: 62
Joined: Wed Apr 16, 2014 6:42 pm

Re: Multifuntion Zone

Post by siphonex »

Thank you for the information, I will look forward to the commit.
Attila
Posts: 441
Joined: Mon May 05, 2014 10:15 am

Re: Multifuntion Zone

Post by Attila »

hello
can somewone help me please
i got the last ubade Server.git hi5
and DataPack.git hi5
i got also this code for a Multifunction Zone
but now i got 4 erros with this multifuntion zone
import javolution.util.FastList;
but there is no FastList more
How do I fix this

This is the code I use http://pastebin.com/x7HDMjc4

Image

Image

hoop somewone can help me
thanks
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7005
Joined: Tue Aug 11, 2009 3:36 am

Re: Multifuntion Zone

Post by Zoey76 »

Change it to ArrayList<>().
Powered by Eclipse 4.30 ๐ŸŒŒ | Eclipse Temurin 21 โ˜• | MariaDB 11.2.2 ๐Ÿ—ƒ๏ธ | L2J Server 2.6.3.0 - High Five ๐Ÿš€

๐Ÿ”— Join our Discord! ๐ŸŽฎ๐Ÿ’ฌ
Attila
Posts: 441
Joined: Mon May 05, 2014 10:15 am

Re: Multifuntion Zone

Post by Attila »

Zoey76 wrote:Change it to ArrayList<>().
Woooo It works well again
thanks you are the best and I mean it 8)
Attila
Posts: 441
Joined: Mon May 05, 2014 10:15 am

Re: Multifuntion Zone

Post by Attila »

some help here please
i put this to the last HI5 now got this problem on gameserver console. "ZoneData: No such zone type: MultiFunctionZone in file: zone.xml" Any know how fix it?

this is the code
http://pastebin.com/FRe9Vxbp

thanks
Attila
Posts: 441
Joined: Mon May 05, 2014 10:15 am

Re: Multifuntion Zone

Post by Attila »

Attila wrote:some help here please
i put this to the last HI5 now got this problem on gameserver console. "ZoneData: No such zone type: MultiFunctionZone in file: zone.xml" Any know how fix it?

this is the code
http://pastebin.com/FRe9Vxbp

thanks
solved
Post Reply