I think this will still trigger close function because of the end; and the close; is in the end of switch he need to remove it first.
just a simple fix is this as i mention on my reply.
This is what exact should be.
guildhall,95,72,3 script Breaker Points Shop 512,{
query_sql("SELECT `count` FROM `breaker_ladder` WHERE `char_id` = "+ getcharid(0), .@count);
cutin "woe_2020",2;
mes "[ ^C6A518WoE Points Staff^000000 ]";
mes "Hey sir!";
mes " ";
mes "Breaker Points: ^1DCE63 "+#EMPBREAKERPTS+" Points^000000 ";
mes "Did you enjoy the WoE today?, Hows your day?";
next;
switch(select("I want to check shop","I'm good thank you..")) {
case 1:
callshop "EmpBreakerShop", 4;
mes "[ ^C6A518WoE Points Staff^000000 ]";
mes "Every and of the month the shop";
mes "Will have a new headgears manually";
mes "picked by the Players!";
mes " ";
mes "^FF0000NOTE^000000: Please choose wisely";
break;
case 2:
mes "[ ^C6A518WoE Points Staff^000000 ]";
mes "Thats good to hear!";
close2;
cutin "",255;
end;
break;
}
OnInit:
// how much points gained per emp break?
$@empbreakpoints = 1;
query_sql("CREATE TABLE IF NOT EXISTS `breaker_ladder` (`char_id` int(11) unsigned NOT NULL, `count` int(11) NOT NULL DEFAULT '0', PRIMARY KEY ( `char_id` )) ENGINE=InnoDB");
}
- pointshop EmpBreakerShop -1,#EMPBREAKERPTS,12202:1,12203:1,12207:1,12206:1,12205:1,12204:1,13517:1,14004:2
guildhall mapflag loadevent
Thus always break; a statement on switch case because it will continues until end of function.