Jump to content

Tanlor

Members
  • Posts

    50
  • Joined

  • Last visited

Posts posted by Tanlor

  1. //By Brian
    
    //http://rathena.org/board/user/237-brian/
    
     
    
    prontera,156,178,4      script  ChangeMe        910,{
    
            if (getgmlevel() < 10) end;
    
            set .@AID, getcharid(3);        // save their RID
    
            
    
            mes "Hello GM";
    
            mes "Enter the char's name:";
    
            input .@name$;
    
            query_sql "SELECT `account_id`,`name` FROM `char` WHERE `name` = '"+escape_sql(.@name$)+"'", .@account_id,.@name$;
    
            if (!.@account_id) {
    
                    mes "^FF0000     This player doesn't exist!";
    
                    close;
    
            }
    
            mes "How many cash point would you like give to^0000FF " + .@name$ + "^000000?";
    
            input .@amt;
    
            if (.@amt < 1) {
    
                    mes "^FF0000     Amount must be positive.";
    
                    close;
    
            }
    
            
    
            mes " ";
    
            mes "Give "+.@amt+" cash points to "+.@name$+"?";
    
            if(select("Yes:No")==2) close;
    
            
    
            if (attachrid(.@account_id)) {
    
                    set #CASHPOINTS, #CASHPOINTS + [email protected];
    
                    dispbottom "Gained "+.@amt+" cash points. Total "+#CASHPOINTS+" points";
    
            } else {
    
                    query_sql "SELECT COUNT(`account_id`) FROM `global_reg_value` WHERE `str`='#CASHPOINTS' AND `account_id`='"+.@account_id+"'", .@update;
    
                    if (.@update)
    
                            query_sql "UPDATE `global_reg_value` SET `value` = (CAST(`value` AS UNSIGNED)+'"+.@amt+"') WHERE `str`='#CASHPOINTS' AND `account_id`='"+.@account_id+"'";
    
                    else
    
                            query_sql "INSERT INTO `global_reg_value` (`str`,`value`,`type`,`account_id`) VALUES ('#CASHPOINTS',"+.@amt+",2,"+.@account_id+")";
    
            }
    
            attachrid(.@AID);
    
            mes "Gave "+.@amt+" cash points to "+.@name$+".";
    
            announce "GM "+strcharinfo(0)+" gave to "+.@name$+" "+.@amt+" Cash Points",bc_all;
    
            close;
    
    }

    Try it.

  2. If they aren't the same, you need to put LAN IP where says LAN IP, WAN IP where says WAN IP.

    But in my opinion, i suggest you to grab the cheapest VPS you can find on market just to test it.

    If you want to bring the server online for testing or setup a multi-development, that's the ideal. My server got a Canada host (with high ping from my Country, about 250ms) just for development and when we finished it, we transfered it to a Country localhost.

  3. Check rAthena/conf/battle/skill.conf

    // Does the delay time depend on the caster's DEX and/or AGI? (Note 1)
    // Note: On Official servers, neither Dex nor Agi affect delay time
    delay_dependon_dex: no
    delay_dependon_agi: no

    Even with that options set to yes, the skill_cast_db.txt should be affected when you edit it. If isn't, check if the skill_cast_db.txt you're editing is the one for your episode (pre-renewal and renewal)

    • Love 1
  4. Em português:

    O arquivo responsável pelas descrições dos itens é o arquivo iteminfo.lua ou iteminfo.lub (varia conforme você escolheu diffando seu Hexed) localizado na sua pasta System. Só editar e salvar, seu Client lê o arquivo e atualiza as descrições toda vez que você inicia.

    Procurando na internet você até acha alguns prontos em português.

     

    English:

    The description file are iteminfo.lua or iteminfo.lub (it depends on how you choose it when diffing your hexed) and you can find it on System folder. You only need to edit and save, and the Client will load the file everytime you start it.

    Searching on internet you can find some in Portuguese.

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

  6. Spoiler

     

    Go into file: rAthena/db/(pre-)re/skill_require_db.txt

    Search for line:

    231,0,0,1,0,0,0,99,0,0,none,0,0,501,1,502,1,503,1,504,1,505,1,522,1,526,1,608,1,607,1,657,1,0			//AM_POTIONPITCHER

    Than change the last values, starting on 501,1,502,1,503,1,504,1,505,1,522,1,526,1,608,1,607,1,657,1, for the ID of the item you want to cast the Skill, and the quantity of the determined item.

     

    Error! Wrong answer. I'll check, just a sec.

  7. 4 minutes ago, domez86 said:

    not work, error at line fist close;

    That's cause I forgot to put the extra " at the final 'mes' command.

     

    Just change:

    mes "That NPC only can be used by 3rd Classes; 

    To:

    mes "That NPC only can be used by 3rd Classes";

     

    And that should work fine now. Sorry about that. \o\

  8. Primeiro você vai ter que colocar o mapa pvp_y_2-2 numa Zone separada dos outros mapas. Edite o arquivo /rAthena/npc/mapflag/restricted.txt e acrescente essa nova linha:

    pvp_y_2-2	mapflag	restricted	8

    Agora seu mapa faz parte da Zone 8.

    Lembrando que o espaço entre as palavras é feito com TAB nesse caso, assim:

    MAPA<tab>mapflag<tab>restricted<tab>8

     

    Agora, para desativar Desencantar nesse mapa, vá até o arquivo /rAthena/db/pre(-re)/skill_nocast_db.txt e acrecente, no final do arquivo:

    //----------------------------------------------------------------------------
    // Zone 8 - Mapa pvp_y_2-2
    //----------------------------------------------------------------------------
    289,4096	//SA_DISPELL

    Para reduzir o dano das habilidades, você deve editar o arquivo  /rAthena/db/skill_damage_db.txt. Siga os exemplos no arquivo, e aí na coluna "MAP" você vai colocar 4096, que é o número responsável para mapas da Restricted Zone 8.

    // Examples:
    // MC_MAMMONITE,BL_PC,1,50 // In normal maps, players deal +50% damage to other players with Mammonite.
    // MO_EXTREMITYFIST,BL_PC,6,-50 // In PVP and GVG, players deal -50% (half) damage to other players with Asura Strike.
    // AB_ADORAMUS,BL_PC,6,50,0,10,15 // In PVP and GVG, players deal +50% damage to other players, +0% to mobs, +10% to bosses, and +15% to other with Adoramus.

     

    Para que as mudanças tenham efeito, você deve reiniciar seu servidor, pois as mapflags restrict não são aplicadas com @reload Script. Lembrando também que a conta ADM ignora qualquer tipo de restrição desses arquivos, então teste em contas Player comum.

    Se ajudei, me ajuda com um Upvote! 😉

    • Upvote 3
  9. Pega esse aqui, é o que a gente usa:

    //===== Gogcel Ro Scripts ================================== 
    //= No double login in one map
    //===== By: ================================================== 
    //= Tauro
    //===== Current Version: =====================================
    //= 1.00
    //===== Compatible With: =====================================
    //= rAthena SVN
    //===== Description: =========================================
    //= Avoid double login in 1 designated map and has unique_id
    //= by gepard
    //===== Comments: ============================================
    //= Edit line 26 to use gepard authenticator or ip
    //=	Edit line 64 if you use the system by ip
    //=	Edit loadevent maps in line 86
    //===== Contact Info: ========================================
    //= [Tauro]
    //= Email: [email protected]
    //= Discord: Trinity#7962
    //============================================================
    -	script	dl_map	-1,{
    	end;
    
    OnInit:
    	// 1= if you have gepard 0=if you do not use gepard
    	set .Gepard,1;
    	end;
    	
    OnPCLoadMapEvent:
    	if (.Gepard == 1) {
    		getmapxy(.@map$,.@mapx,.@mapy,0);
    		query_sql("SELECT last_unique_id FROM `login` WHERE account_id = "+getcharid(3)+"", .@UniqueId$);
    		query_sql("SELECT account_id FROM `login` WHERE last_unique_id = '"+.@UniqueId$+"'", .@CuentaId);
    		set .@error,getcharid(3,strcharinfo(0));
    		for(set .@i ,0;.@i<getarraysize(.@CuentaId);set .@i,.@i+1) {
    			if(attachrid(.@CuentaId[.@i])) {
    				if (.@CuentaId == 2000001) {
    					set .@j,0;
    				} else {
    					getmapxy(.@map2$,.@mapx2,.@mapy2,0);
    					if (.@map2$ == .@map$){
    						set .@j,.@j+1;
    					}
    				}
    			}	
    		}
    		detachrid;
    	
    	attachrid .@error;
    	if(.@j > 1) {
    		dispbottom "[Servidor] Me desculpe, mas para evitar abuusos, Double Clients não são permitidos nesse mapa.";
    		atcommand "@kick " + strcharinfo(0);
    	}
    
    	end;
    	} else {
    		getmapxy(.@map$,.@mapx,.@mapy,0);
    		query_sql("SELECT last_ip FROM `login` WHERE account_id = "+getcharid(3)+"", .@UltimaIp$);
    		query_sql("SELECT account_id FROM `login` WHERE last_ip = '"+.@UltimaIp$+"'", .@CuentaId);
    		set .@error,getcharid(3,strcharinfo(0));
    		for(set .@i ,0;.@i<getarraysize(.@CuentaId);set .@i,.@i+1) {
    			if(attachrid(.@CuentaId[.@i])) {
    //if .Gepard is 0 add id of accounts to which the system will not affect, brothers, couple, gms, etc ... [email protected] == accountId
    				if (.@CuentaId == 2000029) {
    					set .@j,0;
    				} else {
    					getmapxy(.@map2$,.@mapx2,.@mapy2,0);
    					if (.@map2$ == .@map$){
    						set .@j,.@j+1;
    					}
    				}
    			}	
    		}
    		detachrid;
    	
    	attachrid .@error;
    	if(.@j > 1) {
    		dispbottom "[Servidor] Me desculpe, mas para evitar abuusos, Double Clients não são permitidos nesse mapa.";
    		atcommand "@kick " + strcharinfo(0);
    		}
    	} end;
    }
    
    pvp_n_3-5	mapflag	loadevent
    guild_vs3	mapflag	loadevent

    Você configura os mapas aplicando a mapflag loadevent (como nas últimas linhas do Script)

    Exemplo:

    mapa<tab>mapflag<tab>loadevent
    prontera	mapflag	loadevent

     

    Lembrando que pra aplicar as mudanças de Mapflag pelo Script você precisará reiniciar o servidor. Caso não queira reiniciar e testar se funcionou, vai até o mapa que você quer bloquear Dual e usa o comando:

    @mapflag loadevent 1

     

    Se ajudei, dá aquele Upvote maroto. 😉

    • Like 1
  10. So you need to store your database on localhost/anacondaqq but you need that other people connect to you server via Hamachi?

    If yes, you can change the database configurations on ~/conf/inter_athena.conf and point it to Localhost/Anacondaqq, and then use the Hamachi IP as Login/Char/Server IP, editing the files login_athena.conf, char_athena.conf and map_athena.conf also on ~/conf/ folder.

    • Upvote 1
  11. Confere na sua pasta Texture, algumas frases assim são, na realidade, imagens em BMP e você só vai conseguir traduzir editando essas imagens.

    Não consigo te dizer ao certo o que vai ser imagem e o que vai ser .lua...

×
×
  • Create New...

Important Information

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