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: #1
PP BUFFS

Is Possible to Use a PP Buffs out off pt or Maybe Buff and leave party ?!! Angel Well I'm playing Interlud ...
(This post was last modified: 05-29-2012 03:32 AM by pegas20.)
05-29-2012 02:22 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: PP BUFFS

Use command in chat /recstart_"scriptname" to register your skill's Id by using them, then /recstop
Open the file .txt saved into your script folder with l2scripteditor, then on a new "page" paste this script (last post) that i made yesterday for WC's buffs, and just change buff's ID With yours....

http://forum.l2tower.eu/showthread.php?tid=3463

    LUA Programming
ShowToClient("SYS","Script for buff detect started");
DCName = ""; --here write name of your DoomCryer
DDName = ""; --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(1002) == false) or  --Flame chant
		(GetMe():GotBuff(1562) == false) or -- Chant of Berserkeror 
		(GetMe():GotBuff(1006) == false) or -- Chant of Fire 
		(GetMe():GotBuff(1309) == false) or -- Chant of Eagle
		(GetMe():GotBuff(1362) == false) or -- Chant of Spirit or
		(GetMe():GotBuff(1390) == false) or -- War Chant
		(GetMe():GotBuff(1461) == false) or -- Chant of Protection
		(GetMe():GotBuff(1284) == false) or -- Chant of Revenge
		(GetMe():GotBuff(1535) == false) or -- Chant of Movement
		(GetMe():GotBuff(1519) == false) or -- Chant of Blood Awakening
		(GetMe():GotBuff(1518) == false) or -- Chant of Critical Attack
		(GetMe():GotBuff(1517) == false) or -- Chant of Combat
		(GetMe():GotBuff(1549) == false) or -- Chant of Elements
		(GetMe():GotBuff(1363) == false)) -- Chant of Victory
 
 
 
		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(1002)) or  --Flame chant
		(GetMe():GotBuff(1562)) or -- Chant of Berserkeror 
		(GetMe():GotBuff(1006)) or -- Chant of Fire 
		(GetMe():GotBuff(1309)) or -- Chant of Eagle
		(GetMe():GotBuff(1362)) or -- Chant of Spirit or
		(GetMe():GotBuff(1390)) or -- War Chant
		(GetMe():GotBuff(1461)) or -- Chant of Protection
		(GetMe():GotBuff(1284)) or -- Chant of Revenge
		(GetMe():GotBuff(1535)) or -- Chant of Movement
		(GetMe():GotBuff(1519)) or -- Chant of Blood Awakening
		(GetMe():GotBuff(1518)) or -- Chant of Critical Attack
		(GetMe():GotBuff(1517)) or -- Chant of Combat
		(GetMe():GotBuff(1549)) or -- Chant of Elements
		(GetMe():GotBuff(1363)))and -- Chant of Victory
 
		(WhoToInv:IsMyPartyMember() == true);
 
		ShowToClient("SYS", "Buffs up, leaving pt...");
		Sleep(8000);
		Command("/dismiss "..DCName); 
        Sleep(800);
	end;
	Sleep(1000);
until false;

(This post was last modified: 05-29-2012 09:51 AM by TheBl4ckPhoenix.)
05-29-2012 05:39 AM
Find all posts by this user
pegas20 Offline
Goblin Grave Robber
*

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

Thanks Man Tongue Gona try it and Coming bakc if i had some problems Wink

Won't Work i Change buffs Id and write Dcname and ddname but nothing
(This post was last modified: 05-30-2012 01:12 AM by pegas20.)
05-29-2012 22:45 PM
Find all posts by this user
TheBl4ckPhoenix Offline
(^.^)
****

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

.... You have to set up buffs with normal l2tower settings and then activate script only on char that must be buffed, and auto party accept on pp...
05-30-2012 01:45 AM
Find all posts by this user
pegas20 Offline
Goblin Grave Robber
*

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

(05-30-2012 01:45 AM)TheBl4ckPhoenix Wrote:  .... You have to set up buffs with normal l2tower settings and then activate script only on char that must be buffed, and auto party accept on pp...

Oks Gona try it and back Wink Smile

(05-30-2012 15:25 PM)pegas20 Wrote:  
(05-30-2012 01:45 AM)TheBl4ckPhoenix Wrote:  .... You have to set up buffs with normal l2tower settings and then activate script only on char that must be buffed, and auto party accept on pp...

Oks Gona try it and back Wink Smile

I do every thing you said and when i use //Cfg --> Script --> 123456.lua he write me C:\User...Tower\Script\123456.lua:66: and wont work
(This post was last modified: 05-30-2012 15:36 PM by pegas20.)
05-30-2012 15:25 PM
Find all posts by this user
TheBl4ckPhoenix Offline
(^.^)
****

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

.... Did you add buffer name (DCname = " ") and main char name (DDname = " ") in the script?
05-30-2012 16:51 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: #7
RE: PP BUFFS

(05-30-2012 16:51 PM)TheBl4ckPhoenix Wrote:  .... Did you add buffer name (DCname = " ") and main char name (DDname = " ") in the script?

Yep Sure !! and change the buffs ID
05-30-2012 18:08 PM
Find all posts by this user
TheBl4ckPhoenix Offline
(^.^)
****

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

Post it here
05-30-2012 18:13 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: #9
RE: PP BUFFS

(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;
05-30-2012 18:37 PM
Find all posts by this user
TheBl4ckPhoenix Offline
(^.^)
****

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

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;

05-30-2012 18:58 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,874 01-02-2016 05:47 AM
Last Post: Wazzapkhv
  party buffs stopped work buybuy 2 2,770 09-01-2015 19:54 PM
Last Post: buybuy
Thumbs Up Iss Buffs fotarastm 5 6,549 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,838 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,479 05-06-2014 05:31 AM
Last Post: UDP
  For those having trouble w/ h5 auto-party buffs loosefingerz 0 2,124 08-23-2013 06:33 AM
Last Post: loosefingerz
Information Delay between buffs/skills Pauli88 2 3,207 08-12-2013 00:39 AM
Last Post: Pauli88
  Party buffs norvegas25 6 9,741 07-28-2013 16:45 PM
Last Post: jacka147
  bot with out buffs takissss 2 3,076 07-25-2013 00:37 AM
Last Post: wasty



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