コード例 #1
0
ファイル: skills.php プロジェクト: EQMacEmu/magelo
include_once "include/config.php";
include_once "include/profile.php";
include_once "include/global.php";
include_once "include/language.php";
include_once "include/functions.php";
//if character name isnt provided post error message and exit
if (!$_GET['char']) {
    message_die($language['MESSAGE_ERROR'], $language['MESSAGE_NO_CHAR']);
} else {
    $charName = $_GET['char'];
}
//character initializations - rewritten 9/28/2014
$char = new profile($charName);
//the profile class will sanitize the character name
$charID = $char->char_id();
$name = $char->GetValue('name');
$mypermission = GetPermissions($char->GetValue('gm'), $char->GetValue('anon'), $char->char_id());
//block view if user level doesnt have permission
if ($mypermission['skills']) {
    message_die($language['MESSAGE_ERROR'], $language['MESSAGE_ITEM_NO_VIEW']);
}
//drop page
$d_title = " - " . $name . $language['PAGE_TITLES_SKILLS'];
include "include/header.php";
$template->set_filenames(array('settings' => 'settings_body.tpl'));
//build body template
$template->set_filenames(array('skills' => 'skills_body.tpl'));
$template->assign_vars(array('NAME' => $name, '1H_BLUNT' => $char->GetValue('1h_blunt'), '1H_SLASHING' => $char->GetValue('1h_slashing'), '2H_BLUNT' => $char->GetValue('2h_blunt'), '2H_SLASHING' => $char->GetValue('2h_slashing'), 'ARCHERY' => $char->GetValue('archery'), 'BASH' => $char->GetValue('bash'), 'BLOCK' => $char->GetValue('block'), 'DEFENSE' => $char->GetValue('defense'), 'DISARM' => $char->GetValue('disarm'), 'DODGE' => $char->GetValue('dodge'), 'DOUBLE_ATTACK' => $char->GetValue('double_attack'), 'DUAL_WIELD' => $char->GetValue('dual_wield'), 'HAND_TO_HAND' => $char->GetValue('hand_to_hand'), 'KICK' => $char->GetValue('kick'), 'OFFENSE' => $char->GetValue('offense'), 'PARRY' => $char->GetValue('parry'), 'PIERCING' => $char->GetValue('piercing'), 'RIPOSTE' => $char->GetValue('riposte'), 'THROWING' => $char->GetValue('throwing'), 'INTIMIDATION' => $char->GetValue('intimidation'), 'TAUNT' => $char->GetValue('taunt'), 'ABJURATION' => $char->GetValue('abjuration'), 'ALTERATION' => $char->GetValue('alteration'), 'CHANNELING' => $char->GetValue('channeling'), 'CONJURATION' => $char->GetValue('conjuration'), 'DIVINATION' => $char->GetValue('divination'), 'EVOCATION' => $char->GetValue('evocation'), 'SPECIALIZE_ABJURE' => $char->GetValue('specialize_abjure'), 'SPECIALIZE_ALTERATION' => $char->GetValue('specialize_alteration'), 'SPECIALIZE_CONJURATION' => $char->GetValue('specialize_conjuration'), 'SPECIALIZE_DIVINATION' => $char->GetValue('specialize_divinatation'), 'SPECIALIZE_EVOCATION' => $char->GetValue('specialize_evocation'), 'DRAGON_PUNCH' => $char->GetValue('dragon_punch'), 'EAGLE_STRIKE' => $char->GetValue('eagle_strike'), 'ROUND_KICK' => $char->GetValue('round_kick'), 'TIGER_CLAW' => $char->GetValue('tiger_claw'), 'FLYING_KICK' => $char->GetValue('flying_kick'), 'MEND' => $char->GetValue('mend'), 'FEIGN_DEATH' => $char->GetValue('feign_death'), 'PICK_LOCK' => $char->GetValue('pick_lock'), 'APPLY_POISON' => $char->GetValue('apply_poison'), 'BACKSTAB' => $char->GetValue('backstab'), 'DISARM_TRAPS' => $char->GetValue('disarm_traps'), 'PICK_POCKETS' => $char->GetValue('pick_pockets'), 'SENSE_TRAPS' => $char->GetValue('sense_traps'), 'BERSERKING' => $char->GetValue('berserking'), 'FRENZY' => $char->GetValue('frenzy'), 'BRASS_INSTRUMENTS' => $char->GetValue('brass_instruments'), 'SINGING' => $char->GetValue('sing'), 'STRINGED_INSTRUMENTS' => $char->GetValue('stringed_instruments'), 'WIND_INSTRUMENTS' => $char->GetValue('wind_instruments'), 'PERCUSSION_INSTRUMENTS' => $char->GetValue('percussion_instruments'), 'BIND_WOUND' => $char->GetValue('bind_wound'), 'FORAGE' => $char->GetValue('forage'), 'HIDE' => $char->GetValue('hide'), 'MEDITATE' => $char->GetValue('meditate'), 'SAFE_FALL' => $char->GetValue('safe_fall'), 'SENSE_HEADING' => $char->GetValue('sense_heading'), 'SNEAK' => $char->GetValue('sneak'), 'SWIMMING' => $char->GetValue('swimming'), 'TRACKING' => $char->GetValue('tracking'), 'FISHING' => $char->GetValue('fishing'), 'ALCOHOL_TOLERANCE' => $char->GetValue('alcohol_tolerance'), 'BEGGING' => $char->GetValue('begging'), 'MAKE_POISON' => $char->GetValue('make_poison'), 'TINKERING' => $char->GetValue('tinkering'), 'RESEARCH' => $char->GetValue('research'), 'ALCHEMY' => $char->GetValue('alchemy'), 'BAKING' => $char->GetValue('baking'), 'TAILORING' => $char->GetValue('tailoring'), 'BLACKSMITHING' => $char->GetValue('blacksmithing'), 'FLETCHING' => $char->GetValue('fletching'), 'BREWING' => $char->GetValue('brewing'), 'JEWELRY_MAKING' => $char->GetValue('jewelry_making'), 'POTTERY' => $char->GetValue('pottery'), 'L_TRADE' => $language['SKILLS_TRADE'], 'L_OTHER' => $language['SKILLS_OTHER'], 'L_CLASS' => $language['SKILLS_CLASS'], 'L_CASTING' => $language['SKILLS_CASTING'], 'L_COMBAT' => $language['SKILLS_COMBAT'], 'L_LANGUAGE' => $language['SKILLS_LANGUAGE'], 'L_SKILLS' => $language['SKILLS_SKILLS'], 'L_DONE' => $language['BUTTON_DONE'], 'L_AAS' => $language['BUTTON_AAS'], 'L_KEYS' => $language['BUTTON_KEYS'], 'L_FLAGS' => $language['BUTTON_FLAGS'], 'L_SKILLS' => $language['BUTTON_SKILLS'], 'L_BOOKMARK' => $language['BUTTON_BOOKMARK'], 'L_CORPSE' => $language['BUTTON_CORPSE'], 'L_FACTION' => $language['BUTTON_FACTION'], 'L_INVENTORY' => $language['BUTTON_INVENTORY'], 'L_CHARMOVE' => $language['BUTTON_CHARMOVE']));
if (!$mypermission['languageskills']) {
    $template->assign_block_vars("switch_language", array('COMMON_TONGUE' => $char->GetValue('common_tongue'), 'BARBARIAN' => $char->GetValue('barbarian'), 'ERUDIAN' => $char->GetValue('erudian'), 'ELVISH' => $char->GetValue('elvish'), 'DARK_ELVISH' => $char->GetValue('dark_elvish'), 'DWARVISH' => $char->GetValue('dwarvish'), 'TROLL' => $char->GetValue('troll'), 'OGRE' => $char->GetValue('ogre'), 'GNOMISH' => $char->GetValue('gnomish'), 'HALFLING' => $char->GetValue('halfling'), 'THIEVES_CANT' => $char->GetValue('thieves_cant'), 'OLD_ERUDIAN' => $char->GetValue('old_erudian'), 'ELDER_ELVISH' => $char->GetValue('elder_elvish'), 'FROGLOK' => $char->GetValue('froglok'), 'GOBLIN' => $char->GetValue('goblin'), 'GNOLL' => $char->GetValue('gnoll'), 'COMBINE_TONGUE' => $char->GetValue('combine_tongue'), 'ELDER_TEIRDAL' => $char->GetValue('elder_teirdal'), 'LIZARDMAN' => $char->GetValue('lizardman'), 'ORCISH' => $char->GetValue('orcish'), 'FAERIE' => $char->GetValue('faerie'), 'DRAGON' => $char->GetValue('dragon'), 'ELDER_DRAGON' => $char->GetValue('elder_dragon'), 'DARK_SPEECH' => $char->GetValue('dark_speech'), 'VAH_SHIR' => $char->GetValue('vah_shir')));
}
コード例 #2
0
ファイル: corpse.php プロジェクト: EQMacEmu/magelo
include_once "include/config.php";
include_once "include/profile.php";
include_once "include/global.php";
include_once "include/language.php";
include_once "include/functions.php";
//if character name isnt provided post error message and exit
if (!$_GET['char']) {
    message_die($language['MESSAGE_ERROR'], $language['MESSAGE_NO_CHAR']);
} else {
    $charName = $_GET['char'];
}
//character initializations - rewritten 9/28/2014
$char = new profile($charName);
//the profile class will sanitize the character name
$charID = $char->char_id();
$name = $char->GetValue('name');
$mypermission = GetPermissions($char->GetValue('gm'), $char->GetValue('anon'), $char->char_id());
//block view if user level doesnt have permission
if ($mypermission['corpses']) {
    message_die($language['MESSAGE_ERROR'], $language['MESSAGE_ITEM_NO_VIEW']);
}
// pull the characters corpses from the DB
$query = "SELECT zone.short_name, zone.zoneidnumber, character_corpses.isburried, character_corpses.x, character_corpses.y, character_corpses.rezzed, character_corpses.timeofdeath FROM zone, character_corpses WHERE character_corpses.charid = " . $charID . " AND zone.zoneidnumber = character_corpses.zoneid ORDER BY character_corpses.timeofdeath DESC;";
if (defined('DB_PERFORMANCE')) {
    dbp_query_stat('query', $query);
}
//added 9/28/2014
$results = mysql_query($query);
if (!mysql_num_rows($results)) {
    message_die($language['CORPSE_CORPSES'] . " - " . $name, $language['MESSAGE_NO_CORPSES']);
}
コード例 #3
0
ファイル: aas.php プロジェクト: EQMacEmu/magelo
include_once "include/config.php";
include_once "include/profile.php";
include_once "include/global.php";
include_once "include/language.php";
include_once "include/functions.php";
//if character name isnt provided post error message and exit
if (!$_GET['char']) {
    message_die($language['MESSAGE_ERROR'], $language['MESSAGE_NO_CHAR']);
} else {
    $charName = $_GET['char'];
}
//character initializations - rewritten 9/28/2014
$char = new profile($charName);
//the profile class will sanitize the character name
$charID = $char->char_id();
$name = $char->GetValue('name');
$mypermission = GetPermissions($char->GetValue('gm'), $char->GetValue('anon'), $char->char_id());
//block view if user level doesnt have permission
if ($mypermission['AAs']) {
    message_die($language['MESSAGE_ERROR'], $language['MESSAGE_ITEM_NO_VIEW']);
}
$classbit = array(0, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 1);
//rewritten to replace character blob - 9/929/3014
//this probably needs the logic rethought, this is a bandaid
$temp = $char->GetTable("character_alternate_abilities");
$aa_array = array();
foreach ($temp as $key => $value) {
    $aa_array[$value["aa_id"]] = $value["aa_value"];
}
$aatabs = array();
$aatabs[1] = $language['AAS_TAB_1'];
コード例 #4
0
ファイル: sig.php プロジェクト: EQMacEmu/magelo
    imagestring($error_image, 2, 10, 50, $message, $error_color);
    header("Content-Type: image/png");
    imagepng($error_image);
    ImageDestroy($error_image);
}
//if character name isnt provided post error message and exit
if (!$_GET['char']) {
    png_message_die($language['MESSAGE_ERROR'], $language['MESSAGE_NO_CHAR']);
} else {
    $charName = $_GET['char'];
}
//character initializations - rewritten 9/28/2014
$char = new profile($charName);
//the profile class will sanitize the character name
$charID = $char->char_id();
$mypermission = GetPermissions($char->GetValue('gm'), $char->GetValue('anon'), $char->char_id());
//block view if user level doesnt have permission
if ($mypermission['signatures']) {
    png_message_die($language['MESSAGE_ERROR'], $language['MESSAGE_ITEM_NO_VIEW']);
}
//load profile information for the character
$name = $char->GetValue('name');
$last_name = $char->GetValue('last_name');
$title = $char->GetValue('title');
$level = $char->GetValue('level');
$deity = $char->GetValue('deity');
$baseSTR = $char->GetValue('str');
//changed stats to lowercase 9/26/2014
$baseSTA = $char->GetValue('sta');
$baseAGI = $char->GetValue('agi');
$baseDEX = $char->GetValue('dex');
コード例 #5
0
ファイル: factions.php プロジェクト: EQMacEmu/magelo
include_once "include/config.php";
include_once "include/profile.php";
include_once "include/global.php";
include_once "include/language.php";
include_once "include/functions.php";
//if character name isnt provided post error message and exit
if (!$_GET['char']) {
    message_die($language['MESSAGE_ERROR'], $language['MESSAGE_NO_CHAR']);
} else {
    $charName = $_GET['char'];
}
//character initializations - rewritten 9/28/2014
$char = new profile($charName);
//the profile class will sanitize the character name
$charID = $char->char_id();
$name = $char->GetValue('name');
$mypermission = GetPermissions($char->GetValue('gm'), $char->GetValue('anon'), $char->char_id());
//block view if user level doesnt have permission
if ($mypermission['factions']) {
    message_die($language['MESSAGE_ERROR'], $language['MESSAGE_ITEM_NO_VIEW']);
}
//converts faction values into a the string from the language file.
function FactionToString($character_value)
{
    global $language;
    if ($character_value >= 1101) {
        return $language['FACTION_ALLY'];
    }
    if ($character_value >= 701 && $character_value <= 1100) {
        return $language['FACTION_WARMLY'];
    }