Quote:
Originally Posted by Guiso90
petbefehl ? ö.ö könntest du vllt. den code hier posten?
|
Familie :
//Family
if (cData[0] == "$family" && cData.size() == 5) // $family <fname> <fleader> <flevel>
{
ss << "gidx 1 " << Char->id << " 8111 " << cData[1] << " (" << cData[2] << ")" << " " << cData[3];
SendToMap(Char, ss.str(), true);
}
//End of Family Command
//Pet Command by Sl4yZ
if (cData[0] == "$pet" && cData.size() == 4) // $pet <id> <name>
{
std::string cmd_sp = cryptography::game::encrypt("in 2 " + temp[2] + " 197975 7 8 2 100 100 0 0 3 " + uid + " 1 0 -1 " + temp[3]);
//send(clnData->sock, cmd_sp.c_str(), cmd_sp.size(), 0);
for (int i = 0; i < clients; i++)
send(sockets[i], cmd_sp.c_str(), cmd_sp.size(), 0);
cmd_found = true;