L2JMobius

The Source of Flame problem with solved problem

exce · 15 · 1040

Offline exce

  • Knight
  • ***
    • Posts: 54
just yesterday i had post this topic:
https://l2jmobius.org/forum/index.php?topic=11861.0

the problem now is when conquest world is closed player is not teleported outside.

this might be a code to edit:
Code: [Select]
if (!player.isGM())
{
player.teleToLocation(TeleportWhereType.TOWN);
}

change to:
Code: [Select]
if (!player.isGM())
{
player.teleToLocation(-114358, 256478, -1275);
}
not tested


Thanks in advance


Offline CostyKiller

  • Distinguished King
  • *****
    • Posts: 973
I will come up with a patch to store the origin location when entering conquest and tp back on conquest close.


Offline CostyKiller

  • Distinguished King
  • *****
    • Posts: 973
Ok here it is, now should teleport the characters back to saved location from where they entered conquest, and also teleport them to origin location if they were inside conquest but not online at the closing time.

// Edit: forgot something, if they don't have the origin location saved, they will teleport back on Aden town center, so all cases covered I think.  8)

DIFF PATCH HERE


Offline exce

  • Knight
  • ***
    • Posts: 54
Ok here it is, now should teleport the characters back to saved location from where they entered conquest, and also teleport them to origin location if they were inside conquest but not online at the closing time.

// Edit: forgot something, if they don't have the origin location saved, they will teleport back on Aden town center, so all cases covered I think.  8)

DIFF PATCH HERE



why not be more simple?
geting out is enough than create a whole section for it.


Online nasseka

  • Distinguished King
  • *****
    • Posts: 1729
    • L2Unknown
Bruh, if you want more simple, DO IT YOURSELF!
Be grateful there are people who share stuff.



Online Liamxroy

  • Grand Duke
  • *****
    • Posts: 766
    • Adenaplease!


why not be more simple?
geting out is enough than create a whole section for it.

Why not write your own f. script for it and respect the ones who tried to help you ?


Online nasseka

  • Distinguished King
  • *****
    • Posts: 1729
    • L2Unknown
Go get 'em boy  ;D

Why not write your own f. script for it and respect the ones who tried to help you ?


Offline CostyKiller

  • Distinguished King
  • *****
    • Posts: 973
Is the same code we use for instances, only with new player var to store conquest origin location, also I thought I should share this free because you report it and I fixed the previous issue too, usually I don't share things on free area...


Online gigilo1968

  • Black Sheep
  • Elder
  • ****
    • Posts: 188
    • Hi5
Also need add in PlayerVariables.java
Code: [Select]
public static final String CONQUEST_ORIGIN = "CONQUEST_ORIGIN";
----------------------------------------------
And problem is when open conquest UI window and need to back to server not work button back to server


Offline CostyKiller

  • Distinguished King
  • *****
    • Posts: 973
Also need add in PlayerVariables.java
Code: [Select]
public static final String CONQUEST_ORIGIN = "CONQUEST_ORIGIN";
----------------------------------------------
And problem is when open conquest UI window and need to back to server not work button back to server

Yes, I updated the patch.

What button you talk about, I don't have any return button...


Online gigilo1968

  • Black Sheep
  • Elder
  • ****
    • Posts: 188
    • Hi5
Yes, I updated the patch.

What button you talk about, I don't have any return button...

When character is in Conquest area and want to return to server. Opens conquest UI, at the bottom side is a button to return to the server (red collored), which does not work

Same button to enter but is changed color blue --> red


Offline exce

  • Knight
  • ***
    • Posts: 54
he's right. there is a red button

and a icon:

the icon above player:


--------------------------

tryed my edit today and it make player go outside zone when it close.
the only difference between yor code is it stores the location the player entered i junst could not import creature to the code, is deleted when i save, don't ask me why.
thanks for our help.


Online gigilo1968

  • Black Sheep
  • Elder
  • ****
    • Posts: 188
    • Hi5
the icon above player:


--------------------------

tryed my edit today and it make player go outside zone when it closes.
the only difference between yor code is it stores the location the player entered i junst could not import creature to the code, is deleted when i save, don't ask me why.
thanks for our help.

Change server id on 71 and icon appears. this is client problem


Offline exce

  • Knight
  • ***
    • Posts: 54

Offline Galagard

  • Heir
  • **
    • Posts: 15


why not be more simple?
geting out is enough than create a whole section for it.
Because this is the correct way... nothing more