function _sendQuestReward($GUID, $QuestID, $CharacterName, $ItemID, $RealmID, $DBUser, $DBPassword, $SOAPUser, $SOAPPassword)
{
    global $InstantQuestCompleteLetterTitle, $InstantQuestCompleteLetterMessage;
    _SOAP_SentRemoteCommand($SOAPUser, $SOAPPassword, $RealmID, trim('.send items ' . $CharacterName . ' "' . $InstantQuestCompleteLetterTitle . '" "' . $InstantQuestCompleteLetterMessage . '" ' . $ItemID . ':1'));
}
function _sendSingleItem($CharacterName, $ItemID, $RealmID, $SOAPUser, $SOAPPassword)
{
    global $InstantItemBuyLetterTitle, $InstantItemBuyLetterMessage;
    _SOAP_SentRemoteCommand($SOAPUser, $SOAPPassword, $RealmID, trim('.send items ' . $CharacterName . ' "' . $InstantItemBuyLetterTitle . '" "' . $InstantItemBuyLetterMessage . '" ' . $ItemID . ':1'));
}
function _teleportCharacterUnstruck($DBUser, $DBPassword, $SOAPUser, $SOAPPassword, $RealmID, $GUID, $NAME)
{
    $connection = _MySQLConnect(_HostDBSwitch($RealmID), $DBUser, $DBPassword, _CharacterDBSwitch($RealmID));
    $query = mysql_query("SELECT `race` FROM `characters` WHERE `guid` = " . (int) $GUID . ";", $connection) or die(mysql_error());
    $result = mysql_fetch_array($query);
    if (!_isHorde($result['race'])) {
        /* Stormwind */
        _SOAP_SentRemoteCommand($SOAPUser, $SOAPPassword, $RealmID, trim(".tele name " . $NAME . " stormwind"));
    } else {
        /* Orgrimmar */
        _SOAP_SentRemoteCommand($SOAPUser, $SOAPPassword, $RealmID, trim(".tele name " . $NAME . " orgrimmar"));
    }
    mysql_close($connection) or die(mysql_error());
}