Viewing paste maprender
made on Sun, 07 Jul 2013 12:02:28 -0400
Sane-itized version, click to copy:
&map.render #3629=[setq(p,%0)][setq(q,%1)][setq(u,%2)][setq(v,%3)][setq(3,[div(%qp,2)])][setq(4,[div(%qq,2)])][setq(6,0)][setq(7,[mul(%qu,6)])][setq(8,[mul(%qv,4)])][null([if([fbexists(MAPVIEW)],[fbdestroy(MAPVIEW)])][fbcreate(MAPVIEW,%q7,%q8)][fbwrite(MAPVIEW,0,0,[color(255,255,[repeat([repeat(0,%q7)]%r,%q8)])])])][iter([lnum([sub(%qp,%q3)],%qu)],[setq(5,0)][iter([lnum([sub(%qq,%q4)],%qv)],[setq(t,[u(map.tile,[itext(1)],[itext(0)])])][setq(5,[add(%q5,6)])][if(neq(%qt,-1),[setq(z,[baseconv(%qt,16,10)])][null([fbwrite(%q5,%q6,[showpicture(DNDT%qz)])])])],%b,)][setq(6,[add(%q6,4)])],%b,)]

Enter a target attribute, object reference and the mushcode.


[setq(p,%0)]
[setq(q,%1)]
[setq(u,%2)]
[setq(v,%3)]
[setq(3,[div(%qp,2)])]
[setq(4,[div(%qq,2)])]
[setq(6,0)]
[setq(7,[mul(%qu,6)])]
[setq(8,[mul(%qv,4)])]
[null(
 [if([fbexists(MAPVIEW)],[fbdestroy(MAPVIEW)])]
 [fbcreate(MAPVIEW,%q7,%q8)]
 [fbwrite(MAPVIEW,0,0,[color(255,255,[repeat([repeat(0,%q7)]%r,%q8)])])]
)]
[iter([lnum([sub(%qp,%q3)],%qu)],
 [setq(5,0)]
 [iter([lnum([sub(%qq,%q4)],%qv)],
  [setq(t,[u(map.tile,[itext(1)],[itext(0)])])]
  [setq(5,[add(%q5,6)])]
  [if(neq(%qt,-1),
   [setq(z,[baseconv(%qt,16,10)])]
   [null(
    [fbwrite(%q5,%q6,[showpicture(DNDT%qz)])]
   )]
  )]
 ,%b,)]
 [setq(6,[add(%q6,4)])]
,%b,)]

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