Jump to content
  • 0
Sign in to follow this  
rans

Herc's Forum code mess up

Question

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:(.@px-.@r));    .@max_x =((.@px+.@r) > 512 ? 512:(.@px+.@r));    .@min_y =((.@py-.@r) < 1?1:(.@py-.@r));    .@max_y =((.@py+.@r) > 512 ? 512:(.@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

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

I see. so you guys must have a very difficult time manually fixing each thread with broken codes :o

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.