wisst ihr woran das liegt, wie kann man das ändern?
hab im forum nix zu gefunden.
edited 1×, last 03.02.10 07:54:59 pm
Allgemein
Bug Thread
scantarget zu geben:on:start {
	timer 0, 500, 0, "scan";
}
on:scan {
	$target=scantarget();
	if($target==[b]1[/b]) {
		$target_class=targetclass();
		$target_id=targetid();
		if(($target_class==$last_target_class)&&($target_id==$last_target_id)) {
		//der smiley sollte eigentlich nicht da sein, nur eine geöffnete klammer
			
		}else{
			msg "Neues Objekt anvisiert: $target_class , $target_id";
		}
		$last_target_class=$target_class;
		$last_target_id=$target_id;
		
	}elseif($target==[b]0[/b]) {	
		msg "Kein Objekt anvisiert!";
	}
	$last_target_class=$target_class;
	$last_target_id=$target_id;
}
on:start {
	timer 0, 500, 0, "scan";
}
on:scan {
	$target=scantarget();
	if($target==[b]0[/b]) {
		$target_class=targetclass();
		$target_id=targetid();
		if(($target_class==$last_target_class)&&($target_id==$last_target_id)) {
		//der smiley sollte eigentlich nicht da sein, nur eine geöffnete klammer
			
		}else{
			msg "Neues Objekt anvisiert: $target_class , $target_id";
		}
		$last_target_class=$target_class;
		$last_target_id=$target_id;
		
	}elseif($target==[b]1[/b]) {	
		msg "Kein Objekt anvisiert!";
	}
	$last_target_class=$target_class;
	$last_target_id=$target_id;
}
$target=scantarget();
}elseif($target==1) {
getlocal, der bisher bisher beim auslösen des events, dem er untergeordnet war, in der konsole eine fehlermeldung ausspuckte.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:collect {
	$temp_id=currentid();
	$current_bag=getlocal("item", $temp_id, "$bag_amount");
	msg "$bag_amount", 3, 8000;
	loop("items", 1) {
		$temp_loop=loop_id();
		event "new", "item", $temp_loop;
	}
}
on:new {
	$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";
}
getlocal -befehl noch zwei kommata anhängt, dann tritt das problem nicht mehr auf und das script funktioniert wunderbar: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:collect {
	$temp_id=currentid();
	$current_bag=getlocal("item", $temp_id, "$bag_amount");		// HIER DÜRFEN IRGENDWIE KEINE ZWEI KOMMATA SEIN!
	msg "$bag_amount", 3, 8000;
	loop("items", 1) {
		$temp_loop=loop_id();
		event "new", "item", $temp_loop;
	}
}
on:new {
	$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 WIEDER ZWEI KOMMATA SEIN!
	msg "$bag_amount";
}