Jump to content
  • 0

WOE Controller with reward (for winning guild only)


AOCzxc

Question


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  54
  • Reputation:   1
  • Joined:  02/18/18
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  97
  • Reputation:   10
  • Joined:  01/21/13
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  1188
  • Reputation:   161
  • Joined:  06/12/12
  • Last Seen:  

1 hour ago, BrOgBr said:

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

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  54
  • Reputation:   1
  • Joined:  02/18/18
  • Last Seen:  

6 hours ago, BrOgBr said:

this script is per castle. 

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