Lineage 2 Tower Forum

Full Version: Using waking scrolls on players
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, is there a script/plugin that I can use for waking scrolls?
I want so that my char auto uses the waking scrolls to wake party members.
Thank you in advance.
I think there isn't any script about that, but you can easly make one using examples you can find on forum...

NOTE: for servers BEFORE GOD it wont works for players out of party, only partymembers
Thank you, have tried searching, but I don't know programming, so it's gonna be a li'l bit hard.

Can I have the programming line for "if player is on sleep" please?

I made this:

CharName = "";
ResItemId = 6037;
------------------------------------------

repeat
if(GetUserByName(CharName):IsSleeping() == true)and
(ResItemId ~= nil) then
Target(CharName);
Sleep(500);
UseItem(6037);
Sleep(500);
ClearTargets();
Sleep(500);
end;
Sleep(500);
until false;

I just need the command for when player is sleeping and to auto target the char in sleep.
it is like this: If X char got buff "sleep(id)" then....

So if(GetUserByName(CharName):GotBuff(sleepID)== true)..
Many thanks.
(12-16-2012 22:13 PM)TheBl4ckPhoenix Wrote: [ -> ]it is like this: If X char got buff "sleep(id)" then....

So if(GetUserByName(CharName):GotBuff(sleepID)== true)..

So I have used this script but it still doesn't work to wake party memebers. Is the sleep ID wrong? Or do I need premium?
I have put the names of my partymembers, so that's not it.

CharName1 = "";
CharName2 = "";
CharName3 = "";
CharName4 = "";
CharName5 = "";
CharName6 = "";
CharName7 = "";
CharName8 = "";
ItemId = 6037;
------------------------------------------

repeat

local TheChosenOne = GetUserByName(CharName1);
local TheChosenOne = GetUserByName(CharName2);
local TheChosenOne = GetUserByName(CharName3);
local TheChosenOne = GetUserByName(CharName4);
local TheChosenOne = GetUserByName(CharName5);
local TheChosenOne = GetUserByName(CharName6);
local TheChosenOne = GetUserByName(CharName7);
local TheChosenOne = GetUserByName(CharName8);

if(TheChosenOne ~= nil) and (TheChosenOne:GotBuff(3191)== true) and (ItemId ~= nil) then
Target(TheChosenOne);
Sleep(500);
UseItem(6037);
Sleep(500);
ClearTargets();
Sleep(500);
end;
Sleep(500);
until false;
try adding this
    LUA Programming
and (TheChosenOne:IsMyPartyMember()) then




like this
    LUA Programming
if(TheChosenOne ~= nil) and (TheChosenOne:GotBuff(3191)== true) and (ItemId ~= nil) and (TheChosenOne:IsMyPartyMember()) then 
 
Target(TheChosenOne);
Sleep(500);
UseItem(6037);
Sleep(500);
ClearTargets();
Sleep(500);
end;
Sleep(500);
until false;

Yap
Reference URL's