Jump to content

hakuren

Members
  • Posts

    295
  • Joined

  • Last visited

Posts posted by hakuren

  1. Hi rAthena,

    Requesting : "I'm requesting a system that allow to separate the exp system of the pet to its owner."

    I saw in the conf/battle/pet.conf that pet_lv_rate mixed with its master's level :

    Quote

    // Pet leveling system. Use 0 to disable (default).
    // When enabled, a pet's level is a fixed % of the master's. (Note 2)
    // If 200%, pet has double level, if 50% pet has half your level, etc.
    pet_lv_rate: 0

    so if its possible to have its own petexptable.txt on the db for each pets

  2. how can i remove red name when disguise as monster is active

    i notice when i use disguise and my level is higher than other player

    my name turned to red

     

    Question : is there anyway i can remove it or... turn it to pink like level range?

     

    Question : is this a hardcoded to the client? or src?

  3.  

     

    setarray .@item_id, 501,502,503,504,505,506,507,508,509,510;
    for (@i=0; @i< 5; @i++)
    {
      set .@ind, rand(0,getarraysize(.@item_id));
      getitem .@item_id[.@ind], 1;
      deletearray .@item_id[.@ind],1;
    }

     

     

    i tried it but when the rand value return to previews deletearray value it return 0 and give error

     

    because

    .@item_id≠@item_id

    and

    set @ind, rand(0,getarraysize(.@item_id)-1);

    deletearray <array name>[<first value>],<how much to delete>;
    prontera,155,125,4	script	test	4_m_genie,{
    	setarray .@item_id[0],501,502,503,504,505,506,507,508,509,510;
    	for(.@i=0; .@i<5;.@i++){
    		.@pass = 0;
    		// random item
    		.@item = .@item_id[rand(0,getarraysize(.@item_id)-1)];
    		if(getarraysize(.@del) != 0){
    			for(.@j=0; .@j<getarraysize(.@del);.@j++){
    				if(.@del[.@j]==.@item)	// repeat
    					break;
    				if(.@j == (getarraysize(.@del)-1))
    					.@pass = 1;
    			}
    		} else {
    			.@pass = 1;
    		}			
    		if(.@pass == 1){
    			getitem .@item,1;
    			// record gived
    			.@del[.@i] = .@item;
    		} else {
    			.@i -= 1;
    		}
    	}
    	end;
    }
    

    wow another knowledge acquired thankyou for the information :) thank you again...

  4.  

    Hi rAthena,

     

                                                                                                

     

    Question :

    - How can a npc script give 5 different items randomly in a array at the same-time.

     

                                                                                                

     

    Example :

    - setarray .@item_id, 501,502,503,504,505,506,507,508,509,510;

     

    can someone help me?

     

                                                                                                

     

    Thank you in advance  /thx

    prontera,155,125,4	script	test	4_m_genie,{
    	setarray .@item_id[0],501,502,503,504,505,506,507,508,509,510;
    	for(.@i=0; .@i<5;.@i++){
    		.@pass = 0;
    		while(1){
    			// random item
    			.@item = .@item_id[rand(0,getarraysize(.@item_id)-1)];
    			if(getarraysize(.@del) != 0){
    				for(.@j=0; .@j<getarraysize(.@del);.@j++){
    					if(.@del[.@j]==.@item)	// repeat
    						break;
    					if(.@j == (getarraysize(.@del)-1))
    						.@pass = 1;
    				}
    			} else {
    				break;
    			}			
    			if(.@pass == 1)
    				break;
    		}
    		getitem .@item,1;
    		// record gived
    		.@del[.@i] = .@item;
    	}
    	end;
    }
    

    woooow! thank you @a91323 your script perfectly works! to my condition thankyou so much!!!

    and thankyou @Kamii

  5. You need to use for loop.

    Pseudocode:

     

    for (i=0; i< 5; i++)
    {
      getitem @item_id[rand(0,10)], 1;
    }
    

    Hi @Kamii

    thank you for your reply

     

    i use this like this

    setarray .@item_id, 501,502,503,504,505,506,507,508,509,510;

    for (i=0; i< 5; i++)
    {
      getitem .@item_id[rand(0,10)], 1;
    }

     

    yes it gives 5 items but... some on it give the same item when the random value is the same as the preview value

    i need that 5 random items differently when receive by the player.

  6. Hi rAthena,

     

                                                                                                

     

    Question :

    - How can a npc script give 5 different items randomly in a array at the same-time.

     

                                                                                                

     

    Example :

    - setarray .@item_id, 501,502,503,504,505,506,507,508,509,510;

     

    can someone help me?

     

                                                                                                

     

    Thank you in advance  /thx

  7. Hi rAthena,

     

    i'm having a problem in Random Option :

     

        • After using "setrandomoption" command to the item it successfully added random option but...

          when i relog, it not save to the character the bonus are removed

          but.. when you put it to storage / cart or attempt to put random option to another item it saved.

     

    * Here some screenshots :

     

    - This item :

    post-631-0-35010100-1472448980_thumb.jpg

     

    - added random option :

    post-631-0-09924000-1472448993_thumb.jpg

     

    - Relog :

    post-631-0-15361400-1472448998_thumb.jpg

     

    Random option removed :

    post-631-0-33232200-1472449005_thumb.jpg

     

    - put random option to other item :

    post-631-0-00654600-1472449013_thumb.jpgpost-631-0-59153100-1472449020_thumb.jpg

     

    - After relog :

    post-631-0-43161600-1472449026_thumb.jpgpost-631-0-03418100-1472449034_thumb.jpg

     

    EDIT : this is how to reproduce this again 

    step 1 : create @item shoes

    step 2 : equip that shoes

    step 3 : relog [ to save the shoes state on sql ]

    step 4 : login again

    step 5 : put setrandomoption to that item

    script used : setrandomoption(2,0,1,10,0);

    step 6 : relog

    step 7 : login again 

    and the item don't have randomoption

     

    Is i'm only one having this problem?

    i'm using latest git

    please help thank you in advance :)

  8. how can i make this work in the latest git? please help

     

    i got error

     

    1>c:\users\aaaa\desktop\rathena-master\src\map\mob.c(4406): error C2039: 'script_vars' : is not a member of 'script_code'
    1>          c:\users\aaaa\desktop\rathena-master\src\map\script.h(240) : see declaration of 'script_code'
    1>c:\users\aaaa\desktop\rathena-master\src\map\mob.c(4406): error C2039: 'script_vars' : is not a member of 'script_code'
    1>          c:\users\aaaa\desktop\rathena-master\src\map\script.h(240) : see declaration of 'script_code'
    1>c:\users\aaaa\desktop\rathena-master\src\map\mob.c(4408): error C2039: 'script_vars' : is not a member of 'script_code'
    1>          c:\users\aaaa\desktop\rathena-master\src\map\script.h(240) : see declaration of 'script_code'
    1>c:\users\aaaa\desktop\rathena-master\src\map\mob.c(4408): error C2039: 'script_vars' : is not a member of 'script_code'
    1>          c:\users\aaaa\desktop\rathena-master\src\map\script.h(240) : see declaration of 'script_code'
    1>c:\users\aaaa\desktop\rathena-master\src\map\mob.c(4409): error C2039: 'script_vars' : is not a member of 'script_code'
    1>          c:\users\aaaa\desktop\rathena-master\src\map\script.h(240) : see declaration of 'script_code'
    1>c:\users\aaaa\desktop\rathena-master\src\map\mob.c(4409): error C2039: 'script_vars' : is not a member of 'script_code'
    1>          c:\users\aaaa\desktop\rathena-master\src\map\script.h(240) : see declaration of 'script_code'
    1>c:\users\aaaa\desktop\rathena-master\src\map\mob.c(4411): error C2039: 'script_vars' : is not a member of 'script_code'
    1>          c:\users\aaaa\desktop\rathena-master\src\map\script.h(240) : see declaration of 'script_code'
    1>c:\users\aaaa\desktop\rathena-master\src\map\mob.c(4411): error C2039: 'script_vars' : is not a member of 'script_code'
    1>          c:\users\aaaa\desktop\rathena-master\src\map\script.h(240) : see declaration of 'script_code'

    mob_controller_17100.patch

  9.  

    The Screenshots are unclear, and maybe, 1 hour can be a little much and broke the Script.

    My config is set to 15s and it's working properly.

    // Time in milliseconds to activate protection against Kill Steal
    // Set to 0 to disable it.
    // If this is activated and a player is using @noks, damage from others players (KS) not in the party
    // will be reduced to 0.
    ksprotection: 15000
    

     

    i'd change ksprotection into 15000 like what you use

    but still other player can attack that monster  /sob

    here some screenshots 

     

    Player 1 Actives the @noks

    post-631-0-32688300-1445051640_thumb.jpg

     

    Player 1 Attacking Monster

    post-631-0-44089800-1445051643_thumb.jpg

     

    Player 2

    post-631-0-51939800-1445051644_thumb.jpg

     

    Player 2 Still can attack Player 1's monster

    post-631-0-17882900-1445051647_thumb.jpg

     

     

    Hi rathena,

     

    i think @noks is not working in my server or i missing something

    heres my config :

     

    // Time in milliseconds to activate protection against Kill Steal
    // Set to 0 to disable it.
    // If this is activated and a player is using @noks, damage from others players (KS) not in the party
    // will be reduced to 0.
    ksprotection: 3600000 // 1 Hour
     
    Player 1 Active @noks
     
    Player 2 Still can attack Player 1 target monster

     

     

    have you tried looking at the "battle chat" and check if gives off damage? I think it only changes the damage to 0 but does not stop a player from doing an attack animation. Also, notice the monster's HP is not going down.

     

     

    here :

     

    post-631-0-36036400-1445051821_thumb.jpg

  10.  

    hi i duplication berserk skill from scr scripts but after i rebuild it and test the skill the visual effect didnt add to my custom skill i already use clif_specialeffect 368 but after i warp to other map it remove

     

    so i think the client is the one to edit for enabling the berserk effect to the user used it

     

    can someone help me if im at the wrong section you can correct me

     

    this effect :

    attachicon.gifscreenHaku Server103.jpg

     

    EDIT : Other client can see this effect but the user used it dont showed up :(

    more Detail plss ^_^  Show what did you edit!

     

     

     

    You need to edit the source in order to refresh the effect once you change from one map to another.

    I don't remember exactly the fragment where it can be set, but that's the way.

    I guess that usually the Client-Side take care of keeping the effect active while the SC is active, but, since it's a Custom Skill, a Custom Function will be needed.

    The easy way is do that with Scripts, using OnPCMapLoadEvent, but it's a McGyver, not a real solution.

     

    thankyou for your reply i use script command for this and it works :)

  11. Hi rathena,

     

    i think @noks is not working in my server or i missing something

    heres my config :

     

    // Time in milliseconds to activate protection against Kill Steal
    // Set to 0 to disable it.
    // If this is activated and a player is using @noks, damage from others players (KS) not in the party
    // will be reduced to 0.
    ksprotection: 3600000 // 1 Hour
     
    Player 1 Active @noks
    post-631-0-07741300-1445050437_thumb.jpg
     
    Player 2 Still can attack Player 1 target monster
    post-631-0-19004500-1445050440_thumb.jpg
     
     
  12. Hi guys,

     

    Im making a custom event that change all monster behavior in the area

    my question is how to control their mode like Skill Spirit_Control?

    turning aggressiveness to passive one

     

    like :

    sc_start4(NULL,&md->bl, SC_MODECHANGE, 100,1,0, MD_AGGRESSIVE, 0, 0); // target mob will become aggressive

    is there a way that this MD_AGGRESSIVE turn them to PASSIVE?

     

    i search for MD_PASSIVE but i don't see any command like that

     

    Please Help me and Thank you in advance :)

  13. Hi guys,
     
    is there anyway that an npc can check what instance "name" currently activate to the player's party like " 'instancename$ "
    or is there anyway like annieruru's script ( instance__ ) can be done using this new instance commands?

     

     

    function script instance__ {

    if ( set( .@ins, instance_create( getarg(0), getcharid(1) ) ) < 0 )
    return .@ins;
    set .@i, 3;
    while ( getarg( .@i, "" ) != "" ) {
    if ( instance_attachmap( getarg(.@i), .@ins ) == "" ) {
    instance_destroy .@ins;
    return -5;
    }
    set .@i, .@i +1 ;
    }
    if ( getarg(1) || getarg(2) )
    instance_set_timeout getarg(1), getarg(2), .@ins;
    instance_init .@ins;
    instance_attach .@ins;
    return .@ins;
    }

     

    Note : i just want to create when player is out from the instance map it will automatically destroy due to the timeout set.

    example : timeout from map 20 seconds. like that

    sorry for my bad english  /sry

  14. hi guys i'd try to use dispbottom and @me to latest svn and client 2013-08-07aRagexe but after i use this to my script

    dispbottom "Your points has been increased by : 1000"; and @me "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" (note: i edit the structure of message i remove player name and *: :* symbol)

    my client crash is there anyway that this can be fix?

  15.  

     

     

    Hi guys ask ko lang if pede bang i-disable yung 1rag1 kahit napatch mo na? help naman po thanks in advance

    Sa pag kakaalam ko ay pwede mo ulit i-patch ang iyong client.

     

    sinubukan ko kaso meron na error :( alam nyo po ba yung hex code nung 1rag1 para ma-disable ko nlang gamit yung hex editor ko?

     

    Hindi ko alam yung hex code nya eh. Bakit ayaw mo na lang re-diff client mo gamit ang N.E.M.O?

     

    dalawa na po try ko same error yung kay n.e.m.o saka kay sir shin :( haha siguro nga try ko nlang ulit gumawa ng bago thank you po sa pag sagot sir angryrestie

×
×
  • Create New...