Jump to content

cder

Members
  • Posts

    96
  • Joined

  • Last visited

Posts posted by cder

  1. Olá pessoal, estou dando inicio ao meu projeto, e preciso de uma ajudinha, queria fazer uma função de pegar 1 item do player, a cada 1minuto, e somente quando o player tive-se online...

    O que tentei ?

    function    script    pegaritem    {
    
    getcharid(0);
    
        if(getcharid(0)){
        attachrid(getcharid(3));
        end;
        }
    else{
        if(attachrid(getcharid(3))){
        OnTimer60000:
        delitem 502,1;    
        end;
            }
        }
    }

    Resultado ?

    Nada Ocorreu ? alguém pode me da essa pequena ajuda ?, significa muito pro meu serve isso ?

  2. Galera é o seguinte, abrir meu projeto a um tempo atrás, e funcionou perfeitamente com a data+client+emulador+system que to usando, ok ?

     

    Só que agora fui tentar abrir novamente, e até inicia perfeitamente, porem ocorre um erro assim que eu crio char, o client para de funcionar

    E quando tento novamente aparece esse erro...

    Erros -

    1° Quando crio a conta antes de aparecer selecionar personagem, ( Please Check Total Character Numbers RequirePage87557 / Resquest Page 5)

    2° Assim que crio personagem ocorre o seguinte ( Character_info size error!!, Character_info 147)...

    Lembranças -

    Acho que já tive esse erro antigamente, e consertei em algo na src chamado h.cpp, porem não me lembro se foi isso realmente, e não to encontrando isso, mas acho que tudo que devo fazer é alterar o maximo de quantidade de estilo de cabelo...

  3. 14 hours ago, Racaae said:

    Are you using updated rAthena? The command is documented just fine.

    You can post the untranslated script, the important thing are the commands and syntax, not the messages/names.

     

     

    was using 2 emulators, one had and another not ... the idea is to leave my variables, similar to those green letters of the pvp player score. I'll update the script here

  4. 8 hours ago, SyncMaster said:

    I searched but I think what I need wasn't done yet. I'm still new at source programming and was trying to do this command without sucess.

    What I need is an script_command that, when you put 2 characters ids(if work with mob unique ids will be even better), those 2 players or 2 mobs start to identify each other as enemy and became able to attack, even if they were from the same guild and group. A little bit like the @duel. 

     

     

    ctrl + f, in your script_commands, and read about, OnPCDieEvent :, OnPCKillEvent :, OnNPCKillEvent :, and also has that rid2name

  5. 19 minutes ago, Racaae said:

    Hi!

    Prefixes and postfixes cant be separated from the variable name. So for example instead of . @ sleep it must be .@sleep always.

    delchar is not a command to delete characters.

    You can use the command breakequip to break equips. ?

     

    You can learn a lot reading the doc, good luck!

    \doc\script_commands.txt

    @Racaae 

    1- It was a mistake to translate

     

    2- I did not find the breakequip command in \ doc \ script_commands.txt

     

    3- I thought of atcommand, but I did not find
  6. Hi guys, I have a very big and expansive project.

     

    First of all I'm Brazilian the script was not 100% translated, interpreted dubarma as

    "durabilityweapon" and dubarmor as "durabilityarmor"

    1-Doubts:
    I do not know all the doc commands yet, so this is not quite complete function.
    
    2-Npcs function:
    I added npcs to the outside of the function, and I used the "callfunc" 
    command in the npc to call the function, these npcs would be bed,
    durability repairer, and in the future would initiate the same "callfunc"
     1 hunger, thirst.
    3-Error !!!
    When creating my menu npc, to view the statuses, only everything appears in 0,
    as if the function had not responded.
    
    4- Menu command
    I used bindatcmd to when using the @ menu command, I would view your information.
    And I used the * menu, and even created a labbel for him.
    
    scriptlabbel:
    menu1:
    mes.@name $;
    mes "[Hunger]:"+.@hunger;
    month "[Headquarters]:"+.@headquarters;
    mes "[Sleep]:"+.@sleep;
    month "[DubArma]:"+.@dubarma;
    mes "[DubArmor]:"+.@dubarmadura;
    close;
    end;

    5-  function script

    function    script    Sobrevivencia    {
    getcharid(0);
        if (getcharid(0)){
        .@fome = 100;
        .@sede = 100;
        .@sono = 100;
        .@dubarma = 100;
        .@dubarmadura = 100;
        setd(".@fome", 100);
        setd(".@sede", 100);
        setd(".@sono", 100);
        setd(".@dubarma", 100);
        setd(".@dubarmadura", 100);
        getd(".@fome");
        getd(".@sede");
        getd(".@sono");
        getd(".dubarma");
        getd(".@dubarmadura");
        end;
        }
        else{
            if (.@fome <= 1){
            delchar(.@fome, 0);
            end;        
            }
        }
            if (.@sede <= 1){
            delchar(.@sede, 0);
            end;
            }
            if (.@sono <= 1){
            delchar(.@sono, 0);
            end;        
            }
            if (.@sono <= 31){
            sleep(30000);
            sleep2(30000);
            end;
            }
            if (.@dubarma <= 1){
           @breakweapon;
            end;
            }    
            if (.@dubarmadura <= 1){
            @breakarmor;
             end;
            }
            attachnpctimer("strcharinfo(0)")
            initnpctimer(strcharinfo(0));
    OnTimer1080000:
    .@fome = -1;
    .@sede = -1;
    .@sono = -4;
    end;
    }

     

  7. I would like to know where is the command that enables the class of the assassin to use a weapon in each hand The intention is for an armature to enable my custom class to use 2 daggers / sword / one-handed ax Ex: 2357, Valkyrie_Armor, Valkyrian Armor, 4.0,, 2800,, 6,, 1.0xFFFFFFFE, 2,2,16,, 1,1,0, {enable_two_weapons; }, {}, {}

  8. Galera gostaria de saber aonde se encontra o comando que habilita pra classe do assasino usar uma arma em cada mão

    A idea é por pra uma armadura habilitar a minha classe custom usar 2 adagas/espada/machado de uma mão

    Ex: 2357,Valkyrie_Armor,Valkyrian Armor,4,0,,2800,,6,,1,0xFFFFFFFE,2,2,16,,1,1,0,{ enable_two_weapons; },{},{}

  9. Gostaria de saber como posso mudar aparencia da minha barra de hp/sp dos players e dos monstros, e se possivel de como por para todos players poder ver o hp do outro, (só hp mesmo), ops já sei mecher com act/grf tool, mas não encontrei barra de hp nem sp na data...

×
×
  • Create New...