![](img/smiles/wink.gif)
Naja, okay, ich kenn' mich mit Linux nicht so aus, kann sein.
$test = int ($bla -0.5);
$test = int (($bla) -0.5);
$test = int (($bla +0) -0.5);
$bla = int(7.5*(2.5*3)+2);
on:use { 	msgbox "Garten","sys/scripts/butterflygarden.s2s"; } on:build_finish { 	event "gardenbuild",0,0; } on:changeday { 	local $c; 	$c+=count_inrange("unit",6,250,"self"); 	$c+=count_inrange("unit",7,250,"self"); 	if ($c<3){ 		create "unit",random(6,7),getx("self"),getz("self"); 		if (random(2)==1){ 			create "unit",random(6,7),getx("self"),getz("self"); 		} 	} }
on:use { 	msgbox "Garten","sys/scripts/butterflygarden.s2s"; } on:build_finish { 	event "gardenbuild",0,0; } on:changeday { 	local $c; 	$c+=count_inrange("unit",6,250,"self"); 	$c+=count_inrange("unit",7,250,"self"); 	if ($c<3){ 		create "unit",random(6,7),getx("self"),getz("self"); 		if (random(2)==1){ 			create "unit",random(6,7),getx("self"),getz("self"); 		} 	} 	freevar $c; }
on:start { 	local "$bag_amount"; 	$bag_amount=count("item", 1); } on:hit { 	$temp_class=currentclass(); 	$temp_id=currentid(); 	$glob_bag_amount=count("item", 1); 	setlocal "$temp_class", $temp_id, "$bag_amount", $glob_bag_amount; 	getlocal("item", $temp_id, "$bag_amount"); 	msg "$bag_amount"; }
on:start { 	local "$bag_amount"; 	$bag_amount=count("item", 1); } on:hit { 	$temp_class=currentclass(); 	$temp_id=currentid(); 	$glob_bag_amount=count("item", 1); 	setlocal "$temp_class", $temp_id, "$bag_amount", $glob_bag_amount; 	getlocal("item", $temp_id, "$bag_amount"),,;		// HIER MÜSSEN ZWEI KOMMATA SEIN! 	msg "$bag_amount"; }
on:start { 	local $bag_amount; 	$bag_amount=count("item", 1); } on:hit { 	$temp_class=currentclass(); 	$temp_id=currentid(); 	$glob_bag_amount=count("item", 1); 	setlocal "$temp_class", $temp_id, "bag_amount", $glob_bag_amount; 	getlocal("item", $temp_id, "bag_amount"); 	msg "$bag_amount"; }
$var=getlocal("item", $temp_id, "$bag_amount");