Jump to content
  • 0

Guild leader x2 item when killed


Question

5 answers to this question

Recommended Posts

Posted
-	script	dshfkdsfjhksfj	-1,{
OnPCKillEvent:
.@origin = getcharid(3);
attachrid killedrid;
if ( !getcharid(2) ) end;
if ( getguildmasterid( getcharid(2) ) == getcharid(0) )
	getitem 7227, 20, .@origin;
else
	getitem 7227, 10, .@origin;
end;
}

Posted (edited)

thank you so much annie.......... but i cant test the script now........ anyway is this script limited only to castles places? i mean if i go to pvp and i kill some guild leader's would i received items?

Edited by caspa
Posted

-	script	dshfkdsfjhksfj	-1,{
OnPCKillEvent:
.@origin = getcharid(3);
attachrid killedrid;
if ( !getcharid(2) ) end;
if ( getguildmasterid( getcharid(2) ) == getcharid(0) )
	getitem 7227, 20, .@origin;
else
	getitem 7227, 10, .@origin;
end;
}

I'm currently using this and it's working, but is really easily abusable.

Can it be set to as you can only get the item if the GM of the guild killed has at least 10 online members in his guild and only applicable to current active castle (Euphy's Controller)

Posted

-	script	dshfkdsfjhksfj	-1,{
OnPCKillEvent:
.@origin = getcharid(3);
attachrid killedrid;
if ( !getcharid(2) ) end;
query_sql "select count(1) from guild_member where guild_id = "+ getcharid(2), .@count;
if ( .@count < 10 ) end;
if ( getguildmasterid( getcharid(2) ) == getcharid(0) )
	getitem 7227, 20, .@origin;
else
	getitem 7227, 10, .@origin;
end;
}

doing like this doesn't feel right

better grap this source modification

-	script	dshfkdsfjhksfj	-1,{
OnPCKillEvent:
.@origin = getcharid(3);
attachrid killedrid;
if ( !getcharid(2) ) end;
getguildmember getcharid(2);
if ( $@guildmembercount < 10 ) end;
if ( getguildmasterid( getcharid(2) ) == getcharid(0) )
	getitem 7227, 20, .@origin;
else
	getitem 7227, 10, .@origin;
end;
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...