Siga-nos em...
Follow us on Twitter Follow us on Facebook Watch us on YouTube
Registro

Alpha Servers
Resultados 1 a 10 de 20

Tópico: Comandos !

Visão do Encadeamento

  1. #1

    Avatar de Chris7yan
    Data de Ingresso
    Sep 2009
    Localização
    NA MINHA CASA.
    Posts
    139
    Agradecido
    7
    Agradeceu
    6
    Peso da Avaliação
    16

    Padrão Comandos !

    Venho postar algumas sources de comandos que eu msm fiz xD

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

    Comando Adicionar Pontos ( REFEITO ) :
    Código PHP:
    void CMDADD(DWORD aIndexLPCSTR IpBufferDWORD tipo)
    {
        
    char Message[255];
        
        
    OBJECTSTRUCT gObj = (OBJECTSTRUCT*)OBJECT_POINTER(aIndex);
        
        
    int Points atoi(IpBuffer);
        
        if(
    Points gObj->LevelUpPoint)
        {
            
    sprintf_s(Message,"Falta %d Pontos!",(Points gObj->LevelUpPoint));
            
    GCServerMsgStringSend(Message,aIndex,1);
        }

        else if(
    gObj->Level 1)
        {
            
    sprintf_s(Message,"Falta %d Leveis!",(gObj->Level 1));
            
    GCServerMsgStringSend(Message,aIndex,1);
        }

        else

        if(
    tipo == 0)
            
    gObj->Strength += Points;
        else if (
    tipo == 1)
            
    gObj->Dexterity += Points;
        else if (
    tipo == 2)
            
    gObj->Vitality += Points;
        else if (
    tipo == 3)
            
    gObj->Energy += Points;

        
    gObj->LevelUpPoint -= Points;
        
        
    sprintf_s(Message,"Você usou %d pontos, relogue para atualizar!",Points);
        
    GCServerMsgStringSend(Message,aIndex,1);

    Comando Adicionar Pk :
    Código PHP:
    void CMDPKSET(int aIndexchar PKLevel)
    {

        
    OBJECTSTRUCT gObj = (OBJECTSTRUCT*)OBJECT_POINTER(aIndex);

        
    char Message[255];

        
    gObj->PkLevel PKLevel;

        
    GCPKLevelSend(aIndexPKLevel);

        
    sprintf(Message,"[PK Set] Player %s foi atribuído PkLevel %d.",gObj->Name,gObj->PkLevel);
        
    GCServerMsgStringSend(Message,aIndex,1);


    Comando Resetar ( REFEITO ) :
    Código PHP:
    void CMDRESET(int aIndex)
    {
        
    char Message[255];

        
    OBJECTSTRUCTgObj = (OBJECTSTRUCT*)OBJECT_POINTER(aIndex);

        if (
    gObj->Level 350)
        {
            
    sprintf_s(Message"Você não esta no nivel necessario para resetar!");
            
    GCServerMsgStringSend(Message,aIndex,1);
            return;
        }
        else
        
    MSQL->Exec("UPDATE Character SET Resets = Resets+1 WHERE Name = '%s'",gObj->AccountID);
        
    gObj->Level 1;
        
    gObj->Experience 0;
        
    sprintf_s(Message"[%s] Você foi resetado com sucesso ! Relogue-se para completar !."gObj->Name);
        
    GCServerMsgStringSend(Message,aIndex,1);

    Comando Move :
    Código PHP:
    void mover(int aIndex)
    {
        
    OBJECTSTRUCTgObj = (OBJECTSTRUCT*)OBJECT_POINTER(aIndex);

        if (
    gObj->Level 10)
        {
            
    GCServerMsgStringSend("Você não esta no nivel necessario para mover!",aIndex,1);
            return;
        }
        else
        {
            
    gObjTeleport(aIndex,0,125,125) ;
            
    char Sucesso[100];
            
    sprintf_s(Sucesso"[%s] você moveu com sucesso.",gObj->Name);
            
    GCServerMsgStringSend(Sucesso,aIndex,1);
        }

    Creditos : EUUUU!
    Última edição por Chris7yan; 10-02-2010 às 12:01 PM. Razão: REFEITO ALGUMS COMANDOS :)

 

 

Informações de Tópico

Usuários Navegando neste Tópico

Há 1 usuários navegando neste tópico. (0 registrados e 1 visitantes)

Tópicos Similares

  1. |Pedido| Comandos No Server 1.02n
    Por C. Henrique no fórum Pedidos
    Respostas: 5
    Último Post: 13-02-2012, 10:59 AM
  2. |Tutorial| Comandos de ADM & GM
    Por DetroiT no fórum AI | Tutoriais
    Respostas: 1
    Último Post: 08-09-2011, 09:13 PM
  3. Comandos GM [MANGOS]
    Por Nerdzinhu no fórum WoW - World Warcraft
    Respostas: 0
    Último Post: 11-03-2011, 02:12 AM

Marcadores

Permissões de Postagem

  • Você não pode iniciar novos tópicos
  • Você não pode enviar respostas
  • Você não pode enviar anexos
  • Você não pode editar suas mensagens
  •