public static function instant80($values) { die("This feature is disabled. <br/><i>Also, you shouldn't be here...</i>"); $values = mysql_real_escape_string($values); $values = explode("*", $values); connect::connectToRealmDB($values[1]); if (character::isOnline($values[0]) == TRUE) { echo '<b class="red_text">Please log out your character before proceeding.'; } else { $service_values = explode("*", $GLOBALS['service']['instant80']); if ($service_values[1] == "dp") { if (account::hasDP($_SESSION['cw_user'], $GLOBALS['service']['instant80']['price']) == FALSE) { echo '<b class="red_text">Not enough ' . $GLOBALS['donation']['coins_name'] . '</b>'; $error = true; } } elseif ($service_values[1] == "vp") { if (account::hasVP($_SESSION['cw_user'], $GLOBALS['service']['instant80']['price']) == FALSE) { echo '<b class="red_text">Not enough Vote Points.</b>'; $error = true; } } if ($error != true) { //User got coins. Boost them up to 80 :D connect::connectToRealmDB($values[1]); mysql_query("UPDATE characters SET level='80' WHERE guid = '" . $values[0] . "'"); account::logThis("Performed an instant max level on " . character::getCharName($values[0], NULL), 'Instant', NULL); echo '<h3 class="green_text">The character level was set to 80!</h3>'; } } }
$from = "X: " . $char_x . " - Y: " . $char_y . " - Z: " . $char_z . " - MAP ID: " . $char_map; mysql_query("UPDATE characters SET position_x = " . $x . ", position_y= " . $y . ", position_z = " . $z . ", map = " . $map . " WHERE account = " . $acct . " \r\n\t\t\t AND guid = '" . $character . "'"); if ($GLOBALS['service']['teleport']['currency'] == "vp") { echo $GLOBALS['service']['teleport']['price'] . " Vote Points was taken from your account."; } elseif ($GLOBALS['service']['teleport']['currency'] == "dp") { echo $GLOBALS['service']['teleport']['price'] . " " . $GLOBALS['donation']['coins_name'] . " was taken from your account."; } account::logThis("Teleported " . character::getCharName($character, $realm_id) . " to " . $location, 'Teleport', $realm_id); echo true; } } if ($_POST['action'] == 'service') { $guid = (int) $_POST['guid']; $realm_id = (int) $_POST['realm_id']; $serviceX = mysql_real_escape_string($_POST['service']); if (character::isOnline($guid) == TRUE) { die('<b class="red_text">Please log out your character before proceeding.'); } if ($GLOBALS['service'][$serviceX]['currency'] == 'vp') { if (account::hasVP($_SESSION['cw_user'], $GLOBALS['service'][$serviceX]['price']) == FALSE) { die('<b class="red_text">Not enough Vote Points!</b>'); } } if ($GLOBALS['service'][$serviceX]['currency'] == 'dp') { if (account::hasDP($_SESSION['cw_user'], $GLOBALS['service'][$serviceX]['price']) == FALSE) { die('<b class="red_text">Not enough ' . $GLOBALS['donation']['coins_name'] . '</b>'); } } switch ($serviceX) { default: die("Unknown Error");