Didn't test :
prontera,150,150,0 script Sample 100,{
function Display;
if ( getgmlevel() < 60 ) end;
set .@npc$, "[ " +strnpcinfo(1)+ " ]";
mes .@npc$;
mes "What do you want, " + (Sex ? "Sir" : "Maam") + " " +strcharinfo(0)+ "?";
next;
switch( select("PVP1:GVG:BG:Cancel") ) {
case 1: Display("A GM wishes to observe the PVP, proceed there if you wish to join."); break;
case 2: Display("A GM is calling all guilds wishing to fight in the GVG arena."); break;
case 3: Display("A GM wishes to start the Battlegrounds, proceed to BG arena if you wish to participate."); break;
case 4: close; break;
default: break;
}
function Display {
query_sql "SELECT `char`.`account_id` FROM `char` JOIN `login` ON `char`.`account_id` = `login`.`account_id` WHERE `login`.`level` = 0 AND `char`.`online` = 1",.@aid;
set .@size, getarraysize(.@aid);
while ( .@i < .@size ) {
if ( attachrid( .@aid[.@i] ) )
dispbottom getarg(0);
detachrid;
set .@i, .@i + 1;
}
return;
}
}
The message thing works but when I choose an option, it doesn't do anything and the message box will stay there so I have to close my client or warp somewhere else.