Jump to content

MyNoobScriptz

Members
  • Posts

    76
  • Joined

  • Last visited

Posts posted by MyNoobScriptz

  1. 9 minutes ago, cook1e said:

    I think you need to enable this for pet bonus to work. https://github.com/rathena/rathena/blob/master/conf/battle/pet.conf#L58

    Yes i follow you

    // Whether or not the pet's will use skills. (Note 1)
    // Note: Offensive pet skills need at least pet_attack_support or 
    // pet_damage_support to work (they trigger while the pet is attacking).
    pet_status_support: yes

    and try to add 

            autobonus "{ bonus bBaseAtk,1000; }",1000,5000,BF_SHORT|BF_NORMAL;
            bonus bLuk,500;

    on pet_db.yml, i got Luk + 500 but effect autobonus don't work

    i think all bonus work as normal but autobonus don't work

    petttt.png

    • rAthena Hash: Latest
    • Client Date: 2021-11-17
    • Server Mode: Renewal
    • Description of Issue: Use pet MARIONETTE (Marionette_Egg ID : 9043) then change 
      autobonus "{ bonus2 bSubEle,Ele_Neutral,2; heal 100,0; }",100,5000,BF_SHORT|BF_NORMAL;

      to 

      autobonus "{ bonus bBaseAtk,1000; }",1000,5000,BF_SHORT|BF_NORMAL;

      use command 

      @petfriendly 1000

      try Attack dummy but effect don't work, my rate is 100% change to get BaseAtk 1000 on pet Royal

    • I think all Autobonus on pet_db.yml is don't work or maybe my mistake, can help me fix this issue thx

    pet.png

  2. On 2/10/2022 at 3:14 PM, parksangkyu said:

    After adding the map of EP19,

    If you move to the map,

    An error occurred while loading the client.

    Is there anyone who can help me?

    26430573_10.png.1d6ee038b24cd31e09a4f0df601bd8a4.png

    128476880_215.png.68692c0b43d4d7d2616462f1f3f9d36a.png

    1223460596_333.png.f0798667cec662862ed1e1aa382a7da2.png

    (A null value has entered the world.....? )

    I'm sorry.

    I am bad at English.

    But please help me.

     

     The client version is using 21-11-10

    i got same problem like you, if you can fix it please help me

  3. Hi im try to make item bonus to Increase Matk

    My Code
     

    case SP_MAXMATK:
    	if(sd->state.lr_flag == 2)
    		break;
    	bonus = status->rhw.matk += val;
    	status->rhw.matk = cap_value(bonus, 0, USHRT_MAX);
    	break;

    This code still Increase Matk right side (1032 in picture)

    I need to Increase Matk left side (290 in picture)

    Thx for advance

    or tell me Matk left side and right side different or not ?

    matk.png

  4. //===== rAthena Script =======================================
    //= Nightmare Biolabs
    //===== Description: =========================================
    //= Nightmare Biolabs Monster Spawn Script.
    //===== Additional Comments: =================================
    //= 1.0 First version. Boss and slaves spawn are assumptions
    //		based on lhz_dun.txt monsters spawn. [Capuche]
    //= 1.1 Changed MvP spawn based on the amount of
    //		monsters killed. [Capuche]
    //============================================================
    
    lhz_dun_n,0,0	monster	Eremes Guille	3208,20,5000,0,"lhz_dun_n::OnRegularDead"
    lhz_dun_n,0,0	monster	Magaleta Sorin	3209,10,5000,0,"lhz_dun_n::OnRegularDead"
    lhz_dun_n,0,0	monster	Catherine Cheiron	3210,15,5000,0,"lhz_dun_n::OnRegularDead"
    lhz_dun_n,0,0	monster	Shecil Damon	3211,20,5000,0,"lhz_dun_n::OnRegularDead"
    lhz_dun_n,0,0	monster	Harword Alt-Eisen	3212,10,5000,0,"lhz_dun_n::OnRegularDead"
    lhz_dun_n,0,0	monster	Seyren Windsor	3213,10,5000,0,"lhz_dun_n::OnRegularDead"
    
    lhz_dun_n,0,0	monster	Randel Lawrence	3226,10,5000,0,"lhz_dun_n::OnRegularDead"
    lhz_dun_n,0,0	monster	Flamel Emule	3227,10,5000,0,"lhz_dun_n::OnRegularDead"
    lhz_dun_n,0,0	monster	Celia Alde	3228,15,5000,0,"lhz_dun_n::OnRegularDead"
    lhz_dun_n,0,0	monster	Chen Liu	3229,15,5000,0,"lhz_dun_n::OnRegularDead"
    lhz_dun_n,0,0	monster	Gertie Wie	3230,15,5000,0,"lhz_dun_n::OnRegularDead"
    lhz_dun_n,0,0	monster	Alphoccio Basil	3231,10,5000,0,"lhz_dun_n::OnRegularDead"
    lhz_dun_n,0,0	monster	Trentini	3232,10,5000,0,"lhz_dun_n::OnRegularDead"
    
    lhz_dun_n,0,0,0	script	lhz_dun_n	-1,{
    	end;
    OnRegularDead:
    	.@mob_id = killedrid;
    	if (.lhz_dun_n[.@mob_id] < 110 && .lhz_dun_n_boss == 0) {
    		.lhz_dun_n[.@mob_id]++;
    		if (.lhz_dun_n[.@mob_id] == 110) {
    			.@mini_boss = .@mob_id + 6 + (.@mob_id > 3213);	// mini boss version ID: regular ID +6 for non-transcendent, +7 for others
    			monster "lhz_dun_n",0,0,"--en--",.@mini_boss,1, "lhz_dun_n::OnMiniDead";
    		}
    	}
    	end;
    OnMiniDead:
    	.@mob_id = killedrid;
    	if (.lhz_dun_n[.@mob_id] < 4 && .lhz_dun_n_boss == 0) {
    		.lhz_dun_n[.@mob_id]++;
    		.@regular = .@mob_id - 6 - (.@mob_id > 3219);
    		if (.lhz_dun_n[.@mob_id] < 4)
    			.lhz_dun_n[.@regular] = 0;	// note: mini boss version can re-spawn when the count of mini boss dead is reached? (currently they don't)
    		else {
    			setarray .@mini_boss_list[0], 3214,3215,3216,3217,3218,3219,3233,3234,3235,3236,3237,3238,3239;
    			for ( .@i = 0; .@i < 13; ++.@i ) {	
    				if (.lhz_dun_n[.@mini_boss_list[.@i]] < 4)
    					end;
    			}
    			// MvP monster seems to only spawn at 12 o'clock
    			monster "lhz_dun_n",140,230,"--en--", F_Rand(3220,3221,3222,3223,3224,3225,3240,3241,3242,3243,3244,3245,3246),1, "lhz_dun_n::OnMyMVPDead";
    			mapannounce "lhz_dun_n", "Voice of Reaper: It's been a while.", bc_map;	// unknown message
    			.lhz_dun_n_boss = 1;
    			for ( .@i = 0; .@i < 13; ++.@i ) {	
    				.@regular = .@mini_boss_list[.@i] - 6 - (.@mini_boss_list[.@i] > 3219);
    				.lhz_dun_n[.@regular] = 0;
    				.lhz_dun_n[.@mini_boss_list[.@i]] = 0;
    			}
    		}
    	}
    	end;
    OnMyMVPDead:
    	initnpctimer;
    	.lhz_dun_n_delay = 0;
    	killmonster "lhz_dun_n", "lhz_dun_n::OnMyMVPDead";
    	mapannounce "lhz_dun_n", "Voice of Reaper: See you soon.", bc_map, "0x00FF00";
    	end;
    OnTimer60000:
    	.lhz_dun_n_delay++;
    	if (.lhz_dun_n_delay < 100) // unknown delay (currently 100 mins)
    		initnpctimer;
    	else {
    		stopnpctimer;
    		.lhz_dun_n_delay = 0;
    		.lhz_dun_n_boss = 0;
    	}
    	end;
    }

    1. How to edit if I need to kill 20 mob then spawn mini boss

    2.How to edit if I need to kill all mini boss 1 round then spawn MVP boss

    3.How to edit if I need to add 5hrs = delay to MVP spawn again  (I confuse on OnTimer60000: and .lhz_dun_n_delay < 100)

    thx for advance

  5. 32 minutes ago, fTakano said:

    Check `doc/script_commands.txt`.

    
    *vip_status(<type>,{"<character name>"})
    
    Returns various information about a player's VIP status.
    
    Valid types:
     VIP_STATUS_ACTIVE - VIP status: true if the player is a VIP or false if not
     VIP_STATUS_EXPIRE - VIP expire timestamp if the player is VIP or 0 if not
     VIP_STATUS_REMAINING - VIP time remaining in seconds
    
    NOTE: This command is only available if the VIP System is enabled.

     

    yes i check it

    but i need to put cooldown my buff , time on buff = time on vip status remaining

    sc_start SC_BATKFOOD,Time2Str(vip_status(VIP_STATUS_REMAINING) + gettimetick(2)),200; 

    i try script but don't work

    ggggg.png

  6. firstcity,223,208,4	script	TEST	10189,{
    	mes "Vip SALLER";
    	next;
    	switch( select( "VIP", "NO") ) {
    		case 1:
    			if (vip_status(VIP_STATUS_ACTIVE)){
    				mes "Your is VIP";
    				end;
    			}
    			vip_time 5;
    			sc_start SC_BATKFOOD,300000,200;
    			sc_start SC_WATKFOOD,300000,200;
    			mes "VIP 5 MIN ACTIVE";
    			end;
    		case 2:
    			end;
    	}
    	end;
    	
    OnPCLoginEvent:
    if (vip_status(VIP_STATUS_ACTIVE)){
    	sc_start SC_BATKFOOD,Time2Str(vip_status(VIP_STATUS_REMAINING) + gettimetick(2)),200;
    	sc_start SC_WATKFOOD,Time2Str(vip_status(VIP_STATUS_REMAINING) + gettimetick(2)),200;
    	end;
    	}
    }

    I need to get Atk food and Matk food on vip status.

    how can i put time remaining correct on vip time remaining ?

    thx for advance!!

    vip.png

  7. On 5/16/2021 at 5:39 PM, lzm said:

    Hi, I think the script need an update, the PR #4195 got some update earlier and now gives error
     

    
    [Warning]: Unexpected type for argument 1. Expected string.
    [Debug]: Data: variable name='@sold_uniqueid' index=0
    [Debug]: Function: uniqueid_delitem
    [Debug]: Source (NPC): Recycler at prontera (163,188)
    [Error]: buildin_uniqueid_delitem: unknown item (unique_id=0).

     

    i got same error like you, item not deleted

  8. 2 hours ago, KidoSang said:

    Fresh script that i just coded, you may try it.

    
    //===== rAthena Script =======================================
    //= Exchange Shop
    //===== By: ==================================================
    //= KidoSang
    //===== Current Version: =====================================
    //= 1.0
    //===== Compatible With: =====================================
    //= rAthena Project
    //===== Description: =========================================
    //= Simple Exchange Shop.
    //===== Additional Comments: =================================
    //= 1.0 Initial script.
    //============================================================
    prontera,156,182,4	script	Exchange Shop	826,{
    	set .RefineItem,1201;					//Refine item id
    	set .RefineLevel,7;						//Refine value
    	setarray .OtherItem[0],909,20,969,10;   //Adding other items for exchange
    	set	.Reward,512;						//Reward
    	
    	mes "You need to give me";
    	
    	.@checking = 0;
    	
    	if (!countitem2(.RefineItem,1,7,0,0,0,0,0)) {
    		.@checking = 1;
    	}
    	
    	mes "+"+.RefineLevel+" "+getitemname(.RefineItem)+" "+countitem2(.RefineItem,1,7,0,0,0,0,0)+"/1";
    		
    	for(.@i=0; .@i < getarraysize(.OtherItem); set .@i,.@i+2){
    		if(countitem(.OtherItem[.@i]) < .OtherItem[.@i+1]){
    			.@checking = 1;
    		}
    		mes "~ "+.OtherItem[.@i+1]+" "+getitemname(.OtherItem[.@i])+" "+countitem(.OtherItem[.@i])+"/"+.OtherItem[.@i+1];		
    	}
    	
    	mes "to exchange "+getitemname(.Reward);
    	
    	.@sel = select("Exchange Please!","No");
    	
    	if(.@sel){
    		if(.@checking){
    			next;
    			mes "Sorry you are missing some items";
    		}else{
    			next;
    			mes "Done!";
    			delitem2(.RefineItem,1,1,7,0,0,0,0,0);
    			for(.@i=0; .@i < getarraysize(.OtherItem); set .@i,.@i+2)
    				delitem .OtherItem[.@i],.OtherItem[.@i+1];
    			getitem .Reward,1;
    		}
    	}
    	end;
    }

     

    Thx @KidoSang 

  9. Hi!! rA i download latest rAthena  (24dad2e)

    i try to use +10 Glorious Fist (ID:1827) with Asura strike , but Asura strike skill have cast!!

    i think bonus2 bFixedCastrate  and bonus2 bVariableCastrate can't use , because i can uncast with Angra Manyu (ID: 1599)

    Glorious Fist (ID:1827) it's original script form rA

    help me fixed or explain me!!

    Thx

  10. 	// Identify all unidentified items
    	getinventorylist;
    	for( set .@i,0; .@i < @inventorylist_count; set .@i, .@i +1 ) {
    		if ( @inventorylist_identify[.@i] == 1 ) continue;
    		delitem2 @inventorylist_id[.@i],1,0,0,0,0,0,0,0;
    		getitem @inventorylist_id[.@i],1;
    		set .@count, .@count +1;
    	}
    	if (.@count) dispbottom .@count +" items identified.";

    i need to know how to identify item without remove random option, i put script on healer npc

    i got crimson saber from Pasana , when i identify item random option will remove

    screenrAthena003.thumb.jpg.e003e10db34835a219a78601f43d4321.jpg

    screenrAthena005.thumb.jpg.d8e42d1847c32f87c0f4f301afb60cef.jpg

    screenrAthena006.thumb.jpg.1618e622a73d5c495fad1fc61b047d3d.jpg

  11. description

                "When combined with ^008800Lush Rose^000000:",
                "All Stats +1 per refine level of ^008080Lush Rose^000000 up to a maximum upgrade level of 10.",
                "Reduces fixed cast time by 50%.",
                "Refine Level ^0000FF+7^000000:",
                "Increases magical damage inflicted on ^6666CCBoss^000000 monsters by 20%.",

    i try make it my self but not work

    28513:18848,{ bonus bFixedCastrate,-50; .@r = getequiprefinerycnt(EQI_HEAD_TOP); .@rate = min(.@r,10); bonus bAllStats,.@rate; if(.@r > 6) bonus bMagicAddClass,Class_Boss,20; }

    help me fixed it

  12. Refine Enchant Npc


    refine enchant Npc like this refine Npc but its not upgrade item

    Only enchant stone can upgrade and degrade!! if failed enchant per level enchant stone is degrade

    Can edit item Material needed!! , You can change enchant stone you needed

    Enchant upgrade to level 10

    you can fixed item to use this Npc

    sorry for my English if you don't understand u can see my video!!

    https://youtu.be/DX67641xFOg


    • Submitter
    • Submitted
      11/04/2017
    • Category
    • Video
      https://www.youtube.com/watch?v=DX67641xFOg&feature=youtu.be
    • Content Author
      rotloso

     

×
×
  • Create New...