rans 7 Posted February 21, 2016 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 Quote Share this post Link to post Share on other sites
0 Mystery 594 Posted February 21, 2016 Please read this: http://herc.ws/board/topic/11652-forum-maintenance-and-broken-bbcode-in-posts/ and you'll know why. Quote Share this post Link to post Share on other sites
0 rans 7 Posted February 22, 2016 I see. so you guys must have a very difficult time manually fixing each thread with broken codes Quote Share this post Link to post Share on other sites
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