Jump to content
  • 0

Guild leader x2 item when killed


caspa

Question


  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

hello? can somebody make a script that if i killed the guild leader i get 20 tcg card and if i killed member 10tcg card?

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

-	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;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

add

if ( !getmapflag( strcharinfo(3), mf_gvg_castle ) ) end;

under

OnPCKillEvent:

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  227
  • Reputation:   11
  • Joined:  11/16/11
  • Last Seen:  

-	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)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

-	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;
}

Link to comment
Share on other sites

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.

×
×
  • Create New...