Lineage 2 Tower Forum

Full Version: v.131 | Friends and Clan Member functions fails?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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

Use player:GetClanName() == GetMe():GetClanName()
(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
Reference URL's