_addFlag_Character($GUID, $RealmID, $DBUser, $DBPassword, "0x40");
            } else {
                mysql_close($connection) or die(mysql_error());
                $REALSON = _getNotEnoughtFireSTR();
            }
        }
        unset($_SESSION['TCA']);
    } else {
        Header('Location: _userside.php');
    }
}
// die("EXEPTION");
if (_doesRealmExists($RealmID, $DBUser, $DBPassword, isset($SA))) {
    if (_doesCharacterExistsOnAccount($DBUser, $DBPassword, $RealmID, $GUID, isset($SA))) {
        if (_doesCharacterNotOnlineATM($DBUser, $DBPassword, $RealmID, $GUID)) {
            if (_doesCharacterHaveAFlag($GUID, $RealmID, $DBUser, $DBPassword, "0x40")) {
                echo _getAlreadyEffectSTR($L[235]);
            } else {
                _FORM_TO_CHAR_ACTIONS($SA ? $SA : _FORM_CHAR_ARRAY($AccountDBHost, $AccountDB, $DBUser, $DBPassword, $RealmID, $GUID), $L[85], $REALSON, $PriceForCharChangeFaction, null, null, true, null, null);
            }
        } else {
            echo _RDiv($L[60]);
        }
    } else {
        echo _RDiv($L[9]);
    }
} else {
    echo _RDiv($L[9]);
}
include_once '_template/_footer.php';
ob_end_flush();
            $REALSON = _GDiv($L[17]);
            _removeDeserterDebuffFromCharacter($GUID, $RealmID, $DBUser, $DBPassword);
        } else {
            mysql_close($connection) or die(mysql_error());
            $REALSON = _getNotEnoughtFireSTR();
        }
        unset($_SESSION['TCA']);
    } else {
        Header('Location: _userside.php');
    }
}
// die("EXEPTION");
if (_doesRealmExists($RealmID, $DBUser, $DBPassword, isset($SA))) {
    if (_doesCharacterExistsOnAccount($DBUser, $DBPassword, $RealmID, $GUID, isset($SA))) {
        if (_doesCharacterNotOnlineATM($DBUser, $DBPassword, $RealmID, $GUID)) {
            if (!_doesCharacterHasDeserterDebuff($GUID, $RealmID, $DBUser, $DBPassword)) {
                echo _getAlreadyEffectSTR($L[144]);
            } else {
                _FORM_TO_CHAR_ACTIONS($SA ? $SA : _FORM_CHAR_ARRAY($AccountDBHost, $AccountDB, $DBUser, $DBPassword, $RealmID, $GUID), $L[90], $REALSON, $PriceForRemoveDeserter, null, null, null, null, null);
            }
        } else {
            echo _RDiv($L[60]);
        }
    } else {
        echo _RDiv($L[9]);
    }
} else {
    echo _RDiv($L[9]);
}
include_once '_template/_footer.php';
ob_end_flush();
        $connection = _MySQLConnect($AccountDBHost, $DBUser, $DBPassword, $AccountDB);
        if (_isEnoughMythCoins($PriceForTeleportUnstruck, $connection)) {
            _SpendMythCoins($PriceForTeleportUnstruck, 7, $CharName, $GUID, $RealmName, $RealmID, "", $connection);
            mysql_close($connection) or die(mysql_error());
            $REALSON = _GDiv($L[239]);
            _teleportCharacterUnstruck($DBUser, $DBPassword, $SOAPUser, $SOAPPassword, $RealmID, $GUID, $CharName);
        } else {
            mysql_close($connection) or die(mysql_error());
            $REALSON = _getNotEnoughtFireSTR();
        }
        unset($_SESSION['TCA']);
    } else {
        Header('Location: _userside.php');
    }
}
// die("EXEPTION");
if (_doesRealmExists($RealmID, $DBUser, $DBPassword, isset($SA))) {
    if (_doesCharacterExistsOnAccount($DBUser, $DBPassword, $RealmID, $GUID, isset($SA))) {
        if (_doesCharacterNotOnlineATM($DBUser, $DBPassword, $RealmID, $GUID)) {
            _FORM_TO_CHAR_ACTIONS($SA ? $SA : _FORM_CHAR_ARRAY($AccountDBHost, $AccountDB, $DBUser, $DBPassword, $RealmID, $GUID), $L[92], $REALSON, $PriceForTeleportUnstruck, null, null, null, null, null);
        } else {
            echo _RDiv($L[60]);
        }
    } else {
        echo _RDiv($L[9]);
    }
} else {
    echo _RDiv($L[9]);
}
include_once '_template/_footer.php';
ob_end_flush();
                $ItemID = (int) $_POST['itemID'];
                $_SESSION['TCA']['SItem'] = $ItemID;
            }
            $SA = $_SESSION['TCA'];
            $RealmID = $_SESSION['TCA']['RealmID'];
            $GUID = $_SESSION['TCA']['CharGUID'];
        } else {
            Header('Location: _userside.php');
        }
    }
}
// die("EXEPTION");
if (_doesRealmExists($RealmID, $DBUser, $DBPassword)) {
    if (_doesCharacterExistsOnAccount($DBUser, $DBPassword, $RealmID, $GUID)) {
        if (_doesCharacterNotOnlineATM($DBUser, $DBPassword, $RealmID, $GUID)) {
            _FORM_ITEM_SHOP($SA ? $SA : _FORM_CHAR_ARRAY($AccountDBHost, $AccountDB, $DBUser, $DBPassword, $RealmID, $GUID), $RealmID, $DBUser, $DBPassword, $GUID, isset($ItemID) ? $ItemID : null, $MinPriceForItem, $MultiplicatorForItemPrice, $MinPriceForDisplayInTable, $ItemDiscountMode, $DiscountAmmount, $REALSON);
        } else {
            echo _RDiv($L[60]);
        }
    } else {
        echo _RDiv($L[9]);
    }
} else {
    echo _RDiv($L[9]);
}
include_once '_template/_footer.php';
ob_end_flush();
function _FORM_ITEM_SHOP($SA, $RealmID, $DBUser, $DBPassword, $GUID, $ItemID, $MinPrice, $PriceX, $DisplayPrice, $ITEM_DISCOUNT_MODE, $DISCOUNT_CONF, $REALSON = "")
{
    global $L, $AccountDBHost, $AccountDB, $PageListRecordsAmmount;
    echo "\n        <fieldset>\n            <div class = 'text-center'>" . $REALSON . "\n                <h2>" . $L[82] . "</h2>";
        mysql_query("UPDATE `character_queststatus` SET `status` = 0 WHERE `guid` = " . $GUID . " AND `quest` = " . $QuestID . ";", $connection) or die(mysql_error());
        mysql_close($connection);
        unset($_SESSION['pQuest']);
        unset($_SESSION['TCA']['qList']);
    } else {
        mysql_close($connection) or die(mysql_error());
        $REALSON = _getNotEnoughtFireSTR();
    }
}
if (_doesRealmExists($RealmID, $DBUser, $DBPassword)) {
    if (_doesCharacterExistsOnAccount($DBUser, $DBPassword, $RealmID, $GUID, _getAccountID())) {
        if (_doesCharacterNotOnlineATM($DBUser, $DBPassword, $RealmID, $GUID)) {
            if (!_doesCharacterHaveActiveQuests($GUID, $RealmID, $DBUser, $DBPassword)) {
                echo _getAlreadyEffectSTR($L[72]);
            } else {
                _FORM_QUEST_COMPLETE($SA ? $SA : _FORM_CHAR_ARRAY($AccountDBHost, $AccountDB, $DBUser, $DBPassword, $RealmID, $GUID), $RealmID, $AccountDBHost, $AccountDB, $DBUser, $DBPassword, $GUID, $PriceForInstantQuestComplete, $REALSON);
            }
        } else {
            echo _RDiv($L[60]);
        }
    } else {
        echo _RDiv($L[9]);
    }
} else {
    echo _RDiv($L[9]);
}
include_once '_template/_footer.php';
ob_end_flush();
function _sendQuestReward($GUID, $QuestID, $CharacterName, $ItemID, $RealmID, $DBUser, $DBPassword, $SOAPUser, $SOAPPassword)
{
    global $InstantQuestCompleteLetterTitle, $InstantQuestCompleteLetterMessage;
                } else {
                    mysql_close($connection) or die(mysql_error());
                    $REALSON = _getNotEnoughtFireSTR();
                }
            }
        }
        //unset($_SESSION['TCA']);
    } else {
        Header('Location: _userside.php');
    }
}
// die("EXEPTION");
if (_doesRealmExists($RealmID, $DBUser, $DBPassword, isset($SA))) {
    if (_doesCharacterExistsOnAccount($DBUser, $DBPassword, $RealmID, $GUID, isset($SA))) {
        if (_doesCharacterNotOnlineATM($DBUser, $DBPassword, $RealmID, $GUID)) {
            _FORM_INSTANT_EXT_REPUTATION(_FORM_CHAR_ARRAY($AccountDBHost, $AccountDB, $DBUser, $DBPassword, $RealmID, $GUID), $RealmID, $DBUser, $DBPassword, $GUID, $PriceForExaltedReputation, $REALSON);
        } else {
            echo _RDiv($L[60]);
        }
    } else {
        echo _RDiv($L[9]);
    }
} else {
    echo _RDiv($L[9]);
}
include_once '_template/_footer.php';
ob_end_flush();
function _FORM_INSTANT_EXT_REPUTATION($SA, $RealmID, $DBUser, $DBPassword, $GUID, $PRICE, $REALSON = "")
{
    global $L;
    global $ExchangeArray;
Exemplo n.º 7
0
        $connection = _MySQLConnect($AccountDBHost, $DBUser, $DBPassword, $AccountDB);
        if (_isEnoughMythCoins($PriceForInstant80lvl, $connection)) {
            _SpendMythCoins($PriceForInstant80lvl, 1, $CharName, $GUID, $RealmName, $RealmID, "", $connection);
            mysql_close($connection) or die(mysql_error());
            $REALSON = _GDiv($L[17]);
            _instant80LevelForCharacter($GUID, $RealmID, $DBUser, $DBPassword);
        } else {
            mysql_close($connection) or die(mysql_error());
            $REALSON = _getNotEnoughtFireSTR();
        }
        unset($_SESSION['TCA']);
    } else {
        Header('Location: _userside.php');
    }
}
// die("EXEPTION");
if (_doesRealmExists($RealmID, $DBUser, $DBPassword, isset($SA))) {
    if (_doesCharacterExistsOnAccount($DBUser, $DBPassword, $RealmID, $GUID, isset($SA))) {
        if (_doesCharacterNotOnlineATM($DBUser, $DBPassword, $RealmID, $GUID)) {
            _FORM_TO_CHAR_ACTIONS($SA ? $SA : _FORM_CHAR_ARRAY($AccountDBHost, $AccountDB, $DBUser, $DBPassword, $RealmID, $GUID), $L[87], $REALSON, $PriceForInstant80lvl, 80, null, null, null, null);
        } else {
            echo _RDiv($L[60]);
        }
    } else {
        echo _RDiv($L[9]);
    }
} else {
    echo _RDiv($L[9]);
}
include_once '_template/_footer.php';
ob_end_flush();