ferdinnd
Goblin Grave Robber
Posts: 16
Joined: Dec 2013
Reputation: 14
Version:
1.4.2.133
|
RE: Update 42 L2 Offical Servers
(10-09-2014 05:55 AM)TheGhost1000 Wrote: There is one thing I have not gotten around yet it appears that in
new Update 42 patch on the L2 official servers that it is now
asking to confirm every time you want to teleport some where
using the Gatekeeper.
You get a message saying "You have requested a teleport to (location)(level)). Do you wish to continue?"
http://i57.tinypic.com/j91rgm.png
Now you still come out with a script very much the same
as you did before but this busts your scripts because it
doesn't know to click on the yes button to confirm that
you want to teleport. This just started with Update 42
on the official L2 servers.
The code I got when I did a test teleport was
this.
PHP Code:
SCONFIG = L2TConfig.GetConfig(); SCONFIG_FILE = GetDir() .. '\\scripts\\test.l2b'; L2TConfig.SaveConfig(SCONFIG_FILE); moveDistance = 30;
TargetNpc("Tatiana", 31275); MoveTo(148002, -55334, -2735, moveDistance); Talk(); ClickAndWait("teleport_request", "\"Teleport me, please.\""); ClickAndWait("teleport_4785745968_12_57_1209024808_3", "F;1010568"); WaitForTeleport(); MoveTo(165052, -47872, -3564, moveDistance); MoveTo(164697, -48029, -3548, moveDistance); L2TConfig.LoadConfig(SCONFIG_FILE);
EDIT: Ok and here is the solution I just tested it out and
it seems to work. You have to add one line to the code
ClickAndWait("menu_select?ask=-654&reply=1", "UNKNOWN BUTTON 0");
So that it is something like this
PHP Code:
SCONFIG = L2TConfig.GetConfig(); SCONFIG_FILE = GetDir() .. '\\scripts\\test.l2b'; L2TConfig.SaveConfig(SCONFIG_FILE); moveDistance = 30;
TargetNpc("Tatiana", 31275); MoveTo(148002, -55334, -2735, moveDistance); Talk(); ClickAndWait("teleport_request", "\"Teleport me, please.\""); ClickAndWait("teleport_4785745968_12_57_1209024808_3", "F;1010568"); ClickAndWait("menu_select?ask=-654&reply=1", "UNKNOWN BUTTON 0"); WaitForTeleport(); MoveTo(165052, -47872, -3564, moveDistance); MoveTo(164697, -48029, -3548, moveDistance); L2TConfig.LoadConfig(SCONFIG_FILE);
I tested this and it works fine for me! It teleported me and
confirmed I wanted to teleport.
A full working script may look something like this you may
have to do some changes obviously for when you are walking
etc. But this gives you a good idea
PHP Code:
SCONFIG = L2TConfig.GetConfig(); SCONFIG_FILE = GetDir() .. '\\scripts\\test.l2b'; L2TConfig.SaveConfig(SCONFIG_FILE); moveDistance = 30;
repeat if(GetZoneType() == L2ZoneType.PEACEFUL) then SetPause(true); ---- to stop Tower in town, untill u get in farm-spot TargetNpc("Tatiana", 31275); MoveTo(148002, -55334, -2735, moveDistance); Talk(); ClickAndWait("teleport_request", "\"Teleport me, please.\""); SetDefaultTimeout(5000); ClickAndWait("teleport_4785745968_12_57_1209024808_3", "F;1010568"); SetDefaultTimeout(5000); ClickAndWait("menu_select?ask=-654&reply=1", "UNKNOWN BUTTON 0"); WaitForTeleport(); MoveTo(165052, -47872, -3564, moveDistance); MoveTo(164697, -48029, -3548, moveDistance); SetPause(false); ------ to reactivate Tower in farm spot. end; Sleep(1500); until false; L2TConfig.LoadConfig(SCONFIG_FILE);
I hope that this helps everyone out that may be having
some difficulties with their scripts since update 42
on the official L2 servers.
Hello there! I just modified my teleport code to match the new dialogs but my char does not even teleport. It gets stuck in front of the Gatekeeper waiting. I think it's not recognizing the dialogs anymore
EDIT: Nevermind, I got it work now...
(This post was last modified: 10-12-2014 18:23 PM by ferdinnd.)
|
|