Code: Select all
var choice:=SendDialogGump( who, gflayout, gfdata );
var his_choice;
foreach key in ( choice.keys )
his_choice := his_choice + key;
endforeach
if (choice[100])
SendSysMessage(who, "Red");
CreateItemInBackpack(who, 3172,1);
elseif
(choice[200])
SendSysMessage(who, "Green");
CreateItemInBackpack(who, 3186,1);
endif
if(choice[100] && choice[200])
SendSysMessage(who,"You combined red and green");
endif
thnx in advance[/code]