Jump to content

xXObanXx

Members
  • Posts

    416
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by xXObanXx

  1. crash ? no, it will just ignore it, and its not possible without client source

    don't know.. when i was going to test it 2 days ago, i just enabled it, the pop-up appears and i just put the code in 2 fields that were needed.. but.. when i as pressing Confirm the client was crashing with this error

    General protection fault!
    
    History: UObject::execArrayElement <- (CharacterPasswordWnd Transient.CharacterPasswordWnd @ Function Interface.CharacterPasswordWnd.tryPasswordCheck : 0076) <- UObject::ProcessEvent <- (CharacterPasswordWnd Transient.CharacterPasswordWnd, Function Interface.CharacterPasswordWnd.OnClickButton) <- NCButton::OnClickButton <- NCButton::OnLButtonUp <- NCVirtualWndMain::PassToFocusedWindow <- NCVirtualWndMain::DispatchWndMsg <- NConsoleWnd::DispatchWndMsg <- NConsoleWnd::MasterConsoleEventProcess <- UEngine::InputEvent <- UWindowsViewport::CauseInputEvent <- UWindowsViewport::UpdateInput <- UViewport::ReadInput <- APlayerController::Tick <- ALineagePlayerController::Tick <- TickAllActors <- ULevel::Tick <- (NetMode=0) <- UMasterLevel::Tick <- TickLevel <- UGameEngine::Tick <- UpdateWorld <- MainLoop
    
  2. hmm... I have no clue... the code is so large to look it carefully Q_Q but do you see the html that appears when the npc hasn't html? "This npc has not any Quest" or something like that, I don't remember... or u just talk to it and nothing happens?

    i just talk to it and nothing happens.. but the cursor for dialog is appearing like i can talk to this npc.. but when i'm pressing it, the pop-up doesn't appear!

  3. And did you add it correctly?

     

     	private int _isSpoiledBy = 0;
    @@ -1102,9 +1103,9 @@
     
     					// Open a chat window on client with the text of the L2NpcInstance
     					if (isEventMob)
    -					{
     						L2Event.showEventHtml(player, String.valueOf(getObjectId()));
    -					}
    +					else if (_isEventMobRaid)
    +						Raid.showEventHtml(player, String.valueOf(getObjectId()));
     					else
     					{
     						Quest[] qlsa = getTemplate().getEventQuests(Quest.QuestEventType.QUEST_START);
    
    And the event is spawning the npc or are you spawning it?

     

    of course the event.. it will getting bored to spawn it by my own...

    and... where am i putting this code? in Raid.java?

     

    Edit: i found the location (L2Npc) and yes.. it's already placed there!

  4. I think it can be java side if you have not geodata, but with geodata enabled it could be solved through it. But I'm not sure, never played with these things  :poker face:

    actually the code that i modified is for geodata.. ;)

    if ((Config.GEODATA > 0) && ((diffSq > 250000) || (Math.abs(dz) > 200)))
    			{
    				// if ((_z - activeChar.getClientZ()) < 200 && Math.abs(activeChar.getLastServerPosition().getZ()-realZ) > 70)
    				
    				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(_x, _y, _z);
    					realX = _x;
    					realY = _y;
    					realZ = _z;
    				}
    				else
    				{
    					if (Config.DEVELOPER)
    					{
    						_log.info(activeChar.getName() + ": Synchronizing position Server --> Client");
    					}
    					
    					activeChar.sendPacket(new ValidateLocation(activeChar));
    				}
    			}
    

    I think the problem solved! what do you think? :)

  5. You just need a proper geodata to solve that problems...

    edit. the heading is the rotation of your char, if I'm not wrong.

    i have geodata and pathnodes 1 month now... and never disappointed.. i think my geodata is good... (i know is not the best.. but is good enough for now)

    and as i've seen... the problem solved with this:

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

    so i think is not geodata's side but development's side..! ;)

  6. Which is the point of trying to synch this thing?

    first before changing the last code i placed above the player was looking to giran temple for example and the other player was looking the player to see from the other side..!

     

    second and important thing that i THINK will get fixed is on attack... what i mean?

    a player is hitting a mob.. and start running... the mob is hunting him.. then an other player is hunting the mob.. the melee attack range is 40 but the player after every attack starting and hitting from far distance more than 40 range..! cause of server and client are not synchronized on this side! ;)

    and third may be some bugs by stucking on walls etc. i think this will fix the second and the third thing (first tested and working as it should be) ;)

     

    Edit: the second thing tested and working well as it supposed to do!!) :D

×
×
  • Create New...