L2Tower Discord Let's keep the community alive with discord. Discussions about plugins and scripts L2Tower Discord

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with Script.
Author Message
sodapop Offline
Goblin Grave Robber
*

Posts: 10
Joined: Mar 2013
Reputation: 0
Version: 1.4.3.143
Post: #1
Problem with Script.

Good! I'm putting together a script for a quest and I have a little inconvenience ...
The quest does it well, but when the Gate to take her back to the PJ takes it, but after reaching destination, not moving at all.
Here is the chunk of code where this came from, so I can lend a hand:
Code:
moveDistance = 30;

TargetNpc("Tatiana", 31275);
Talk();
Talk();
ClickAndWait("npc_268467637_Chat 1", "\"I want to teleport.\"");
ClickAndWait("npc_268467637_goto 1095", "Hot Springs - 9300 Adena");
MoveTo(147998, -55282, -2734, moveDistance);
WaitForTeleport();
MoveTo(144900, -113481, -2569, moveDistance);
MoveTo(145078, -113318, -2546, moveDistance);
MoveTo(145562, -112823, -2485, moveDistance);
MoveTo(145993, -112553, -2441, moveDistance);
MoveTo(146385, -112370, -2399, moveDistance);
MoveTo(146789, -112233, -2345, moveDistance);
MoveTo(147350, -112173, -2249, moveDistance);
MoveTo(148223, -112307, -2200, moveDistance);
MoveTo(148223, -112307, -2200, moveDistance);
MoveTo(148223, -112307, -2200, moveDistance);
MoveTo(148223, -112307, -2200, moveDistance);
MoveTo(148223, -112307, -2200, moveDistance);
MoveTo(148619, -112382, -2155, moveDistance);
MoveTo(149009, -112451, -2079, moveDistance);
MoveTo(149244, -112516, -2065, moveDistance);
MoveTo(149517, -112679, -2065, moveDistance);

It's as if after the WaitForTeleport () do not know.
I hope answer, thanks!

[EDIT] Now go and had to wait a while, the question is, how can I do q as it arrives to teleport, move to the coordinates, without waiting for the minutes that waits?
(This post was last modified: 09-10-2014 10:38 AM by sodapop.)
09-10-2014 10:09 AM
Find all posts by this user Quote this message in a reply
david1990 Offline
Expired VIP Member
**

Posts: 26
Joined: Dec 2011
Reputation: 0
Version: 1.4.2.142
Post: #2
Script Dagger - Yul

Hi.. Someone have scrip for dagger and yul..
09-10-2014 15:51 PM
Find all posts by this user Quote this message in a reply
eustach3 Offline
VIP Member
***

Posts: 324
Joined: Sep 2011
Reputation: 133
Version: 1.4.3.143
Post: #3
RE: Problem with Script.

Code:
moveDistance = 30;

TargetNpc("Tatiana", 31275);
Talk();
Talk();
ClickAndWait("npc_268467637_Chat 1", "\"I want to teleport.\"");
Click("npc_268467637_goto 1095", "Hot Springs - 9300 Adena");
Sleep(4000);
MoveTo(147998, -55282, -2734, moveDistance);
MoveTo(144900, -113481, -2569, moveDistance);
MoveTo(145078, -113318, -2546, moveDistance);
MoveTo(145562, -112823, -2485, moveDistance);
MoveTo(145993, -112553, -2441, moveDistance);
MoveTo(146385, -112370, -2399, moveDistance);
MoveTo(146789, -112233, -2345, moveDistance);
MoveTo(147350, -112173, -2249, moveDistance);
MoveTo(148223, -112307, -2200, moveDistance);
MoveTo(148223, -112307, -2200, moveDistance);
MoveTo(148223, -112307, -2200, moveDistance);
MoveTo(148223, -112307, -2200, moveDistance);
MoveTo(148223, -112307, -2200, moveDistance);
MoveTo(148619, -112382, -2155, moveDistance);
MoveTo(149009, -112451, -2079, moveDistance);
MoveTo(149244, -112516, -2065, moveDistance);
MoveTo(149517, -112679, -2065, moveDistance);
This is the fastest workaround.. there are more elegant ways of doing this but if this is ok let us know.
Right now it will wait 4 seconds after you press teleport and then it moves.
Try and come back with feedback
09-10-2014 15:54 PM
Find all posts by this user Quote this message in a reply
sodapop Offline
Goblin Grave Robber
*

Posts: 10
Joined: Mar 2013
Reputation: 0
Version: 1.4.3.143
Post: #4
RE: Problem with Script.

Change the WaitForTeleport () by Sleep (4000) line and no, still waiting almost 5 minutes after the teleport ... Any other ideas?
Thank you!
09-10-2014 17:12 PM
Find all posts by this user Quote this message in a reply
eustach3 Offline
VIP Member
***

Posts: 324
Joined: Sep 2011
Reputation: 133
Version: 1.4.3.143
Post: #5
RE: Problem with Script.

Note that you said a chunk of code, and i edited only that. And also I changed WaitForTeleport to sleep and ClickAndWait with Click.
Try to do that in your problematic part of the script
09-10-2014 18:51 PM
Find all posts by this user Quote this message in a reply
sodapop Offline
Goblin Grave Robber
*

Posts: 10
Joined: Mar 2013
Reputation: 0
Version: 1.4.3.143
Post: #6
RE: Problem with Script.

Is that my problem is just that part ... The char reaches destination but waits 5 minutes at the location of the teleport and after that, renews its activity.
My question is how to avoid those 5 minute wait.
09-11-2014 01:08 AM
Find all posts by this user Quote this message in a reply
david1990 Offline
Expired VIP Member
**

Posts: 26
Joined: Dec 2011
Reputation: 0
Version: 1.4.2.142
Post: #7
Script PVP

Someone have script for pvp .. feoh or yul ?
02-09-2015 16:17 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Problem with High Five client newlifeform 0 1,415 09-02-2022 17:36 PM
Last Post: newlifeform
  L2 Zaken Classic problem kvourg13 0 1,930 10-07-2018 05:29 AM
Last Post: kvourg13
  problem with the programm killbill 1 2,055 11-15-2017 02:54 AM
Last Post: kbelinh0
Sad License. problem jonathanf1 1 3,157 04-19-2017 23:07 PM
Last Post: Jonathan6666
  Problem... Critical error [c6 server] Nasif 2 4,119 10-18-2016 13:48 PM
Last Post: Verb
  AntiBot problem SaintRose 2 3,860 10-05-2016 22:27 PM
Last Post: Vinter
  Autofarm Script repeat without condition problem. either 3 4,364 05-25-2016 01:00 AM
Last Post: TheQQmaster
  how to resolve this problem? lozjan 1 2,777 05-21-2016 06:13 AM
Last Post: martlegion
  Healer Fix plugin problem aa300598 1 2,944 02-20-2016 13:21 PM
Last Post: Vinter
  Bot reset setting problem aa300598 2 3,388 02-04-2016 13:18 PM
Last Post: TheQQmaster



User(s) browsing this thread: 1 Guest(s)