Recent Posts

Pages: 1 2 3 [4] 5 6 ... 10
31
Server Development and Discussion / Re: All Known GM Commands
« Last post by ITS-HEAL- on January 01, 2010, 02:16:54 am »
What is this for??
32
Server / Script Guides / [HOT] Adding New Commands
« Last post by Fallen on December 26, 2009, 05:48:03 am »
File: ChatCommand.cpp

Find
Quote
{"addmoney" ,      OBJECTTYPE_PLAYER ,   &ChatHandler::AddMoney ,   NULL , NULL},
{"move" ,         OBJECTTYPE_PLAYER ,   &ChatHandler::Move ,      NULL , NULL},
{ "fly" ,         OBJECTTYPE_PLAYER ,   &ChatHandler::Fly ,         NULL , NULL},
{ "levelup" ,      OBJECTTYPE_PLAYER ,   &ChatHandler::LevelUp ,      NULL , NULL},
{ "kick" ,         OBJECTTYPE_PLAYER ,   &ChatHandler::Kick ,      NULL , NULL},
{ "ban",            OBJECTTYPE_PLAYER,  &ChatHandler::Ban ,           NULL , NULL},
{ "ping",           OBJECTTYPE_PLAYER,  &ChatHandler::Ping ,       NULL , NULL},
{ "placard",        OBJECTTYPE_PLAYER,  &ChatHandler::Placard,       NULL , NULL},
{ "online",         OBJECTTYPE_PLAYER,  &ChatHandler::Online ,       NULL , NULL},
{ NULL ,         OBJECTTYPE_PLAYER ,   NULL ,                  NULL , NULL}

add
Quote
{"addmoney" ,      OBJECTTYPE_PLAYER ,   &ChatHandler::AddMoney ,   NULL , NULL},
{"move" ,         OBJECTTYPE_PLAYER ,   &ChatHandler::Move ,      NULL , NULL},
{ "fly" ,         OBJECTTYPE_PLAYER ,   &ChatHandler::Fly ,         NULL , NULL},
{ "levelup" ,      OBJECTTYPE_PLAYER ,   &ChatHandler::LevelUp ,      NULL , NULL},
{ "kick" ,         OBJECTTYPE_PLAYER ,   &ChatHandler::Kick ,      NULL , NULL},
{ "ban",            OBJECTTYPE_PLAYER,  &ChatHandler::Ban ,           NULL , NULL},
{ "ping",           OBJECTTYPE_PLAYER,  &ChatHandler::Ping ,       NULL , NULL},
{ "placard",        OBJECTTYPE_PLAYER,  &ChatHandler::Placard,       NULL , NULL},
{ "online",         OBJECTTYPE_PLAYER,  &ChatHandler::Online ,       NULL , NULL},
{ "YOUR_COMMAND_NAME", OBJECTTYPE_PLAYER, &ChatHandler::YOUR_COMMAND_NAME, NULL, NULL},
{ NULL ,         OBJECTTYPE_PLAYER ,   NULL ,                  NULL , NULL}

And then add a bool handler in the end
Quote
bool ChatHandler::YOUR_COMMAND_NAME(CPlayer* player , const char* args){
//Do stuff here
}
33
Server Development and Discussion / All Known GM Commands
« Last post by Fallen on December 26, 2009, 05:40:27 am »
Source: ChatCommand.cpp
                {"addmoney" ,      OBJECTTYPE_PLAYER ,   &ChatHandler::AddMoney ,   NULL , NULL},
      {"move" ,         OBJECTTYPE_PLAYER ,   &ChatHandler::Move ,      NULL , NULL},
      { "fly" ,         OBJECTTYPE_PLAYER ,   &ChatHandler::Fly ,         NULL , NULL},
      { "levelup" ,      OBJECTTYPE_PLAYER ,   &ChatHandler::LevelUp ,      NULL , NULL},
      { "kick" ,         OBJECTTYPE_PLAYER ,   &ChatHandler::Kick ,      NULL , NULL},
       { "ban",            OBJECTTYPE_PLAYER,  &ChatHandler::Ban ,           NULL , NULL},
       { "ping",           OBJECTTYPE_PLAYER,  &ChatHandler::Ping ,       NULL , NULL}, // uncomment ChatHandler::Ban
       { "placard",        OBJECTTYPE_PLAYER,  &ChatHandler::Placard,       NULL , NULL},
       { "online",         OBJECTTYPE_PLAYER,  &ChatHandler::Online ,       NULL , NULL},
