how to set up a boat.

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.

Moderator: POL Developer

Post Reply
guialtran
Grandmaster Poster
Posts: 120
Joined: Wed Jul 30, 2008 12:42 pm

how to set up a boat.

Post by guialtran »

Hello everybody!
I'm using the translator to write this, sorry.

looking at various configurations of several different servers I noticed that each of them has a different way of declaring the boats.

this topoco is to clarify the forceful way to declare a boat in the most recent version, POL100.

I am going to put here the forms that I have already seen to declare ships.

Code: Select all

1-)
Boat 0x20000
{
Name boat_1_north
MultiId 0x0
}
only one face is declared.

2-)

Code: Select all

Boat 0x20000
{
Name boat_1_north
MultiId 0x0
    OldObjtype 0x4000
    OldObjtype 0x4001
    OldObjtype 0x4002
    OldObjtype 0x4003
}
only one face is declared.
the person unites all 4 types of objects.

3-)

Code: Select all

Boat 0x20000
{
Name boat_1_north
MultiId 0x0
    OldObjtype 0x4001
    OldObjtype 0x4002
    OldObjtype 0x4003
}
only one face is declared.
the person unites the next 3 types of objects.

4-)

Code: Select all

Boat 0x20000
{
Name boat_1_north
MultiId 0x0
}

Boat 0x20001
{
Name boat_1_east
MultiId 0x1
}

Boat 0x20002
{
Name boat_1_south
MultiId 0x2
}

Boat 0x20003
{
Name boat_1_west
MultiId 0x3
}
independently declare each face of the boat.

So my doubt remains, what is the correct way to do it? :deadhorse:
DevGIB
Grandmaster Poster
Posts: 248
Joined: Mon Feb 06, 2006 6:12 am

Re: how to set up a boat.

Post by DevGIB »

As per our discussion on discord i believe it works as follows:

Code: Select all

create item 0x20000 -> create boat from item -> board boat and turn direction -> drydock boat and receive item 0x20001 -> reboot server and item becomes 0x20000 again.
Someone might need to confirm.
guialtran
Grandmaster Poster
Posts: 120
Joined: Wed Jul 30, 2008 12:42 pm

Re: how to set up a boat.

Post by guialtran »

I understood that several people are using "OldObjtype" in the wrong way.

I have a doubt, I have to declare the four faces of the boat in the file itemdesc.cfg?
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: how to set up a boat.

Post by Yukiko »

Only use OldObjType if you have changed the ObjType number of an object and need to update the objects in your server data files. For example if you change ObjType 0x10001 to ObjType 0x20001 you would add OldObjType 0x10001 to the definition of the changed object, restart the server and it will update any objects in the server data files with the old ObjType to the new ObjType. You should shut down the server afterwards and remove any OldObjType entries from your itemdesc.cfg files.

I think developers forget that last step. I know I have on several occasions.
Post Reply