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.



  • Posts

    • My official facebook profile!: https://www.facebook.com/spectrumL2 Specifications: Revamped L2JACIS revision FROM the core Private project!!! Revision that has been receiving corrections for over 3 years!!! Events already installed in the revision: TVT CTF KTB PARTY FARM SPOIL EVENT CRAZY RATES TOURNAMENT TIME ZONE (INSTANCE) All working correctly!!! SIEGE ESSENTIAL FEATURES: Walls fix Gates fix Flags fix 100% functional: OLYMPIADS: Implemented settings Hero receives enchanted Weapons with equal status PvP Weapons Optional /true/false Hero can acquire all Hero Weapons Optional true/false OTHER IMPLEMENTATIONS: Teleport fixed (directly to Giran) Teleport effect classic Vip skins vip collor name Pack NPCs with effect already configured BOSES already configured Mobs already configured CLASS BALANCE SPECIAL SYSTEM We have a SPECIAL system developed for Class Balance with only 1 digit in XML %tage of configurable debuffs Player limitation system in BOSES or PvP zones BS blocking system in FLEG zones or events Among others dozens of improvements made in the review... price: 390 USD !  OBS: WE CAN CHANGE THE BANNER AND NAME OF THE SERVICE TO THE ONE OF YOUR PREFERENCE BUT THE SETTINGS MUST BE KEPT ANY CHANGES REQUIRE ADDITION        
    • Server is Online – 1,000+ Active Players! We’re excited to announce the addition of a Europe Proxy to improve connectivity for our EU players! Clans can now benefit from VIP Access to help you catch up faster. 🎯 If you're a clan leader with at least 9 active members, join our Discord and open a ticket to claim your VIP rewards!  
    • The Telegram team is rolling out a new batch of Stars-only gifts you’ll be able to mint as NFTs. Don’t miss your chance to join the next Telegram trend and earn from it! Buy Telegram Stars cheap and KYC-free 1 Star from $0.0149 (min. 50 Stars, bulk discounts available) Promo code STARS5 — 5 % off Pay any way you like: bank cards · crypto · other popular methods How to purchase: ➡Online Store — Click ➡ Telegram bot — Click Other services: ➡ SMM panel — Click Regular buyers get extra discounts and promo codes. Support: ➡ Telegram: https://t.me/solomon_bog ➡ Telegram channel: https://t.me/accsforyou_shop ➡ Discord: https://discord.gg/y9AStFFsrh ➡ WhatsApp: https://wa.me/79051904467 ➡ Email: solomonbog@socnet.store Use these contacts to discuss wholesale orders, partnerships (current list: https://socnet.bgng.io/partners) or to become a supplier. SocNet — your shop for digital goods and premium subscriptions
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock