Jump to content

delavega

Members
  • Posts

    7
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Everything posted by delavega

  1. Gold required to buy is in item_template, but honor/arena/tokens are in npc_vendor in field ExtendedCost (you can look on other items that have same requirements as you want and copy that value. This field is linked to ItemExtendedCost.dbc - so defining own costs is problematic and not supported here (as editing dbc files))
  2. First problem is that you don't filter results based on map id, this will select spawns in that zone, but also from other maps (azeroth, kalimdor,..). Second is that wow coords is X - up, Y - left. So you will need probably to do $vars[$i]['x'] = ($row['y']-$y_min)/(($y_max-$y_min)/100); $vars[$i]['y'] = ($row['x']-$x_min)/(($x_max-$x_min)/100); or $vars[$i]['x'] = 100 - ($row['y']-$y_min)/(($y_max-$y_min)/100); $vars[$i]['y'] = 100 - ($row['x']-$x_min)/(($x_max-$x_min)/100); (not sure)
  3. Look in gameobjectdisplayinfo.dbc and search for ".wmo" objects, add them to your gameobject_template with type 14 (map_object, invisible from large distance) or 15 (some transport... client see this object from far far away), all data fields left zero, size 1, faction 0, flags 0
  4. I found that there is in guild broadcast two times of type of message. I never saw messagechat with two types, isn't this typo and should be only CHAT_MSG_GUILD_ACHIEVEMENT ? (AchievementMgr.cpp - 251. line) WorldPacket data(SMSG_MESSAGECHAT, 200); [b]data << uint8(CHAT_MSG_ACHIEVEMENT); // <----[/b] data << uint8(CHAT_MSG_GUILD_ACHIEVEMENT); Edit: tested, wow ignores guild packet with two types. there must be only CHAT_MSG_GUILD_ACHIEVEMENT
  5. Just in few cases there appeared account data with type 3 and data was empty, packing of this crashed mangos. Line: if(compress(const_cast<uint8*>(dest.contents()), &destSize, (uint8*)adata->Data.c_str(), size) != Z_OK) (MiscHandler.cpp - WorldSession::HandleRequestAccountData) because resize(0) - after this _storage[0] is invalid with newer Visual Studio's One maybe hacky way to fix it - replace it with this line if(size && compress(const_cast<uint8*>(dest.contents()), &destSize, (uint8*)adata->Data.c_str(), size) != Z_OK)
  6. Use http://www.mangosproject.org/trac/browser/.../UpdateFields.h, but you must calculate all numbers (via windows calc you can convert HEX to DEC and then normally add numbers). Some should be at UDB wiki or http://www.manground.org/mangosUpdatefields.html, dunno if this is up-to-date.
  7. Revision: 6299 Description of bug: Enum shouldn't be, becouse it will defaulty sets valuest as 0,1,2,3 (atleast under windows) and this won't work as excepted enum TeleportToOptions { TELE_TO_GM_MODE, TELE_TO_NOT_LEAVE_TRANSPORT, TELE_TO_NOT_LEAVE_COMBAT, TELE_TO_NOT_UNSUMMON_PET, TELE_TO_SPELL, }; How to repeat: use different types of teleport How it should work: enum TeleportToOptions { TELE_TO_GM_MODE = 0x01, TELE_TO_NOT_LEAVE_TRANSPORT = 0x02, TELE_TO_NOT_LEAVE_COMBAT = 0x04, TELE_TO_NOT_UNSUMMON_PET = 0x08, TELE_TO_SPELL = 0x10, }; Other information: nothing
×
×
  • 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