• All, I am currently in the process of migrating domain registrations. During this time there may be some intermittent outages or slowdowns. Please contact staff if you have any questions.

DOT via script?

getentityproperty(ent, "dot", index, subproperty);
changeentityproperty(ent, "dot", index, subproperty, value);

Subproperties:

force
mode
owner - attacker handle
rate
time
type - e.g. openborconstant("ATK_NORMAL2")


The information about dot command can be found here:
http://dcemulation.org/?title=OpenBORManual
 
Well, I managed to make cure poi... cure DOT spell with this script but I can't make script based DOT attack :(

This is the script:
Code:
          changeentityproperty(target, "dot", 1, "owner", self);
          changeentityproperty(target, "dot", 1, "force", 1);
          changeentityproperty(target, "dot", 1, "mode", 4);
          changeentityproperty(target, "dot", 1, "rate", 80);
          changeentityproperty(target, "dot", 1, "time", 1600);
          changeentityproperty(target, "dot", 1, "type", openborconstant("ATK_NORMAL2"));
          damageentity(target, self, 5, 0, openborconstant("ATK_NORMAL2"));

The only thing that clearly working is the last line.

What did I do wrong?
 
Back
Top Bottom