• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Czas jednego fraga, help

Xal

New Member
Joined
Jul 28, 2009
Messages
42
Reaction score
0
Mam pytanie, męczę się nad tym 2 tygodnie, szukałem w players.cpp i nie mogę znaleźć jednej rzeczy- jak zmienić czas po którym znika frag? bardzo proszę o odpowiedź
Pozdrawiam
Xal
 
Bo to jest mission impossible, znaszy się possible, ale nie znajdziesz.
 
Za bycie z guardi nie pomozemy
wracaj na non pvp a nie za otsa sie bierzesz :/
 
A ja mu pomogę...

player.cpp

Code:
bool Player::addUnjustifiedKill(const Player* attacked)
{
if(g_game.getWorldType() == WORLD_TYPE_PVP_ENFORCED || attacked == this || hasFlag(
PlayerFlag_NotGainInFight) || hasCustomFlag(PlayerCustomFlag_NotGainSkull))
return false;

if(client)
{
char buffer[90];
sprintf(buffer, "Warning! The murder of %s was not justified.",
attacked->getName().c_str());
client->sendTextMessage(MSG_STATUS_WARNING, buffer);
}

time_t now = time(NULL), today = (now - [COLOR="Red"]84600[/COLOR]), week = (now - (7 * [COLOR="#ff0000"]84600[/COLOR]));
std::vector<time_t> dateList;
IOLoginData::getInstance()->getUnjustifiedDates(guid, dateList, now);

84600-24h
 
Za bycie z guardi nie pomozemy
wracaj na non pvp a nie za otsa sie bierzesz :/

skąd wiesz na jakim serwerze grałem ?
i jak nie chcesz pomagać to nic nie pisz, dodaj mnie do listy ignorowanych jeśli tu taka jest i cześć

A ja mu pomogę...

player.cpp

Code:
bool Player::addUnjustifiedKill(const Player* attacked)
{
if(g_game.getWorldType() == WORLD_TYPE_PVP_ENFORCED || attacked == this || hasFlag(
PlayerFlag_NotGainInFight) || hasCustomFlag(PlayerCustomFlag_NotGainSkull))
return false;

if(client)
{
char buffer[90];
sprintf(buffer, "Warning! The murder of %s was not justified.",
attacked->getName().c_str());
client->sendTextMessage(MSG_STATUS_WARNING, buffer);
}

time_t now = time(NULL), today = (now - [COLOR="Red"]84600[/COLOR]), week = (now - (7 * [COLOR="#ff0000"]84600[/COLOR]));
std::vector<time_t> dateList;
IOLoginData::getInstance()->getUnjustifiedDates(guid, dateList, now);

84600-24h


Dzięki, jutro rano napisze czy działa
 
A ja mu pomogę...

player.cpp

Code:
bool Player::addUnjustifiedKill(const Player* attacked)
{
if(g_game.getWorldType() == WORLD_TYPE_PVP_ENFORCED || attacked == this || hasFlag(
PlayerFlag_NotGainInFight) || hasCustomFlag(PlayerCustomFlag_NotGainSkull))
return false;

if(client)
{
char buffer[90];
sprintf(buffer, "Warning! The murder of %s was not justified.",
attacked->getName().c_str());
client->sendTextMessage(MSG_STATUS_WARNING, buffer);
}

time_t now = time(NULL), today = (now - [COLOR=Red]84600[/COLOR]), week = (now - (7 * [COLOR=#ff0000]84600[/COLOR]));
std::vector<time_t> dateList;
IOLoginData::getInstance()->getUnjustifiedDates(guid, dateList, now);
84600-24h

24h == 86400
 
Back
Top