New Houses
Posted: Sat Jan 04, 2014 12:14 pm
Is there some guide, how add new houses in POL server???
And full description, about this code and else?
Happy New Year to all!!!
With best regards
And full description, about this code and else?
Code: Select all
function castlearray(house, x, y, z)
var boxarray := {};
var box1 := {};
box1.append(x - 14);
box1.append(y - 14);
box1.append(z + 0);
box1.append(x + 14);
box1.append(y + 14);
box1.append(z + 47);
boxarray[1] := box1;
var banarray := {};
var bantile;
bantile := CreateItemAtLocation(x-1, y+16, Z+3, 0x9999,house.realm);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x, y+16, Z+3, 0x9999,house.realm);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x+1, y+16, Z+3, 0x9999,house.realm);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x+2, y+16, Z+3, 0x9999,house.realm);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x-1, y+10, Z+3, 0x9999,house.realm);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x, y+10, Z+3, 0x9999,house.realm);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x+1, y+10, Z+3, 0x9999,house.realm);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x+2, y+10, Z+3, 0x9999,house.realm);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x-1, y+6, Z+3, 0x9999,house.realm);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x, y+6, Z+3, 0x9999,house.realm);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x+1, y+6, Z+3, 0x9999,house.realm);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x+2, y+6, Z+3, 0x9999,house.realm);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x-2, y-10, Z+3, 0x9999,house.realm);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x-1, y-10, Z+3, 0x9999,house.realm);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x, y-10, Z+3, 0x9999,house.realm);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x+1, y-10, Z+3, 0x9999,house.realm);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
SetObjProperty(house, "bantiles", banarray);
return boxarray;
endfunctionWith best regards