@Override
	public boolean endQuest(PhysicalAgent hostObj, MOB mob, String quest)
	{
		if(mob!=null)
		{
			final List<DVector> scripts=getScripts();
			if(!mob.amDead())
				lastKnownLocation=mob.location();
			String trigger="";
			String[] tt=null;
			for(int v=0;v<scripts.size();v++)
			{
				final DVector script=scripts.get(v);
				if(script.size()>0)
				{
					trigger=((String)script.elementAt(0,1)).toUpperCase().trim();
					tt=(String[])script.elementAt(0,2);
					if((getTriggerCode(trigger,tt)==13) //questtimeprog
					&&(!oncesDone.contains(script)))
					{
						if(tt==null)
							tt=parseBits(script,0,"CCC");
						if((tt!=null)
						&&((tt[1].equals(quest)||(tt[1].equals("*"))))
						&&(CMath.s_int(tt[2])<0))
						{
							oncesDone.add(script);
							execute(hostObj,mob,mob,mob,null,null,script,null,newObjs());
							return true;
						}
					}
				}
			}
		}
		return false;
	}