|
 |
 |
|
 |
 |
| Author |
Message |
runtest
Joined: 05 Aug 2006 Posts: 98
|
Posted: Thu Oct 04, 2007 3:12 pm Post subject: |
|
|
Here be a nice multi hue command me mattes.
| Code: |
use uo;
program textcmd_MHue(who, text)
SendSysMessage( who, "What do you want to hue?" ,3,65 );
var coloritem := text;
coloritem := CInt( coloritem );
while( who.connected )
var targ := Target( who );
if( targ )
var result := targ.color := coloritem;
SendSysMessage( who,"Target's color was changed to " + coloritem + ".",3,65 );
if( !result )
SendSysMessage( who,result.errortext );
endif
else
break;
endif
endwhile
SendSysMessage( who,"Cancelled.",3,65 );
return 1;
Endprogram
|
Hint: Save this one as "mhue.src". |
|
 |
|
|