Jump to content
  • 0

KOE Consolation Prize


Finale

Question


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.05
  • Content Count:  37
  • Reputation:   0
  • Joined:  06/09/23
  • Last Seen:  

Hi Team,

 

I am using @AnnieRuru's KOE script for my server. Just want to ask if how can I make loosing guilds receive consolation prize after KOE?

 

Here is the script: https://pastebin.com/M9QED5Gg

 

Thanks!

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  232
  • Reputation:   86
  • Joined:  06/30/18
  • Last Seen:  

You could modify it like this:
At the OnInit on line 18 change:

OnInit:
	disablenpc "The King#KoE";
	disablenpc "Exit#KoE";
	bindatcmd "koe", strnpcinfo(0)+"::OnCommand", 99,100;
	end;

to

OnInit:
	disablenpc "The King#KoE";
	disablenpc "Exit#KoE";
	bindatcmd "koe", strnpcinfo(0)+"::OnCommand", 99,100;
	setarray($@winner_items, 22783, 25, 22780, 25); // <<Item ID>, <Amount>>,...
	setarray($@loser_items, 22783, 10, 22780, 10); // <<Item ID>, <Amount>>,...
	end;

and on line 87 change:

guild_vs1,49,56,5	script	Exit#KoE	1_M_BARD,{
	mes "[Exit]";
	mes "Here's the rewards.";
	mes "See ya!";
	close2;
	warp "Save",0,0;
	if ( getcharid(2) == $koegid )
		getitem 22783, 25; // Finale Token
                getitem 22780, 25; // Guild Weapon Box
	end;
}

to

guild_vs1,49,56,5	script	Exit#KoE	1_M_BARD,{
	mes "[Exit]";
	mes "Here's the rewards.";
	mes "See ya!";
	close2;
	warp "Save",0,0;

	if(getcharid(2) == $koegid)
		copyarray(.@prizes[0], $@winner_items[0], getarraysize($@winner_items));
	else
		copyarray(.@prizes[0], $@loser_item[0], getarraysize($@loser_items));

	for(.@i = 0; .@i < getarraysize(.@prizes); .@i += 2)
		getitem(.@prizes[.@i], .@prizes[.@i + 1]);

	end;
}

 

Edited by Winterfox
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.05
  • Content Count:  37
  • Reputation:   0
  • Joined:  06/09/23
  • Last Seen:  

On 8/23/2023 at 6:20 PM, Winterfox said:

You could modify it like this:
At the OnInit on line 18 change:

OnInit:
	disablenpc "The King#KoE";
	disablenpc "Exit#KoE";
	bindatcmd "koe", strnpcinfo(0)+"::OnCommand", 99,100;
	end;

to

OnInit:
	disablenpc "The King#KoE";
	disablenpc "Exit#KoE";
	bindatcmd "koe", strnpcinfo(0)+"::OnCommand", 99,100;
	setarray($@winner_items, 22783, 25, 22780, 25); // <<Item ID>, <Amount>>,...
	setarray($@loser_items, 22783, 10, 22780, 10); // <<Item ID>, <Amount>>,...
	end;

and on line 87 change:

guild_vs1,49,56,5	script	Exit#KoE	1_M_BARD,{
	mes "[Exit]";
	mes "Here's the rewards.";
	mes "See ya!";
	close2;
	warp "Save",0,0;
	if ( getcharid(2) == $koegid )
		getitem 22783, 25; // Finale Token
                getitem 22780, 25; // Guild Weapon Box
	end;
}

to

guild_vs1,49,56,5	script	Exit#KoE	1_M_BARD,{
	mes "[Exit]";
	mes "Here's the rewards.";
	mes "See ya!";
	close2;
	warp "Save",0,0;

	if(getcharid(2) == $koegid)
		copyarray(.@prizes[0], $@winner_items[0], getarraysize($@winner_items));
	else
		copyarray(.@prizes[0], $@loser_item[0], getarraysize($@loser_items));

	for(.@i = 0; .@i < getarraysize(.@prizes); .@i += 2)
		getitem(.@prizes[.@i], .@prizes[.@i + 1]);

	end;
}

 

Hi, I tried this one but they still can't receive any consolation prizes.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  232
  • Reputation:   86
  • Joined:  06/30/18
  • Last Seen:  

15 hours ago, Finale said:

Hi, I tried this one but they still can't receive any consolation prizes.

Any error messages?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  102
  • Reputation:   6
  • Joined:  03/02/18
  • Last Seen:  

its working just change the item id that you have in your server

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.05
  • Content Count:  37
  • Reputation:   0
  • Joined:  06/09/23
  • Last Seen:  

On 8/27/2023 at 10:11 PM, Winterfox said:

Any error messages?

No errors, but I still cannot receive the consolation prize from my 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...