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

Thread Closed 
 
Thread Rating:
  • 16 Vote(s) - 3.25 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PP BUFFS
Author Message
pegas20 Offline
Goblin Grave Robber
*

Posts: 12
Joined: May 2012
Reputation: 0
Version: 1.4.1.118
Post: #11
RE: PP BUFFS

(05-30-2012 18:58 PM)TheBl4ckPhoenix Wrote:  fixed:

    LUA Programming
ShowToClient("SYS","Script for buff detect started");
PPName = "Annouche"; --here write name of your PPname
DDName = "BoufihBoufih"; --write name of char you want buff
 
SendInvIfBufferInRange = 800;
----------------------------------------------------------------
WhoToInv = nil;
 
 
repeat
if(GetUserByName(PPName) == nil)then
ShowToClient("SYS","Your buffer is out of range, w8ing on him");
repeat
Sleep(1000);
until (GetUserByName(PPName) ~= nil);
ShowToClient("SYS","Your buffer is in range");
WhoToInv = GetUserByName(PPName);
elseif(GetUserByName(PPName) ~= nil)then
WhoToInv = GetUserByName(PPName);
end;
 
if((GetMe():GotBuff(1035) == false) or -- Mental Shield
(GetMe():GotBuff(1036) == false) or -- Magic Barrier
(GetMe():GotBuff(1040) == false) or -- Shield 
(GetMe():GotBuff(1045) == false) or -- Blessed Body
(GetMe():GotBuff(1048) == false) or -- Blessed Soul
(GetMe():GotBuff(1077) == false) or -- Focus
(GetMe():GotBuff(1240) == false) or -- Guidance
(GetMe():GotBuff(1242) == false) or -- Death Whisper
(GetMe():GotBuff(1243) == false) or -- Bless Shield
(GetMe():GotBuff(1204) == false) or -- Wind Walk
(GetMe():GotBuff(1086) == false) or -- Haste
(GetMe():GotBuff(1068) == false) or -- Might
(GetMe():GotBuff(1044) == false) or -- Regeneration
(GetMe():GotBuff(1388) == false))and -- Greater Might
(WhoToInv ~= nil) and 
(WhoToInv:IsMyPartyMember() == false) and
(GetMe():GetRangeTo(WhoToInv) < SendInvIfBufferInRange)then
 
ShowToClient("SYS", "Inviting " ..PPName .. " for buff");
Sleep(800);
Command("/invite "..PPName);
 
repeat 
Sleep(500);
 
until((GetMe():GotBuff(1035) == false) and -- Mental Shield
(GetMe():GotBuff(1036) == false) and -- Magic Barrier
(GetMe():GotBuff(1040) == false) and -- Shield 
(GetMe():GotBuff(1045) == false) and -- Blessed Body
(GetMe():GotBuff(1048) == false) and -- Blessed Soul
(GetMe():GotBuff(1077) == false) and -- Focus
(GetMe():GotBuff(1240) == false) and -- Guidance
(GetMe():GotBuff(1242) == false) and -- Death Whisper
(GetMe():GotBuff(1243) == false) and -- Bless Shield
(GetMe():GotBuff(1204) == false) and -- Wind Walk
(GetMe():GotBuff(1086) == false) and -- Haste
(GetMe():GotBuff(1068) == false) and -- Might
(GetMe():GotBuff(1044) == false) and -- Regeneration
(GetMe():GotBuff(1388) == false))and -- Greater Might
(WhoToInv:IsMyPartyMember() == true);
 
ShowToClient("SYS", "Buffs up, leaving pt...");
Sleep(8000);
Command("/dismiss "..PPName); 
Sleep(800);
end;
Sleep(1000);
until false;


you have change something ? and to activat script i have to click th play button right ?!
05-30-2012 19:18 PM
Find all posts by this user
TheBl4ckPhoenix Offline
(^.^)
****

Posts: 1,871
Joined: Mar 2012
Reputation: 601
Version: 1.4.3.143
Post: #12
RE: PP BUFFS

