problem with pol097

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.
Post Reply
Bone
New User
Posts: 4
Joined: Sun Feb 11, 2007 5:53 am

problem with pol097

Post by Bone »

Hi

My first problem would be that when I log in with a character, it doesn't have the hp, stamina and mana values equal to the stat values. Instead they're all set to the value of 1.

My second problem is that a character cant's move at all. And when i use the .mtele or .tele commands and try to teleport somewhere, i get the "invalid parameter" message.

I thank you for any help that you can provide
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Post by Yukiko »

First I guess we need to establish which scriptset you are using. Is it POL 0.97 Sistro? If not which one is it?
Bone
New User
Posts: 4
Joined: Sun Feb 11, 2007 5:53 am

Post by Bone »

ohh sorry I forgot. I using pol95 distro scripts. I converted them to pol097. I haven't any errors during compilation
Last edited by Bone on Thu Feb 15, 2007 2:02 pm, edited 1 time in total.
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Post by Yukiko »

That's odd because I converted the 0.95 Distro and didn't enounter any of those problems. I suggest that the mtele problem might be related to the placement of the realm parameter in the mtele script. Make sure your MoveObjectToLocation has all parameters in the right order,

Code: Select all

var result := MoveObjectToLocation( who, where.x, where.y, where.z, who.realm, MOVEOBJECT_FORCELOCATION );
Also, make sure you ran the realm conversion, MUL copy and tiledata generation options from the batch file. If you don't have a starthere.bat file in your \pol folder then download the 0.97 Distro and copy the starthere.bat file and the folder named 'batchfiles' from the 0.97 Distro to your POL 0.95 directory. That batch file set is probably one of the most valuable additions to POL since Racalacs documentation set. It really should be added to the core download IMHO.

As to the vitals being wrong, I'd look into the files being correct in your \pol\pkg\foundations\hooks directory, make sure all the vital names are correct that are being passed to the various vital mod scripts. Are the vitals regenerating properly after the initial starting value of 1?

That's about all I can think of to check at the moment.
Bone
New User
Posts: 4
Joined: Sun Feb 11, 2007 5:53 am

Post by Bone »

They won't regenerate because it sais that the maximal value of the vitals is 1.
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Post by Yukiko »

I can't help thinking this has to do with some missing or malformatted cfg file in the \pkg\foundations\hooks folder.
Bone
New User
Posts: 4
Joined: Sun Feb 11, 2007 5:53 am

Post by Bone »

ok I solved the problem with hp,mp and stam. I change in vitals.cfg location of RegenRateFunction.

Code: Select all

 RegenRateFunction regen:GetLifeRegenRateExported
earlier that was wrong.
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Post by Yukiko »

Good.
Glad that's working now.
Post Reply