Jump to content

Recommended Posts

Posted

onExit()

if (give_noblesse)
     removeBuff(activeChar, activeChar, noblesse);

IF the pack you are using has method removeBuff, else search for it.

Sorry don't no what you mean were i need to look to put this

can you tell me where i need to put this please

thanks

Posted (edited)

I already told you, onExit() , use godamn search mode, there is ONLY ONE such method. Find the method, you will find out where to put it.

Edited by SweeTs
Posted (edited)

I already told you, onExit() , use godamn search mode, there is ONLY ONE such method. Find the method, you will find out where to put it.

omg

Thanks because you want to help me I'm just a noob that asks something because he does not understand what you try to tell me.
Hi5

Multifuntionzone.java code: http://pastebin.com/x7HDMjc4

 

So where do I look-

do i need to look at code that I used

or i need to look at Eclipse com.l2jserver ?

so please tell me in noob language and sorry that I upset you :-\

 

Edited by Attila
Posted

Ctrl + F -> " onExit "

thanks

 

but i try to put this there i got errror at eclipse

 

if (give_noblesse)

     removeBuff(activeChar, activeChar, noblesse);

 

can you tell me where i need to put it

	protected void onExit(L2Character character)
	{
		character.setInsideZone(ZoneId.NO_SUMMON_FRIEND, false);
		character.setInsideZone(ZoneId.MULTI_FUNCTION, false);
		if (!store_zone)
		{
			character.setInsideZone(ZoneId.NO_STORE, false);
		}
		
		if (character instanceof L2PcInstance)
		{
			L2PcInstance activeChar = ((L2PcInstance) character);
			activeChar.sendMessage("You left from a MultiFunction zone.");
			
			if (pvp_enabled)
			{
				activeChar.stopPvPFlag();
			}
		}
	}
	
	@Override
	public void onDieInside(final L2Character character)
Posted

Put it under place where activeChar is oparating. You have similar check there, about pvp flag. Add it after it. And the correct line would be.

 

 

activeChar.stopSkillEffects(true, 1323);
Posted
 

 

 

Put it under place where activeChar is oparating. You have similar check there, about pvp flag. Add it after it. And the correct line would be.

activeChar.stopSkillEffects(true, 1323);

Yes thanks man it works now

and thanks for the patience with me ^-^

 

  • 4 weeks later...
Posted (edited)

Sweets or some1 else.. I need help with these 2 errors:

 
[javac] C:\Users\TiG\Desktop\workspacecorrect\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2PcInstance.java:8119: error: cannot find symbol
    [javac] L2MultiFunctionZone.givereward(this);
    [javac]                             ^
    [javac]   symbol:   method givereward(L2PcInstance)
    [javac]   location: class L2MultiFunctionZone

 

 

=====================================================

 

[javac] C:\Users\TiG\Desktop\workspacecorrect\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\network\serverpackets\Die.java:63: error: cannot find symbol
    [javac] _canTeleport = !((TvT.is_started() && player._inEventTvT) || (DM.is_started() && player._inEventDM) || (CTF.is_started() && player._inEventCTF) || player.isInFunEvent() || player.isPendingRevive() || (player.isInsideZone(L2Character.ZONE_MULTIFUNCTION) &&                    L2MultiFunctionZone.revive));
                                                                                                                                            ^
    [javac]   symbol:   variable L2MultiFunctionZone
    [javac]   location: class Die
 
 
Thanks in advance!!
Edited by tiguz
  • 2 months later...
Posted (edited)

Why 

-       protected final List<L2ItemInstance> _items;
+       public final List<L2ItemInstance> _items;

Instead of using getter getItems() ?

Edited by dzumara
Posted (edited)

Why would you discuss about how is it coded if it's an old code, l2 dev is kinda dead, and I do not update this for ages...

Simply, it was done in a bad way and there are a lot of things that could've been done way better, but they weren't.

 

 

P.S: Sweets if you read it gimme your skype in a PM you nerd :D

 

Best Regards,

Edited by ^Wyatt
  • 3 weeks later...
  • 1 month later...
Posted (edited)

Hey, i got problem on gameserver console. "ZoneData: No such zone type: MultiFunctionZone in file: peace_zones.xml" Any know how fix it?

l2jserver Freya.

@Edit

Problem Fixed

Edited by martinpll
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...