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
Alarm
Author Message
b4db0yx Offline
Amber Basilisk
*

Posts: 34
Joined: Dec 2011
Reputation: 0
Version: 1.4.3.143
Post: #11
RE: Alarm

We need to add this in order for it to work:
Code:
coroutine.yield() end);

However, this code seems to work only one time, with MoveTo or potions. Afterwards, I end up with this message: "cannot resume dead coroutine".
(This post was last modified: 04-23-2014 21:09 PM by b4db0yx.)
04-23-2014 21:08 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: #12
RE: Alarm

Ha, i`ve forgot that end. I`ve not used a lot this feature, what you`re doing now can be done also with OnLTick, but since we`re here, it`s a matter of remaking the coroutine, so lets make it like this:
    LUA Programming
function OnChatUserMessage(chatType, nick, msg)
 if chatType == 2 and nick == GetMe():GetName() and string.lower(msg) == "rebuff" then
usepots = coroutine.wrap ( function()
 UseItem(1062); -- Haste Potion
 Sleep(350);
 UseItem(726); -- Mana Drug
 Sleep(350);
 UseItem(65); -- Red Potion
 Sleep(350);
 UseItem(733); -- Endeavor Potion
 Sleep(500);
 UseItem(3929); -- L2Day - Greater Acumen Scroll
 Sleep(500);
 UseItem(3931); -- L2Day - Agility Scroll
 coroutine.yield()
 end);
 this:StartThread("usepots");
 usepots = nil;
 end;

(This post was last modified: 04-24-2014 00:46 AM by eustach3.)
04-23-2014 23:22 PM
Find all posts by this user Quote this message in a reply
b4db0yx Offline
Amber Basilisk
*

Posts: 34
Joined: Dec 2011
Reputation: 0
Version: 1.4.3.143
Post: #13
RE: Alarm

This way works, as long as you don't spam "rebuff" before the coroutine ends. Thanks. I also finished the random movement script.

Code:
function Destination(Var)
    if Var == 1 then MoveTo(-34373, 128848, -3347, moveDistance);
    elseif Var == 2 then MoveTo(-34332, 128761, -3345, moveDistance);
    elseif Var == 3 then MoveTo(-33948, 128683, -3439, moveDistance);
    elseif Var == 4 then MoveTo(-34185, 128955, -3402, moveDistance);
    elseif Var == 5 then MoveTo(-34209, 128798, -3379, moveDistance);
    elseif Var == 6 then MoveTo(-34550, 128744, -3299, moveDistance);
    elseif Var == 7 then MoveTo(-34358, 128567, -3350, moveDistance);
    end;
end;


function OnTargetUnselected(user)
    if (aiureaMove == true) then
moverandom = coroutine.wrap ( function()
Var = math.ceil(math.random(1,7))
Destination(Var)
Var = math.ceil(math.random(1,7))
Destination(Var)
Var = math.ceil(math.random(1,7))
Destination(Var)
Var = math.ceil(math.random(1,7))
Destination(Var)
Var = math.ceil(math.random(1,7))
Destination(Var)
coroutine.yield() end)
this:StartThread("moverandom");
    end;
end;

Only thing now is that they've implemented a captcha ..

I've captured the HTML code but I don't have any idea how to select the needed numbers, send them back and confirm.

Code:
Captcha





There is possibility that you are a bot or script using player.




In order to check that do following captcha.

You have 60 seconds.

Rewrite numbers bellow 61380:



Confirm







Attached File(s)
.txt  html.txt (Size: 447 bytes / Downloads: 81)
(This post was last modified: 04-25-2014 12:40 PM by b4db0yx.)
04-25-2014 12:20 PM
Find all posts by this user Quote this message in a reply
karas654 Offline
Elpy
*

Posts: 1
Joined: Apr 2018
Reputation: 0
Version: 1.4.3.143
Post: #14
RE: Alarm

alguien me puede ayudar a crear un scrip para revivir el pj cuando muere y q vuelva a la zona de farmeo
05-11-2018 06:49 AM
Find all posts by this user Quote this message in a reply
tuxevil Offline
VIP Member
***

Posts: 161
Joined: Mar 2012
Reputation: 24
Version: 1.4.3.143
Post: #15
RE: Alarm

(05-11-2018 06:49 AM)karas654 Wrote:  alguien me puede ayudar a crear un scrip para revivir el pj cuando muere y q vuelva a la zona de farmeo

claro, en que server estas jugando?
05-15-2018 20:00 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Bot Alarm !! meridoX 0 2,260 12-20-2011 18:07 PM
Last Post: meridoX



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