Recommended Servers - Topics UP (790x150)



Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: Advanced /make /drop /makeset p/muemu com sockets  (Visto 6395 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline louis Posteado: September 11, 2017, 03:52:56 PM

  • MAESTRO

  • US. DE HONOR

  • LEYENDA

  • C++ Coder
  • +11 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 844
  • Gracias recibida: 35931
  • br
Comando /make avanzado

Uso /makeset:
(Type | Level | Skill | Luck | Option | Exe | Set | Sockets)
/makeset 1 15 0 1 7 63 = SET DRAGON FULL
/makeset 1 15 0 1 7 63 0 5  = SET DRAGON FULL COM 5 SOCKETS LIBRES

Uso /make:
(Category | Type | Level | Skill | Luck | Option | Exe | Set | Sockets)
/make 0 26 15 0 1 7 63 = Flameberge Sword FULL
/make 0 26 15 0 1 7 63 0 5  = Flameberge Sword FULL com 3 sockets

Uso /make com cantidad:
(Cantidad | Category | Type | Level | Skill | Luck | Option | Exe | Set | Sockets)
/make -5 0 26 15 0 1 7 63 = 5 Flameberge Sword FULL
/make -5 0 26 15 0 1 7 63 0 5  = 5 Flameberge Sword FULL com 3 sockets

Uso /drop:
(Category | Type | Level | Skill | Luck | Option | Exe | Set | Sockets)
/drop 0 26 15 0 1 7 63 = Flameberge Sword FULL
/drop 0 26 15 0 1 7 63 0 5  = Flameberge Sword FULL com 3 sockets



Code: [Select]
void CCommandManager::CommandMake(LPOBJ lpObj,char* arg) // OK
{
if(gServerInfo.m_CommandMakeSwitch == 0)
{
return;
}

if(gGameMaster.CheckGameMasterLevel(lpObj,gServerInfo.m_CommandMakeGameMasterLevel) == 0)
{
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,gMessage.GetMessage(106));
return;
}

int qtd=0,section,type,level,skill,luck,option,exc,set,socket;

BYTE ItemSocketOption[MAX_SOCKET_OPTION] = {0xFF,0xFF,0xFF,0xFF,0xFF};

section = this->GetNumber(arg,0);

if (section < 0)
{
qtd = section;
section = this->GetNumber(arg,1);
type = this->GetNumber(arg,2);
level = this->GetNumber(arg,3);
skill = this->GetNumber(arg,4);
luck = this->GetNumber(arg,5);
option = this->GetNumber(arg,6);
exc = this->GetNumber(arg,7);
set = this->GetNumber(arg,8);
socket = this->GetNumber(arg,9);
}
else
{
type = this->GetNumber(arg,1);
level = this->GetNumber(arg,2);
skill = this->GetNumber(arg,3);
luck = this->GetNumber(arg,4);
option = this->GetNumber(arg,5);
exc = this->GetNumber(arg,6);
set = this->GetNumber(arg,7);
socket = this->GetNumber(arg,8);
}

for(int n=0;n < socket && socket <= MAX_SOCKET_OPTION;n++)
{
ItemSocketOption[n] = 0xFE;
}

(qtd < 0) ? qtd -= qtd*2 : qtd;

if (qtd > 0)
{
for(int n=0;n < qtd;n++)
{
GDCreateItemSend(lpObj->Index,0xEB,0,0,GET_ITEM(section,type),level,0,skill,luck,option,-1,exc,set,0,0,ItemSocketOption,0xFF,0);
}
}
else
{
GDCreateItemSend(lpObj->Index,0xEB,0,0,GET_ITEM(section,type),level,0,skill,luck,option,-1,exc,set,0,0,ItemSocketOption,0xFF,0);
}

gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,gMessage.GetMessage(107));

gLog.Output(LOG_COMMAND,"[CommandMake][%s][%s] - (Section: %d, Type: %d, Level: %d, Skill: %d, Luck: %d, Option: %d, Exc: %d, Set: %d, Sockets: %d, [Amount: %d])",lpObj->Account,lpObj->Name,section,type,level,skill,luck,option,exc,set,socket,(qtd>0)?qtd:1);
}

void CCommandManager::CommandMakeSet(LPOBJ lpObj,char* arg) // OK
{
if(gServerInfo.m_CommandMakeSwitch == 0)
{
return;
}

if(gGameMaster.CheckGameMasterLevel(lpObj,gServerInfo.m_CommandMakeGameMasterLevel) == 0)
{
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,gMessage.GetMessage(106));
return;
}

int type = this->GetNumber(arg,0);
int level = this->GetNumber(arg,1);
int skill = this->GetNumber(arg,2);
int luck = this->GetNumber(arg,3);
int option = this->GetNumber(arg,4);
int exc = this->GetNumber(arg,5);
int set = this->GetNumber(arg,6);
int socket = this->GetNumber(arg,7);

BYTE ItemSocketOption[MAX_SOCKET_OPTION] = {0xFF,0xFF,0xFF,0xFF,0xFF};
for(int n=0;n < socket && socket <= MAX_SOCKET_OPTION;n++)
{
ItemSocketOption[n] = 0xFE;
}