34
Server / Script Guides / Guide ~ How to party other faction members !!!! [HOT] !!!!
« Last post by Fallen on December 26, 2009, 05:28:06 am »
Difficulty ~ Easy ~ 1/10

How to Enable *Party other Faction players* MOD
=====================================
File: ServiceLoader.cpp
_______________________________________________________________________
Find { ============================================================= }
   if ( pResPlayer->GetlFaction() != pAimPlayer->GetlFaction() )
   {
      MSG_TIP msg_tip;
      msg_tip.Head.usSize = sizeof(MSG_TIP);
      msg_tip.Head.usType = _MSG_TEAM_TIP;
      wmemset( msg_tip.chName, 0 ,64);
      wmemset( msg_tip.tip, 0 ,128);
      std::wstring   buf = L"\0";
      std::wcsncpy(msg_tip.chName, buf.c_str(), buf.length() );
      buf = L"¶Ô·½ºÍÄã²»ÊÇÏàͬµÄÕóÓ";
      std::wcsncpy(msg_tip.tip, buf.c_str(), buf.length());
      pPlayer->s_World->SendMsgToClient( &msg_tip, pResPlayer->GetSocket() );
      return NO_MSG_ERRO;
   }
Replace { =========================================================== }
   if ( pResPlayer->GetlFaction() == pAimPlayer->GetlFaction() ) // This might work
   {
      MSG_TIP msg_tip;
      msg_tip.Head.usSize = sizeof(MSG_TIP);
      msg_tip.Head.usType = _MSG_TEAM_TIP;
      wmemset( msg_tip.chName, 0 ,64);
      wmemset( msg_tip.tip, 0 ,128);
      std::wstring   buf = L"\0";
      std::wcsncpy(msg_tip.chName, buf.c_str(), buf.length() );
      buf = L"¶Ô·½ºÍÄã²»ÊÇÏàͬµÄÕóÓ";
      std::wcsncpy(msg_tip.tip, buf.c_str(), buf.length());
      pPlayer->s_World->SendMsgToClient( &msg_tip, pResPlayer->GetSocket() );
      return NO_MSG_ERRO;
   }
_______________________________________________________________________

if(1) would work too :D
~~~~~~~~~~~~~Its not tested yet !~~~~~~~~~~~~~~
Also, this might be just a string report to the client.In the other hand this could also mean that the client accepts string commands from the server instead of functions, in that case the above mod should work!
35
Suggestions Board / Re: [Another MMORPG to develop?]
« Last post by ITS-HEAL- on November 26, 2009, 07:32:03 pm »
im noob here lol Wat is a eclipse Game?


O.O My Awesome Admin Post~~! IN BLACK :O
36
Server / Script Guides / Re: [Guide by Silfro] Adding a database.
« Last post by ITS-HEAL- on November 25, 2009, 05:44:08 pm »
poseid?


Awsome Admin Post~!
37
Suggestions Board / Re: [Another MMORPG to develop?]
« Last post by Fallen on November 25, 2009, 04:51:44 pm »
sounds fun  ;D http://devia.uni.cc go there, il make a new category
38
Suggestions Board / Re: [Another MMORPG to develop?]
« Last post by Fallen on November 25, 2009, 04:50:52 pm »
eclipse game? u sure?
39
Suggestions Board / Re: [Another MMORPG to develop?]
« Last post by Allen Walker on November 25, 2009, 12:11:10 pm »
wew, lets do it :D
40
Server / Script Guides / Re: [Guide by Silfro] Adding a database.
« Last post by Fallen on November 24, 2009, 04:39:24 pm »
no lol its not becca from virgo ... shes from poseid
Pages: 1 2 3 [4] 5 6 ... 10