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

Thread Closed 
 
Thread Rating:
  • 7 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"Accept party invite" bugs sometimes
Author Message
DrizzLx Offline
Expired VIP Member
**

Posts: 15
Joined: Jan 2012
Reputation: 0
Version: 1.4.2.142
Post: #1
"Accept party invite" bugs sometimes

I have a script that invites my iss for buffs. However, sometimes he fails to buff because he is trying to move. If I try to quickly invite him back to the party he won't accept. I did fix this problem by putting a longer invite delay on, but I don't understand why it bugs out if you dismiss and try to invite him back instantly.
07-13-2012 03:54 AM
Find all posts by this user
Hebdzik Offline
Tester

Posts: 1,235
Joined: Aug 2011
Reputation: 265
Version: 1.4.3.143
Post: #2
RE: "Accept party invite" bugs sometimes

try something like this
    LUA Programming
ShowToClient("SYS","Script Ask Pt For Sonata Started");
IssName = "Zoi";	--here write name of your Iss
----------------------------------------------------------------
WhoToInv = nil;
function CheakIfBuffMissing()
	user = GetMe();
	if((user:GotBuff(1040) == false) or  --Shield
		(user:GotBuff(1035) == false) or --Mental Shield
		(user:GotBuff(1204) == false) or --Wind Walk
		(user:GotBuff(1068) == false) or --Might
		(user:GotBuff(1077) == false) or --Focus
		(user:GotBuff(1242) == false) or --Death Whisper
		(user:GotBuff(1240) == false) or --Guidance
		(user:GotBuff(1268) == false)) then --Vampiric Rage
		return true;
		end;
	return false;
end;
 
function CheakIfHaveAllBuffs()
	user = GetMe();
	if((user:GotBuff(1040)) and  --Shield
		(user:GotBuff(1035)) and --Mental Shield
		(user:GotBuff(1204)) and --Wind Walk
		(user:GotBuff(1068)) and --Might
		(user:GotBuff(1077)) and --Focus
		(user:GotBuff(1242)) and --Death Whisper
		(user:GotBuff(1240)) and --Guidance
		(user:GotBuff(1268))) then --Vampiric Rage
		return true;
		end;
	return false;
end;
 
function LocateBuffer(BuffName)
	if(GetUserByName(BuffName) == nil)then
		ShowToClient("SYS","Your buffer is out of range, w8ing on him");
		repeat
			Sleep(1000);
		until (GetUserByName(BuffName) ~= nil);
		ShowToClient("SYS","Your buffer is in range");
		WhoToInv = GetUserByName(IssName);
	elseif(GetUserByName(IssName) ~= nil)then
		WhoToInv = GetUserByName(IssName);
	end;	
end;
repeat
	LocateBuffer(IssName);
	if(CheakIfBuffMissing())and (WhoToInv ~= nil) and (WhoToInv:IsMyPartyMember() == false) and (GetMe():GetRangeTo(WhoToInv) < 750)then
		ShowToClient("SYS", "Inviting " ..IssName .. " for buff");
		InviteToParty(IssName,2);
		Sleep(14000);
		if(WhoToInv:IsMyPartyMember())then
			repeat 
				Sleep(3000);
			until CheakIfHaveAllBuffs();
			ShowToClient("SYS", "Buffs up, kiking buffer from pt...");
			Sleep(500);
			KickPartyMember(IssName);
		end;
	end;
	Sleep(1000)
until false;



delays between invites must be 14 because this time you get window with inviting option.
07-13-2012 09:26 AM
Find all posts by this user
Thread Closed 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
Information How to get 'PARTY MEMBER TARGET'? Caaioc 9 6,828 01-24-2016 09:57 AM
Last Post: TheQQmaster
  //cfg party buffs cant make them work (help) drake182 3 3,874 01-02-2016 05:47 AM
Last Post: Wazzapkhv
  How i do to prophet heal the party player ? sectorzueira 2 3,058 09-11-2015 13:40 PM
Last Post: sectorzueira
  party buffs stopped work buybuy 2 2,770 09-01-2015 19:54 PM
Last Post: buybuy
  AUTO RES ACCEPT sonsfully 17 12,202 07-15-2015 19:59 PM
Last Post: Maveco
  Auto Accept Res Not working aywka 32 17,801 07-10-2015 08:16 AM
Last Post: TheQQmaster
  WTB Auto accept mail scripts or plugins king200527 0 2,387 07-07-2015 11:39 AM
Last Post: king200527
  Good party with Ertheia ( Eviscerator) cuongbeo88 12 11,499 05-24-2015 23:42 PM
Last Post: rhadamants
  Help Auto Buff Or Heal For Not In Party Verheiden 3 4,502 04-27-2015 16:58 PM
Last Post: Hebdzik
  script sumon select party erickalisetc 8 4,809 01-23-2015 22:17 PM
Last Post: tophersoccer



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