Jump to content

Vector

Members
  • Posts

    9
  • Joined

Posts posted by Vector

  1. On 1/28/2019 at 2:54 AM, rongmauhong said:

    Hi @Tokei. My map-server crashed after using these commands. I noticed that the server crashed only when I used the `getitem` command in this script.

    
    -	script	stest	-1,{
    OnTest:
    	.@labelReward$ = "stest::OnReward";
    	foreachinserver(.@labelReward$);
    	end;
    OnReward:
    	getitem 531,1; // Crashed
    	dispbottom "test"; // No crashed
    	end;
    OnInit:
    	bindatcmd "test",strnpcinfo(0)+"::OnTest",99,99;
    	end;
    }

    The bug occurred when I updated this PR https://github.com/rathena/rathena/commit/db3267a868c2855da68481c0807f14004c984da7

    Here is the dump log:
    381951886_42AE454B-9A41-4D76-902C-1E39AAAE0AC7.png.jpg.03a8b475df01da45261a632c81f7ed01.jpg

    Please fix it, thanks.

    Hi,

    You fixed it? 

    Would be great if this release get updated to latest src ?

  2. Use donpcevent "<NPC object name>::<event label>"; to invoke an event label. Disabled/enabled npc only disable/enable the npc (read the docs in script_commands) so the timer never start.

     

    awesome, really thanks! 

     

    it worked!

  3. Hello guys, i'm a little novice in rAthena scripting and i have one trouble with the timers logic and flow.
     
    can you check the code and tell me why the #$%&/ timer don't run?
     
    regards
     
     
    job3_gen01,44,46,5	script	Hetfield	940,{
    	disablenpc "mvptimer";
    	mes "^FF8000[Hetfield]^000000";
    	mes "Hola, mis ancestros han heredado por generaciones";
    	mes "un misterioso poder con el cual";
    	mes "invocamos a los MvP's mas poderosos";
    	mes "de todo Rune of nifelheim.";
    	next;
    	mes "^FF8000[Hetfield]^000000";
    	mes "Puedo invocar a una gran bestia";
    	mes "sin embargo necesitan darme algo...";
    	next;
    	mes "^FF8000[Hetfield]^000000";
    	mes "^0101DFQuiero 100,000,000 de zeny.^000000";
    	mes "Todos en este mundo pueden darme la cantidad que quieran";
    	mes "y cuando llegue al monto que dije";
    	mes "anunciare la llegada del ya mencionado poderoso MvP.";
    	next;
    	mes "^FF8000[Hetfield]^000000";
    	mes "No se que MvP saldra, pero de lo que podeis";
    	mes "estar seguros, es que es tremendamente fuerte.";
    	next;
    	mes "^FF8000[Hetfield]^000000";
    	mes "Actualmente han donado: ^0101DF"+$MVPZENY+"^000000";
    	mes "Quieres donarme Zeny?";
    	if (select("Si","No")==1){
    	mes "Acepto como minimo 1 millon y maximo 5 millones.";
    	mes "Dime cuanto quieres darme:";
    	input @zeny;
    		if(@zeny <= 5000000 && @zeny >= 1000000){
    			if(Zeny < @zeny){
    			mes "Ridiculo No cuentas con esa cantidad de Zeny!";
    			end;
    			}else{
    			mes "^0101DFGracias por los: "+@zeny+" z^000000";
    			set Zeny, Zeny - @zeny;
    			set $MVPZENY, $MVPZENY + @zeny;
    			announce strcharinfo(0)+" ha donado "+@zeny+"z al NPC Hetfield para invocar una bestia poderosa...",bc_map,0x9ACD32;
    			enablenpc "mvptimer";
    			next;
    			
    			if($MVPZENY >= 100000000){
    			mes "^FF8000[Hetfield]^000000";
    			mes "OHH!!! He conseguido el Zeny que necesitaba, preparaos para la invocacion del poderoso MvP en la ciudad de Morroc!";
    			set $MVPZENY,0;
    			
    
    
    			end;
    			}
    			next;
    			mes "^FF8000[Hetfield]^000000";
    			mes "Oh si, cuando tenga toda la plata";
    			mes "Voy a llamar a la gran bestia que prometi...";
    			end;
    			}
    
    		}else{
    		next;
    		mes "^FF8000[Hetfield]^000000";
    		mes "Ya te dije cuanto Zeny acepto. adios!";
    		end;
    				
    		}
    		
    	
    
    	}else{
    	end;
    	}
    
    
    }
    
    -	script	mvptimer	-1,{
    			
    			OnEnable:
    				initnpctimer;
    				end;
    			OnTimer3000:
    				announce "Ok 3 segundos mas [Testing NPC... ignore it].",bc_all,0x9ACD32;
    				end;
    			OnTimer5000:
    				announce "Ok 2 segundos mas [Testing NPC... ignore it].",bc_all,0x9ACD32;
    				end;
    			OnTimer6000:
    				stopnpctimer;
    				end;
    }
    

     

×
×
  • Create New...