Jump to content

  •  

oblinez

Member Since 11 Jul 2014
Offline Last Active Jan 12 2015 12:36 AM
-----

Posts I've Made

In Topic: Disable Transcendent and Third Job Classes

28 July 2014 - 05:34 PM

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

 

[color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;]pre-renewal is [/color]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?


In Topic: request - npc who give hourly points

20 July 2014 - 03:27 AM

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 ;)

[color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;]hey jabote![/color]


[color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;]you asked me for information about npc... here is the information:[/color]
[color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;]this npc will work with sql[/color]
[color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;]and here is the table who npc will work[/color]
[color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;]ALTER TABLE `login` ADD `globalpoints` INT NOT NULL ;[/color]

[color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;]this npc will give hourly points(each hour)...[/color]
[color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;]but i need an security sistem within... [/color]
[color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;]like this:[/color]

[color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;]the npc does not deliver points if the player stay away,afk by 15minuts or more.[/color]
[color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;](to prevent the player let the char online all night long)[/color]
[color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;]the npc does not deliver points if the player is under @at,@autotrade or any command to open shop.[/color]
[color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;](to prevent the player let the char in @autotrade to gain poits)[/color]

[color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;]if you can do this information configurable like "afkmaxtime, points" will be better[/color]

[color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;]sorry to ask so much =/[/color]
[color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;]and sorry my bad english...[/color]

[color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;]Thank you in advance[/color]

 

[color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;]p.s now this is not private support =D (i need this npc u.u)[/color]


In Topic: [RESOLVIDO] Ticket Zeny e Cash

18 July 2014 - 01:01 AM

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 ^^


In Topic: [RESOLVIDO] Ticket Zeny e Cash

16 July 2014 - 04:00 AM

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.


In Topic: request - npc who give hourly points

14 July 2014 - 04:31 AM

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;
}