package rotateMyItem{ function yourItemData::onAdd(%this,%obj) { %obj.rotate = 1; return parent::onAdd(%this,%obj); }};activatePackage(rotateMyItem);
You would do something like this:Code: [Select]package rotateMyItem{ function yourItemData::onAdd(%this,%obj) { %obj.rotate = 1; return parent::onAdd(%this,%obj); }};activatePackage(rotateMyItem);
I'm pretty sure you can do this without the package, since the packaged yourItemData::onAdd calls the original yourItemData::onAdd, which doesn't exist so the game just defaults and goes on to call ItemData::onAdd. Could be wrong, though.