What is the difference between these?
Bonus question: I have the following script for some jewelry of Agility:
Code: Select all
function onEquip(mChar, ourObj)
{
if (mChar.online == true)
{
if (ourObj.id == 0x1085 || ourObj.id == 0x1086 || ourObj.id == 0x1087 || ourObj.id == 0x1088 ||
ourObj.id == 0x1089 || ourObj.id == 0x108a || ourObj.id == 0x1f06 || ourObj.id == 0x1f07 ||
ourObj.id == 0x0f4b || ourObj.id == 0x0f4d || ourObj.id == 0x0f51 ||
ourObj.id == 0x1f08 || ourObj.id == 0x1f09 || ourObj.id == 0x1f0a)
{
mChar.tempdex=(mChar.tempdex +10);
mChar.MagicEffect( 9 );
mChar.SoundEffect( 0x1ee, true );
mChar.StartTimer( 3000 , 9 );
}
}
}
function onTimer( mChar , timerID )
{
if ( timerID == 9 )
{mChar.tempdex=(mChar.tempdex -10);
}
}As you might have guessed, I'm scouting some prior onTimer posts here, and it seems like all of them reference pCharacter, rather than mChar, so I feel like that might have something to do with it. But, replacing mChar with pCharacter in the onTimer portion of the script does not make it work either...