Drajwer And Omar Omiez .. Could You Make It?
Yesterday i thought about new admincommand
It should look like stats change or smth like that
if you type in /char and chars name then would come a new window
wheres almost everything from chars text file
example:
/char ruberto
location .....
loc-map ...
x ...
y ...
lvl ...
str ...
dex ...
int ...
mag ...
vit ...
chr ...
exp ..
luck ...
special attacks ...
contr ...
PK ..
EK ..
And all these would be editble
If it is possible to make command like that then i hope you will atleast try to make it
I think everyone would love that command
No need for commands like /setrep ruberto 40 or smth like that
It should look like stats change or smth like that
if you type in /char and chars name then would come a new window
wheres almost everything from chars text file
example:
/char ruberto
location .....
loc-map ...
x ...
y ...
lvl ...
str ...
dex ...
int ...
mag ...
vit ...
chr ...
exp ..
luck ...
special attacks ...
contr ...
PK ..
EK ..
And all these would be editble
If it is possible to make command like that then i hope you will atleast try to make it
I think everyone would love that command
No need for commands like /setrep ruberto 40 or smth like that
-
- Loyal fan
- Posts: 289
- Joined: Sat Feb 28, 2004 12:45 pm
- Location: In Chicks Rooms/Dorms Or Passed Out On The Floor
- Contact:
Code: Select all
void CGame::AdminOrder_CheckStats(int iClientH, char *pData,DWORD dwMsgSize)
{
char cStatMessage[256];
char seps[] = "= \t\n";
char cBuff[256];
class CStrTok * pStrTok;
char * token, cName[11], cTargetName[11];
register int i;
if (m_pClientList[iClientH] == NULL) return;
if (m_pClientList[iClientH]->m_iAdminUserLevel < 1) {
SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_ADMINUSERLEVELLOW, NULL, NULL, NULL, NULL);
return;
}
if ((dwMsgSize) <= 0) return;
ZeroMemory(cTargetName, sizeof(cTargetName));
ZeroMemory(cBuff, sizeof(cBuff));
memcpy(cBuff, pData, dwMsgSize);
pStrTok = new class CStrTok(cBuff, seps);
token = pStrTok->pGet();
token = pStrTok->pGet();
if (token != NULL) {
ZeroMemory(cName, sizeof(cName));
strcpy(cName, token);
}
else {
ZeroMemory(cName, sizeof(cName));
strcpy(cName, "null");
}
token = pStrTok->pGet();
if (token == NULL) {
token = "null";
}
if (cName != NULL) {
token = cName;
if (strlen(token) > 10)
memcpy(cTargetName, token, 10);
else memcpy(cTargetName, token, strlen(token));
for (i = 1; i < DEF_MAXCLIENTS; i++)
if ((m_pClientList[i] != NULL) && (memcmp(m_pClientList[i]->m_cCharName, cTargetName, 10) == 0)) {
// Level, Exp, Str, Int, Vit, Dex, Mag, Charisma, Location, Luck, Ek
ZeroMemory(cStatMessage, sizeof(cStatMessage));
wsprintf(cStatMessage, "Level:%d Exp:%d Str:%d Dex:%d Vit:%d Int:%d Mag:%d Chr:%d Map:%d EK:%d Luck:%d",m_pClientList[i]->m_iLevel,m_pClientList[i]->m_iExp, m_pClientList[i]->m_iStr, m_pClientList[i]->m_iDex, m_pClientList[i]->m_iVit, m_pClientList[i]->m_iInt,m_pClientList[i]->m_iMag, m_pClientList[i]->m_iCharisma, m_pClientList[i]->m_cLocation, m_pClientList[i]->m_iEnemyKillCount, m_pClientList[i]->m_iLuck);
ShowClientMsg(iClientH, cStatMessage);
}
}
}
Just remember if you shake it more then 3 times your playing with it.
That should be code in HGserver Source and Cliente Source..
GoD~
GoD~
<img src='http://img350.imageshack.us/img350/1465/god21ee.jpg' border='0' alt='user posted image' />
Exactly will need client source :rolleyes:GoD~ wrote: That should be code in HGserver Source and Cliente Source..
GoD~
QUOTE (ADDKiD @ Dec 1 2006, 4:01 PM) <br>You guys make me laugh alot, half the shit I say, is bullshit...<br><br><img src='http://img485.imageshack.us/img485/492/banssig1ng.gif' border='0' alt='user posted image' /><br><br><b>I see no changes at all, wake up in the morning and ask myself...<br>Is life worth living? Should I blast myself?</b><br><br><b><a href='http://2paclegacy.com' target='_blank'>2PacLegacy.com</a></b>
Umm...and i saw his script good skills ^_^nef wrote: why dont u use sql?and make a control php just like i did on my server, i can control and modify almost everything i want, exept stats lvl and xp (security reasons), and it atualizes in real time
the person just need to relog
QUOTE (ADDKiD @ Dec 1 2006, 4:01 PM) <br>You guys make me laugh alot, half the shit I say, is bullshit...<br><br><img src='http://img485.imageshack.us/img485/492/banssig1ng.gif' border='0' alt='user posted image' /><br><br><b>I see no changes at all, wake up in the morning and ask myself...<br>Is life worth living? Should I blast myself?</b><br><br><b><a href='http://2paclegacy.com' target='_blank'>2PacLegacy.com</a></b>
-
- Loyal fan
- Posts: 235
- Joined: Mon Jul 12, 2004 9:36 am
i dunno what im typing but its bben a long time since i posted in outpost. schools just too much lol.
anyway im noob but if im not wrong posting the stats should be simple, on a new window is another thing altogether. and then allow u to edit, is even another thing from that other thing earlier. u should stick to using php scripts. haha.
anyway im noob but if im not wrong posting the stats should be simple, on a new window is another thing altogether. and then allow u to edit, is even another thing from that other thing earlier. u should stick to using php scripts. haha.
- Tbone<br><a href="http://cyborg.namedecoder.com"><br><img src="http://cyborg.namedecoder.com/webimages ... ng"<br></a>
-_- just make the commands, like:
/setint char value
/setstr char value
edit; for location and x,y you can just use teleport
/setint char value
/setstr char value
edit; for location and x,y you can just use teleport
<!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->Human knowleag belongs to THE WORLD<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br>So i highly dislike people who keep to their proud selfs... thats why i wanna share everything i got with you guys