src/Neuron/GameServer/Player/Quests.php
public function addQuest (Neuron_GameServer_Quest $quest)
	{
		$db = Neuron_DB_Database::getInstance ();
		
		// Check if this is the only one
		$chk = $db->query
		("
			SELECT
				plid
			FROM
				n_players_quests
			WHERE
				plid = {$this->objProfile->getId ()} AND
				q_id = {$quest->getId ()}
		");
		
		if (count ($chk) == 0)
		{
			$db->query
			("
				INSERT INTO
					n_players_quests
				SET
					plid = {$this->objProfile->getId ()},
					q_id = {$quest->getId ()}
			");
		}
		
		$quest->onStart ($this->objProfile);
	}
public function addQuest (Neuron_GameServer_Quest $quest)
	{
		$db = Neuron_DB_Database::getInstance ();
		
		// Check if this is the only one
		$chk = $db->query
		("
			SELECT
				plid
			FROM
				n_players_quests
			WHERE
				plid = {$this->objProfile->getId ()} AND
				q_id = {$quest->getId ()}
		");
		
		if (count ($chk) == 0)
		{
			$db->query
			("
				INSERT INTO
					n_players_quests
				SET
					plid = {$this->objProfile->getId ()},
					q_id = {$quest->getId ()}
			");
		}
		
		$quest->onStart ($this->objProfile);
	}
/*
Quests