stoneharry

Untitled

Dec 16th, 2012
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.79 KB | None | 0 0
  1. void ObjectMgr::CreateCharCreationPet(uint32 entry, uint32 ownerGUID)
  2. {
  3.     uint32 guid;
  4.     guid = ++m_hiPetGuid;
  5.  
  6.     std::stringstream ss;
  7.  
  8.     if (entry == 3122) // horde
  9.         ss << "INSERT INTO `playerpets` VALUES ('" << ownerGUID << "', '1', 'Raptor', '3122', '0', '11', '1', '117440514 0,117440513 0,117440512 0,52473 49408,0 49408,0 49408,0 49408,100663298 0,100663297 0,100663296 0,', '500', '0', '0', '883', '1', '1', '1', '100', '80', '4294951145', '1', '1')";
  10.     else
  11.         ss << "INSERT INTO `playerpets` VALUES ('" << ownerGUID << "', '1', 'Wolf', '69', '0', '11', '1', '117440514 0,117440513 0,117440512 0,52473 49408,0 49408,0 49408,0 49408,100663298 0,100663297 0,100663296 0,', '500', '0', '0', '883', '1', '1', '1', '100', '80', '4294951145', '1', '1')";
  12.  
  13.     CharacterDatabase.Execute(ss.str().c_str());
  14. }
Advertisement
Add Comment
Please, Sign In to add comment