Page 1 of 1

Adding graphic to item.

Posted: Thu Jan 01, 2009 1:59 pm
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);

Re: Adding graphic to item.

Posted: Thu Jan 01, 2009 2:31 pm
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.

Re: Adding graphic to item.

Posted: Fri Jan 02, 2009 2:53 am
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