Checkboxes on Gumps
Posted: Sun Sep 03, 2006 10:56 am
im having a problem with Checkboxes in a gump, i iused the example stated in the gumpsdoc. But it does not work.
the script works but, i want it to work separate, if i press red and green, it will create the items and stat the sysmessage, I want it so if i press red and green only the sysmessage will be shown
thnx in advance[/code]
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]