Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Output from string:
- INSERT INTO playerpets VALUES('216','1','Wolf','69','0','11','1','117440514 0,
- 117440513 0,117440512 0,0 49408,0 49408,0 49408,0 49408,100663298 0,100663297 0,
- 100663296 0,','500','0','0','883','1','1','1','100','310','8308733','1','1')
- Returned True.
- */
- void ObjectMgr::CreateCharCreationPet(uint32 entry, uint32 ownerGUID)
- {
- string name;
- if (entry == 3122)
- name = "Raptor";
- else
- name = "Wolf";
- std::stringstream ss;
- ss.rdbuf()->str("");
- ss << "INSERT INTO playerpets VALUES('"
- << ownerGUID << "','"
- << 1 << "','"
- << name << "','"
- << entry << "','"
- << 0 << "','"
- << 11 << "','"
- << 1 << "','"
- << "117440514 0,117440513 0,117440512 0,0 49408,0 49408,0 49408,0 49408,100663298 0,100663297 0,100663296 0," << "','"
- << 500 << "','"
- << 0 << "','"
- << 0 << "','"
- << 883 << "','"
- << 1 << "','"
- << 1 << "','"
- << 1 << "','"
- << 100 << "','"
- << 310 << "','"
- << 8308733 << "','"
- << 1 << "','"
- << 1 << "')";
- Log.Success("\n", ss.str().c_str());
- if (CharacterDatabase.Execute(ss.str().c_str()))
- Log.Success("DBQuery", "Returned True.");
- else
- Log.Success("DBQuery", "Returned False.");
- }
Advertisement
Add Comment
Please, Sign In to add comment