Jump to content

nowares

Members
  • Posts

    10
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Everything posted by nowares

  1. This is a very handy lis. Thanks undergarun
  2. It would help if you used [ code ] tags [ /code ] such big sections of code. Did you compile it yourself or is it a repack?
  3. The problem I had was due to using .tele. The map id wasn't updating for a min or two, or until I changed maps again... More an oversight on my part really. This is what I ended up with, if it helps anyone : $result = mysql_query("SELECT name, race, class, level, map, zone, gender FROM characters.characters WHERE online = 1") or die(mysql_error()); $num_online = mysql_num_rows($result); $map = array(0=>"Eastern Kingdoms",1=>"Kalimdor",33=>"Shadowfang Keep",34=>"Stormwind Stockade",35=>"Stormwind Prison",36=>"Deadmines",43=>"Wailing Caverns",44=>"Monastery",47=>"Razorfen Kraul",48=>"Blackfathom",70=>"Uldaman",90=>"Gnomeragon",109=>"Sunken Temple",129=>"Razorfen Downs",169=>"Emerald Dream",189=>"Monastery",209=>"Tanaris",229=>"Black Rock Spire",230=>"Black Rock Depths",249=>"Onyxia Lair",269=>"Caverns Of Time",289=>"School of Necromancy",309=>"Zulgurub",329=>"Stratholme",349=>"Mauradon",369=>"Deeprun Tram",389=>"Orgrimmar",409=>"MoltenCore",429=>"DireMaul",469=>"Blackwing Lair",509=>"AhnQiraj",530=>"Dalaran",531=>"AhnQiraj Temple",532=>"Karazahn",533=>"Stratholme",534=>"Hyjal Past",540=>"Hellfire Military",542=>"Hellfire Demon",543=>"Hellfire Rampart",544=>"Hellfire Raid",545=>"Coilfang Pumping",546=>"Coilfang Marsh",547=>"Coilfang Draenei",548=>"Coilfang Raid",550=>"Tempest Keep Raid",552=>"Tempest Keep Arcane",553=>"Tempest Keep Atrium",554=>"Tempest Keep Factory",555=>"Auchindoun Shadow",556=>"Auchindoun Demon",557=>"Auchindoun Ethereal",558=>"Auchindoun Draenei",560=>"Hillsbrad Past",562=>"Blades Edge Arena",564=>"Black Temple",565=>"Gruuls Lair",566=>"Netherstorm BG",568=>"ZulAman",571=>"Northrend",574=>"Valgarde 70",575=>"Utgarde Pinnacle",576=>"Nexus 70",578=>"Nexus 80",580=>"Sunwell Plateau",595=>"Stratholme COT",598=>"Sunwell 5",599=>"Ulduar 70",600=>"Drak Theron Keep",602=>"Ulduar 80",603=>"Ulduar Raid",604=>"GunDrak",607=>"Northrend BG",608=>"Violet Hold",609=>"Ebon Hold",615=>"The Obsidian Sanctum",616=>"The Eye of Eternity",617=>"Dalaran Sewers",618=>"The Ring of Valor",619=>"Ahn'kahet: The Old Kingdom",624=>"Vault of Archavon",628=>"Isle of Conquest",631=>"Icecrown Citadel Raid",632=>"Forge of Souls",649=>"Argent Tournament Raid",650=>"Argent Tournament Dungeon",658=>"Pit Of Saron",668=>"Halls of Reflection",723=>"Stormwind",724=>"The Ruby Sanctum"); $zone = array(1=>"Dun Morogh",3=>"Badlands",4=>"Blasted Lands",8=>"Swamp of Sorrows",10=>"Duskwood",11=>"Wetlands",12=>"Elwynn Forest",14=>"Durotar",15=>"Dustwallow Marsh",16=>"Azshara",17=>"The Barrens",21=>"Kul Tiras",22=>"Programmer Isle",25=>"Blackrock Mountain",28=>"Western Plaguelands",30=>"Nine",33=>"Stranglethorn Vale",36=>"Alterac Mountains",38=>"Loch Modan",40=>"Westfall",41=>"Deadwind Pass",44=>"Redridge Mountains",45=>"Arathi Highlands",46=>"Burning Steppes",47=>"The Hinterlands",51=>"Searing Gorge",65=>"Dragonblight",66=>"Zul'Drak",67=>"The Storm Peaks",85=>"Tirisfal Glades",130=>"Silverpine Forest",139=>"Eastern Plaguelands",141=>"Teldrassil",148=>"Darkshore",151=>"Designer Island",170=>"Lordamere Lake",206=>"Utgarde Keep",207=>"The Great Sea",208=>"Unused Ironcladcove",209=>"Shadowfang Keep",210=>"Icecrown",214=>"The Great Sea",215=>"Mulgore",267=>"Hillsbrad Foothills",268=>"Azshara Crater",269=>"Dun Algaz",276=>"UNUSED Stonewrought Pass",293=>"Thoradin's Wall",308=>"The Forbidding Sea",330=>"Thandol Span",331=>"Ashenvale",332=>"The Great Sea",357=>"Feralas",361=>"Felwood",377=>"Southfury River",394=>"Grizzly Hills",400=>"Thousand Needles",405=>"Desolace",406=>"Stonetalon Mountains",408=>"Gillijim's Isle",409=>"Island of Doctor Lapidis",440=>"Tanaris",457=>"The Veiled Sea",490=>"Un'Goro Crater",491=>"Razorfen Kraul",493=>"Moonglade",495=>"Howling Fjord",616=>"Hyjal",618=>"Winterspring",676=>"Outland",717=>"The Stockade",718=>"Wailing Caverns",719=>"Blackfathom Deeps",721=>"Gnomeregan",722=>"Razorfen Downs",796=>"Scarlet Monastery",876=>"GM Island",956=>"The Verdant Fields",1176=>"Zul'Farrak",1196=>"Utgarde Pinnacle",1337=>"Uldaman",1377=>"Silithus",1397=>"Emerald Forest",1417=>"Sunken Temple",1477=>"The Temple of Atal'Hakkar",1497=>"Undercity",1519=>"Stormwind City",1537=>"Ironforge",1581=>"The Deadmines",1583=>"Blackrock Spire",1584=>"Blackrock Depths",1637=>"Orgrimmar",1638=>"Thunder Bluff",1657=>"Darnassus",1941=>"Caverns of Time",1977=>"Zul'Gurub",2017=>"Stratholme",2037=>"Quel'thalas",2057=>"Scholomance",2100=>"Maraudon",2159=>"Onyxia's Lair",2257=>"Deeprun Tram",2366=>"The Black Morass",2367=>"Old Hillsbrad Foothills",2437=>"Ragefire Chasm",2557=>"Dire Maul",2597=>"Alterac Valley",2677=>"Blackwing Lair",2717=>"Molten Core",2817=>"Crystalsong Forest",2917=>"Hall of Legends",2918=>"Champions' Hall",3277=>"Warsong Gulch",3358=>"Arathi Basin",3428=>"Ahn'Qiraj",3429=>"Ruins of Ahn'Qiraj",3430=>"Eversong Woods",3433=>"Ghostlands",3455=>"The North Sea",3456=>"Naxxramas",3457=>"Karazhan",3459=>"City",3477=>"Azjol-Nerub",3478=>"Gates of Ahn'Qiraj",3479=>"The Veiled Sea",3483=>"Hellfire Peninsula",3487=>"Silvermoon City",3518=>"Nagrand",3519=>"Terokkar Forest",3520=>"Shadowmoon Valley",3521=>"Zangarmarsh",3522=>"Blade's Edge Mountains",3523=>"Netherstorm",3524=>"Azuremyst Isle",3525=>"Bloodmyst Isle",3535=>"Hellfire Citadel",3537=>"Borean Tundra",3540=>"Twisting Nether",3557=>"The Exodar",3562=>"Hellfire Ramparts",3605=>"Hyjal Past",3606=>"Hyjal Summit",3607=>"Serpentshrine Cavern",3698=>"Nagrand Arena",3702=>"Blade's Edge Arena",3703=>"Shattrath City",3711=>"Sholazar Basin",3713=>"The Blood Furnace",3714=>"The Shattered Halls",3715=>"The Steamvault",3716=>"The Underbog",3717=>"The Slave Pens",3789=>"Shadow Labyrinth",3790=>"Auchenai Crypts",3791=>"Sethekk Halls",3792=>"Mana-Tombs",3805=>"Zul'Aman",3820=>"Eye of the Storm",3836=>"Magtheridon's Lair",3845=>"Tempest Keep",3847=>"The Botanica",3848=>"The Arcatraz",3849=>"The Mechanar",3917=>"Auchindoun",3923=>"Gruul's Lair",3948=>"Brian and Pat Test",3959=>"Black Temple",3968=>"Ruins of Lordaeron",3979=>"The Frozen Sea",4019=>"Development Land",4075=>"Sunwell Plateau",4080=>"Isle of Quel'Danas",4100=>"The Culling of Stratholme",4131=>"Magisters' Terrace",4196=>"Drak'Tharon Keep",4197=>"Wintergrasp",4201=>"Vordrassil's Tears",4228=>"The Oculus",4258=>"The North Sea",4264=>"Halls of Stone",4265=>"The Nexus",4272=>"Halls of Lightning",4273=>"Ulduar",4277=>"Azjol-Nerub",4298=>"Plaguelands: The Scarlet Enclave",4378=>"Dalaran Arena",4384=>"Strand of the Ancients",4395=>"Dalaran",4406=>"The Ring of Valor",4415=>"The Violet Hold",4416=>"Gundrak",4493=>"The Obsidian Sanctum",4494=>"Ahn'kahet: The Old Kingdom",4500=>"The Eye of Eternity",4602=>"Force Interior",4603=>"Vault of Archavon",4630=>"The North Sea"); $gender = array(0=>"male",1=>"female"); $class = array(1=>"warrior",2=>"paladin",3=>"hunter",4=>"rogue",5=>"priest",6=>"deathknight",7=>"shaman",8=>"mage",9=>"warlock",11=>"druid"); $race = array(1=>"human",2=>"orc",3=>"dwarf",4=>"nightelf",5=>"undead",6=>"tauren",7=>"gnome",8=>"troll",10=>"bloodelf",11=>"draenei"); if($num_online > 0) { echo ' <table class="uonlinetable"> <tr> <td style="border-bottom:thin dotted #ccc;width:40px;">Race</td> <td style="border-bottom:thin dotted #ccc;width:40px;">Class</td> <td style="border-bottom:thin dotted #ccc;text-align:left"> Player Info</td> <td style="border-bottom:thin dotted #ccc;text-align:left"> Location</td> </tr>'; while (($row = mysql_fetch_array($result)) != false) { echo ' <tr> <td> [img=/img/race/'.$race[$row['race']].'-'.$gender[$row['gender']].'.png] </td> <td>[img=/img/class/'.$class[$row['class']].'.png]</td> <td style="text-align:left;"> '.$row['name'].' Level '.$row['level'].'</td> <td style="text-align:left;"> '.$map[$row['map']].' '.$zone[$row['zone']].'</td> </tr>'; } echo '</table>'; } else { echo ' <div style="text-align:center;">[b]No Players Online[/b] '; if(!$user->logged_in) { echo '[url="/?page=register"]Register[/url] text here' ; } else { echo 'Nobody online text here'; } echo '</div>'; }
  4. Perfect. That's just what I needed, thanks Patman
  5. I've been working on a player location script but can't seem to get the names right. Where can I get information about the zone / map ids? Idealy I'd like to show the map and town or something... Any pointers please? I found this script while searching, but it doesn't seem to be accurate and shows wrong locations: $result = mysql_query("SELECT name, race, class, level, map, gender FROM characters WHERE online = 1") or die(mysql_error()); $num_online = mysql_num_rows($result); $gender = array(0=>"Male",1=>"Female"); $class = array(1=>"Warrior",2=>"Paladin",3=>"Hunter",4=>"Rogue",5=>"Priest",6=>"Death Knight",7=>"Shaman",8=>"Mage",9=>"Warlock",11=>"Druid"); $race = array(1=>"Human",2=>"Orc",3=>"Dwarf",4=>"Night Elf",5=>"Undead",6=>"Tauren",7=>"Gnome",8=>"Troll",10=>"Blood Elf",11=>"Draenei"); $map = array(0=>"Eastern Kingdoms",1=>"Kalimdor",33=>"Shadowfang Keep",34=>"Stormwind Stockade",35=>"Stormwind Prison",36=>"Deadmines",43=>"Wailing Caverns",44=>"Monastery",47=>"Razorfen Kraul",48=>"Blackfathom",70=>"Uldaman",90=>"Gnomeragon",109=>"Sunken Temple",129=>"Razorfen Downs",169=>"Emerald Dream",189=>"Monastery",209=>"Tanaris",229=>"Black Rock Spire",230=>"Black Rock Depths",249=>"Onyxia Lair",269=>"Caverns Of Time",289=>"School of Necromancy",309=>"Zulgurub",329=>"Stratholme",349=>"Mauradon",369=>"Deeprun Tram",389=>"Orgrimmar",409=>"MoltenCore",429=>"DireMaul",469=>"Blackwing Lair",509=>"AhnQiraj",530=>"Dalaran",531=>"AhnQiraj Temple",532=>"Karazahn",533=>"Stratholme",534=>"Hyjal Past",540=>"Hellfire Military",542=>"Hellfire Demon",543=>"Hellfire Rampart",544=>"Hellfire Raid",545=>"Coilfang Pumping",546=>"Coilfang Marsh",547=>"Coilfang Draenei",548=>"Coilfang Raid",550=>"Tempest Keep Raid",552=>"Tempest Keep Arcane",553=>"Tempest Keep Atrium",554=>"Tempest Keep Factory",555=>"Auchindoun Shadow",556=>"Auchindoun Demon",557=>"Auchindoun Ethereal",558=>"Auchindoun Draenei",560=>"Hillsbrad Past",562=>"Blades Edge Arena",564=>"Black Temple",565=>"Gruuls Lair",566=>"Netherstorm BG",568=>"ZulAman",571=>"Northrend",574=>"Valgarde 70",575=>"Utgarde Pinnacle",576=>"Nexus 70",578=>"Nexus 80",580=>"Sunwell Plateau",595=>"Stratholme COT",598=>"Sunwell 5",599=>"Ulduar 70",600=>"Drak Theron Keep",602=>"Ulduar 80",603=>"Ulduar Raid",604=>"GunDrak",607=>"Northrend BG",608=>"Violet Hold",609=>"Ebon Hold",615=>"The Obsidian Sanctum",616=>"The Eye of Eternity",617=>"Dalaran Sewers",618=>"The Ring of Valor",619=>"Ahn'kahet: The Old Kingdom",624=>"Vault of Archavon",628=>"Isle of Conquest",631=>"Icecrown Citadel Raid",632=>"Forge of Souls",649=>"Argent Tournament Raid",650=>"Argent Tournament Dungeon",658=>"Pit Of Saron",668=>"Halls of Reflection",723=>"Stormwind",724=>"The Ruby Sanctum");
  6. Warning: Invalid argument supplied for foreach() in /nfs/c02/h11/mnt/42721/domains/getmangos.eu/html/wiki/extensions/AntiBot/AntiBot.php on line 55 Their antibot extension is either outdated or acting up.
  7. I tried this but the "Breaking news" section has just vanished now.... Any ideas why?
  8. I've just changed the RA to SOAP as I prefer it for development. It's working perfectly, but I can't find a way to get a new line in the message text. I've tried \\n <pre>'ing etc..... Can anyone put me out of my missery please?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use