stoneharry

Untitled

Dec 18th, 2012
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.81 KB | None | 0 0
  1. void ObjectMgr::CreateCharCreationPet(uint32 entry, uint32 ownerGUID)
  2. {
  3.     std::stringstream ss;
  4.  
  5.     if (entry == 3122) // horde
  6.         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')";
  7.     else
  8.         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')";
  9.  
  10.     // Execute also returns that the query failed
  11.     CharacterDatabase.WaitExecuteNA(ss.str().c_str());
  12. }
Advertisement
Add Comment
Please, Sign In to add comment