well i need a core edit... if someone could do it for me it would be great.. you can post the code between code tags that needs to be edited or something
i need someone to edit the source code so that the .cheat taxi 1 command also works on players... cuz now it only works on GMs :-/ (on our server)
Well i am not a core expert so if anyone could do it for me it would be great
help is much appreciated
grtz
note:
i searched myself and i got to this part of the source:
Code:
bool ChatHandler::HandleTaxiCheatCommand(const char* args, WorldSession *m_session)
{
if (!*args)
return false;
int flag = atoi((char*)args);
Player *chr = getSelectedChar(m_session);
if (chr == NULL) return true;
char buf[256];
// send message to user
if (flag != 0)
{
snprintf((char*)buf,256, "%s has all taxi nodes now.", chr->GetName());
}
else
{
snprintf((char*)buf,256, "%s has no more taxi nodes now.", chr->GetName());
}
GreenSystemMessage(m_session, buf);
// send message to player
if (flag != 0)
{
snprintf((char*)buf,256, "%s has given you all taxi nodes.",
m_session->GetPlayer()->GetName());
}
else
{
snprintf((char*)buf,256, "%s has deleted all your taxi nodes.",
m_session->GetPlayer()->GetName());
}
SystemMessage(m_session, buf);
for (uint8 i=0; i<8; i++)
{
if (flag != 0)
{
m_session->GetPlayer()->SetTaximask(i, 0xFFFFFFFF);
}
else
{
m_session->GetPlayer()->SetTaximask(i, 0);
}
}
return true;
}
maybe that is the part that needs to be edited? anyhow the one who makes this and posts it gets rep from me