Jump to content
  • 0

Target On Tvt - Bug


rullezz

Question

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? :)

Link to comment
Share on other sites

Recommended Posts

  • 0

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

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

 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
Link to comment
Share on other sites

  • 0

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:
Link to comment
Share on other sites

  • 0

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!

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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:

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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;
}
Link to comment
Share on other sites

  • 0

Baggos... :lol:

He want to leave party when player teleporting to event.

 

 

 

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

Link to comment
Share on other sites

  • 0

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;
}

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.



  • Posts

    • ENGLISH As you know, we have always profiled in the development of Java emulators, we continue to do our favorite thing, and now we have the opportunity to provide you with services in the field of private development of L2 assemblies Essence, Classic and High Five, which we have been doing in recent years, we have not been working on basic builds for a long time and work only on contracts for the world's best projects. These are the best builds we can offer, we have test servers and we can show them to you on the test, and if you are very good at gameplay, you will see a big difference in the quality and detail of the official content compared to the basic builds. These are the best top solutions in the world, which are currently used to implement the largest projects in the world. We guarantee 100% implementation of all official content. If you have any questions about testing, discussions, etc., please contact our studio and we will discuss everything. At the moment, you can get acquainted with the preliminary information and prices for Private L2 contracts here: Private Server packs L2 Essence 464, 447, 388, 362, 286 protocols Private server packs L2Classic Private server pack High Five РУССКИЙ --------------------------------------------- Как вы знаете мы всегда профилировались на разработке в сфере Java эмуляторов, мы продолжаем заниматься своим любимым делом, и сейчас у нас появилась возможность предоставлять вам услуги в сфере приватных разработок L2 сборок Essence, Classic и High Five, которыми мы занимаемся последние годы, мы уже давно не работаем над базовыми сборками и работаем только на контрактах для лучших мировых проектов. Это лучшие сборки, которые мы можем предложить, у нас есть тестовые сервера, и мы можем показать их вам на тесте, и если вы очень хорошо разбираетесь в игровом процессе, вы увидите большую разницу в качестве и детализации официального контента по сравнению с базовыми сборками. Это лучшие топовые решения в мире, которые на данный момент используются для реализации крупнейших проектов в мире. Мы даем гарантии - 100% реализации всего официального контента. По вопросам тестирования, обсуждений и тд - пишите по контактам нашей студии и мы все обсудим. На данный момент вы можете ознакомиться с предварительной информацией и ценами на Приватные контракты L2 тут: Приватные Сборки L2 Essence 464, 447, 388, 362, 286 protocols Приватные Сборки L2Classic Приватная Сборка High Five -------------------------------------------------------------- Contacts: Telegram: https://t.me/L2scripts Whatsapp, Viber: +1 (916) 226 1910 С уважением, Администрация !
    • I can sell it. If you are interested just pm.
    • Its really not that hard to setup a server on a vps.
    • its AAC features... izi check add new acc here and later go to system folder and find last file with new date... have data.dat in system ? 
  • Topics

×
×
  • Create New...