//Rouges get a nifty bonus
IfHeld
  SetTargetToWhoeverIsHolding
  tmpargument = [ROGU]
  IfTargetHasID
    SetTargetToSelf
    SetOwnerToTarget
    EnchantTarget
  Else
    UndoEnchant
Else
  UndoEnchant

//Say nasty stuff
IfTimeOut
  tmpargument = 150
  SetTime
  IfHeld
    tmpx = rand & 100
    tmpy = 20
    IfXIsMoreThanY
      tmpargument = rand % 3 + 5
      SendMessageNear

IfGrabbed			//Can't be grabbed by good guys
  SetTargetToWhoeverIsHolding
  tmpargument = [GOOD]
  IfTargetHasID
    DetachFromHolder
    tmpargument = 8
    SendMessageNear

//Remove enchants
IfDropped
  UndoEnchant
IfPutAway
  UndoEnchant

// ZZ> This function makes an item fall to the floor when spawned
IfSpawned				//
  tmpargument = ACTIONJB		  //
  DoAction				  //
  KeepAction				  //
  MakeCrushValid
IfCrushed
  tmpx = selfx
  tmpy = selfy
  tmpdistance = selfz
  tmpargument = 1
  SpawnExactParticle
  SpawnExactParticle
  SpawnExactParticle
  SpawnExactParticle
  GoPoof
  tmpargument = 1
  SendMessageNear
IfDropped				// Make it lie on floor
  KeepAction				  //
  tmpargument = 3			  //
  tmpdistance = rand & 1023 + 10500	  //
  PlaySound				  //
IfGrabbed				// Tell them what they've won...
  SetTargetToWhoeverIsHolding		  //
  IfTargetIsAPlayer			  //
    tmpargument = 0			  //
    SendMessageNear			  //
IfHitGround				// Make a sound
  tmpargument = 1			  //
  tmpdistance = rand % 2047 + 10000	  //
  PlaySound				  //
IfNotDropped
  tmpargument = 2
  SendMessageNear
IfTakenOut
  tmpargument = 2
  tmpdistance = rand % 2047 + 10000
  PlaySound
  SetTargetToWhoeverIsHolding
  IfTargetIsAPlayer
    tmpargument = 4
    SendMessageNear
IfNotPutAway
  tmpargument = 3
  SendMessageNear
End					// All done
