| Code: |
use uo;
use os;
use unicode;
program gump(who);
var human_form:=Cint(GetObjProperty(who,"human"));
var beast_form:=Cint(GetObjProperty(who,"beast"));
// Check if prop is set, if not set it now.
if (!beast_form)
beast_form:=7;
SetObjProperty (who, "beast", beast_form);
endif
// Check if prop is set, if not set it now.
if (!human_form)
human_form:=who.graphic;
SetObjProperty (who,"human", human_form);
endif
if (who.graphic==beast_form);
who.graphic :=human_form;
elseif (who.graphic==human_form)
who.graphic := beast_form;
endif;
SendSysMessage(who,"bla bla");
|