caspa Posted February 2, 2013 Group: Members Topic Count: 194 Topics Per Day: 0.04 Content Count: 499 Reputation: 3 Joined: 03/11/12 Last Seen: September 18, 2023 Share Posted February 2, 2013 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? Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted February 2, 2013 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted February 2, 2013 - 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; } Quote Link to comment Share on other sites More sharing options...
caspa Posted February 2, 2013 Group: Members Topic Count: 194 Topics Per Day: 0.04 Content Count: 499 Reputation: 3 Joined: 03/11/12 Last Seen: September 18, 2023 Author Share Posted February 2, 2013 (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 February 2, 2013 by caspa Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted February 2, 2013 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted February 2, 2013 add if ( !getmapflag( strcharinfo(3), mf_gvg_castle ) ) end; under OnPCKillEvent: Quote Link to comment Share on other sites More sharing options...
Linkin Park Posted February 4, 2013 Group: Members Topic Count: 42 Topics Per Day: 0.01 Content Count: 227 Reputation: 11 Joined: 11/16/11 Last Seen: November 7, 2015 Share Posted February 4, 2013 - 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) Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted February 4, 2013 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted February 4, 2013 - 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; } Quote Link to comment Share on other sites More sharing options...
Question
caspa
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.