Ultimate eRose-EVO Code Changes

Status
Not open for further replies.
/fairy - Spawns a fairy to buff you!

/fairy - Spawns a fairy to buff you (FIXED! Now other people can see your fairy!)
Use: /fairy # (1 = Add fairy, 0 = Kill fairy)
-- Made by m4rvel & Fixed by IaguCool


OPEN: gmcmds.cpp
FIND:
Code:
    else if (strcmp(command, "ann")==0) 
     {
          return pakGMAnn(thisclient, P);
     }
AFTER, ADD:
Code:
              else if (strcmp(command, "fairy")==0)
               {
                            if ((tmp = strtok_s(NULL, " ", &next_token))==NULL) return true; unsigned mode=atoi(tmp);
                            return pakFairy( thisclient, mode);
               }
OPEN: worldpackets.cpp
ADD (END OF THE FILE):
Code:
// -----------------------------------------------------------------------------------------
// GM: Fairy
// -----------------------------------------------------------------------------------------
bool CWorldServer::pakFairy( CWorldClient* thisclient, int mode )
{
              BEGINPACKET( pak, 0x7dc );
              ADDBYTE( pak, mode );
              ADDWORD( pak, thisclient->clientid );
              SendToVisible( &pak, thisclient );
              return true;
}
CLOSE FILE: worldpackets.cpp

OPEN FILE: worldsockets.h

FIND:
Code:
  bool pakGMAnn            ( CWorldClient* thisclient, CPacket* P );
AFTER, ADD:
Code:
              bool pakFairy( CWorldClient* thisclient, int mode );
 
Last edited:
does this have the fix for buying things?? and i kno im not ment to ask but this is Usless without the fix!!! also any NPC work? like Quest like job change?
 
Last edited:
johnny with you world server the gm command working good but
with a lots of monster it bugg ( we can attak but it dont doanything for monster hp ex : aqua captain )

exept this the server is good
Yeaaa, I had it too, so I changed my 'hitpower' to the older one (the first released code for it) and I hit them again :D
Search for "Hitpower = 10" or something like that in this forum.
 
i change the codes and if i debug i've got this error .

'eRose.exe': Loaded 'D:\Visual Studio 2005\Projects\eRose\Debug\eRose.exe', Symbols loaded.
'eRose.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.
'eRose.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded.
'eRose.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcr80d.dll', No symbols loaded.
'eRose.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols loaded.
The program '[1876] eRose.exe: Native' has exited with code 0 (0x0).


can someone help me how i can solve this .
 
Sorry, something freaked out with the Fairy code, but now it's fixed!

EDIT: OK, both /item2 and /fairy are now fixed! Have fun!
 
Last edited:
NOTE: You need to relog after chaning your class ! (i didnt find the classchange packet yet >_<)
NOTE: You have to care about uppercase letters ! #classname must be the NAME of the class, for exact names check the code !

OPEN: gmcmds.cpp
FIND:
Code:
 else if (strcmp(command, "ann")==0) 
     {
          return pakGMAnn(thisclient, P);
     }

AFTER, ADD:
Code:
else if (strcmp(command, "class")==0)
    {
        if ((tmp = strtok_s(NULL, " ", &next_token))==NULL) return true; char* classid=(char*)tmp;
        return pakGMClass( thisclient, classid );
    }
FIND:
Code:
 // -----------------------------------------------------------------------------------------
 // GM: Announcment
 // -----------------------------------------------------------------------------------------
 bool CWorldServer::pakGMAnn( CWorldClient* thisclient, CPacket* P )
 {
     BEGINPACKET( pak, 0x702 );
     ADDSTRING( pak, thisclient->charname );
     ADDSTRING( pak, ": " );
     ADDSTRING( pak, (&P->Buffer[5]) );
     ADDBYTE( pak, 0 );
     SendToAll( &pak );
 
     return true;
 }