yes.

click both buttons
05-30-2012 19:23 PM
Find all posts by this user
pegas20 Offline
Goblin Grave Robber
*

Posts: 12
Joined: May 2012
Reputation: 0
Version: 1.4.1.118
Post: #13
RE: PP BUFFS

(05-30-2012 19:23 PM)TheBl4ckPhoenix Wrote:  yes.

click both buttons


XD 50% works inv and got buffs but no dismiss from pt Exclamation
05-30-2012 20:04 PM
Find all posts by this user
TheBl4ckPhoenix Offline
(^.^)
****

Posts: 1,871
Joined: Mar 2012
Reputation: 601
Version: 1.4.3.143
Post: #14
RE: PP BUFFS

becouse you didn't set up ALL THE BUFFs,

check again buff list....

it will leave pt only when all buffs are up...
05-30-2012 20:20 PM
Find all posts by this user
pegas20 Offline
Goblin Grave Robber
*

Posts: 12
Joined: May 2012
Reputation: 0
Version: 1.4.1.118
Post: #15
RE: PP BUFFS

(05-30-2012 20:20 PM)TheBl4ckPhoenix Wrote:  becouse you didn't set up ALL THE BUFFs,

check again buff list....

it will leave pt only when all buffs are up...

i'm perty sure that i set up all buffs but no in order .. and i add more but no leave
05-30-2012 20:24 PM
Find all posts by this user
TheBl4ckPhoenix Offline
(^.^)
****

Posts: 1,871
Joined: Mar 2012
Reputation: 601
Version: 1.4.3.143
Post: #16
RE: PP BUFFS

check again... they must be 14 buffs
05-30-2012 20:29 PM
Find all posts by this user
 Reputed by : pegas20(+1)
pegas20 Offline
Goblin Grave Robber
*

Posts: 12
Joined: May 2012
Reputation: 0
Version: 1.4.1.118
Post: #17
RE: PP BUFFS

He buff 1st 2 buffs then he leave and invite again 2 more buffs and leave then invite again buff all buffs and no /dismiss
(This post was last modified: 05-30-2012 21:10 PM by pegas20.)
05-30-2012 20:37 PM
Find all posts by this user
TheBl4ckPhoenix Offline
(^.^)
****

Posts: 1,871
Joined: Mar 2012
Reputation: 601
Version: 1.4.3.143
Post: #18
RE: PP BUFFS

(05-30-2012 18:37 PM)pegas20 Wrote:  
(05-30-2012 18:13 PM)TheBl4ckPhoenix Wrote:  Post it here


ShowToClient("SYS","Script for buff detect started");
DCName = "Annouche"; --here write name of your DoomCryer
DDName = "BoufihBoufih"; --write name of char you want buff

SendInvIfBufferInRange = 800;
----------------------------------------------------------------
WhoToInv = nil;


repeat
if(GetUserByName(DCName) == nil)then
ShowToClient("SYS","Your buffer is out of range, w8ing on him");
repeat
Sleep(1000);
until (GetUserByName(DCName) ~= nil);
ShowToClient("SYS","Your buffer is in range");
WhoToInv = GetUserByName(DCName);
elseif(GetUserByName(DCName) ~= nil)then
WhoToInv = GetUserByName(DCName);
end;

if((GetMe():GotBuff(1035) == false) or -- Mental Shield
(GetMe():GotBuff(1036) == false) or -- Magic Barrier
(GetMe():GotBuff(1040) == false) or -- Shield
(GetMe():GotBuff(1045) == false) or -- Blessed Body
(GetMe():GotBuff(1048) == false) or -- Blessed Soul
(GetMe():GotBuff(1077) == false) or -- Focus
(GetMe():GotBuff(1240) == false) or -- Guidance
(GetMe():GotBuff(1242) == false) or -- Death Whisper
(GetMe():GotBuff(1243) == false) or -- Bless Shield
(GetMe():GotBuff(1204) == false) or -- Wind Walk
(GetMe():GotBuff(1086) == false) or -- Haste
(GetMe():GotBuff(1068) == false) or -- Might
(GetMe():GotBuff(1044) == false) or -- Regeneration
(GetMe():GotBuff(1388) == false)) -- Greater Might



