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

Thread Closed 
 
Thread Rating:
  • 9 Vote(s) - 2.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using waking scrolls on players
Author Message
ceaos Offline
Gremlin
*

Posts: 5
Joined: Mar 2012
Reputation: 0
Version: 1.4.1.92
Post: #1
Using waking scrolls on players

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.
12-16-2012 03:29 AM
Find all posts by this user
TheBl4ckPhoenix Offline
(^.^)
****

Posts: 1,871
Joined: Mar 2012
Reputation: 601
Version: 1.4.3.143
Post: #2
RE: Using waking scrolls on players

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
12-16-2012 03:31 AM
Find all posts by this user
 Reputed by : ceaos(+1)
ceaos Offline
Gremlin
*

Posts: 5
Joined: Mar 2012
Reputation: 0
Version: 1.4.1.92
Post: #3
RE: Using waking scrolls on players

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.
(This post was last modified: 12-16-2012 04:29 AM by ceaos.)
12-16-2012 03:34 AM
Find all posts by this user
TheBl4ckPhoenix Offline
(^.^)
****

Posts: 1,871
Joined: Mar 2012
Reputation: 601
Version: 1.4.3.143
Post: #4
RE: Using waking scrolls on players

it is like this: If X char got buff "sleep(id)" then....

So if(GetUserByName(CharName):GotBuff(sleepID)== true)..
12-16-2012 22:13 PM
Find all posts by this user
 Reputed by : ceaos(+1)
ceaos Offline
Gremlin
*

Posts: 5
Joined: Mar 2012
Reputation: 0
Version: 1.4.1.92
Post: #5
RE: Using waking scrolls on players

Many thanks.
12-16-2012 23:49 PM
Find all posts by this user
ceaos Offline
Gremlin
*

Posts: 5
Joined: Mar 2012
Reputation: 0
Version: 1.4.1.92
Post: #6
RE: Using waking scrolls on players

(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;
12-19-2012 02:47 AM
Find all posts by this user
Mobius Offline
VIP Member
***

Posts: 136
Joined: Jan 2012
Reputation: 40
Version: 1.4.2.135
Post: #7
RE: Using waking scrolls on players

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;


+2 if i help you :-)
(This post was last modified: 12-29-2012 10:40 AM by Mobius.)
12-29-2012 10:38 AM
Find all posts by this user
TheBl4ckPhoenix Offline
(^.^)
****

Posts: 1,871
Joined: Mar 2012
Reputation: 601
Version: 1.4.3.143
Post: #8
RE: Using waking scrolls on players

Yap
12-29-2012 11:58 AM
Find all posts by this user
Thread Closed 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  buff scrolls souidos25 7 5,034 06-19-2013 10:40 AM
Last Post: souidos25
  MY PETS atack PVP players and i get kill, why? renato_jose 3 3,060 01-15-2013 00:25 AM
Last Post: smokedeeper
  Flagged players targetting tomukas10 3 3,342 08-05-2011 14:30 PM
Last Post: tomukas10



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