Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void ObjectMgr::CreateCharCreationPet(uint32 entry, uint32 ownerGUID)
- {
- std::stringstream ss;
- if (entry == 3122) // horde
- 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')";
- else
- 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')";
- // Execute also returns that the query failed
- CharacterDatabase.WaitExecuteNA(ss.str().c_str());
- }
Advertisement
Add Comment
Please, Sign In to add comment