Jump to content

oblinez

Members
  • Content Count

    9
  • Joined

  • Last visited

Posts posted by oblinez


  1. It's quite simple.

     

    Just compile in pre-renewal mode to ensure you've got pre-renewal mechanics, and disable any job npc you're not interested to have in your server on the npc/scripts_jobs.conf file.

     

    Then, if you have a job changer NPC, ensure it won't change your players to any trascendent class. Trascendent and third jobs will still be available on the server, just via atcommands or if a script changes them to these classes (this happens on every current emulator), so you have to avoid the usage of these atcommands. No other script than a jobchanger or these specified in the file I linked should arbitrarily be able to change jobs, based on current Hercules version.

     

     

    jaBote

     

    pre-renewal is 1-1e, 2-1, 2-1a, 2-1e, 2-2, 2-2a, 2-2e and novice correct? without 3-1 and 3-2 correct? the single way to change to 3rd is by command correct?


  2. ola galera como nao tem uma area de pedido vou pedir ake

    alguem tem  codigo para adicionar a src para fazer funcionar o comando costume

     

    sem isso um npc que eu tenho aqui nao funciona... que justamente faz um headgear virar um costume...


  3. Whops sorry, Patskie is true, the timer runs only once, my fault.

     

    @oblinez:

    Please tell me the structure of the table or the column in which you wish to give the points and give as many details as possible so that I can rework the script to fix that.

     

    Once I've got all the new info I'll remake this if possible ;)

    hey jabote!

     

    you asked me for information about npc... here is the information:

    this npc will work with sql

    and here is the table who npc will work

    ALTER TABLE `login` ADD `globalpoints` INT NOT NULL ;

     

    this npc will give hourly points(each hour)...

    but i need an security sistem within... 

    like this:

     

    the npc does not deliver points if the player stay away,afk by 15minuts or more.

    (to prevent the player let the char online all night long)

    the npc does not deliver points if the player is under @at,@autotrade or any command to open shop.

    (to prevent the player let the char in @autotrade to gain poits)

     

    if you can do this information configurable like "afkmaxtime, points" will be better

     

    sorry to ask so much =/

    and sorry my bad english...

     

    Thank you in advance

     

    p.s now this is not private support =D (i need this npc u.u)


  4.  

    use isso como exemplo e edite o resto =D

    onde esta >tab< substitua por tab do teclado(botao)

    //==========================================================================================================================//				 Função que adiciona 1kk ao usar o item Vale zeny 1kk.//==========================================================================================================================function  >tab<  script  >tab<  zeny1000000 >tab< {	set Zeny,Zeny+1000000;	announce "Você acaba de receber 1kk de Zeny.",bc_self;	end;}
    20014,Ticket_Zeny,Vale Zeny 1kk,2,10000,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "zeny1000000"; },{},{}20015,Ticket_Zeny,Vale Zeny 5kk,2,10000,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "zeny5000000"; },{},{}20016,Ticket_Zeny,Vale Zeny 10kk,2,10000,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "zeny10000000"; },{},{}20017,Ticket_Zeny,Vale Zeny 100kk,2,10000,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "zeny100000000"; },{},{}

    o ticket tem de estar no tipo 2 nao 0 (primeira virgula depois do nome)...

     

    ou se voce preferir pra nao seixar seu emulador pesado com muita funçao... pode fazer o ticket mesmo entregar sem funçao...

    20014,Ticket_Zeny,Vale Zeny 1kk,2,10000,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ set Zeny,Zeny+1000000;announce "Você acaba de receber 1kk de Zeny.",bc_self; },{},{}20015,Ticket_Zeny,Vale Zeny 5kk,2,10000,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ set Zeny,Zeny+5000000;announce "Você acaba de receber 1kk de Zeny.",bc_self; },{},{}20016,Ticket_Zeny,Vale Zeny 10kk,2,10000,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ set Zeny,Zeny+10000000;announce "Você acaba de receber 1kk de Zeny.",bc_self; },{},{}20017,Ticket_Zeny,Vale Zeny 100kk,2,10000,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ set Zeny,Zeny+100000000;announce "Você acaba de receber 1kk de Zeny.",bc_self; },{},{}

    voce pode fazer isso pro cash tbm para deixar o emulador + leve....

     

    se ajudei da um like, se funcionou da um like, se resolveu da um like.

     

     

    então basta tira esse meu script do emulador e colocar isso na linha do item_db2?

     

    #Edit testei aqui fico muito bom o ticket Zeny.. então ele não precisa do script?

    como ficaria o ticket cash ? para ficar igual o zeny?

     

     20014,Ticket_Zeny,Vale Zeny 1kk,2,10000,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ set Zeny,Zeny+1000000;announce "Você acaba de receber 1kk de Zeny.",bc_self; },{},{}

     

     

    noobsmok

    olhe esse exemplo e edite os valores para o que voce quiser... e as ids e o nome tbm ^^, respondendo sua pergunta... sim voce pode tirar todas aqueles scripts de "function" que adiciona o cash e o zeny... porq o item mesmo vai tazer a parada toda sem as scripts... entendeu?  "pelo - seu server fica + leve e isso eh otimo... quanto mais leve e limpo melhor"

    20014,Ticket_Zeny,Vale Zeny 1kk,2,10000,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ set #CASHPOINTS,#CASHPOINTS+1000000;announce "Você acaba de receber 1kk de Cash.",bc_self; },{},{}20015,Ticket_Zeny,Vale Zeny 5kk,2,10000,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ set #CASHPOINTS,#CASHPOINTS+5000000;announce "Você acaba de receber 1kk de Cash.",bc_self; },{},{}20016,Ticket_Zeny,Vale Zeny 10kk,2,10000,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ set #CASHPOINTS,#CASHPOINTS+10000000;announce "Você acaba de receber 1kk de Cash.",bc_self; },{},{}20017,Ticket_Zeny,Vale Zeny 100kk,2,10000,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ set #CASHPOINTS,#CASHPOINTS+100000000;announce "Você acaba de receber 1kk de Cash.",bc_self; },{},{}

    se resolveu, nao esqueça de clikar no botao verde perto do quote ^^


  5. use isso como exemplo e edite o resto =D

    onde esta >tab< substitua por tab do teclado(botao)

    //==========================================================================================================================//				 Função que adiciona 1kk ao usar o item Vale zeny 1kk.//==========================================================================================================================function  >tab<  script  >tab<  zeny1000000 >tab< {	set Zeny,Zeny+1000000;	announce "Você acaba de receber 1kk de Zeny.",bc_self;	end;}
    20014,Ticket_Zeny,Vale Zeny 1kk,2,10000,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "zeny1000000"; },{},{}20015,Ticket_Zeny,Vale Zeny 5kk,2,10000,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "zeny5000000"; },{},{}20016,Ticket_Zeny,Vale Zeny 10kk,2,10000,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "zeny10000000"; },{},{}20017,Ticket_Zeny,Vale Zeny 100kk,2,10000,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "zeny100000000"; },{},{}

    o ticket tem de estar no tipo 2 nao 0 (primeira virgula depois do nome)...

     

    ou se voce preferir pra nao seixar seu emulador pesado com muita funçao... pode fazer o ticket mesmo entregar sem funçao...

    20014,Ticket_Zeny,Vale Zeny 1kk,2,10000,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ set Zeny,Zeny+1000000;announce "Você acaba de receber 1kk de Zeny.",bc_self; },{},{}20015,Ticket_Zeny,Vale Zeny 5kk,2,10000,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ set Zeny,Zeny+5000000;announce "Você acaba de receber 1kk de Zeny.",bc_self; },{},{}20016,Ticket_Zeny,Vale Zeny 10kk,2,10000,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ set Zeny,Zeny+10000000;announce "Você acaba de receber 1kk de Zeny.",bc_self; },{},{}20017,Ticket_Zeny,Vale Zeny 100kk,2,10000,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ set Zeny,Zeny+100000000;announce "Você acaba de receber 1kk de Zeny.",bc_self; },{},{}

    voce pode fazer isso pro cash tbm para deixar o emulador + leve....

     

    se ajudei da um like, se funcionou da um like, se resolveu da um like.


  6. ohhh bro i love you! rsrsr i'm joke! kkkkk thx for the npc thx alot

     

    but =/ i forget to say one detail u.u  can you edit this npc to work with a "horlypoints" table in the logindb?

     

     

    this npc dont give point to player under @at, @autotrade or any command to open shop? checkvending() <<is it?

    how this npc will do a loop on timer? to stay giving points all the hours

    can you explain this?? sorry, i'm new on scripting... u.u

     

    jaBote

     can i do this?

     

    -    script    hourly_points    -1,{
    OnInit: //Configs
        .time = 60 * 60 * 1000; // Time in milliseconds. Default: 1 hour (60 * 60 * 1000)
        .max_idle = 15 * 30; // Maximum idle time in seconds
        .points = 1; // Points to give the user each active hour.
        .hptab$ = "hourlypoints"; // table name on logindb
        end;
     
    OnPCLoginEvent:
        addtimer .time, strnpcinfo(3)+"::OnPoints";
        end;
     
    OnPoints:
        if (checkidle() < .max_idle && checkvending() != 2) {
    query_sql "SELECT `account_id` FROM `char` WHERE `name`='"+strcharinfo(0)+"'",.@id;
    query_sql "UPDATE `login` SET `"+.hptab$+"` = `"+.hptab$+"`+"+.points+" WHERE `account_id`='"+.@id+"'";
    dispbottom "You received "+.points+"  Point by staying in-game for 1 hour";
    query_sql "SELECT `"+.hptab$+"` FROM `login` WHERE `account_id`='"+.@id+"'",.@hp;
    dispbottom "Current Balance = "+.@hp+" Cash";
        }
    dispbottom "You will not earn points if you stay afk for 15 minutes or open shop.";
    dispbottom "Current Balance = "+.@hp+" Cash";
        end;
    }
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.