Aero2.0
Members-
Posts
6 -
Joined
-
Last visited
Never -
Donations
0.00 GBP
Aero2.0's Achievements
Newbie (1/3)
0
Reputation
-
|PHP| Interesting Scripts for your Website
Aero2.0 replied to Auntie Mangos's topic in Old3rd party projects
Yea I think so too, and that one is really bothering me because it's not pretty so I wrote this... <? require_once('config.php'); mysql_connect("$ip", "$user", "$pass"); mysql_select_db ("$mangoscharacters"); $race = array(); $class = array(); $query = "select race, class from characters"; $result = mysql_query($query); while ($row = mysql_fetch_assoc($result)) { $race[$row['race']]++; $class[$row['class']]++; } echo "Humans: $race[1] "; echo "Dwarves: $race[3] "; echo "Night Elf: $race[4] "; echo "Gnome: $race[7] "; echo "Draenei: $race[11] "; echo "Orc: $race[2] "; echo "Undead: $race[5] "; echo "Tauren: $race[6] "; echo "Troll: $race[8] "; echo "Blood Elf: $race[10] "; echo "Druid: $class[11] "; echo "Hunter: $class[3] "; echo "Mage: $class[8] "; echo "Paladin: $class[2] "; echo "Priest: $class[5] "; echo "Rogue: $class[4] "; echo "Shaman: $class[7] "; echo "Warlock: $class[9] "; echo "Warrior: $class[1] "; echo "Death Knight: $class[6] "; ?> I haven't tested it yet but it should be much more efficient.. please correct me if I'm wrong though -
Why would you do that? Why not just take it out completely?? Edit: I mean just keep RemoveByteFlag(UNIT_FIELD_BYTES_2, 1, UNIT_BYTE2_FLAG_SANCTUARY);
-
This is already done in the core and I don't think it has to be done again by the script.
-
You can make a doxygen for it, it's in ./doc in the respiratory
-
I don't have a clean enough copy of MaNGOS downloaded atm, so I can't post a patch file, but I would open Unit.cpp and find the isHostileTo function.. and underneath.. // Duel if(pTester->duel && pTester->duel->opponent == pTarget && pTester->duel->startTime != 0) return true; add.. // Race if(pTester->getRace() != pTarget->getRace()) return true;
-
Actually there is, it won't patch properly with that line. I think it's a patch for Trinity. If you want this patch though, you can manually patch it.
Contact Us
To contact us
click here
You can also email us at [email protected]
Privacy Policy | Terms & Conditions
You can also email us at [email protected]
Privacy Policy | Terms & Conditions
Copyright © getMaNGOS. All rights Reserved.
This website is in no way associated with or endorsed by Blizzard Entertainment®
This website is in no way associated with or endorsed by Blizzard Entertainment®