I'm trying to create a command (.createmulti), the code is this here:
Code: Select all
use uo;
program textcommand_createmulti(who, text)
if(!text)
SendSysMessage(who, "Usage is .createmulti [serial].");
return;
endif
while (1)
SendSysMessage(who, "Where do you want to build?");
var tgt := TargetMultiPlacement( who, CInt(text) );
SendSysMessage(who, "" + tgt);
var x := CInt(tgt.x);
var y := CInt(tgt.y);
var z := CInt(tgt.z);
if(!tgt)
SendSysMessage(who, "Cancelled.");
return;
endif
CreateMultiAtLocation( x, y, z, CInt(text));
endwhile
endprogram
I thank everyone for their help