GDCreateItemSend(lpObj->Index,0xEB,0,0,GET_ITEM(7,type),level,0,skill,luck,option,-1,exc,set,0,0,ItemSocketOption,0xFF,0);
GDCreateItemSend(lpObj->Index,0xEB,0,0,GET_ITEM(8,type),level,0,skill,luck,option,-1,exc,set,0,0,ItemSocketOption,0xFF,0);
GDCreateItemSend(lpObj->Index,0xEB,0,0,GET_ITEM(9,type),level,0,skill,luck,option,-1,exc,set,0,0,ItemSocketOption,0xFF,0);
GDCreateItemSend(lpObj->Index,0xEB,0,0,GET_ITEM(10,type),level,0,skill,luck,option,-1,exc,set,0,0,ItemSocketOption,0xFF,0);
GDCreateItemSend(lpObj->Index,0xEB,0,0,GET_ITEM(11,type),level,0,skill,luck,option,-1,exc,set,0,0,ItemSocketOption,0xFF,0);

gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,gMessage.GetMessage(107));

gLog.Output(LOG_COMMAND,"[CommandMakeSet][%s][%s] - (Type: %d, Level: %d, Skill: %d, Luck: %d, Option: %d, Exc: %d, Set: %d, Sockets: %d)",lpObj->Account,lpObj->Name,type,level,skill,luck,option,exc,set, socket);

}

void CCommandManager::CommandDrop(LPOBJ lpObj,char* arg) // OK
{
if(gServerInfo.m_CommandMakeSwitch == 0)
{
return;
}

if(gGameMaster.CheckGameMasterLevel(lpObj,gServerInfo.m_CommandMakeGameMasterLevel) == 0)
{
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,gMessage.GetMessage(106));
return;
}

int section = this->GetNumber(arg,0);
int type = this->GetNumber(arg,1);
int level = this->GetNumber(arg,2);
int skill = this->GetNumber(arg,3);
int luck = this->GetNumber(arg,4);
int option = this->GetNumber(arg,5);
int exc = this->GetNumber(arg,6);
int set = this->GetNumber(arg,7);
int socket = this->GetNumber(arg,8);

BYTE ItemSocketOption[MAX_SOCKET_OPTION] = {0xFF,0xFF,0xFF,0xFF,0xFF};
for(int n=0;n < socket && socket <= MAX_SOCKET_OPTION;n++)
{
ItemSocketOption[n] = 0xFE;
}


GDCreateItemSend(lpObj->Index,lpObj->Map,(BYTE)lpObj->X,(BYTE)lpObj->Y,GET_ITEM(section,type),level,0,skill,luck,option,-1,exc,set,0,0,ItemSocketOption,0xFF,0);

gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,gMessage.GetMessage(107));

gLog.Output(LOG_COMMAND,"[CommandDrop][%s][%s] - (Section: %d, Type: %d, Level: %d, Skill: %d, Luck: %d, Option: %d, Exc: %d, Set: %d, Sockets: %d)",lpObj->Account,lpObj->Name,section,type,level,skill,luck,option,exc,set,socket);
}

Créditos:

Louis

Update 36 is ready!!!

Gracias:


Offline darkjano #1 Posteado: September 26, 2017, 07:24:58 PM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 1.042
  • Gracias recibida: 850
  • cl
please upload /banchar source command :(

Gracias:


Offline louis #2 Posteado: September 26, 2017, 09:30:26 PM

  • MAESTRO

  • US. DE HONOR

  • LEYENDA

  • C++ Coder
  • +11 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 844
  • Gracias recibida: 35931
  • br
please upload /banchar source command :(

^^

This is more complex because you have to change the dataserver ^^

Update 36 is ready!!!

Offline TioMostaza #3 Posteado: September 28, 2017, 10:02:26 PM

  • 0 puntos por ventas
  • *
  • Rank: Destacado
  • Posts: 80
  • Gracias recibida: 21
  • pe
Hola en que lado de las sources se instala este comando y en los files en el archivo GameServerInfo - Command  gracias disculpen la molestia


Offline darkjano #4 Posteado: September 28, 2017, 10:46:26 PM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 1.042
  • Gracias recibida: 850
  • cl
Hola en que lado de las sources se instala este comando y en los files en el archivo GameServerInfo - Command  gracias disculpen la molestia

CommandManager


Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Recommended Servers - Topics Bottom (790x150)



 

Related Topics

  Subject / Started by Replies Last post
8 Replies
8542 Views
Last post September 22, 2017, 10:28:09 AM
by unico
0 Replies
711 Views
Last post September 25, 2017, 01:58:12 PM
by Peluuca
7 Replies
6355 Views
Last post July 07, 2019, 07:53:43 PM
by Azzlaer
33 Replies
7199 Views
Last post April 11, 2022, 08:28:27 AM
by Argentuc
1 Replies
996 Views
Last post March 23, 2021, 08:42:43 PM
by Ifreat