and
(WhoToInv ~= nil) and
(WhoToInv:IsMyPartyMember() == false) and
(GetMe():GetRangeTo(WhoToInv) < SendInvIfBufferInRange)then

ShowToClient("SYS", "Inviting " ..DCName .. " for buff");
Sleep(800);
Command("/invite "..DCName);

repeat
Sleep(500);

until((GetMe():GotBuff(1035) == false) or -- Mental Shield
(GetMe():GotBuff(1036) == false) or -- Magic Barrier
(GetMe():GotBuff(1040) == false) or -- Shield
(GetMe():GotBuff(1045) == false) or -- Blessed Body
(GetMe():GotBuff(1048) == false) or -- Blessed Soul
(GetMe():GotBuff(1077) == false) or -- Focus
(GetMe():GotBuff(1240) == false) or -- Guidance
(GetMe():GotBuff(1242) == false) or -- Death Whisper
(GetMe():GotBuff(1243) == false) or -- Bless Shield
(GetMe():GotBuff(1204) == false) or -- Wind Walk
(GetMe():GotBuff(1086) == false) or -- Haste
(GetMe():GotBuff(1068) == false) or -- Might
(GetMe():GotBuff(1044) == false) or -- Regeneration
(GetMe():GotBuff(1388) == false)) -- Greater Might

(WhoToInv:IsMyPartyMember() == true);

ShowToClient("SYS", "Buffs up, leaving pt...");
Sleep(8000);
Command("/dismiss "..DCName);
Sleep(800);
end;
Sleep(1000);
until false;

LOL DUDE, i just discovered that the script doesn't work properly coz when i gave you the script you ,instead of add buffs id, modified(wrong) it... Then when i was trying to fix it i didn't noticed what u have done...

In the second part of script, the second buff list, the " == false" line must be deleted...

So it should be like this:

    LUA Programming
ShowToClient("SYS","Script for buff detect started");
PPName = "  "; --here write name of your PPname
DDName = "  "; --write name of char you want buff
 
SendInvIfBufferInRange = 800;
----------------------------------------------------------------
WhoToInv = nil;
 
 
repeat
if(GetUserByName(PPName) == nil)then
ShowToClient("SYS","Your buffer is out of range, w8ing on him");
repeat
Sleep(1000);
until (GetUserByName(PPName) ~= nil);
ShowToClient("SYS","Your buffer is in range");
WhoToInv = GetUserByName(PPName);
elseif(GetUserByName(PPName) ~= nil)then
WhoToInv = GetUserByName(PPName);
end;
 
if((GetMe():GotBuff(1035) == false) or -- Mental Shield
(GetMe():GotBuff(1036) == false) or -- Magic Barrier
(GetMe():GotBuff(1040) == false) or -- Shield 
(GetMe():GotBuff(1045) == false) or -- Blessed Body
(GetMe():GotBuff(1048) == false) or -- Blessed Soul
(GetMe():GotBuff(1077) == false) or -- Focus
(GetMe():GotBuff(1240) == false) or -- Guidance
(GetMe():GotBuff(1242) == false) or -- Death Whisper
(GetMe():GotBuff(1243) == false) or -- Bless Shield
(GetMe():GotBuff(1204) == false) or -- Wind Walk
(GetMe():GotBuff(1086) == false) or -- Haste
(GetMe():GotBuff(1068) == false) or -- Might
(GetMe():GotBuff(1044) == false) or -- Regeneration
(GetMe():GotBuff(1388) == false)) and -- Greater Might
 
(WhoToInv ~= nil) and 
(WhoToInv:IsMyPartyMember() == false) and
(GetMe():GetRangeTo(WhoToInv) < SendInvIfBufferInRange)then
 
