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

Thread Closed 
 
Thread Rating:
  • 10 Vote(s) - 2.6 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ClearTarget...
Author Message
pwnage Offline
Ratman Chieftain
*

Posts: 25
Joined: Apr 2011
Reputation: 0
Version: 1.4.1.92
Post: #1
ClearTarget...

Code:
repeat
    moveDistance = 100;

    TargetNpc("SMTH, ID);
    Talk();
    ClickAndWait("menu_select?ask=1000&reply=1", "Smth.");
    ClearTargets();
until false


Okey... That should be a script... No idea why it does not clear targets after it does Clickandwait...
01-15-2012 20:52 PM
Find all posts by this user
ClockMan Offline
All Mighty
*******

Posts: 2,886
Joined: Jan 2011
Reputation: 499
Version: 1.4.3.143
Post: #2
RE: ClearTarget...

Its clear not cancel

[Image: owner.gif]
01-15-2012 22:07 PM
Visit this user's website Find all posts by this user
pwnage Offline
Ratman Chieftain
*

Posts: 25
Joined: Apr 2011
Reputation: 0
Version: 1.4.1.92
Post: #3
RE: ClearTarget...

I have clear... Confused

I have tried with CancelTargets too and It does not cancel em Big Grin
(This post was last modified: 01-15-2012 22:42 PM by pwnage.)
01-15-2012 22:41 PM
Find all posts by this user
ClockMan Offline
All Mighty
*******

Posts: 2,886
Joined: Jan 2011
Reputation: 499
Version: 1.4.3.143
Post: #4
RE: ClearTarget...

CancelTarget(true);

[Image: owner.gif]
01-15-2012 23:18 PM
Visit this user's website Find all posts by this user
amiroooo Offline
Beta Tester

Posts: 1,270
Joined: Sep 2011
Reputation: 412
Version: 1.4.2.142
Post: #5
RE: ClearTarget...

    LUA Programming
repeat
    moveDistance = 100;
 
    TargetNpc("SMTH", ID);
    Talk();
    ClickAndWait("menu_select?ask=1000&reply=1", "Smth.");
    ClearTargets();
    CancelTarget(true);
until false

(This post was last modified: 01-15-2012 23:23 PM by amiroooo.)
01-15-2012 23:22 PM
Find all posts by this user
pwnage Offline
Ratman Chieftain
*

Posts: 25
Joined: Apr 2011
Reputation: 0
Version: 1.4.1.92
Post: #6
RE: ClearTarget...

01-16-2012 00:16 AM
Find all posts by this user
Thread Closed 




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