 |
 |
 |
 |
| Author |
Message |
Harley
Joined: 18 Mar 2006 Posts: 92 Location: World Earth
|
Posted: Tue Oct 09, 2007 10:30 am Post subject: Hallo everybody, if u know, please help! |
|
|
Hallo to all!!! Please, teach me, how add house at the standart POL 096 distro scripts, housing.
I don't understand how to get code like this(housedeed.src):
| Quote: | | 0x6069: footage := bigtowerarray(house, house.x, house.y, house.z); //tower |
How to calculate about such lines and that does its mean?
And please, write me at all lines, what that each line means
| Code: | function bigtowerarray(house, x, y, z)
var boxarray := {};
var box1 := {};
box1.append(x - 6);
box1.append(y - 6);
box1.append(z + 6);
box1.append(x + 7);
box1.append(y + 5);
box1.append(z + 65);
boxarray[1] := box1;
box1 := {};
box1.append(x - 10);
box1.append(y - 6);
box1.append(z + 66);
box1.append(x + 11);
box1.append(y + 5);
box1.append(z + 86);
boxarray[2] := box1;
var banarray := {};
var bantile;
bantile := CreateItemAtLocation(x-1, y+8, Z+3, 0x9999, 1);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x, y+8, Z+3, 0x9999, 1);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x+1, y+8, Z+3, 0x9999, 1);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x+2, y+8, Z+3, 0x9999, 1);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x-1, y+7, Z+3, 0x9999, 1);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x, y+7, Z+6, 0x9999, 1);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x+1, y+7, Z+6, 0x9999, 1);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x+2, y+7, Z+3, 0x9999, 1);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
SetObjProperty(house, "bantiles", banarray);
return boxarray;
endfunction |
|
|
 |
|
|
 |
 |
| Author |
Message |
Harley
Joined: 18 Mar 2006 Posts: 92 Location: World Earth
|
Posted: Tue Oct 09, 2007 10:48 am Post subject: |
|
|
| runtest wrote: | The DOCs folder is your best friend. But what is your problem? |
I don't know, how to add at multis new houses, I don't know, where get code like 0x6069:
| Quote: | | 0x6069: footage := bigtowerarray(house, house.x, house.y, house.z); //tower |
I don't know how to functions for new houses
| Quote: | | function bigtowerarray(house, x, y, z) - please, write me at all lines, what that each line means(at first post there function full) |
Pleeease! Help!!! |
|
 |
|
|
 |
 |
|
 |
 |
|
 |
 |
| Author |
Message |
Harley
Joined: 18 Mar 2006 Posts: 92 Location: World Earth
|
Posted: Thu Oct 11, 2007 12:14 pm Post subject: |
|
|
0x6069: footage := bigtowerarray(house, house.x, house.y, house.z); //tower
- this number display at itemdesc.cfg a house with him ID number
But I yet do not know all how to define these coordinates for house?
| Code: |
function bigtowerarray(house, x, y, z)
var boxarray := {};
var box1 := {};
box1.append(x - 6);
box1.append(y - 6);
box1.append(z + 6);
box1.append(x + 7);
box1.append(y + 5);
box1.append(z + 65);
boxarray[1] := box1;
box1 := {};
box1.append(x - 10);
box1.append(y - 6);
box1.append(z + 66);
box1.append(x + 11);
box1.append(y + 5);
box1.append(z + 86);
boxarray[2] := box1; |
And this:
| Code: |
var banarray := {};
var bantile;
bantile := CreateItemAtLocation(x-1, y+8, Z+3, 0x9999, 1);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x, y+8, Z+3, 0x9999, 1);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x+1, y+8, Z+3, 0x9999, 1);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x+2, y+8, Z+3, 0x9999, 1);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x-1, y+7, Z+3, 0x9999, 1);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x, y+7, Z+6, 0x9999, 1);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x+1, y+7, Z+6, 0x9999, 1);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x+2, y+7, Z+3, 0x9999, 1);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
SetObjProperty(house, "bantiles", banarray);
return boxarray;
endfunction |
Why coordinats varyб and why they are many!!! Too many!!! Help please! |
|
 |
|
|
 |
 |
|
 |
 |
|
 |
 |
|
 |
 |
|
 |
 |
| Author |
Message |
Harley
Joined: 18 Mar 2006 Posts: 92 Location: World Earth
|
Posted: Mon Oct 15, 2007 7:20 am Post subject: |
|
|
Using core 096. UOConvert i have runing and do, that I know! But, at housedeed, I have function. I don't know how to create, but I want to create house function like this for another houses:
| Code: | function bigtowerarray(house, x, y, z)
var boxarray := {};
var box1 := {};
box1.append(x - 6);
box1.append(y - 6);
box1.append(z + 6);
box1.append(x + 7);
box1.append(y + 5);
box1.append(z + 65);
boxarray[1] := box1;
box1 := {};
box1.append(x - 10);
box1.append(y - 6);
box1.append(z + 66);
box1.append(x + 11);
box1.append(y + 5);
box1.append(z + 86);
boxarray[2] := box1;
var banarray := {};
var bantile;
bantile := CreateItemAtLocation(x-1, y+8, Z+3, 0x9999, 1);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x, y+8, Z+3, 0x9999, 1);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x+1, y+8, Z+3, 0x9999, 1);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x+2, y+8, Z+3, 0x9999, 1);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x-1, y+7, Z+3, 0x9999, 1);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x, y+7, Z+6, 0x9999, 1);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x+1, y+7, Z+6, 0x9999, 1);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x+2, y+7, Z+3, 0x9999, 1);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
SetObjProperty(house, "bantiles", banarray);
return boxarray;
endfunction |
Thank you!!! |
|
 |
|
|
 |
 |
|
 |
 |
| Author |
Message |
Harley
Joined: 18 Mar 2006 Posts: 92 Location: World Earth
|
Posted: Tue Oct 16, 2007 9:31 am Post subject: |
|
|
Dear Yukiko!!! Thank u! Thank to all who help me with this, but! Tell me please, what is this function do and how to create this function??
| Code: | function bigtowerarray(house, x, y, z)
var boxarray := {};
var box1 := {};
box1.append(x - 6);
box1.append(y - 6);
box1.append(z + 6);
box1.append(x + 7);
box1.append(y + 5);
box1.append(z + 65);
boxarray[1] := box1;
box1 := {};
box1.append(x - 10);
box1.append(y - 6);
box1.append(z + 66);
box1.append(x + 11);
box1.append(y + 5);
box1.append(z + 86);
boxarray[2] := box1;
var banarray := {};
var bantile;
bantile := CreateItemAtLocation(x-1, y+8, Z+3, 0x9999, 1);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x, y+8, Z+3, 0x9999, 1);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x+1, y+8, Z+3, 0x9999, 1);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x+2, y+8, Z+3, 0x9999, 1);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x-1, y+7, Z+3, 0x9999, 1);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x, y+7, Z+6, 0x9999, 1);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x+1, y+7, Z+6, 0x9999, 1);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
bantile := CreateItemAtLocation(x+2, y+7, Z+3, 0x9999, 1);
banarray.append(bantile.serial);
SetObjProperty(bantile, "house_serial", house.serial);
SetObjProperty(house, "bantiles", banarray);
return boxarray;
endfunction |
p.s. My new house was created at game, but I don't know how to create this function, please help me with this!!!  |
|
 |
|
|
 |
 |
|