Jump to content

Murilo BiO'

Members
  • Content Count

    42
  • Joined

  • Last visited

  • Days Won

    9

Posts posted by Murilo BiO'


  1. 1 hour ago, caspe said:
      Hide contents

    set .@n$, "[Seyra]";
    setarray .@rwd[0],2115,1,2357,1,2421,1,2524,1; // Rewards: <item id>,<item amount>
    query_sql ("SELECT `last_ip` FROM `login` WHERE `account_id`=" + getcharid(3) + "", .@lip$);
    if ( getd("$" + .@lip$ + "_NG") > 0 || #NewbieGift > 0)
        {
            mes .@n$;
            mes "I'm sorry, the rewards are exclusively for new players.";
            close;
        }
        mes .@n$;
        mes "Welcome! Here are some free gifts";
        mes "for newcomers:";
            for ( set .@i, 0; .@i < getarraysize(.@rwd); set .@i, .@i + 2 )
            mes .@rwd[.@i+1] + " x " + getitemname(.@rwd[.@i]);
            close2;
            set #NewbieGift, 1;
            setd "$" + .@lip$ + "_NG", getd("$" + .@lip$ + "_NG") + 1;
            for ( set .@i, 0; .@i < getarraysize(.@rwd); set .@i, .@i + 2 )
            getitem .@rwd[.@i], .@rwd[.@i+1];
    end;

    OnInit:
    waitingroom "Newbie Gift!",0;
    end;
    }

    this script which was posted by @Anakid working fine, but how can i use getitem2 in it?

    because i wan't also give +7 equips. 

    The simpler way is just adding getitem2 under the getitem on the script, with static values like on the first one. But remember, someone with dynamic IP can receive multiple G Packs.


  2. Hey, I think this may help:

    Spoiler
    
    -	script	::dual_check	FAKE_NPC,{
    OnInit:
    	//-- Configuration
    	.VerifiedMap$ = "turbo_room";  ///< The map where we will verify for same ip
    	.Message$     = _("You can access this map with only account per IP."); ///< Message that will be displayed
    	.WarpMap$     = "prontera";    ///< The map where we will warp the player if it is a dual account
    	.WarpX        = 155;           ///< X coordinate to warp the character
    	.WarpY        = 181;           ///< Y coordinate to warp the character
    	
    
    	//-- Initialization
    	deletearray(.IP_List$[0], getarraysize(.IP_List$));
    	end();
    OnPCLoadMapEvent:
    	if (strcharinfo(PC_MAP) != .VerifiedMap$)
    		end();
    
    	.@ip$ = getcharip();
    	for (.@i = 0; .@i < getarraysize(.IP_List$); .@i++) {
    		if (.@ip$ != .IP_List$[.@i])
    			continue;
    
    		warp(.WarpMap$, .WarpX, .WarpY, false); // 4th argument will prevent ending the script
    		dispbottom(.Message$, 0xFF0000);
    		end();
    	}
    
    	// If it got this far it's a new IP
    	.IP_List$[getarraysize(.IP_List$)] = .@ip$;
    	end();
    
    OnPCLogoutEvent:
    	if (strcharinfo(PC_MAP) != .VerifiedMap$)
    		end();
    	
    	.@ip$ = getcharip();
    	for (.@i = 0; .@i < getarraysize(.IP_List$); .@i++) {
    		if (.@ip$ != .IP_List$[.@i])
    			continue;
    
    		// Assuming that will be only 1 match on the whole array.
    		deletearray(.IP_List$[.@i], 1);
    		end();
    	}
    }

     

    but notice that it will only work if the only way to get out of this map is through disconnecting (logout).

    Is there any other way to get out of this map on your server?

     

    @edit:

    I almost forgot the warnings you got. You need to increase the value of MAX_EVENTQUEUE inside map.h

    O

  3. On 24/01/2018 at 1:40 PM, Atomik said:

    Hey there, Do you have a alternate link because herc blog id down T_T , please herp 

    on the link change 'herc.ws/board/....' to 'herc/oldboard/....'

    @edit:

    Nevermind, it doesn't show the right links haha... but you can still access some entries...


  4. O que foi editado:
     

    // Arquivo: npc/quests/quests_13_2.txt
    // Linha: 1075
    // de:
    	else if (ep13_mdrama > 5) {
    // para:
    	else if (ep13_mdrama > 5 || ep13_mdrama == 0) {
    
    // Arquivo: npc/instances/NydhoggsNest.txt
    // Linha: 37
    // de:
    	if (ins_nyd == 0) {
    // para:
    	if (ins_nyd == 0 && false) {
    
    // Linha: 102
    // de:
    	} else if (ins_nyd == 131 || ins_nyd == 132 || ins_nyd > 199) {
    // para:
    	} else if (ins_nyd == 131 || ins_nyd == 132 || ins_nyd > 199 || true) {

     

    Com isso fui capaz de entrar no calabouço, gerar a instância e completá-la com sucesso.

    O que as mudanças fizeram foi pular o requisito da quest, mas se alguém quiser terminar a quest, não vai conseguir.


  5. Respondendo por partes:

    1. Se você quer exatamente o mesmo Client (hexed) da época, verifique a época, e procure em algum dos bancos de clients que existem por ai, veja alguns posts antigos da seção de Client Releases.
    2. Para a pasta data da época, procure uma pasta completa do ragnarok(full client) da época, busque posts antigos da seção de Client Releases.
    3. Recomendo usar um emulador atual, apenas desabilite o RENEWAL, há vários tutoriais de como fazer isso, se me recordo bem é na pasta src/config, mas procure pois faz tempo que não mexo nisso e não vou lembrar.

     

    Sobre o post em si:

    1. Área errada para perguntar em português, use a área de suporte da seção Portuguese Community (você encontra mais em baixo na página inicial).
    2. Ou como alternativa, use inglês e poste nas áreas principais, ai as chances de ser respondido serão maiores.

     

    @Mystery Can you move this topic to Portuguese Community too? Thanks!


  6. Olha, há muitas informações faltando...

    1. Esse emulador que você baixou é Hercules?
    2. Você baixou de um terceiro, então provavelmente foi modificado e se você não sabe o que foi modificado não tem como dar suporte, sem contar o próximo ponto.
    3. 2012? Estamos em 2018, MUITA coisa mudou, essa sua deve estar cheia de bugs e falhas, então aconselho a baixar uma versão nova.
    4. Área errada pra postar em português, use inglês nessa área ou vá na área em português: Link.

  7. Hey everyone!

     

    About this plugin:

    Well.. I saw a friend that had to remove some items from being dropped by some monsters and he was struggling with the `mob_db` since a lot of monsters drop that item.

    So I made this plugins which can disable an item from being dropped by all monsters or just for the specified mob types, and also with the possibility of set some exceptions.

    I hope it can help other people with the same problem.

     

    Installation:

    Well, you just need to extract it on your `src/plugins/` folder and declare it on the `conf/plugins.conf` file, and follow the instructions to build plugins with MSVC or GCC.

     

    Downloads \ Changelog:

    1.0a - Initial Release.

     

    Bug Report:

    Also, if you find any bug, just tell me *here in this post* or start a new issue on my plugins repository (Link).

     

    Contributing:

    You can contribute to this plugin or any other one in my Plugins Repository by sending pull requests :D

     

     


  8. Eita, ja ia respondendo em ingês kkk...

    Bom, você quer em 1 ataque só (o asura) utilizar efeito de 2 armas?

    Se for isso, é impossível/muito complexo.

    O ataque é calculado com a arma atual, no momento de cálculo do dano e aplicação de debuffs.

    Não estou recordado como é feito o calculo dos 2, pode ser que haja a possibilidade de um switch de equipamentos mas o cálculo vai ser mais rápido do que seus dedos com certeza... O que você poderia fazer nesse caso seria aumentar o tempo entre o ataque e o efeito (se existe um delay para isso, caso contrário você deverá criar) e só funcionará se ele calcular utilizando dados atuais ("ao vivo") e não com dados do início do ataque.


  9. And i have a doubt about this clan system...

    If i want to modify the src (when the clan system is out) for a custom server to allow the players in a guild be in a clan at the same time, its possibly? or the clan system use the same resources or packets as the guild and there will be bugs?

    Thanks

    When I was writing the clan system I saw something about this and it looks like you can't invite someone to your guild if this person is in a clan, and it looks like a client-side verification and not server-side, maybe we can override it by removing the guild check when trying to join a clan but it should be tested....


  10. What kind of event do you want?

     

    What will be it's goals?

     

     

    Sample of hourly event:

     

    prontera,150,150,4	script	Hide and Seek::hourly_event	1_M_01,{
    	
    	if ( .STATUS ) {
    		mes("[^FFA500Hide and Seek^000000]");
    		mes("Oh! You found me!");
    		mes("Here's your reward!");
    		announce(sprintf("[Hide and Seek] %s found me! Thank you all for participating.", strcharinfo(0)), bc_all);
    		#CASHPOINTS += 75; // Adds 75 Cash Points
    		close2();
    		donpcevent("hourly_event::OnStopEvent");
    	}
    	end();
    
    	OnInit:
    		hideonnpc("hourly_event");
    		.STATUS = 0;
    		end();
    
    	OnMinute00: //Every hour at this minute the event will begins
    		donpcevent("hourly_event::OnStartEvent");
    		end();
    
    	OnStartEvent:
    		initnpctimer();
    
    		setarray(
    			.COORDINATES[0],
    			// x, y (just for prontera)
    			119, 311,
    			105,  74,
    			129, 261,
    			188, 330,
    			241,  76,
    			205, 238,
    			 60, 335,
    			240, 292
    		);
    
    		.@i = rand(getarraysize(.COORDINATES));
    		.@x = .COORDINATES[.@i];
    		.@y = .COORDINATES[.@i + 1];
    
    		movenpc("hourly_event", .@x, .@y);
    
    		.STATUS = 1;
    
    		announce("[Hide and Seek] The event has begun! Try to find me in Prontera!", bc_all);
    
    		hideoffnpc("hourly_event");
    
    		end();
    
    	OnStopEvent:
    		stopnpctimer();
    		.STATUS = 0;
    		hideonnpc("hourly_event");
    		end();
    
    	OnTimer1800000:
    		donpcevent("hourly_event::OnStopEvent");
    		end();
    }
    

    Goal: Find the NPC in Prontera.

×
×
  • Create New...

Important Information

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