-
Posts
416 -
Credits
0 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by xXObanXx
-
Request Client <---> Server Synchronization!
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
so... i've made some changes... if (activeChar.isInBoat()) { if (Config.COORD_SYNCHRONIZE == 2) { dx = _x - activeChar.getInVehiclePosition().getX(); dy = _y - activeChar.getInVehiclePosition().getY(); - // dz = _z - activeChar.getInVehiclePosition().getZ(); + dz = _z - activeChar.getInVehiclePosition().getZ(); - diffSq = ((dx * dx) + (dy * dy)); + diffSq = ((dx * dx) + (dy * dy) + (dz * dz)); if (diffSq > 250000) { sendPacket(new GetOnVehicle(activeChar.getObjectId(), _data, activeChar.getInVehiclePosition())); } } return; } and i've added this option: if (Config.COORD_SYNCHRONIZE == 3) { activeChar.setXYZ(_x, _y, _z); return; } i saw that on Config.COORD_SYNCHRONIZE == -1 it's saying only the Z coord will synch with the server... by using the code activeChar.setXYZ(realX, realY, _z); so if this code is synchronizing only Z... what will happened if i will make it like the code above?! Edit: i tried and something else.. - if (((Math.abs(dz) > 200) && (Math.abs(dz) < 1500) && (Math.abs(_z - activeChar.getClientZ()) < 800)) + if (((Math.abs(dx) > 200) && (Math.abs(dx) < 1500) && (Math.abs(_x - activeChar.getClientX()) < 800)) && ((Math.abs(dy) > 200) && (Math.abs(dy) < 1500) && (Math.abs(_y - activeChar.getClientY()) < 800)) && ((Math.abs(dz) > 200) && (Math.abs(dz) < 1500) && (Math.abs(_z - activeChar.getClientZ()) < 800))) { - activeChar.setXYZ(realX, realY, _z); + activeChar.setXYZ(_x, _y, _z); + realX = _x; + realY = _y; realZ = _z; } i tested it and i can said that the cords have a better synch than before but not actually the same at all times..! so these are the coords client pos: 83245 148623 -3405 head 32916 server pos: 83241 148623 -3408 head 32907 please can you explain me what exactly is the "heading"? cause in some cases is the same from server with client and in other cases is far different than client..! edit 2: i think is far better the last way i do.. before doing this i was have dual box with admin and a normal char and the char was looking to different way on both clients..! and now with this the players have fully synchronization on each client!! -
Request Client <---> Server Synchronization!
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
hmmm... i will search tomorrow and i will reply the results! -
Request Client <---> Server Synchronization!
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
so the only solution to synchronize these things is just a good geodata? -
Request Client <---> Server Synchronization!
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
can you explain it better? :P i have geodata and pathnodes and the Geodata config is setted to 2 -
Request Client <---> Server Synchronization!
xXObanXx posted a question in Request Server Development Help [L2J]
Hello my friends again... so i enabled the DEBUG configs today and i saw that the client position and server position are not the same and in some cases an error was appearing..! so how can i make the server and client to have the same char position?! -
Help Raid Event (Help)
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
Edit: it worked when i've pressed //rai_load command... it's ok now... i will find the fix alone now... thank you! lock it! -
Help Raid Event (Help)
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
and yes... doesn't work... no errors on console.. only a message on char "wrong usage: join time or event time invalid" -
Help Raid Event (Help)
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
like that? public static void autoEvent() { if (startAutoJoin()) { loadData(); if (_joinTime > 0) { waiter(_joinTime * 60 * 1000); // minutes for join event _log.warning("Place 1 OK!"); } ..... -
Hello guys! so i've put the Raid event that have on l2jserver forum... Click so i was looking the code... and i saw that this event's codes etc. are c/p from the CTF Event (by FFs) all are ok on eclipse...! the problem is..! the code is not reading from the sql table (like CTF event) what i mean? when i'm pressing //rai_autoevent a message appears that is saying the join time and event time are invalid (maybe it's reading the _joinTime = 0;) don't really know..! so can you help me to make the event to working well?! :) my Raid.java is this (Latest unstable High Five L2J Pack)
-
Help Latest Revision Ctf Errors..!
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
so the problem solved guys... you can lock this topic..! thank you!! -
Help Latest Revision Ctf Errors..!
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
ok guys i'm on the way to test these things... i will update the post in some minutes! edit: the "hide" option doesn't work... i think cause check for hide players but doesn't doing something to make him visible..! about the summon... i can't summon pets like Fernir etc. but i can summon servitors like Mew the Cat (Archmage) or Reanimated Man (Soultaker) -
Help Latest Revision Ctf Errors..!
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
ok.. i'll test it tomorrow!! -
Help Latest Revision Ctf Errors..!
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
the "return;" doesn't need? -
Help Latest Revision Ctf Errors..!
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
the best way for a "stable" event is to fix all the possible bugs like that... to exclude every way from the player to get buffs outside from the event..! -
Help Latest Revision Ctf Errors..!
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
hmmm.... i don't think it is doing something :P cause of @SuppressWarnings("unused") and i think it's not working..! a think a "return;" could work..! or not? :P -
Help Latest Revision Ctf Errors..!
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
Original line: L2Effect eInvisible = _player.getFirstEffect(L2EffectType.HIDE); replaced with: AbnormalType eInvisible = AbnormalType.HIDE; the whole code is: // If player is invisible, make them visible if (_player.getAppearance().getInvisible()) { @SuppressWarnings("unused") AbnormalType eInvisible = AbnormalType.HIDE; } -
Help Latest Revision Ctf Errors..!
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
about hide i replaced the original code with this AbnormalType eInvisible = AbnormalType.HIDE; (didn't test it yet) -
Help Latest Revision Ctf Errors..!
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
correct me if i'm wrong... is it ok? from this: if (player.getSummon() != null) { L2Summon summon = player.getSummon(); for (BuffInfo e : summon.getEffectList().getEffects()) { if (e != null) { e.stopAllEffects(false); } } if (summon instanceof L2PetInstance) { summon.unSummon(player); } } to this: if (player.getSummon() != null) { L2Summon summon = player.getSummon(); summon.stopAllEffects(); summon.getEffectList().getBuffs().values(); if (summon instanceof L2PetInstance) { summon.unSummon(player); } } -
Help Latest Revision Ctf Errors..!
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
working..! thank you dude! :) -
Help Latest Revision Ctf Errors..!
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
error (Can only iterate over an array or an instance of java.lang.Iterable) on summon.getEffectList() -
Help Latest Revision Ctf Errors..!
xXObanXx replied to xXObanXx's question in Request Server Development Help [L2J]
unstable... and L2Effect renamed with AbstractEffect..! -
Help Latest Revision Ctf Errors..!
xXObanXx posted a question in Request Server Development Help [L2J]
Hello... so i updated my pack (L2j) with the latest revision (skill and effect system complete rework) and i have these problems on CTF.java: for (AbstractEffect e : summon.getAllEffects()) { if (e != null) { e.exit(); } } also i've solved an error by my own but didn't test it... is it ok? AbstractEffect eInvisible = _player.getFirstEffect(L2EffectType.HIDE); to AbnormalType eInvisible = AbnormalType.HIDE; i will appreciate your help! :) -
this is from AdminHandlers folder... i can help you fix it if you want by adding me on skype..! just pm me your skype and i will accept you in some minutes!
-
better resolve all the warnings and then try to compile..!
-
just replace sendPacket(new SystemMessage(SystemMessageId.YOU_CANNOT_MOUNT_A_STEED_WHILE_HOLDING_A_FLAG)); with this activeChar.sendMessage("You cannot mount a steed while holding a flag."); put this on MasterHandler (Config.L2JMOD_ALLOW_WEDDING ? Wedding.class : null), + (Config.CTF_ALLOW_VOICE_COMMAND ? CTFCmd.class : null), about _player.broadcastPacket(new SocialAction(_player.getObjectId(), 16)); // amazing glow try to resolve them with the quick fix option