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

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
script sumon select party
Author Message
erickalisetc Offline
Expired VIP Member
**

Posts: 69
Joined: Apr 2014
Reputation: 1
Version: 1.4.2.142
Post: #1
script sumon select party

as would be the function to even select party member who is away for long-range this function is only when close I need help




repeat
Target("name");
UseSkill(1403, false, false); -- Summon Friend
Sleep(3000);
ClearTargets();
CancelTarget(false);
Sleep(10*60*1000); -- 10 minutes sleep
until false;
01-22-2015 02:45 AM
Find all posts by this user Quote this message in a reply
tophersoccer Offline
Expired VIP Member
**

Posts: 422
Joined: Aug 2012
Reputation: 142
Version: 1.4.3.143
Post: #2
RE: script sumon select party

    LUA Programming
distance = 1000
function Cast(id)
if id then
skill = GetSkills():FindById(id)
if skill and skill:CanBeUsed() then
UseSkillRaw(id,false,false)
return true
end
end
return false
end
 
repeat
for member in GetPartyList().list do
if member:GetDistance() > distance then
Target(member);
Sleep{500)
Cast(1403} -- Summon Friend
Sleep(3000);
ClearTargets();
CancelTarget(false);
end
end
Sleep(10*60*1000); -- 10 minutes sleep
until false;

(This post was last modified: 01-23-2015 17:33 PM by tophersoccer.)
01-22-2015 20:55 PM
Find all posts by this user Quote this message in a reply
knutoz Offline
Expired VIP Member
**

Posts: 283
Joined: Aug 2013
Reputation: 17
Version: 1.4.2.133
Post: #3
RE: script sumon select party

(01-22-2015 20:55 PM)tophersoccer Wrote:  
    LUA Programming
distance = 1000
repeat
for member in GetPartyList().list do
if member:GetDistance() > distance then
Target("name");
UseSkill(1403, false, false); -- Summon Friend
Sleep(3000);
ClearTargets();
CancelTarget(false);
end
end
Sleep(10*60*1000); -- 10 minutes sleep
until false;


If the pt menber is far away it shouldn't work, cuz missing target
01-23-2015 14:33 PM
Find all posts by this user Quote this message in a reply
tophersoccer Offline
Expired VIP Member
**

Posts: 422
Joined: Aug 2012
Reputation: 142
Version: 1.4.3.143
Post: #4
RE: script sumon select party

i changed it to target the target id of the member instead of my name. Would that work?
01-23-2015 17:40 PM
Find all posts by this user Quote this message in a reply
kerberos464 Offline
Bug revealer

Posts: 1,539
Joined: Jun 2012
Reputation: 576
Version: 1.4.3.143
Post: #5
RE: script sumon select party

nothing of these 2 will not work.
what you need is here (last post):
http://forum.l2tower.eu/thread-summon-by-wynn

Everything is possible. The impossible just takes longer.
01-23-2015 20:13 PM
Visit this user's website Find all posts by this user Quote this message in a reply
 Reputed by : Dunyawa(+2)
tophersoccer Offline
Expired VIP Member
**

Posts: 422
Joined: Aug 2012
Reputation: 142
Version: 1.4.3.143
Post: #6
RE: script sumon select party

(01-23-2015 20:13 PM)kerberos464 Wrote:  nothing of these 2 will not work.
what you need is here (last post):
http://forum.l2tower.eu/thread-summon-by-wynn

can you use packetbuilder in a script?
01-23-2015 21:17 PM
Find all posts by this user Quote this message in a reply
kerberos464 Offline
Bug revealer

Posts: 1,539
Joined: Jun 2012
Reputation: 576
Version: 1.4.3.143
Post: #7
RE: script sumon select party

sure.
but not packetreader.

Everything is possible. The impossible just takes longer.
01-23-2015 21:18 PM
Visit this user's website Find all posts by this user Quote this message in a reply
erickalisetc Offline
Expired VIP Member
**

Posts: 69
Joined: Apr 2014
Reputation: 1
Version: 1.4.2.142
Post: #8
Information RE: script sumon select party

(01-23-2015 20:13 PM)kerberos464 Wrote:  nothing of these 2 will not work.
what you need is here (last post):
http://forum.l2tower.eu/thread-summon-by-wynn

________________________________________________
This is the post but I want to know how to do on or a guide no longer works me and I could not understand the steps to run someone talves to understand more of the plugin and where edit this function (nick, id)? etc .. .


I hope your support thanks

function TargetPartyMember(objId)
local packet = PacketBuilder();
packet:AppendInt(0x1F, 1);
packet:AppendInt(objId, 4);
packet:AppendInt(GetMe():GetLocation().X, 4);
packet:AppendInt(GetMe():GetLocation().Y, 4);
packet:AppendInt(GetMe():GetLocation().Z, 4);
packet:AppendInt(0, 1);
SendPacket(packet);
end;

function OnChatUserMessage(chatType, nick, msg)
if (chatType == L2ChatType.CHAT_PARTY and msg == "summon") then
local party = GetPartyList();
for player in party.list do
if (player:GetName() == nick) then
SetTargetManagerState(false);
TargetPartyMember(player:GetId());
UseSkillRaw(11265, false, false); -- Summon Team Mate
SetTargetManagerState(true);
return;
end;
end;
end;
end;
01-23-2015 21:19 PM
Find all posts by this user Quote this message in a reply
tophersoccer Offline
Expired VIP Member
**

Posts: 422
Joined: Aug 2012
Reputation: 142
Version: 1.4.3.143
Post: #9
RE: script sumon select party

(01-23-2015 21:19 PM)erickalisetc Wrote:  ________________________________________________
This is the post but I want to know how to do on or a guide no longer works me and I could not understand the steps to run someone talves to understand more of the plugin and where edit this function (nick, id)? etc .. .


what? that is not english i can follow. Narrow down what your concern is? If you read the thread where that piece of code came from then you should know how to use it.

Now you need to adapt this code (and maybe some other code) to accomplish what you want to do.
01-23-2015 22:17 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
Information How to get 'PARTY MEMBER TARGET'? Caaioc 9 6,203 01-24-2016 09:57 AM
Last Post: TheQQmaster
  //cfg party buffs cant make them work (help) drake182 3 3,624 01-02-2016 05:47 AM
Last Post: Wazzapkhv
  How i do to prophet heal the party player ? sectorzueira 2 2,838 09-11-2015 13:40 PM
Last Post: sectorzueira
  party buffs stopped work buybuy 2 2,541 09-01-2015 19:54 PM
Last Post: buybuy
  Good party with Ertheia ( Eviscerator) cuongbeo88 12 10,755 05-24-2015 23:42 PM
Last Post: rhadamants
  Help Auto Buff Or Heal For Not In Party Verheiden 3 4,201 04-27-2015 16:58 PM
Last Post: Hebdzik
  When select server - disconnect hcetigol 5 4,292 03-22-2015 21:31 PM
Last Post: hcetigol
  select member of party to summon bistabil 6 4,166 12-10-2014 22:49 PM
Last Post: bistabil
Exclamation Auto Accept Party / Change party leader DONT WORK! JuZioo 2 3,142 10-28-2014 23:39 PM
Last Post: JuZioo
Information Menu Select fioda05 0 1,588 09-16-2014 03:31 AM
Last Post: fioda05



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