Viewing paste OROCI1
made on Sun, 03 Nov 2013 21:05:18 -0500
Sane-itized version, click to copy:
&OROC.ITEM #3629=  [setq(v,%6)][setq(o,[u(item.name,%1,%2)])][setq(t,[u(item.type,%1,%2)])][setq(h,[u(item.harm,%1,%2)])][setq(L,[u(item.heal,%1,%2)])][if(gt(%qh,0),{[ifelse([u(item.is.ranged,%1,%2)], {[oemit(me,%3 aims %qo at %5 and [color(red,black,fires)]!%r)]}[ifelse([u(item.is.weapon,%1,%2)], {[oemit(me,%3 [color(red,black,attacks)] %5 with %qo!%r)]},[ifelse([u(item.is.spell,%1,%2)], {[oemit(me,%3 [color(red,black,casts)] %qo upon %5!%r)]},[ifelse([u(item.is.food,%1,%2)], {[oemit(me,%3 ate some bad food!%r)]},{[oemit(me,%3 uses %qo to [color(red,black,attack)] %5!%r)]})])])])]})][u(item.apply,%0,%1,%2,%4)][u(damage.enemy,%7,%qh)][if(gt(%qL,0),{[ifelse([u(item.is.ranged,%1,%2)], {[oemit(me,%3 is healed by %qo.%r)]}[ifelse([u(item.is.weapon,%1,%2)], {[oemit(me,%3 is healed by %qo..%r)]},[ifelse([u(item.is.spell,%1,%2)], {[oemit(me,%3 is healed by %qo!%r)]},[ifelse([u(item.is.food,%1,%2)], {[oemit(me,%3 is healed by %qo!%r)]},{[oemit(me,%3 is healed by %qo!%r)]})])])])]})]

Enter a target attribute, object reference and the mushcode.


  [setq(v,%6)]
  [setq(o,[u(item.name,%1,%2)])]
  [setq(t,[u(item.type,%1,%2)])]
  [setq(h,[u(item.harm,%1,%2)])]
  [setq(L,[u(item.heal,%1,%2)])]
  [if(gt(%qh,0),{
   [ifelse([u(item.is.ranged,%1,%2)], {[oemit(me,%3 aims %qo at %5 and [color(red,black,fires)]!%r)]}
    [ifelse([u(item.is.weapon,%1,%2)], {[oemit(me,%3 [color(red,black,attacks)] %5 with %qo!%r)]},
     [ifelse([u(item.is.spell,%1,%2)], {[oemit(me,%3 [color(red,black,casts)] %qo upon %5!%r)]},
      [ifelse([u(item.is.food,%1,%2)], {[oemit(me,%3 ate some bad food!%r)]},
      {[oemit(me,%3 uses %qo to [color(red,black,attack)] %5!%r)]}
      )]
     )]
    )]
   )]
   }
  )]
  [u(item.apply,%0,%1,%2,%4)]
  [u(damage.enemy,%7,%qh)]
  [if(gt(%qL,0),{
   [ifelse([u(item.is.ranged,%1,%2)], {[oemit(me,%3 is healed by %qo.%r)]}
    [ifelse([u(item.is.weapon,%1,%2)], {[oemit(me,%3 is healed by %qo..%r)]},
     [ifelse([u(item.is.spell,%1,%2)], {[oemit(me,%3 is healed by %qo!%r)]},
      [ifelse([u(item.is.food,%1,%2)], {[oemit(me,%3 is healed by %qo!%r)]},
      {[oemit(me,%3 is healed by %qo!%r)]}
      )]
     )]
    )]
   )]
  })]

save as: imprettify (attempt to format for readibility):
Found this useful? Try MUSHcode Repeater
written by orcs.biz