Lightfoot8 wrote...
int Spell = GetSpellId();
where
ACTIVATE_ITEM =368
ACTIVATE_ITEM_SELF= 413
ACTIVATE_ITEM_L = 697
ACTIVATE_ITEM_T = 759
Interesting, I was unaware of that because I have not tackled custom spells yet. For my item activation scripts I have been using the following:
int nEvent =GetUserDefinedItemEventNumber();
if (nEvent ==X2_ITEM_EVENT_ACTIVATE)
// do stuff
So using your method I guess that I will be able to differentiate between types of activation as follows:
"Spell" on Item IntegerActivate Item 368
Activate Item [Long Range] 697
Activate Item [Touch] 759
Unique Power 368
Unique Power Self Only 415
But that integer is the spell ID and NOT a User Defined Event Number
Modifié par henesua, 28 août 2011 - 08:25 .