Lineage 2 Tower Forum

Full Version: Alarm
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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".
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 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





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)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?
Pages: 1 2
Reference URL's