Ultimate eRose-EVO Code Changes

Status
Not open for further replies.
i have a /hide #mode command at my server, too, but you must also completely rewrite the function CWorldClient::SendToVisible, because it fill f*ck up the whole chat for you else :)

btw, i WILL NOT share the code, its not really hard, go and write it yourself
 
i have a /hide #mode command at my server, too, but you must also completely rewrite the function CWorldClient::SendToVisible, because it fill f*ck up the whole chat for you else :)

btw, i WILL NOT share the code, its not really hard, go and write it yourself

@Caali

You do live ;-)

I hope the people here have not gotten you down, I personally like what you have done with your code and releasing it to everyone and I wanted to say a big THANK YOU.

I hope to see more of your great code up here too, you have done a fantastic job!!!!!!

Again, thank you for your help and code.
 
@Caali

You do live ;-)

I hope the people here have not gotten you down, I personally like what you have done with your code and releasing it to everyone and I wanted to say a big THANK YOU.

I hope to see more of your great code up here too, you have done a fantastic job!!!!!!

Again, thank you for your help and code.

well, this is just a bit of my code, but there wont be many realeases (maybe some) in the future, the only thing i will do is releasing my source code when i FINISHED the server (not THAT soon ^.^)
 
OPEN: worldserver.cpp

FIND:
Code:
    Log(MSG_INFO, "Server took %.4f seconds to load", loadtime);

    system("PAUSE");

REMOVE:
Code:
 system("PAUSE");

DONE
 
OPEN: worldserver.cpp

FIND:
Code:
    Log(MSG_INFO, "Server took %.4f seconds to load", loadtime);

    system("PAUSE");

REMOVE:
Code:
 system("PAUSE");

DONE

That one bugged me awhile back, so I removed it awhile ago.

I thought I had posted it, but maybe I forgot and thought I did! Old person losing his mind!!!!!!
 
/help #name Command for GMs

This is a simple help command for GM's on their GM commands.

Thanks to Caali for pointing me in the right direction and the use of the template ;-)

Example on how to use this is to type /help mon will give you more details on the mon command

If there is any errors, please let me know.

--------------------------------------------------------------------------------

OPEN: gmcmds.cpp
FIND:

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

AFTER, ADD:

Code:
   else if (strcmp(command, "help")==0) {
      if ((tmp = strtok_s(NULL, " ", &next_token))==NULL) return true; char* helpcmd=tmp;
  // Log( MSG_GMACTION, " %s : /help %i" , thisclient->charname, helpcmd);
    return pakGMHelp(thisclient, helpcmd);
   }

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: Help
// -----------------------------------------------------------------------------------------
bool CWorldServer::pakGMHelp( CWorldClient* thisclient, char* helpcmd )

{
    BEGINPACKET( pak, 0x702 );
	//ADDSTRING( pak, "Available GM Commands" );
    //ADDSTRING( pak, "*********************" );
	//ADDSTRING( pak, "ann, class, exp, fairy" );
	//ADDSTRING( pak, "item, item2, kick, killinrange" );
	//ADDSTRING( pak, "level, mon, mspeed, stat" );
	//ADDSTRING( pak, "tele, weapon, zuly" );
	if (strcmp( helpcmd, "ann" )==0)
    {
	ADDSTRING( pak, "Announcement - /ann Hello World" );
    }else if (strcmp( helpcmd, "ban" )==0)
    {
	ADDSTRING( pak, "Ban - /ban username" );
    }else if (strcmp( helpcmd, "class" )==0)
    {
    ADDSTRING( pak, "Class - /class classname - like Mage" );
    }else if (strcmp( helpcmd, "exp" )==0)
    {
	ADDSTRING( pak, "Experience - /exp #" );
    }else if (strcmp( helpcmd, "fairy" )==0)
    {
	ADDSTRING( pak, "Fairy - /fairy 1 gives - 0 removes " );
    }else if (strcmp( helpcmd, "item" )==0) 
    {
	ADDSTRING( pak, "Item - /item itemid itemtype amount" );
    }else if (strcmp( helpcmd, "item2" )==0)
    {
	ADDSTRING( pak, "Item2 - /item2 itemid itemtype refine socket" );
    }else if (strcmp( helpcmd, "kick" )==0) 
    {
	ADDSTRING( pak, "Kick - /kick username" );
    }else if (strcmp( helpcmd, "killinrange" )==0)
    {
	ADDSTRING( pak, "KillInRange - /killinrange radius" );
    }else if (strcmp( helpcmd, "level" )==0)
    {
	ADDSTRING( pak, "Level - /level ###" );
    }else if (strcmp( helpcmd, "mon" )==0)
    {
	ADDSTRING( pak, "Mob Spawn - /mon mobID amount" );
    }else if (strcmp( helpcmd, "mspeed" )==0)
    {
	ADDSTRING( pak, "MSpeed - /mspeed - tells your current speed" );
    }else if (strcmp( helpcmd, "stat" )==0)
    {
	ADDSTRING( pak, "Stat Change - /stat statname value" );
    }else if (strcmp( helpcmd, "tele" )==0)
    {
	ADDSTRING( pak, "Teleport - /tele mapid x-coord y-coord" );
    }else if (strcmp( helpcmd, "weapon" )==0)
    {
	ADDSTRING( pak, "Weapon - /weapon itemid refine socket" );
    }else if (strcmp( helpcmd, "zuly" )==0)
    {
	ADDSTRING( pak, "Zuly - /zuly mode-1-add 2-remove 3-drop 4-set amount" );
    }else{
			Log( MSG_WARNING, "Invalid GM Help Command '%s' by '%s'", helpcmd, thisclient->charname);
	}
	ADDBYTE( pak, 0 );
    thisclient->SendPacket( &pak );
 
    return true;
}

CLOSE: gmcmds.cpp

OPEN: worldsockets.h
FIND

Code:
 bool pakGMAnn            ( CWorldClient* thisclient, CPacket* P );

AFTER, ADD:

Code:
 bool pakGMHelp ( CWorldClient* thisclient,  char* helpcmd  );
 
Last edited:
.\gmcmds.cpp(52) : error C2065: 'MSG_GMACTION' : undeclared identifier
when i try complie
 
Status
Not open for further replies.
Back