AFTER, ADD:
Code:
// -----------------------------------------------------------------------------------------
// GM: Change Class
// -----------------------------------------------------------------------------------------
bool CWorldServer::pakGMClass( CWorldClient* thisclient, char* classid )
{
    int classid_new;

    if ( strcmp ( classid , "Visitor" ) == 0)
    {
        classid_new = 0;
    }
    else if ( strcmp ( classid , "Soldier" ) == 0)
    {
        classid_new = 111;
    }
    else if ( strcmp ( classid , "Knight" ) == 0)
    {
        classid_new = 121;
    }
    else if ( strcmp ( classid , "Champion" ) == 0)
    {
        classid_new = 122;
    }
    else if ( strcmp ( classid , "Muse" ) == 0)
    {
        classid_new = 211;
    }
    else if ( strcmp ( classid , "Mage" ) == 0)
    {
        classid_new = 221;
    }
    else if ( strcmp ( classid , "Cleric" ) == 0)
    {
        classid_new = 222;
    }
    else if ( strcmp ( classid , "Hawker" ) == 0)
    {
        classid_new = 311;
    }
    else if ( strcmp ( classid , "Raider" ) == 0)
    {
        classid_new = 321;
    }
    else if ( strcmp ( classid , "Scout" ) == 0)
    {
        classid_new = 322;
    }
    else if ( strcmp ( classid , "Dealer" ) == 0)
    {
        classid_new = 411;
    }
    else if ( strcmp ( classid , "Bourgeois" ) == 0)
    {
        classid_new = 421;
    }
    else if ( strcmp ( classid , "Artisan" ) == 0)
    {
        classid_new = 422;
    }
    else
    {
        return true;
    }
    thisclient->c_classid = classid_new;

    BEGINPACKET( pak, 0x702 );
    ADDSTRING( pak, "Class changed. Please re-login now !" );
    ADDBYTE( pak, 0 );
    thisclient->SendPacket( &pak );    

    return true;
}
CLOSE: gmcmds.cpp

OPEN: worldsockets.h
FIND:
Code:
  [LEFT]bool pakGMAnn            ( CWorldClient* thisclient, CPacket* P );[/LEFT]
AFTER, ADD:
Code:
    bool pakGMClass            ( CWorldClient* thisclient, char* classid );
CLOSE: worldsockets.h

YOU'RE DONE !

im try add this but i got a error
;) what to do?

------ Build started: Project: 3. World Server, Configuration: Release Win32 ------
Compiling...
worldserver.cpp
c:\documents and settings\user\desktop\complie\world server\worldsockets.h(209) : error C2535: 'bool CWorldServer::pakGMClass(CWorldClient *,char *)' : member function already defined or declared
c:\documents and settings\user\desktop\complie\world server\worldsockets.h(205) : see declaration of 'CWorldServer::pakGMClass'
worldpackets.cpp
c:\documents and settings\user\desktop\complie\world server\worldsockets.h(209) : error C2535: 'bool CWorldServer::pakGMClass(CWorldClient *,char *)' : member function already defined or declared
c:\documents and settings\user\desktop\complie\world server\worldsockets.h(205) : see declaration of 'CWorldServer::pakGMClass'
worldclient.cpp
c:\documents and settings\user\desktop\complie\world server\worldsockets.h(209) : error C2535: 'bool CWorldServer::pakGMClass(CWorldClient *,char *)' : member function already defined or declared
c:\documents and settings\user\desktop\complie\world server\worldsockets.h(205) : see declaration of 'CWorldServer::pakGMClass'
main.cpp
c:\documents and settings\user\desktop\complie\world server\worldsockets.h(209) : error C2535: 'bool CWorldServer::pakGMClass(CWorldClient *,char *)' : member function already defined or declared
c:\documents and settings\user\desktop\complie\world server\worldsockets.h(205) : see declaration of 'CWorldServer::pakGMClass'
gmcmds.cpp
c:\documents and settings\user\desktop\complie\world server\worldsockets.h(209) : error C2535: 'bool CWorldServer::pakGMClass(CWorldClient *,char *)' : member function already defined or declared
c:\documents and settings\user\desktop\complie\world server\worldsockets.h(205) : see declaration of 'CWorldServer::pakGMClass'
.\gmcmds.cpp(261) : warning C4800: 'unsigned int' : forcing value to bool 'true' or 'false' (performance warning)
.\gmcmds.cpp(295) : error C2084: function 'bool CWorldServer::pakGMClass(CWorldClient *,char *)' already has a body
c:\documents and settings\user\desktop\complie\world server\worldsockets.h(205) : see previous definition of 'pakGMClass'
extrafunctions.cpp
c:\documents and settings\user\desktop\complie\world server\worldsockets.h(209) : error C2535: 'bool CWorldServer::pakGMClass(CWorldClient *,char *)' : member function already defined or declared
c:\documents and settings\user\desktop\complie\world server\worldsockets.h(205) : see declaration of 'CWorldServer::pakGMClass'
Build log was saved at "file://c:\Documents and Settings\User\Desktop\Complie\World Server\Release\BuildLog.htm"
3. World Server - 7 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========
 
Last edited:
Hey thanks all the commands I tried worked ( fairy/item2/class/level/stat ) and you posted a list on page 2 I would realy like it if you could post

bool pakGMTeleToPlayer ( CWorldClient* thisclient, char* teleto_name); //tele to any player
bool pakGMTeleToMe ( CWorldClient* thisclient, char* teletome_name); //tele any player to you
bool pakGMInfo ( CWorldClient* thisclient, char* name ); //info about a player
 
I think this topic should be pinned.
Just a suggestion =)

Nice codes Caalie
Great job
 
Status
Not open for further replies.
Back