Jump to content

Afou To Patisa

Members
  • Posts

    85
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Afou To Patisa

  1. Hi everyone, i got 2 questions. I just need advice or sugestion no much help. 1. When people login the heading is wrong. Let's say the heading has a value of 35000 and player log out. Value is stored on database at "heading" i checked it. When player login the heading is not the same as in database. I added a System.out.println(activeChar.getHeading); and it return the value from the database, so the value hasnt change at all. What's wrong is the broadcast. Other's watch you normally, but you watch your character in wrong direction (heading). So i guess is UserInfo.java 2. Same as previous the difference is that i made a code that changes the player heading. Example: activeChar.setHeading(0); then i type activeChar.broadcastUserInfo(); The player not see himself change direction but other's watch him change just fine. So i guess again UserInfo.java. Something is wrong with it.. I checked broadcastUserInfo() and is same as aCis. First it sendPacket to this (userinfo) and then broadcasttoAll (charInfo). Any advice?
  2. You can easily give infos to someone even if he is not familar with the thing doesnt mean is always helpful. + i didnt even see the thing with zones u said cause u edited ur post after i've read it.
  3. Dis. None has really answer to my question. The question is not how to find the middle between 2 points, it's to generate 10 positions between 2 points and Math.pow or distance doesnt help
  4. I did this: But still i dont get how i can get 2 points cause we need X and Y to teleport player.. also i dont get how to generate 10 of this.. Right now i get i guess a middle point of two X1-X2 and Y1-X2 but how we get 10?
  5. You really think translation even give a 5% understandable text :D ? u need try google translation. ;) But other than ill check it.
  6. I did check it before little dwaf. But i did the maths this return something like 4686.613382817063 in double with some values. how it can give us 2 points to add a middle position for a player? or even worst 10 ?
  7. Hello everyone, let's say we want to calculate 10 positions between 2 3D points. Example 1 Point (x=3250, y=5821, z=300) 2 Point (x=5230, y=8500, z=300) Now we want generate 10 positions between those 2 coords as the image shows below: I've checked stackoverflow to get the idea, i ended up with a code like this: insideroot= Math.sqrt(x - a) + Math.sqrt(y - b); distance = Math.sqrt(insideroot); Which doesn't really help me a lot. Is there any idea on how to use it and generate positions base on an Integer (spots between those points)? Thanks a lot.
  8. Nothing like this in L2J high5 you speak specific for acis thanks but there is nothing common in l2j. Ps. i found them its' a bit in dif pos public interface PaperdollListener { public void notifyEquiped(int slot, L2ItemInstance inst, Inventory inventory); public void notifyUnequiped(int slot, L2ItemInstance inst, Inventory inventory); } but again how do i add proper checks for specific unequip item? I did check the uses, it has many overrided methods mostly to remove stats upon weapon remove such as passive skills augmentations, stats e.t.c but it doesnt let u add check to block him from remove this. Am i right tryskel| ?
  9. How to add a check when u want to unequip a weapon or an item? UnEquipRequest.java is not used in l2j neither aCis, instead UseItem.java is used. But if you add check in UseItem.java then the player cannot wear or unequip any item at all. What if we want just to no be able to unequip the current weapon but unequip or equip other items + potions?
  10. what title says. PS i did mistake with section move it plz.. sorry
  11. Hello, i had a recent problem which i explain more in this topic: http://www.maxcheaters.com/topic/215026-broadcastpacket-is-worst-than-tryskell/page-2?do=findComment&comment=2636984 I appreciate their help but i want something fast to move on with the codes i've got on my mind. So what's the problem. Basically knownlist does not update properly (thats what xdem said) the packets upon login or enter region or teleport. In other words if one player does /unstuck and someone logged in that time, he see the unstuck player just sitting there without casting, then suddedly he disappear when unstuck finish. Same with skills (if cast a long skill, it doesnt appear animation), same with territoryWar the flag icons update only to those who are near, no other players who come in town or log in or walk from distance close to player. Ill agree with xdem that is knownlist problem but idk where exactly to look so i want someone who know exactly how to fix those 2 (cast + territory) which in the end is 1 problem knownlist update packet. Send me private for infos. Payment can be done via paysafe or BANK (instantly e-banking). No resources on my paypal. Thanks a lot. (In the video bellow u can see the player casting unstuck but its not broadcasting to the player who just arrived in town of oren) https://vid.me/XE5U
  12. Anyways.. thanks ill prefer to pay someone who know it to fix it shortly.. im really tired 2.5 days now. I appreciate ur comment but it doesnt debug it give "variable reference is missing" blabla.. If anyone want provide some help i would appreciate. Thanks for answers.
  13. Depend on a range of actions + if players are gathered in 1 place or no. Normaly is 26 kb per player in a nornal state i think (not sure) but siege,event can cause massive lag and increased latency. (excluded graphical lag)
  14. You can provide some info at least.. could you? I don't really people point out what i know and what i don't.. i just ask for a conclusion in this silly problem in which i agree with xdem is knownList by 80% even tho the only that is not update properly is casting upon teleport or login or far come using gm speed 3
  15. As you can see debug doesnt really provide any other info rather than target and packet broadcast.. I really need a clue since im not that experience in finding a specific part of code in such a huge program. It must be knowlist but idk which part is for update users in knownlist. Example when you enter in someone's knownlist to inform you with his actions if he is casting or teleporting e.t.c other functions such as Death-Karma are fine but the 1 problem is casting (including unstuck animation). Title is not big deal but casting i must at least find the exact line.
  16. debug in l2j sucks.. you know that that what i asked to give me a clue from ur experience on where i should look (file or line). The only export debug does is to say objects added in knownlist and removed.. nothing else. No usefull info.
  17. Could you englight me a bit more? I support ur comment more than other's since im sure is knownlist and no specific values like getTitle e.t.c but i can't really know where exactly it happens.. in findObjects everything seem to be fine. I would really appreciate if you give me a clue of what to check to make the unit that cast skill or unstuck to be seen by someone who just logged in or teleport in. I did check to ensure that object is contained in knownList and yeap it is. But what you mean exactly the knownList of the player who teleported didn't receive the update? Which update is this and where it happens? Ty
  18. So how /unstuck should be then? Example a player doing unstuck, i teleport in giran, see him just sitting there then disappear.. how should i do this? Give me an example of which line i should adjust so i can do the rest.
  19. So you want to tell me that even when a player cast a spell (and suddedly you teleport onto giran), the fact that u see him just sit instead of casting it was meant to be handled by PcAppearance? ..
×
×
  • Create New...