//Amulet of the Gourmand
function onEquip(mChar, ourObj)
{
mChar.SysMessage( "You feel a strange hunger inside.");
var isInRange = pUser.InRange( iUsed, 3 );
if( objType == 1 ) // An item came into range
{
if( objInRange.id == corpse ) // Chow time
{
pCharacter.EmoteMessage( "*ooooooooooooo*" );
}
}
}
var isInRange = pUser.InRange( objInRange, 1 );
if( objInRange = corpse )
{
pSock.SysMessage( "You devour the " + objInRange.name + ".");
pSock.SoundEffect( (0x003A + RandomNumber( 0, 2 )), true );
myTarget.Delete();
}
}
function onEquip(mChar, ourObj)
{
mChar.SysMessage( "You feel a strange hunger inside.");
var isInRange = pUser.InRange( iUsed, 3 );
if( objType == 1 ) // An item came into range
{
if( objInRange.id == corpse ) // Chow time
{
pCharacter.EmoteMessage( "*ooooooooooooo*" );
}
}
}
var isInRange = pUser.InRange( objInRange, 1 );
if( objInRange = corpse )
{
pSock.SysMessage( "You devour the " + objInRange.name + ".");
pSock.SoundEffect( (0x003A + RandomNumber( 0, 2 )), true );
myTarget.Delete();
}
}
//Amulet of the Gourmand
function onEquip(pEquipper, iEquipped)
{
var pSock = pEquipper.socket;
AreaCharacterFunction( "myAreaFunc", iEquipped, 10, pSock );
}
function myAreaFunc( srcChar, trgChar, pSock )
{
pSock.SysMessage( "You feel a strange hunger inside.");
srcChar.SysMessage( srcChar );
trgChar.SysMessage( trgChar );
pSock.SysMessage( pSock );
}
//function inRange( pCharacter, objInRange, objType )
//{
// if( objInRange.corpse )
// {
// pCharacter.SysMessage( "You devour the " + objInRange.name + ".");
// pCharacter.SoundEffect( (0x003A + RandomNumber( 0, 2 )), true );
// objInRange.Delete();
// }
//}
function onEquip(pEquipper, iEquipped)
{
var pSock = pEquipper.socket;
AreaCharacterFunction( "myAreaFunc", iEquipped, 10, pSock );
}
function myAreaFunc( srcChar, trgChar, pSock )
{
pSock.SysMessage( "You feel a strange hunger inside.");
srcChar.SysMessage( srcChar );
trgChar.SysMessage( trgChar );
pSock.SysMessage( pSock );
}
//function inRange( pCharacter, objInRange, objType )
//{
// if( objInRange.corpse )
// {
// pCharacter.SysMessage( "You devour the " + objInRange.name + ".");
// pCharacter.SoundEffect( (0x003A + RandomNumber( 0, 2 )), true );
// objInRange.Delete();
// }
//}