ShowToClient("SYS", "Inviting " ..PPName .. " for buff");
Sleep(800);
Command("/invite "..PPName);
 
repeat 
Sleep(500);
 
until((GetMe():GotBuff(1035) ) and -- Mental Shield
(GetMe():GotBuff(1036) ) and -- Magic Barrier
(GetMe():GotBuff(1040) ) and -- Shield 
(GetMe():GotBuff(1045) ) and -- Blessed Body
(GetMe():GotBuff(1048) ) and -- Blessed Soul
(GetMe():GotBuff(1077) ) and -- Focus
(GetMe():GotBuff(1240) ) and -- Guidance
(GetMe():GotBuff(1242) ) and -- Death Whisper
(GetMe():GotBuff(1243) ) and -- Bless Shield
(GetMe():GotBuff(1204) ) and -- Wind Walk
(GetMe():GotBuff(1086) ) and -- Haste
(GetMe():GotBuff(1068) ) and -- Might
(GetMe():GotBuff(1044) ) and -- Regeneration
(GetMe():GotBuff(1388) )) and -- Greater Might
(WhoToInv:IsMyPartyMember() == true);
 
ShowToClient("SYS", "Buffs up, leaving pt...");
Sleep(8000);
Command("/dismiss "..PPName); 
Sleep(800);
end;
Sleep(1000);
until false;

(This post was last modified: 06-30-2012 19:41 PM by TheBl4ckPhoenix.)
06-30-2012 19:37 PM
Find all posts by this user
GrieverFX Offline
Goblin Grave Robber
*

Posts: 16
Joined: Oct 2011
Reputation: 0
Version: 1.4.3.143
Post: #19
RE: PP BUFFS

(05-30-2012 19:23 PM)TheBl4ckPhoenix Wrote:  click both buttons
You mean click the '>' and the 'circle arrow' button? Because often that when I click one of the button then the button become 1 'x' button.
Your script above, after it runs for couple of hours, it will not dismiss PP even after all buffs are up. I don't know what is wrong but maybe you can help me with this.
07-07-2012 16:44 PM
Find all posts by this user
TheBl4ckPhoenix Offline
(^.^)
****

Posts: 1,871
Joined: Mar 2012
Reputation: 601
Version: 1.4.3.143
Post: #20
RE: PP BUFFS

With ' > ' it will run script 1 time
With ' > ' + ' circle' it will run in loop the script, then it will appear a ' x ' (use it to STOP the script)


If after a while the script stop working is becouse of your pc, it isn't a script problem
07-07-2012 18:16 PM
Find all posts by this user
Thread Closed 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  //cfg party buffs cant make them work (help) drake182 3 3,881 01-02-2016 05:47 AM
Last Post: Wazzapkhv
  party buffs stopped work buybuy 2 2,771 09-01-2015 19:54 PM
Last Post: buybuy
Thumbs Up Iss Buffs fotarastm 5 6,557 08-29-2015 00:55 AM
Last Post: jokerakos
  Can BOT automate to go back to city for buffs and get back XP? Dmoppers 2 2,839 01-02-2015 21:18 PM
Last Post: tophersoccer
  ISS BUFFS lampie2000 0 2,785 08-15-2014 10:09 AM
Last Post: lampie2000
  L2 Tower v1.4.1.119 Erro = Assist , Follow.Party Buffs penetrafox 12 8,484 05-06-2014 05:31 AM
Last Post: UDP
  For those having trouble w/ h5 auto-party buffs loosefingerz 0 2,127 08-23-2013 06:33 AM
Last Post: loosefingerz
Information Delay between buffs/skills Pauli88 2 3,208 08-12-2013 00:39 AM
Last Post: Pauli88
  Party buffs norvegas25 6 9,746 07-28-2013 16:45 PM
Last Post: jacka147
  bot with out buffs takissss 2 3,079 07-25-2013 00:37 AM
Last Post: wasty



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