Jump to content
  • 0

KOE Consolation Prize


Question

5 answers to this question

Recommended Posts

  • 0
Posted (edited)

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
  • 0
Posted
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.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...