Jump to content
  • 0

Question

Posted

Hello, i using this TvT Event on aCis re 362.

http://pastebin.com/GWcRXUXj

 

When i press SHIFT button i can target another players which are not participated at event....and players which don't participated at event can target with SHIFT button players wich are participated at event.

How i can fix it? :)

Recommended Posts

  • 0
Posted

Look at the modification in L2PcInstance on the onAction() method and do the same in the onActionShift() method (which is in L2PcInstance too).

  • 0
Posted

Look at the modification in L2PcInstance on the onAction() method and do the same in the onActionShift() method (which is in L2PcInstance too).

 Thnx you i did it, it's work now.

 

And what about "leave party" when teleporting to event and "can't join" party with non participated players? :D

  • 0
Posted

Its simple check, think, you can do this..

as i told you some weeks ago...i learning and try to make something different...not again an boring farm or craft server.

 

let me do some experiments with code about join and leave party and then i post my results. :D

if you want you can give me the right way where to put check :P

  • 0
Posted (edited)

 Thnx you i did it, it's work now.

 

And what about "leave party" when teleporting to event and "can't join" party with non participated players? :D

You mean that you want block leaving party when teleporting?

 

go at RequestWithDrawalParty.java and add a simple check  

if (activeChar.isInFunEvent())
  return;

Also don't tell SweeTs "i want make something different" cause he will rofl for hours in the end trust me.

After all we've seen in this forum, this "different" is idk how to say... waste. Keep what u do for you.

 

Also when we started learning about l2j we didn't even have youtube guides or tuts.. you know how many days i spended in solve problems? 

At least you got plenty of help and many guides to help you so..

 

Tessa stop being so fucking adorable >.< 34iftlc.png

Edited by AccessDenied
  • 0
Posted

as i told you some weeks ago...i learning and try to make something different...not again an boring farm or craft server.

 

let me do some experiments with code about join and leave party and then i post my results. :D

if you want you can give me the right way where to put check :P

No, you try first, and we can guide you... it's better for you, believe me. :lol:
  • 0
Posted

You mean that you want block leaving party when teleporting?

 

go at RequestWithDrawalParty.java and add a simple check  

if (activeChar.isInFunEvent())
  return;

Also don't tell SweeTs "i want make something different" cause he will rofl for hours in the end trust me.

After all we've seen in this forum, this "different" is idk how to say... waste. Keep what u do for you.

 

Also when we started learning about l2j we didn't even have youtube guides or tuts.. you know how many days i spended in solve problems? 

At least you got plenty of help and many guides to help you so..

not blocking leave party...when teleporting to event everybody who have party - leave it.

 

And ..yeap about "differen" at this forum...after you seen all this crappy -beep- servers with frozen packs and another -beep-, some one maybe thinking what i am another one lazy ass :P  but i don't, i take aCis without any custom mode/shit/blablabla and try to adapt/make/fix/blablabla by my self and of cource with your help <3

 

 

No, you try first, and we can guide you... it's better for you, believe me. :lol:

 

i agree with you ;) after experements with code i will post what i did.

Thnx you guys!

  • 0
Posted

not blocking leave party...when teleporting to event everybody who have party - leave it.

 

And ..yeap about "differen" at this forum...after you seen all this crappy -beep- servers with frozen packs and another -beep-, some one maybe thinking what i am another one lazy ass :P  but i don't, i take aCis without any custom mode/shit/blablabla and try to adapt/make/fix/blablabla by my self and of cource with your help <3

 

 

 

i agree with you ;) after experements with code i will post what i did.

Thnx you guys!

 

So you want a code so parties break when teleporting? Simply find the Array or List whatever hold your players that are participating and do a loop for each one

 

for (L2PcInstance object : _players)

  if (player.getParty() !=null)

       player.getParty().leave(); <-- or something similar i dont remember the method

  • 0
Posted

So you want a code so parties break when teleporting? Simply find the Array or List whatever hold your players that are participating and do a loop for each one

 

for (L2PcInstance object : _players)

  if (player.getParty() !=null)

       player.getParty().leave(); <-- or something similar i dont remember the method

It already loops through the participants to teleport them... once again, just saying. :lol:

  • 0
Posted

It already loops through the participants to teleport them... once again, just saying. :lol:

Lel i try give him an example 

 

I know that it loop the list to teleport the teams

  • 0
Posted

TvtEvent.java


if (playerInstance == null)
continue;
 
// implements Runnable and starts itself in constructor
new TvTEventTeleporter(playerInstance, team.getCoordinates(), false, false);
}
}
+ 
+ // Remove player from his party
+ for (TvTEventTeam team : _teams)
+ {
+ for (String playerName : team.getParticipatedPlayerNames())
+ {
+ L2PcInstance playerInstance = team.getParticipatedPlayers().get(playerName);
+ final L2Party party = playerInstance.getParty();
+ if (party != null)
+ party.removePartyMember(playerInstance, MessageType.Expelled);
+ }
+ }
+
return true;
}
  • 0
Posted

Baggos... :lol:

He want to leave party when player teleporting to event.

 

 

 

And what about "leave party" when teleporting to event?

  • 0
Posted

He want to leave party when player teleporting to event.

Yeah, but this... :lol:

 

TvtEvent.java

if (playerInstance == null)
continue;
 
// implements Runnable and starts itself in constructor
new TvTEventTeleporter(playerInstance, team.getCoordinates(), false, false);
}
}
+ 
+ // Remove player from his party
+ for (TvTEventTeam team : _teams)
+ {
+ for (String playerName : team.getParticipatedPlayerNames())
+ {
+ L2PcInstance playerInstance = team.getParticipatedPlayers().get(playerName);
+ final L2Party party = playerInstance.getParty();
+ if (party != null)
+ party.removePartyMember(playerInstance, MessageType.Expelled);
+ }
+ }
+
return true;
}

 

Guest
This topic is now closed to further replies.



×
×
  • Create New...