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

Thread Closed 
 
Thread Rating:
  • 4 Vote(s) - 3.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CancelTarget(true)
Author Message
diukas Offline
Goblin Grave Robber
*

Posts: 15
Joined: Apr 2011
Reputation: 0
Version: 1.4.1.121
Post: #1
CancelTarget(true)

Hello im trying to make script for hunting zones this is the script
    LUA Programming
repeat
if (GetMe():GetTarget() ~= nil) and (GetTarget():IsAlikeDeath() == true) then	
	CancelTarget(true);
	Sleep(1000);	
end;
Sleep(1000);
until false;


But when I use it target just start flashing like cancel,target,cancel,target... So on. Don't find where I made mistake.
06-22-2012 20:31 PM
Find all posts by this user
amiroooo Offline
Beta Tester

Posts: 1,270
Joined: Sep 2011
Reputation: 412
Version: 1.4.2.142
Post: #2
RE: CancelTarget(true)

(GetTarget() ~= nil)
06-22-2012 20:36 PM
Find all posts by this user
diukas Offline
Goblin Grave Robber
*

Posts: 15
Joined: Apr 2011
Reputation: 0
Version: 1.4.1.121
Post: #3
RE: CancelTarget(true)

like always thx amiroooo
06-22-2012 21:38 PM
Find all posts by this user
Thread Closed 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  doubt with CancelTarget() rORUMI 4 2,913 09-10-2014 01:50 AM
Last Post: rORUMI



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