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

Post Reply 
 
Thread Rating:
  • 8 Vote(s) - 3.75 Average
  • 1
  • 2
  • 3
  • 4
  • 5
iss script not working
Author Message
gino2323 Offline
Expired VIP Member
**

Posts: 33
Joined: Dec 2011
Reputation: -4
Version: 1.4.2.133
Post: #1
iss script not working

    LUA Programming
ShowToClient("SYS","Script Para Buffar Estartado");
PPName = ""; --here write name of your PPname
DDName = ""; --write name of char you want buff
 
SendInvItBufferInRange = 800;
----------------------------------------------------------------
WhoToInv = nil;
 
 
repeat
if(GetUserByName(PPName) == nil)then
ShowToClient("SYS","Buffer Muito Longe, Espere");
repeat
Sleep(1000);
until (GetUserByName(PPName) ~= nil);
ShowToClient("SYS","O Buffer esta Perto");
WhoToInv = GetUserByName(PPName);
elseif(GetUserByName(PPName) ~= nil)then
WhoToInv = GetUserByName(PPName);
end;
 
if((GetMe():GotBuff(11529) == false) or --Prevailing 
(GetMe():GotBuff(11530) == false) or --Daring
(GetMe():GotBuff(11532) == false) or --Refreshing
(GetMe():GotBuff(11524) == false) or --Warrior's Harmony 11525 Wizzard's
(GetMe():GotBuff(11517) == false) or --Horn Melody
(GetMe():GotBuff(11518) == false) or --Drum Melody
(GetMe():GotBuff(11520) == false) or --Guitar Melody
(GetMe():GotBuff(11521) == false) or --Harp Melody
(GetMe():GotBuff(11522) == false) or --Lute Melody
(GetMe():GotBuff(11519) == false) or --Pipe Organ Melody
(GetMe():GotBuff(11565) == false) or --Elemental Protection
(GetMe():GotBuff(11566) == false) or --Divine Protection
(GetMe():GotBuff(11567) == false)) and --Mental Protection
 
(WhoToInv ~= nil) and 
(WhoToInv:IsMyPartyMember() == false) and
(GetMe():GetRangeTo(WhoToInv) < SendInvItBufferInRange)then
 
ShowToClient("SYS", "Invitando " ..PPName .. " Para Buffar");
Sleep(400);
Command("/invite "..PPName);
 
repeat 
Sleep(100);
 
until ((GetMe():GotBuff(11529)) and --Prevailing 
(GetMe():GotBuff(11530)) and --Daring
(GetMe():GotBuff(11532)) and --Refreshing
(GetMe():GotBuff(11524)) and --Warrior's Harony 11525 Wizzard's
(GetMe():GotBuff(11517)) and --Horn Melody
(GetMe():GotBuff(11518)) and --Drum Melody
(GetMe():GotBuff(11520)) and --Guitar Melody
(GetMe():GotBuff(11521)) and --Harp Melody
(GetMe():GotBuff(11522)) and --Lute Melody
(GetMe():GotBuff(11519)) and --Pipe Organ Melody
(GetMe():GotBuff(11565)) and --Elemental Protection
(GetMe():GotBuff(11566)) and --Divine Protection
(GetMe():GotBuff(11567))) and --Mental Protection
 
(WhoToInv:IsMyPartyMember() == true);
 
ShowToClient("SYS", "Buffs Ok, Saindo da pt...");
Sleep(2000);
Command("/dismiss "..PPName); 
Sleep(400);
end;
Sleep(1000);
until false;




Buffs Mentor

    LUA Programming
ShowToClient("SYS","Script Iniciado");
PPName = "NAMEISS"; --here write name of your PPname
DDName = "NAMECHAR"; --write name of char you want buff
 
SendInvItBufferInRange = 800;
----------------------------------------------------------------
WhoToInv = nil;
 
 
repeat
if(GetUserByName(PPName) == nil)then
ShowToClient("SYS","Buffer Fora do Alcance");
repeat
Sleep(1000);
until (GetUserByName(PPName) ~= nil);
ShowToClient("SYS","Buffer Esta no Alcance");
WhoToInv = GetUserByName(PPName);
elseif(GetUserByName(PPName) ~= nil)then
WhoToInv = GetUserByName(PPName);
end;
 
