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

Post Reply 
 
Thread Rating:
  • 6 Vote(s) - 3.33 Average
  • 1
  • 2
  • 3
  • 4
  • 5
if(died)
Author Message
sonata13x Offline
Elpy
*

Posts: 2
Joined: Oct 2013
Reputation: 0
Version: 1.4.2.142
Post: #1
if(died)

Hello, I am writing scripts on the farm.
Code:
ShowToClient("Made By JD", "Kamikaze Style ON");
repeat
MoveTo(147960, -55415, -2733, 30);
TargetNpc("Baffer", 30334); ----- target NPC
Talk();
Sleep(2000);
ClickAndWait("buff", "Mysic Set");
Sleep(5000);

MoveTo(147960, -55415, -2733, 30);
TargetNpc("Tatiana", 31275);
Talk();
ShowToClient("System","Teleportation...");
Click("teleport_request", "Teleport");
Click("Wall of Argos", "Wall of Argos");
Click("Wall of Argos", "Wall of Argos");
Sleep(2000);

MoveTo(166293, -46994, -3562, 30);
MoveTo(169313, -51452, -3411, 30);
MoveTo(170421, -57121, -3587, 30);
MoveTo(173017, -57526, -3316, 30);
MoveTo(174369, -56067, -3275, 30);
MoveTo(175468, -52469, -3441, 30);
MoveTo(176112, -51748, -3435, 30);
MoveTo(179165, -51126, -3304, 30);
MoveTo(182000, -49678, -3274, 30);
MoveTo(183765, -49129, -3168, 30);
Sleep(10000000);
until false

How to put a condition that if the character died initially start creaking
10-07-2013 08:47 AM
Find all posts by this user Quote this message in a reply
TheQQmaster Offline
Trolling the Trolls
*****

Posts: 1,532
Joined: Jun 2012
Reputation: 642
Version: 1.4.2.133
Post: #2
RE: if(died)

smth like that
    LUA Programming
moveDistance = 30;
 
function gopath()
MoveTo(147960, -55415, -2733, 30);
TargetNpc("Baffer", 30334); ----- target NPC
Talk();
Sleep(2000);
ClickAndWait("buff", "Mysic Set");
Sleep(5000);
 
MoveTo(147960, -55415, -2733, 30);
TargetNpc("Tatiana", 31275);
Talk();
ShowToClient("System","Teleportation...");
Click("teleport_request", "Teleport");
Click("Wall of Argos", "Wall of Argos");
Click("Wall of Argos", "Wall of Argos");
Sleep(2000);
 
MoveTo(166293, -46994, -3562, 30);
MoveTo(169313, -51452, -3411, 30);
MoveTo(170421, -57121, -3587, 30);
MoveTo(173017, -57526, -3316, 30);
MoveTo(174369, -56067, -3275, 30);
MoveTo(175468, -52469, -3441, 30);
MoveTo(176112, -51748, -3435, 30);
MoveTo(179165, -51126, -3304, 30);
MoveTo(182000, -49678, -3274, 30);
MoveTo(183765, -49129, -3168, 30);
 
 
 
end;
 
 
repeat
Sleep(1000); --Poll
 
if (GetMe():IsAlikeDeath() == true and GetMe():GetHpPercent() == 0) then
	repeat
 Sleep(1000); --Poll
	until (GetMe():IsAlikeDeath() == false);
 SetPause(true);
 Sleep(1000*20);
 gopath();
 SetPause(false);
end;
 
Sleep(1000); --Poll
 
 
 
 
until false;


PUSH [Image: knUu53] IF HELPED
10-07-2013 11:14 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 




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