House control & walkon scripts
Posted: Sun May 17, 2009 1:46 am
itemdesc.cfg documentation:
So I assumed house can have walkon and control scripts.
I've defined a house :
I wrote both scripts:
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
Code: Select all
House (objtype)
{
{everything Item can have, plus: }
MultiID (int multiID number for this house)
}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
}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
endprogramAm I doin' something wrong, or houses just cannot have control nor walkon scripts?
PS
methodscript for houses seems not to work either