Selection Gumps

Here you can post threads requesting help on the official POL Ultima Online Emulator Core 098.

Moderator: POL Developer

Post Reply
Adept Poster
Posts: 87
Joined: Wed Aug 01, 2007 3:07 am
Location: Brazil

Selection Gumps

Post by westrupp » Fri Sep 18, 2009 2:06 am

Code: Select all

Program ClassePicker(who)
	var options := PhoneticAlphabet();
	var input := SelectionGump(who, "Choose your classe:", options, BTN_TYPE_CHECKBOX);
	SendSysMessage(who, "Input->"+input);
	SendSysMessage(who, input);
	if (input == "Powerplayer")
		TurnClasse(who , classe := "pp");

function PhoneticAlphabet()
	var options := array{
	return options;
I select Powerplayer, sendsysmsg say to me correct option but dont run my IF calling turnclasse function...anyone know why?


User avatar
Forum Regular
Posts: 302
Joined: Fri Dec 28, 2007 11:19 pm
Location: Montreal, Canada

Re: Selection Gumps

Post by *Edwards » Fri Sep 18, 2009 1:24 pm

What is the input reference when using SendSysMsg? if it's "Powerplayer" there should be no problems. Maybe try CStr( input ) == "Powerplayer"

And maybe it's your turnclass() nt correct.

POL Developer
Posts: 477
Joined: Tue Feb 21, 2006 5:08 pm

Re: Selection Gumps

Post by Tomi » Fri Sep 18, 2009 4:04 pm

try this

Print( TypeOf( input ) );
and see what it gives you, if its something else than "String" then the problem is there.

Post Reply