Page 1 of 1

House control & walkon scripts

Posted: Sun May 17, 2009 1:46 am
by Targun
itemdesc.cfg documentation:

Code: Select all

House (objtype)
{
    {everything Item can have, plus: }
    MultiID         (int multiID number for this house)
}
So I assumed house can have walkon and control scripts.
I've defined a house :

Code: Select all

House 0x6dfc
{
    Name					drewniany dom na palach
	 Graphic				0x5dfc
    MultiID				0x1dfc
	 ControlScript		:housing:houseControl
	 WalkOnScript		:housing:walkOn
 	 Deed					0x7dfc
}
I wrote both scripts:

Code: Select all

program house_walkOn(house, who)
	print("HOUSE WALK ON "+who.name+house.name);
endprogram

program houseControl(house)
	while(1)
		print("House :"+house.objtype);
		Sleep(5);
	endwhile
endprogram
And nothing happens :/
Am I doin' something wrong, or houses just cannot have control nor walkon scripts?

PS
methodscript for houses seems not to work either

Re: House control & walkon scripts

Posted: Sun May 17, 2009 4:21 am
by Tomi
The multis themselves dont have walkon or control scripts.

The Housing are controlled in UO normally like this:

Controlscripts are in the sign.
Walkonscripts are on separately created bantiles.