Herc's Forum code mess up

rans

New member
Messages
358
Points
0
Location
Somewhere down the road
Emulator
Hi, 
How can i properly see the code? even i copy paste in in notepad its still mess up.

all old codes from hercules forum are mess up just like this

-    script    test1235678    -1,{end;OnInit:    bindatcmd "flooritem", strnpcinfo(0)+"::OnFI", 60,90; ;    end;OnFI:    .@hditemid = atoi(.@atcmd_parameters$[0]);     .@damount = atoi(.@atcmd_parameters$[1]);    if ( !.@damount ) {        message strcharinfo(0), "@flooritem <Itemid or itemname> <amount>";        end;    }    if ( .@damount < 0 ) {        message strcharinfo(0), "@flooritem -> Invalid amount";        end;     }    if ( getitemname(.@hditemid) == "null" && !searchitem(.@temp[0],.@atcmd_parameters$[0]) ) {        message strcharinfo(0), "@alootnoitem -> Invalid Item ID";        end;     }    if(.@temp[0])        .@dropitemid = .@temp[0];    else        .@dropitemid = .@hditemid;    .@r = (sqrt(.@damount) > 16 ? 16 :sqrt(.@damount));    getmapxy(.@m$,.@px,.@py,0);    .@min_x =((.@px-.@r) < 1?1
default_sad.png
.
@px-.@r));    .@max_x =((.@px+.@r) > 512 ? 512
default_sad.png
.
@px+.@r));    .@min_y =((.@py-.@r) < 1?1
default_sad.png
.
@py-.@r));    .@max_y =((.@py+.@r) > 512 ? 512
default_sad.png
.
@py+.@r));        freeloop(1);    for(.@j=0;.@j< .@damount;.@j++) {        while (checkcell(.@m$[.@i],.@px=rand(.@min_x, .@max_x),.@py=rand(.@min_y , .@max_y), cell_chknopass));        makeitem .@dropitemid,1,.@m$,.@px,.@py;    }    freeloop(0); end;}


from topic http://herc.ws/board/topic/10571-shower-command-please/?hl=flooritem#entry62560


 
Back
Top