Adding graphic to item.

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

Moderator: POL Developer

Post Reply
Girion
New User
Posts: 2
Joined: Thu Jan 01, 2009 1:45 pm

Adding graphic to item.

Post by Girion »

Hello,

I have problem with writing script of adding fire animation to brazier when its double clicked.

Its should add it but how to write double click on item which is already exist ?

Code: Select all

var ogien:=createitematlocation(brazier.x, brazier.y, brazjer.z+3, 0x19ab, 1, brazjer.realm);
ogien.movable:=0;
ogien.desc:="plomien";
setObjProperty(brazier, "serial_ognia", ogien.serial);
Nando
POL Developer
Posts: 282
Joined: Wed Sep 17, 2008 6:53 pm
Contact:

Re: Adding graphic to item.

Post by Nando »

Code: Select all

...
var ogien:=createitematlocation(brazier.x, brazier.y, brazjer.z+3, 0x19ab, 1, brazjer.realm);
...
Unless you have a brazjer variable that is equal to brazier, that's the problem.
Targun
Neophyte Poster
Posts: 30
Joined: Wed Jul 23, 2008 8:03 am

Re: Adding graphic to item.

Post by Targun »

You dont need to write doubleclick on item - it's allredy done by PoL and every item has it
All you need is to determine whitch script should be started after 2click
You can do it in by adding line I wrote below in braziers itemdesc.cfg

Script :packagename:your_script_name
Post Reply