Jump to content

Hyroshima

Members
  • Posts

    189
  • Joined

  • Last visited

  • Days Won

    24

Posts posted by Hyroshima

  1. 7 hours ago, Akkarin said:

    For running a script each minute, attaching a timer is the best way to do it. 

    I understand, was thinking of something to update by the minute without having to leave a script timer tied to it.

    ex:

    OnSec:
     

    OnSec59:
    	<code>
    	end;

     

    OnMinute:

    OnMinute00:	
    OnMinute01:
    OnMinute02:
    OnMinute03:
    OnMinute04:
    OnMinute05:
    OnMinute06:
    OnMinute07:
    OnMinute08:
    OnMinute09:
    OnMinute10:
    etc...59:
    
    	<code>
    	end;


    OnInit,while,sleep:
     

    OnInit:
    	freeloop(1)
    	while(1)
    	{
    		<code>
    		sleep 1000;
    	}

     

     

     

  2. Hello, could someone please change the command killmonsterall to kill all mobs of id x on map y? if possible ^^

     

    *killmonsterall "<map name>"{,<type>};   ->  *killmonsterall "<map name>"{,<type>{,<mob_id>}};

     

    Since already thank you very much by Hyro~

  3. 29 minutes ago, Tanlor said:

    Não tenho muita experiência com Flux, mas nosso servidor sempre apoia os novos desenvolvedores.

    Sua ideia parece interessante! Caso tenha interesse em testar num servidor real, só mandar PM.

    Dica: o rAthena tem uma aba de suporte ao FluxCP no Discord, quem sabe não te respondam mais rápido lá? Mas só em inglês..

    Hehe, meu inglês é podre kkk mas consigo formar textos coerentes usando o tradutor kkk, vou ver se consigo falar com alguém lá.

    tô trabalhando em um app android mas só irei divulga-lo quando tiver uma boa parte pronta.

    • Love 1
  4. bom-dia pessoal, estou criando um addon para funcionar com um projeto que estou desenvolvendo, porem estou levando uma surra dos métodos em que a flux funciona.

    Consegui criar parte do addon, o problema mesmo é em criar um campo (formulário) para que o usuário consiga adicionar um código serial em sua conta, tentei usar como exemplo a função trocar email mas sem sucesso.

    É bem simples, porem a parte da conexão com o banco pra fazer o update está me quebrando a cabeça kkk

    1111.thumb.jpg.f1687af40cfe820f7a71ebc7dce982be.jpg

    desde já grato a quem puder me ajudar.

  5. Hello, is there any guide on how to add an addon in fluxcp?

     

    already grateful, Hyro

     

    @EDIT

    I am using the addon folder example, but the link is empty !?

    sss1.jpg.576375bbf678926049d1aff01d57acb7.jpg

     

    addon.php

    <?php
    return array(
    	'MenuItems' => array(
    		'Android APP' 		=> array('module' => 'main'),
    		'HomeLabel'			=> array('exturl' => 'http://www.fluxro.com/community'),
    	)
    )
    ?>

     

    access.php

    <?php
    return array(
    	'modules' => array(
    		'appacess' => array(
    			'index'    => AccountLevel::ANYONE,
    		)
    	),
    	'features' => array(
    		// None.
    	)
    )
    ?>

     

    both in \addons\appacess\

     

    RESOLVED!

  6. On 2/23/2019 at 12:36 PM, brunoshp said:

    Have other solution to do this?

    
    -	script	AnunciadorTown	-1,{
    
    OnInit:
    
    setarray .Map$, // <mapname>,<Map Nick>,
    "payon"," Uma cidade na floresta ..LOL",
    "hugel"," Onde fica isso ?",
    "izlude"," Cidade dos Guerreiros ?",
    "prontera", "Capital de Rune Midgard",
    "geffen"," Cidade Mágica ?";
    
    for( set .i,0; .i < getarraysize( .Map$ ) - 1; set .i,.i + 2 )
    setmapflag .Map$[.i],mf_loadevent;
    end;
    
    OnPCLoadMapEvent:
    for( set .i,0; .i < getarraysize( .Map$ ) - 1; set .i,.i + 2 )
    if( strcharinfo(3) == .Map$[.i] )
    announce "Bem Vindo a "+.Map$[.i+1]+" .",bc_self,0x1affff;
    end;
    }

     

    iawe manolo, fiz a ideia que você queria apenas manipulando a entrada dos comandos @go e @war, ta na mão, qualquer coisa fala awe xD
    https://pastebin.com/raw/WkUJbpp7

    • Love 1
  7. Fiz esse pequeno sistema com script sem precisar de modificar src, no final do código tem uma variável onde deve por os ids dos mobs no qual não queria que seja possível localizar pelo comando @mobsearch!

    -	script	CtrlCommands	-1,{
    
    
    OnCtrlLBL:
    
    	if(.@atcmd_command$ != "@mobsearch") end;
    	
    	if(.@atcmd_parameters$[0] == "0" || .@atcmd_parameters$[0] == "")
    	{ message strcharinfo(0),"[AVISO]: Digite um ID/NOME!"; end; }
    	
    	if(.@atcmd_parameters$[0] != "" && getgroupid() < 99)
    	{
    		if(!charisalpha(.@atcmd_parameters$[0],1)) set .@rscMBID,.@atcmd_parameters$[0]; else set .@rscMBID,0;
    		for(set .@i,0; .@i<getarraysize(.NoMbSrh_ID); set .@i,.@i+1)
    		{
    			if(!.@rscMBID && strtolower(.@atcmd_parameters$[0]) == strtolower(strmobinfo(1,.NoMbSrh_ID[.@i])))
    			{
    				message strcharinfo(0),"[AVISO]: Você não pode procurar por este mob!"; end;
    			}
    			else if(.@rscMBID == .NoMbSrh_ID[.@i])
    			{  message strcharinfo(0),"[AVISO]: Você não pode procurar por este mob!"; end; }
    		}
    	}	
    	
    	atcommand "@mobsearch "+.@atcmd_parameters$[0];
    	end;
    
    
    OnInit:
    
    bindatcmd "@mobsearch",strnpcinfo(3)+"::OnCtrlLBL";
    
    //MOB_ID
    setarray .NoMbSrh_ID[0],1002,1031;
    
    end;
    }

     

     

    • Upvote 1
  8. 3 hours ago, Emistry said:

    it return more than 1 field.

    iuUM4Xm.png

     

    you need to provide the array to store other fields that returned from the query.

    
    query_sql("SHOW COLUMNS FROM `login` LIKE 'magic_shop%'", .@field$, .@type$, .@null$, .@key$, .@default$, .@extra$); 
    return getarraysize(.@field$);

     

    Thanks again Emistry, I did not know I needed to specify the other column outputs.

    ?

  9. ^^

    script_commands.txt (/map/script.cpp)

    *itemskill <skill id>,<skill level>{,<keep requirement>};
    *itemskill "<skill name>",<skill level>{,<keep requirement>};
    
    This command is meant for item scripts to replicate single-use skills in usable
    items. It will not work properly if there is a visible dialog window or menu.
    If the skill is self or auto-targeting, it will be used immediately; otherwise a
    target cursor is shown.
    
    If <keep requirement> parameter is set to true, the skill's requirements will be checked.
    By default, the requirements for item skills are not checked, and therefore the default value is false.
    
    // When Anodyne is used, it will cast Endure (8), Level 1, as if the actual
    // skill has been used from skill tree.
    605,Anodyne,Anodyne,11,2000,0,100,,,,,10477567,2,,,,,{ itemskill 8,1; },{}
    
    // When Sienna_Execrate_Scroll_1_5 is used, it will cast Sienna Execrate Level 5 and consume 2 Red_Gemstones.
    23194,Sienna_Execrate_Scroll_1_5,Level 5 Sienna Execrate,11,10,,10,,,,,0xFFFFFFFF,63,2,,,,,,{ itemskill "WL_SIENNAEXECRATE",5,true; },{},{}

     

  10. 14 hours ago, Emistry said:

    there exists another way for you, in case you afraid to mess up with the index value. 

    
    for (.@i = getarraysize(.@tmp_magic_shop) - 1; .@i >= 0; .@i--)
    	if(!.@tmp_magic_shop[.@i]) 
    		deletearray .@tmp_magic_shop[.@i],1;

    start looping from the end of the array to the front...

    OMG, I even thought of doing so, but I was tired and did not reasoned more kkkkk

    Thank you ^^

    I'm creating an interesting store, i do not know if it already exists, because I've never seen something similar.

    I have not been developing anything for a while, sometimes i get stuck in a small complex problem but looking at script_command.txt I'll reminding.

    Thanks again ^^

×
×
  • Create New...