if((GetMe():GotBuff(11529) == false) or --Prevailing
(GetMe():GotBuff(11530) == false) or --Daring 
(GetMe():GotBuff(11532) == false) or --Refreshing
(GetMe():GotBuff(11525) == false) or --Warrior's Harmony
(GetMe():GotBuff(11565) == false) or --Elemental Protection
(GetMe():GotBuff(11566) == false) or --Divine Protection
(GetMe():GotBuff(11567) == false)) and --Mental Protection
 
 
 
(WhoToInv ~= nil) and 
(WhoToInv:IsMyPartyMember() == false) and
(GetMe():GetRangeTo(WhoToInv) < SendInvItBufferInRange)then
 
ShowToClient("SYS", "Invitando " ..PPName .. " Para Buffar");
Sleep(800);
Command("/invite "..PPName);
 
repeat 
Sleep(500);
 
until ((GetMe():GotBuff(11529)) and --Prevailing 
(GetMe():GotBuff(11530)) and --Daring 
(GetMe():GotBuff(11532)) and --Refreshing
(GetMe():GotBuff(11525)) and --Warrior's Harmony
(GetMe():GotBuff(11565)) and --Elemental Protection
(GetMe():GotBuff(11566)) and --Divine Protection
(GetMe():GotBuff(11567))) and --Mental Protection
 
 
(WhoToInv:IsMyPartyMember() == true);
 
ShowToClient("SYS", "Buffs Ok, Saindo da pt...");
Sleep(4000);
Command("/dismiss "..PPName); 
Sleep(800);
end;
Sleep(1000);
until false;

 
GETTING AN ERROR.


Attached File(s) Thumbnail(s)
   
(This post was last modified: 11-13-2012 20:17 PM by TheBl4ckPhoenix.)
11-13-2012 19:52 PM
Find all posts by this user Quote this message in a reply
Fox Away
Fraka-kaka-kaka-kaka-kow!
******

Posts: 5,632
Joined: Oct 2011
Reputation: -6666548
Version: 1.4.2.142
Post: #2
RE: iss script not working

Ban yourself from nc servers? Use brain before posting in game names

Heart
11-13-2012 19:59 PM
Visit this user's website Find all posts by this user Quote this message in a reply
TheBl4ckPhoenix Offline
(^.^)
****

Posts: 1,871
Joined: Mar 2012
Reputation: 601
Version: 1.4.3.143
Post: #3
RE: iss script not working

Names fixed, anyway LOL dude you are trying to run 2 different scripts in the SAME script xD one with mentor and one without, "mentor" is just the indicative title of the script wrote on forum. OFC script editor sees it as an error LOL
(This post was last modified: 11-13-2012 20:18 PM by TheBl4ckPhoenix.)
11-13-2012 20:14 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  L2.exe stop working + L2Tower Update Failing azorean 15 16,713 09-27-2015 21:14 PM
Last Post: calladr
Information L2Tower not working anymore azorean 3 7,346 02-07-2014 12:06 PM
Last Post: azorean
  Editor not working on Official truckertoni 12 9,859 08-08-2013 12:31 PM
Last Post: soad
Sad SELF BUFFS on Main Menu not working Inspector 7 6,488 07-12-2013 04:29 AM
Last Post: Inspector
Sad l2.exe stopped working xAmudielx 1 4,532 06-13-2013 11:56 AM
Last Post: armyruss79
Sad L2.exe stopped working xAmudielx 2 6,457 02-15-2013 09:40 AM
Last Post: Hebdzik
  reply button not working/ buffer not getting kicked. gino2323 1 3,361 11-14-2012 13:23 PM
Last Post: HelpBot
  FAQ - How to solve basic bot problems and get it working... ClockMan 0 94,881 10-12-2011 10:14 AM
Last Post: ClockMan
  FAQ - Working bot problems ClockMan 0 16,277 08-17-2011 14:57 PM
Last Post: ClockMan



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