The simple way:
Save the coordinates of the guillotine as custom tags on the character that uses the guillotine, then retrieve the tags again in the onCallBack-function.
The hard way:
Save the item-serial of the guillotine as custom tags on the character that uses the guillotine, then retrieve the serials and calculate the item-object from the serials in the onCallBack-function.
Example:
Code: Select all
pUser.SetTag( "guillotineserial1", pItem.GetSerial(1) );
pUser.SetTag( "guillotineserial2", pItem.GetSerial(2) );
pUser.SetTag( "guillotineserial3", pItem.GetSerial(3) );
pUser.SetTag( "guillotineserial4", pItem.GetSerial(4) );
then to retrieve it again:
Code: Select all
var Guillotine = CalcItemFromSer( pUser.GetTag( "guillotineserial1"), pUser.GetTag( "guillotineserial2"), pUser.GetTag( "guillotineserial3"), pUser.GetTag( "guillotineserial4"));