Jump to content

Hyroshima

Members
  • Posts

    163
  • Joined

  • Last visited

  • Days Won

    8

Posts posted by Hyroshima

  1. Hello again ?,  would it be possible to determine an item of ammunition type not to be consumed?

    the idea would be similar to consumable items but without removing the item from the inventory (item type 11).
    I know can disable consumption in arrow_decrement, but the idea would be not to affect this system, but by creating an item that is not consumed of the type etc/arrow.

     

    since already thank you very much, by Hyro~

  2. 7 hours ago, Ichigo said:

    Hi.
    Is there any way that a monster can only be seen and attacked by a single user?
    Basically it is exclusive for him.
    I want to make a quest that you have to kill a mob, but that no other player can kill it without needing to restrict entry to the map.
    Thank you.

    ever thought of doing using instance? it can be a solution if I'm not mistaken.

  3. I don't remember it working like that, see the examples I made below.

    1º exp:

    -	script	duplbl	-1,{
    
    OnPCLoginEvent:
      
    	announce "Test dupe run msg",bc_all;
    	end;
    }

    screenrAthena030.jpg.8408390aac326504753645dc91d85597.jpg

     

    2º exp:

    -	script	duplbl::dupelbl	-1,{
    
    OnPCLoginEvent:
    
    	announce "Test dupe run msg",bc_all;
    	end;
    }
    prontera,155,155,1	duplicate(dupelbl)	duplbl#1	-1

    screenrAthena029.jpg.ab34ec02488a0ff8b3d86b1e66421473.jpg

     

    Shouldn't duplicate load the label or should it? 

    OnPCLogoutEvent:
    OnPCLoadMapEvent:

    same result

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

     

     

     

  5. 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~

  6. 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
  7. 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.

  8. 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!

  9. 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
  10. 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
  11. 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.

    ?

×
×
  • Create New...