Jump to content

Afou To Patisa

Members
  • Posts

    85
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Afou To Patisa

  1. In high five when you put a 18 kb htm it open normally but when u bring it in freya it doesnt up it until u reduce part of code and make it 11 kb then it open it. It's not java relative cause seperateAndSend.java is same.. so i guess is client limit.
  2. Hello, i need a client developer who can lift the html of the community board (size) up to 25 kb instead of 12.4 that is currently in FREYA chronicle.
  3. I use Freya and i've done this before (image as bg) but i dont remember how.
  4. How can i add a background on community board? Tried many ways
  5. i fixed it my self.. BEFORE: if (activeChar.getTarget() != target) { activeChar.setTarget(target); activeChar.sendPacket(new MyTargetSelected(target.getObjectId(), 0)); if (activeChar.getTarget() != target) activeChar.sendPacket(new ValidateLocation((L2Character) target)); } else if (interact) { if (activeChar != target) if (activeChar.getTarget() != target) activeChar.sendPacket(new ValidateLocation((L2Character) target)); AFTER: if (activeChar.getTarget() != target) { activeChar.setTarget(target); activeChar.sendPacket(new MyTargetSelected(target.getObjectId(), 0)); } else if (interact) { if (activeChar != target) if (activeChar.getTarget() != target) activeChar.sendPacket(new ValidateLocation((L2Character) target)); Simple remoove the first validateLocation.
  6. Why in high5 source there is no ValidateLocation ? https://bitbucket.org/l2jserver/l2j_datapack/src/18a88866710962c721ba018a87f92fee2571de5a/dist/game/data/scripts/handlers/actionhandlers/L2PcInstanceAction.java?at=develop&fileviewer=file-view-default In my L2PCInstanceaction i have 2 validateLocation. maybe i should remove the 1 before (canInteract) ?
  7. Video is pointless, just think of a player walk and suddedly he stop infront of you, and u double left click on him and he change heading (small sometimes big some other). And then to happen again he must move.
  8. What the heck people? is this like the hardest code ever in history of 2017?
  9. This is the topic: http://www.maxcheaters.com/topic/215808-onclick-a-player-show-him-as-heading-change/?do=findComment&comment=2642841 Basically when u click a character, it seems like he slightly rotate. Pm me if u can fix this.
  10. You made alternative acc to comment on your own self? xD
  11. Can u explain this a bit? What i have to change - adjust ?
  12. Just run around him and stop and then the other player click on me and sometimes it doesnt rotate, sometimes it does rotate like 5% some other rotate 180%
  13. Well is like ValidatePosition when u click a player he sligtly rotate 5 degrees example. How can this be fixed?
  14. i want ask something. not sure if is project's mistake or generally in l2. When 2 walk and stop if u click on the player it show him as rotate a bit or move or change heading while he is not. why this happen? https://streamable.com/xgbor As u can see in the video also when i click a player he sligtly rotate ..
  15. that was an extreme example (the 0.4 sec) is just some complicated code that if it another tread bypass it (another player) it would be a disaster
  16. That what i wanted to hear. I want a safe priority.. Like 1000 players click on that button if the code need 0.2 sec to be executed all threads will wait by turn one by one instead of method crash especially when method adjust an int value outside the method like this: int value = 0; public synchronized void giveCoin(blabla) { //blabla value = 5; //blabla value = 0; } i want to avoid the case of the value being adjusted by 1000 player at the same time
  17. I'll be more specific Tryskell. Let's do an example: public class Item { public static synchronized void giveCoin(L2PcInstance player) { //Some code that might need 1 second to be executed cause is huge (coin is example) } } and then to an L2NpcInstance we add if (command.startsWith("get")) { Item.giveCoin(activeChar); } So the question here is. If the "giveCoin" needs let's say an example 0.4 second to be executed, and another player click before 0.4 finish. What will happen? the 2nd player will get an error? His click will be executed after the 1st one? e.t.c
  18. No you didn't understand, i knwo how to use synchronize the question is this.. Does it set priority? Example: if 2 players as i said click to get the coin will the 1st one get it (the 1st who clicked first) and then the 2nd one? right? No both at the same time. Code will executed first for player1 then for the next thread that wait (player2)
  19. I checked already stackoverflow but i wanted to make sure. If we have a class example upon click button it give's 1 coin to a player. If method "giveCoin" is not synchronized and 2 players click at the same time while code executed it get fucked right? But if we use synchronized does the 2nd threat wait for 1st one to finish? Ty
  20. Hi tryskell :) i got a question specificaly for you. in aCis and in other packs getDistanceToZone basically show the distance from the points you set in Zone. So basically if you're inside zone in the middle of town it will still write Distance: 2250 cause it's away of points. What if we want to do this: Basically if the object is inside zone distance = 0 If the object is between 2 points close to the line it will write 50 so the distance isbeing calculated after the line 2 points create. Is possible?
  21. oh damn it sunday is 1st day for java calendar? :/ so i guess i have to add +1 day
  22. This is my code: for (final String timeOfDay : Config.RESTART_INTERVAL_BY_TIME_OF_DAY) { testStartTime = Calendar.getInstance(); testStartTime.setLenient(true); String[] parts = timeOfDay.split(","); final int day = Integer.parseInt(parts[0]); final int hour = Integer.parseInt(parts[1].split(":")[0]); final int minute = Integer.parseInt(parts[1].split(":")[1]); testStartTime.set(Calendar.DAY_OF_WEEK, day); testStartTime.set(Calendar.HOUR_OF_DAY, hour); testStartTime.set(Calendar.MINUTE, minute); testStartTime.set(Calendar.SECOND, 00); timeUntilRestart = testStartTime.getTimeInMillis() - currentTime.getTimeInMillis(); i added as test 7,20:40 so this mean the next event must be on Sunday 20:40 but it schedule it for 18/6/2017 this is 2 days ago..
  23. I'm trying to make an event to be scheduled using a configuration. Example the Configuration looks like this: ScheduleConfiguration = 1,10:30 ; 3,15:30 ; basically 1 means the 1st day of week (monday) and it will start at 10:30. The next event will start in 3rd day of week at 15:30. I did split the String but i stuck on how to schedule the event to happen every X days. Any help? Thank you
×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..