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
v.131 | Friends and Clan Member functions fails?
Author Message
rORUMI Offline
Expired VIP Member
**

Posts: 278
Joined: May 2014
Reputation: 50
Version: 1.4.2.142
Post: #1
v.131 | Friends and Clan Member functions fails?

Hi. I do a simple script to make faster my party, and see 2 functions working wrong: IsMyClanMember() and IsFriend() dont return true.

Maybe i make a wrong code, but i invite in this way:

1: list
2: Clan
3: Friend

And only the chars in list works. (just becouse take the name and not check clan or friend relation)

Ex: Fail
    LUA Programming
if (player ~= nil) and (player:IsMyClanMember()) and (player:GetDistance() < partyRangeCheck) then



Ex: Work

    LUA Programming
if (player ~= nil) and (player:GetDistance() < partyRangeCheck) then

(This post was last modified: 09-20-2014 10:37 AM by rORUMI.)
09-20-2014 10:24 AM
Find all posts by this user Quote this message in a reply
Syloth Offline
Expired VIP Member
**

Posts: 83
Joined: Dec 2011
Reputation: 14
Version: 1.4.2.142
Post: #2
RE: v.131 | Friends and Clan Member functions fails?

Use player:GetClanName() == GetMe():GetClanName()
09-20-2014 15:35 PM
Find all posts by this user Quote this message in a reply
 Reputed by : Fox(+2) , rORUMI(+2)
rORUMI Offline
Expired VIP Member
**

Posts: 278
Joined: May 2014
Reputation: 50
Version: 1.4.2.142
Post: #3
Tongue RE: v.131 | Friends and Clan Member functions fails?

(09-20-2014 15:35 PM)Syloth Wrote:  Use player:GetClanName() == GetMe():GetClanName()

Tested. Work perfect. ty

Result: (changing the real names X) )

[20/09/2014 06:08:17 p.m.]PartyMA Member Number: 0
[20/09/2014 06:08:17 p.m.]PartyMA Looking for: Chars to invite
[20/09/2014 06:08:17 p.m.]PartyMA Looking for: Clan Member to invite
[20/09/2014 06:08:17 p.m.]PartyMA Clan - Found: Char1
[20/09/2014 06:08:22 p.m.]PartyMA Clan - Invite: Char1
[20/09/2014 06:08:32 p.m.]PartyMA Clan - Found: Char2
[20/09/2014 06:08:37 p.m.]PartyMA Clan - Invite: Char2
[20/09/2014 06:08:47 p.m.]PartyMA Clan - Found: Char3
[20/09/2014 06:08:52 p.m.]PartyMA Clan - Invite: Char3
[20/09/2014 06:09:02 p.m.]PartyMA Clan - Found: Char4
[20/09/2014 06:09:07 p.m.]PartyMA Clan - Invite: Char4
[20/09/2014 06:09:17 p.m.]PartyMA Clan - Found: Char5
[20/09/2014 06:09:22 p.m.]PartyMA Clan - Invite: Char5
[20/09/2014 06:09:32 p.m.]PartyMA Clan - Found: Char6
[20/09/2014 06:09:37 p.m.]PartyMA Clan - Invite: Char6
[20/09/2014 06:10:02 p.m.]PartyMA Member Number: 6
[20/09/2014 06:10:02 p.m.]PartyMA Party: Full
(This post was last modified: 09-22-2014 00:17 AM by rORUMI.)
09-21-2014 23:23 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,246 01-24-2016 09:57 AM
Last Post: TheQQmaster
  select member of party to summon bistabil 6 4,186 12-10-2014 22:49 PM
Last Post: bistabil
  VIP member eriqq 9 3,652 08-03-2014 12:03 PM
Last Post: Fox
Smile CLAN BUFF wintersung13 4 4,337 05-12-2014 13:22 PM
Last Post: vochikien
Information Clan War NaoJogoMais 0 1,627 02-01-2014 13:35 PM
Last Post: NaoJogoMais
Smile L2 Tower Fails lKakashi 3 3,290 01-10-2014 18:44 PM
Last Post: bygru
  Clan IDs change all the time since lindviour tuxevil 0 1,720 07-22-2013 20:04 PM
Last Post: tuxevil
  Looking for botting friends askoto 2 2,581 06-03-2013 07:00 AM
Last Post: askoto
  Giant Energy - Provisional Clan Hall NaoJogoMais 3 5,869 05-27-2013 23:36 PM
Last Post: Soax
  script to put money on clan warehouse zensation 0 1,851 03-29-2013 17:10 PM
Last Post: zensation



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