Yeah i found It ^^ must of been my bad connection but the link is fine ^^ finally i have changed the protocols lol beware anyone doin this slightest errors can cause failure it took me a whole day to find a missing = sign on the protocols
Printable View
Yeah i found It ^^ must of been my bad connection but the link is fine ^^ finally i have changed the protocols lol beware anyone doin this slightest errors can cause failure it took me a whole day to find a missing = sign on the protocols
Hello, I took the liberty to read the Portuguese guide :P because I wanted to add Elbeland and Swamp of Calmness and I wanted to ask something because it's kind of unclear for me.
In the FixMapAttribute() function should I write all the offsets that are related to the MAP_BASE (0x9FF4DB0)? Because there are lots, and I mean LOTS. :)) Plus there are also some related to the MAP_SIZE (0x51068).
Thanks again for the guide. It helped me a LOT!!! :D
Im soo confused in that section i have been translating the portuguese guide but I noticed when I type MapC in the CTRL+N window it doesnt come up O.o
Btw after completing all Guides Should the Skills work? I noticed on the guides that screenshots had the skills working
Gabriel,
Yes, have a many (many, many, many) offsets of MapC. And you need to put all them...
wingsofhell,
The skills doesn
I have a problem with Global.h
This is my Global.h:
And this is my log:Code:#include "StdAfx.h"
extern char Character[10];
extern char Conta[10];
extern FILE * SMDfile;
extern char ConnectNotice[50];
extern char GM[10];
extern char sServer[50];
extern char sLogin[50];
extern char sPass[50];
extern char sDataBase[50];
extern int sOptions;
Code:1>------ Build started: Project: DSTeam, Configuration: Debug Win32 ------
1>Compiling...
1>Protocolos.cpp
1>c:\documents and settings\administrator\my documents\visual studio 2008\projects\dsteam\dsteam\global.h(2) : error C2144: syntax error : 'char' should be preceded by ';'
1>c:\documents and settings\administrator\my documents\visual studio 2008\projects\dsteam\dsteam\global.h(2) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>Generating Code...
1>Compiling...
1>Global.cpp
1>Generating Code...
1>Compiling...
1>configs.cpp
1>Generating Code...
1>Build log was saved at "file://c:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\DSTeam\DSTeam\Debug\BuildLog.htm"
1>DSTeam - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Whats error?
Put here a SS with error.
Sorry my bad English....
BluStudio, check your Protocols.cpp file. You've missed a ';'.
Also look again at the variable's type.Code:1>Protocolos.cpp
1>c:\documents and settings\administrator\my documents\visual studio 2008\projects\dsteam\dsteam\global.h(2) : error C2144: syntax error : 'char' should be preceded by ';'
1>c:\documents and settings\administrator\my documents\visual studio 2008\projects\dsteam\dsteam\global.h(2) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
Could you please add offset where to change registry block from BYTE to WORD to make 65k stats? Thats would be great, I think many people are dreaming of this information. :)
I solved that error and I compiled the DLL, but when I use Twisting Slash it gives me this error in GameServer:Code:Dark Knight Attack Speed Is Wrong MagicSkill
what's speed on dk? =)
if it was BYTE, then u'd have to change a lot of things in gs and main, and max value would have been 255 :D
you have to change commands that operate with signed values to unsigned, but not BYTE -> WORD :)
My GS crashes every time I use /drop. I have some warning when I compile the dll.
My ChatCore.cpp is:Code:1>------ Build started: Project: DSTeam, Configuration: Debug Win32 ------
1>Compiling...
1>ChatCore.cpp
1>c:\documents and settings\administrator\my documents\visual studio 2008\projects\dsteam\dsteam\chatcore.cpp(12) : warning C4018: '<' : signed/unsigned mismatch
1>c:\documents and settings\administrator\my documents\visual studio 2008\projects\dsteam\dsteam\chatcore.cpp(68) : warning C4244: 'argument' : conversion from 'DWORD' to 'WORD', possible loss of data
1>c:\documents and settings\administrator\my documents\visual studio 2008\projects\dsteam\dsteam\chatcore.cpp(68) : warning C4244: 'argument' : conversion from 'DWORD' to 'WORD', possible loss of data
1>c:\documents and settings\administrator\my documents\visual studio 2008\projects\dsteam\dsteam\chatcore.cpp(68) : warning C4244: 'argument' : conversion from 'DWORD' to 'WORD', possible loss of data
1>Linking...
1>LINK : C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\DSTeam\Debug\DSTeam.dll not found or not built by the last incremental link; performing full link
1> Creating library C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\DSTeam\Debug\DSTeam.lib and object C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\DSTeam\Debug\DSTeam.exp
1>Embedding manifest...
1>Build log was saved at "file://c:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\DSTeam\DSTeam\Debug\BuildLog.htm"
1>DSTeam - 0 error(s), 4 warning(s)
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
At the Bold and Underilne lines are the errors...Code:#include "chatcore.h"
//Drop Command
void ChatDrop(DWORD gObjId,char * msg)
{
if(strlen(msg) <13)
{
return;
}
int spaces = 0;
for(int i=0; i < strlen(msg); i++)
{
if(msg[i] == ' ')
spaces++;
}
if(VerificaGM(gObjId) == false)
{
return;
}
char * PosA;
PosA = strchr(msg,' ');
char * PosB;
PosB = strchr(PosA+1,' ');
char * PosC;
PosC = strchr(PosB+1,' ');
char * PosD;
PosD = strchr(PosC+1,' ');
int ItemType,ItemNr,ItemLevel;
if(*(PosA+2)!= ' ')
{
ItemType = (int)(*(PosA+1)-48)*10+(int)(*(PosA+2)-48);
}
else
{
ItemType = (*(PosA+1))-48;
}
if(*(PosB+2)!= ' ')
{
ItemType = (int)(*(PosB+1)-48)*10+(int)(*(PosB+2)-48);
}
else
{
ItemType = (*(PosB+1))-48;
}
if(*(PosC+2)!= ' ')
{
ItemType = (int)(*(PosC+1)-48)*10+(int)(*(PosC+2)-48);
}
else
{
ItemType = (*(PosC+1))-48;
}
if(*(PosD+2)!= ' ')
{
ItemType = (int)(*(PosD+1)-48)*10+(int)(*(PosD+2)-48);
}
else
{
ItemType = (*(PosD+1))-48;
}
int ItemSkill = (*(PosD+1))-48;
int ItemLuck = (*(PosD+3))-48;
int ItemOpt = (*(PosD+5))-48;
int ItemExc = (*(PosD+7))-48;
DWORD Item = ItemType * 512 + ItemNr;
ItemSerialCreateSend(gObjId,gObj_GetMap(gObjId),gObj_GetPosX(gObjId),gObj_GetPosY(gObjId),Item,ItemLevel,0,ItemSkill,ItemLuck,ItemOpt,-1,ItemExc,0);
GCServerMsgStringSend("[Make]You have created an item.",gObjId,1);
}
void ChatDataSend(DWORD gObjId,LPBYTE Protocol)
{
char ComandoDrop[] = "/drop";
if(!memcmp(&Protocol[13],ComandoDrop,strlen(ComandoDrop)))
{
ChatDrop(gObjId,(char*)Protocol+13+strlen(ComandoDrop));
}
}/*
void ChatDrop(DWORD gObjId, char * msg)
{
if(strlen(msg) < 13)
{
return;
}
int spaces = 0;
for(int i=0; i < strlen(msg);i++)
{
if(msg[i] == ' ')
spaces++;
}
if(spaces < 7)
{
return;
}
if(VerificaGM(gObjId) == false)
{
return;
}
int ItemType,ItemNr,ItemLevel,ItemSkill,ItemLuck,ItemOpt,ItemExc;
sscanf_s(msg,"%d %d %d %d %d %d %d", &ItemType, &ItemNr, &ItemLevel, &ItemSkill, &ItemLuck, &ItemOpt, &ItemExc);
DWORD Item = ItemType * 512 + ItemNr;
ItemSerialCreateSend(gObjId,gObj_GetMap(gObjId),gObj_GetPosX(gObjId),gObj_GetPosY(gObjId),Item,ItemLevel,0,ItemSkill,ItemLuck,ItemOpt,-1,ItemExc,0);
GCServerMsgStringSend("[Make]You have created an item.",gObjId,1);
}
void ChatDataSend(DWORD gObjId,LPBYTE Protocol)
{
char ComandoDrop[] = "/drop";
if(!memcmp(&Protocol[13],ComandoDrop,strlen(ComandoDrop)))
{
ChatDrop(gObjId,(char*)Protocol+13+strlen(ComandoDrop));
}
}*/
Ya Iv had the same problem with the /drop command and also another one /createmob the codes are very similar and those are the only commands I can't get to work lol
I have to ask this question lol sorry, in the PT guide Maps 100%, Im a little confused as to the layout currently what I make out of it is that I must put:
Part I:
*(DWORD*)(0x0040BAF6) = (DWORD)&MapStruct;
etc and all the other ones theres lots ^^
Part II:
*(DWORD*)(0x0042AC0F) = (DWORD)&MapStruct+0xDC;
etc and all the other ones
and why do we add 2 to the offset of MapC?
thanks after keying in all that it sorta reads the maps from Terrain folder but GS crashes white screen lol.
If the terrain files are not there it will say map file read error or something.
great guide