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; } } }