Jump to content

  •  

Nerual

Member Since 23 Aug 2016
Offline Last Active Oct 04 2016 10:03 AM
-----

Topics I've Started

A little help please! bindatcmd>getgroupid>menu

29 August 2016 - 11:13 PM

I'm trying to to use bindatcmd to open a menu.. not sure what I'm doing wrong I always get "npc_event: event not found"  error.

-	script	gmmenu	-1,{

OnInit:

	bindatcmd "gmmenu",strnpcinfo(3)+"::GM_Menu";
	end;

GM_Menu:

	if (getgroupid() >= 60){

		set .@menu$,"menu1:menu2";

		switch(select(.@menu$)){

			case 1:	
			    mes "menu1";
			    close;

			case 2:
			    mes "menu2";
			    close;
			}
	}
}