AOCzxc Posted March 5, 2018 Group: Members Topic Count: 29 Topics Per Day: 0.01 Content Count: 54 Reputation: 1 Joined: 02/18/18 Last Seen: March 16, 2023 Share Posted March 5, 2018 I'm looking for WOE Controller with reward for winning guild after woe! reward = automatic recieved by the winning guild after woe... Quote Link to comment Share on other sites More sharing options...
0 BrOgBr Posted March 5, 2018 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 97 Reputation: 10 Joined: 01/21/13 Last Seen: March 16, 2019 Share Posted March 5, 2018 (edited) This?https://github.com/rathena/rathena/blob/master/npc/custom/woe_controller.txt Quote // Rewards per castle. // -- when given directly: <itemID>,<amount>{,<itemID>,<amount>,...} // -- via mail (option 2): <itemID>,<amount>,<Zeny> setarray .Reward[0],14001,1; Edited March 5, 2018 by BrOgBr Quote Link to comment Share on other sites More sharing options...
0 hendra814 Posted March 5, 2018 Group: Members Topic Count: 55 Topics Per Day: 0.01 Content Count: 1188 Reputation: 161 Joined: 06/12/12 Last Seen: 1 hour ago Share Posted March 5, 2018 1 hour ago, BrOgBr said: This?https://github.com/rathena/rathena/blob/master/npc/custom/woe_controller.txt you can try this too - script guild_vs1s2 -1,{ OnAgitEnd: callsub( L_reward,0, "guild_vs1" ); end; OnAgitEnd2: callsub( L_reward,1, "guild_vs1" ); end; L_reward: .@type = getarg( 0,0 ); .@map$ = getarg( 1,"" ); if ( .@type == 0) { // woe fe setarray .@item_master, 30206,2; setarray .@item_member, 30206,1; } else { // woe se setarray .@item_master, 30206,2; setarray .@item_member, 30206,1; } .@item_master_size = getarraysize( .@item_master ) - 1; .@item_member_size = getarraysize( .@item_member ) - 1; if ( .@map$ != "" ) { .@gid = getcastledata( .@map$,1 ); if ( .@gid > 0 ) { getguildmember .@gid,1; getguildmember .@gid,2; .@master_id = getcharid( 3, getguildmaster( .@gid ) ); while ( .@i < $@guildmembercount ) { .@x = 0; if ( isloggedin( $@guildmemberaid[.@i],$@guildmembercid[.@i] ) ) { if ( $@guildmemberaid[.@i] == .@master_id ) { while ( .@x < .@item_master_size ) { if ( CheckVending() ){ end; } getitem .@item_master[.@x],.@item_master[.@x+1],$@guildmemberaid[.@i]; .@x += 2; } } else { while ( .@x < .@item_member_size ) { if ( CheckVending() ){ end; } getitem .@item_member[.@x],.@item_member[.@x+1],$@guildmemberaid[.@i]; .@x += 2; } } } .@i++; } } } return; } Quote Link to comment Share on other sites More sharing options...
0 AOCzxc Posted March 5, 2018 Group: Members Topic Count: 29 Topics Per Day: 0.01 Content Count: 54 Reputation: 1 Joined: 02/18/18 Last Seen: March 16, 2023 Author Share Posted March 5, 2018 6 hours ago, BrOgBr said: This?https://github.com/rathena/rathena/blob/master/npc/custom/woe_controller.txt this script is per castle. Quote Link to comment Share on other sites More sharing options...
Question
AOCzxc
I'm looking for WOE Controller with reward for winning guild after woe!
reward = automatic recieved by the winning guild after woe...
Link to comment
Share on other sites
3 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.