Jump to content

lelouchxv

Members
  • Posts

    120
  • Joined

  • Last visited

Posts posted by lelouchxv

  1. show the error at your console so anyone here can help you much better.

    3 hours ago, GubA said:
    // This script causes monsters to drop a red potion when they are killed.
    
    function onMonsterDeath(monster, killer) {
        // Check if the killer is a player.
        if (killer.isPlayer()) {
            // Drop a red potion.
            monster.dropItem(501, 1);
        }
    }
    
    module.exports = {
        onMonsterDeath: onMonsterDeath
    };

    Thank you to help me

     

  2. When im trying to equip this item it says This skill is available only to the player

     

    item script 

      - Id: 30000
        AegisName: Paisley_Valkyrie_Helm
        Name: Paisley Valkyrie Helm
        Type: Armor
        Weight: 1000
        Defense: 5
        Slots: 1
        Jobs:
          All: true
          Novice: false
          SuperNovice: false
        Locations:
          Head_Top: true
        Refineable: true
        View: 2100

     

    but its just the same to this item and the star gladiator can equip this different helm

     

      - Id: 30005
        AegisName: Fusion_Valkyrie_Helm
        Name: Fusion Valkyrie Helm
        Type: Armor
        Weight: 1000
        Defense: 5
        Slots: 1
        Jobs:
          All: true
          Novice: false
          SuperNovice: false
        Locations:
          Head_Top: true
        Refineable: true
        View: 2101

     

    Anyone can help??

     

    i think its a bug

    problem.jpg

    1.jpg

  3. On 1/21/2019 at 1:51 PM, n0tttt said:

    Test this script by Stolao: https://raw.githubusercontent.com/Stolao/Npc_Release/master/Daily_Reward/DailyReward_v2.txt

    You can delete the "normal" rewards and change this message:

    message strcharinfo(0),"[Daily Rewards]: No more rewards remaining this month.";

    Or... you can have better rewards for VIP players. It's up to you.

    How can i delete normal reward because i only want to reward only vip players?

  4. On 9/1/2019 at 6:47 PM, Emistry said:

    hi i tried this its working but when im trying to upgrade a level 4 weapon to +5 its not asking for the protection Item it only ask if the level 4 weapon is already level 5 so basically i cannot use the protection if im gonna upgrade it to +5

     

    Fixed By
    
    Find :
    .@failsafe_rate = 40;

     

    To
    .@failsafe_rate = 60; 
    • Upvote 1
  5. poring_w02,73,82,4	script	Refiner	85,{
    function nZeny;
    function CHose;
    function nItem;
    function nRate;
    function sRater;
    
    	//when use 'Protection Scroll'
    	//-1,-2,-3... -->back to level 1,2,3...(MAX:10) if refine fail
    	//1,2,3... --> reduce level 1,2,3.... if refine fail
    	set @use2,0;
    	set @rate,0;
    	set @typr,0;
    	set @menu2,0;
    	set @use3,0;
    
    
    	if(select("Refine","Close")==2) close;
    	
    	set @typr,select(""+getequipname(1),""+getequipname(2),""+getequipname(3),""+getequipname(4),""+getequipname(5),""+getequipname(6));
    	callsub OnCon;
    
    	sRater();
    	if(select("^000088Refine now^000000","^FF3355Don't refine^000000")==2)
    		close;	
    	callsub OnCon2;
    OnCon:	
    	if(!getequipisenableref(@typr)) {
    		mes "I can't refine this !...";
    		close;
    	}	
    	if(getequiprefinerycnt(@typr)>=10) {
    		mes "It's not possible to refine this better than +10.";
    		close;
    	}	
    	if(Zeny<nZeny(@typr)) {
    		mes "You don't have enough Zeny. Your Zeny is lower than "+nZeny(@typr)+".";
    		close;
    	}
    
    	if( @use3 ) {
    		if( !countitem(@use3) ) {
    			mes "You don't have any "+getitemname(@use3)+".";
    			close;
    		}
    	}
    	else{
    		if( !countitem(set(@use2,nItem(@typr,select("^FF3355Use normal Ore!^000000","^000088Use purified Ore!^000000"))))) {
    			mes "You don't have any "+getitemname(@use2)+".";
    			close;
    		}
    		set @use3,@use2;
    	}
    	return;
    OnCon2:
    	if(.Scroll) {
    		if( @menu2==2 ) {
    			if(!countitem(.Scroll)) {
    				mes "You don't have a Protection Scroll.";
    				close;
    			}
    		}else{
    			if( select("^FF3355Go ahead without protection Scroll!^000000.","^000088Use Protection Scroll!^000000.")==2) {
    				if(!countitem(.Scroll)) {
    					mes "your don't have Protection Scroll.";
    					close;
    				}
    			}else
    				mes " ";
    		}
    
    	}
    	set Zeny,Zeny-nZeny(@typr);
    
    	if(.Scroll) {
    		if( @menu==2 || @menu2==2 )
    			if( @rate >= 100 )
    				mes "100% of success, so automatically cancel using the protection scroll";
    		else
    			delitem .Scroll,1;
    	}
    	delitem @use2,1;
    	
    	if(.Scroll) {
    		if( @menu==2 || @menu2==2 ) {
    			if(@rate<rand(1,100)) {
    				if(.back<0) {
    					getitem2 getequipid(@typr),1,1,-(.back<-10?-10:.back),0,getequipcardid(@typr,0),getequipcardid(@typr,1),getequipcardid(@typr,2),getequipcardid(@typr,3);
    					failedrefitem @typr;
    					if( getequiprefinerycnt(@typr)+1 >= 7 )
    						announce strcharinfo(0)+" tried to refine a +"+getequiprefinerycnt(@typr)+" "+getequipname(@typr)+" to +"+(getequiprefinerycnt(@typr)+1)+" and FAILED!",0;
    					close;
    				}
    				else {
    					set .@D,set(.@D,getequiprefinerycnt(@typr)-.back)<0?0:.@D;
    					if(getequiprefinerycnt(@typr)<=10) {
    						getitem2 getequipid(@typr),1,1,.@D,0,getequipcardid(@typr,0),getequipcardid(@typr,1),getequipcardid(@typr,2),getequipcardid(@typr,3);
    						failedrefitem @typr;
    						if( getequiprefinerycnt(@typr)+1 >= 7 )
    							announce strcharinfo(0)+" tried to refine a +"+getequiprefinerycnt(@typr)+" "+getequipname(@typr)+" to +"+(getequiprefinerycnt(@typr)+1)+" and FAILED!",0;
    						close;
    					}
    					else {
    						while(getequiprefinerycnt(@typr)!=.@D) {
    							successrefitem @typr;
    							if( getequiprefinerycnt(@typr) >= 7 )
    								announce strcharinfo(0)+" tried to refine a +"+( getequiprefinerycnt(@typr) -1 )+" "+getequipname(@typr)+" to +"+getequiprefinerycnt(@typr)+" and SUCCEED!",0;
    						}
    					}
    				}
    			}
    			else {
    				successrefitem @typr;
    				if( getequiprefinerycnt(@typr) >= 7 )
    					announce strcharinfo(0)+" tried to refine a +"+( getequiprefinerycnt(@typr) -1 )+" "+getequipname(@typr)+" to +"+getequiprefinerycnt(@typr)+" and SUCCEED!",0;
    			}
    			CHose(@use2,@menu);
    		}
    	}
    	if(@rate<rand(1,100))
    	{
    		if( getequiprefinerycnt(@typr) >= 7 )
    			announce strcharinfo(0)+" tried to refine a +"+getequiprefinerycnt(@typr)+" "+getequipname(@typr)+" to +"+(getequiprefinerycnt(@typr)+1)+" and FAILED!",0;
    		failedrefitem @typr;
    		close;
    	}
    	else {
    		successrefitem @typr;
    		if( getequiprefinerycnt(@typr) >= 7 )
    			announce strcharinfo(0)+" tried to refine a +"+( getequiprefinerycnt(@typr) -1 )+" "+getequipname(@typr)+" to +"+getequiprefinerycnt(@typr)+" and SUCCEED!",0;
    	}
    	CHose(@use2,@menu);
    
    // functions
    // ---------
    function nZeny {
    	switch(getequipweaponlv(getarg(0))) {
    		case 1:
    			return 500;
    		case 2:
    			return 2000;
    		case 0:
    		case 3:
    		case 4:
    			return 5000;
    		default:
    			return 0;
    	}
    }
    
    function nItem {
    	if(getarg(1)==1){
    		switch(getequipweaponlv(getarg(0))) {
    			case 0:
    				return 985;
    			case 1:
    				return 1010;
    			case 2:
    				return 1011;
    			case 3:
    			case 4:
    				return 984;
    			default:
    				return 0;
    		}
    	} else {
    		switch(getequipweaponlv(getarg(0))) {
    			case 0:
    				return 6241;
    			case 1:
    			case 2:
    			case 3:
    			case 4:
    				return 6240;
    			default:
    				return 0;
    		}
    	}
    }
    
    function nRate {
    	function aRate {
    		return getarg(getarg(0,0)+1,0);
    	}
    	switch(getequipweaponlv(getarg(0))) {
    		case 0:
    			return aRate(getarg(1),
    			100,100,100,100,60,
    			40,40,20,20,10,
    			50,30,20,10,10,
    			10,10,10,10,10);
    			
    		case 1:
    			return aRate(getarg(1),
    			100,100,100,100,100,
    			100,100,60,40,20,
    			70,70,50,50,30,
    			30,20,20,10,10);
    			
    		case 2:
    			return aRate(getarg(1),
    			100,100,100,100,100,
    			100,60,40,20,20,
    			70,50,50,30,30,
    			20,20,10,10,10);
    			
    		case 3:
    			return aRate(getarg(1),
    			100,100,100,100,100,
    			60,50,20,20,20,
    			50,50,30,30,20,
    			20,10,10,10,10);
    			
    		case 4:
    			return aRate(getarg(1),
    			100,100,100,100,60,
    			40,40,20,20,10,
    			50,30,30,20,20,
    			10,10,10,10,10);
    	}
    }
    
    function sRater {
    	mes "[Successful rate]["+set(@rate,(nRate(@typr,getequiprefinerycnt(@typr))+(@use2>6000?10:0)))+"%]";
    	return;
    }
    
    function CHose {
    	set @menu2,@menu2?@menu2:@menu;
    	set @use3,@use3?@use3:@use2;
    	next;
    	sRater;
    	if( select("[^000088continue^000000]","[^FF3355End^000000]") == 2 )
    		close;
    	else
    		callsub OnCon,1;
    	callsub OnCon2;
    }
    
    
    OnInit:
    	set .Scroll,7199;//'Protection Scroll' item id
    	set .back,0;
    	end;
    }

     

  6. 7 hours ago, taishai said:

    yup, but what i need to write to disable the effect of a 2nd equipped Elemental Sword? to avoid the massive bolt in assassin cross? 

    or what other nerf option can i do?

    ;_;

    Ohh my bad i thought you couldn't find the item elemental sword on your files.

  7. 20 hours ago, AinsLord said:

    i dont know which thread should i post this so i asked here in general support

    so i dunno why but guild emblem is not showing during WOE/GVG

    is this some kind of source needed?

    image.png.48a43f5bc58f8188c0181b9148146df2.png

    here is the screenshot woe is active but guild emblem is not showing

    thnx for the help appreciate it

    image.png.e3661e42c165809b17343bc6e113933c.png

     

    i think you can only see emblem on top if you are inside the castle?

  8. On 4/22/2021 at 12:56 AM, celeron0134 said:

    When a character reached 99/50 talk to this NPC with a pub saying level 99 rewarder

    1. Trans Characters can't talk to this NPC ( only 2ndJobs no extended jobs except for super novice )

    2. Per Job Class ( so that all class are usable in game , ) example if(knight = lvl 99) getitem 501,1 & 502,1.. if(monk = lvl 99 getitem 503,1 & 504,1)

    it will be different rewards for each class who reached 99

    3. there is no limit but you can't repeat if you already claimed your rewards.. tho if you make another 99 again on your account.. you can still claim the rewards

    4. Announce to the whole server if you claimed the Reward,, also announce to the Whole Server if someone reaches 99

    thanks 

     

    Try to use search function first before posting  BTW  try the the topic below 

     

  9. On 4/17/2021 at 3:43 PM, DorekoNeko said:

    Hello there.

     

    I was wondering where can I find a PRE-Renewal client. The ones I can find right now have a lot of menues from the newer Ragnarok that I don't recognize (Cash, Booking, Battlegrounds, etc...).

    I tried with kRO_FullClient_20210406 and I see icons instead of the old buttons. Also tried with kRO_FullClient_20180813 and I see the menu buttons but they still have those things I don't recognize like Cash, Booking, etc...

     

    Also... can anyone tell me if I can use a 2015-11-04aRagexe with a lower version of the game? (PRE version)

    if you dont want to see New buttons you can just diff it?

  10. // =================== MVP KILL ===============
    // ====== MVP will drop an item only ==========
    // ====== at specific maps. ===================
    // ====== if players are on a party ===========
    // ====== item will be given randomly =========
    // ====== to any online party members =========
    // ============== by : pajodex ================
    // ==== Additional Comments: ==================
    // 1.0 - Initial release (MVP Kill standalone)
    // 1.1 - used setarray function to optimize script
    // 1.2 - Added modified Euphy MVP ladder
    //		 slight rework on the script
    // 1.3 - Fixed on reset function (Report by: celeron0134)
    // ============================================
    -	script	#mvp_kill	-1,{
    
    OnInit:
    	setarray .p_rwd, 7615,1;	// Party reward <item>,<amount>
    	setarray .s_rwd, 7615,1;	// Solo reward <item>,<amount>
    	.chance = 100;	// Drop rate chances %
    	.gm = 100;  // Prevents gm level and above to trigger the event
    	// MVP Map list
    	setarray .t_maps$[0],"moc_pryd06","lhz_dun03","gld2_prt","abbey02","ayo_dun02","lhz_dun04","ra_fild02","xmas_fild01","dic_dun02","beach_dun","iz_dun05","tur_dun04","lhz_dun02","jupe_core","moc_fild22","anthell02","odin_tem03","gon_dun03","gef_fild02","thana_boss","gef_fild10","ein_dun02","gef_fild14","moc_pryd04","dew_dun01","in_sphinx5","niflheim","moc_fild17","xmas_dun02","ice_dun03","kh_dun02","treasure02","moc_prydn2","pay_dun04","ra_san05","mosk_dun03","ama_dun03","thor_v03","gef_dun01","mjolnir_04","abyss_03","dic_dun03","prt_sewb4","pay_fild11","gef_dun02","gl_chyard","ra_fild03","ra_fild04","ve_fild01","ve_fild02","lou_dun03","prt_maze03","bra_dun02";
    	end;
    
    OnNPCKillEvent:
    if (getgmlevel() >= .gm ) end; // If gm = event wont happen
    if ( getmonsterinfo( killedrid, MOB_MVPEXP )) {
    	for (.@a = 0; .@a < getarraysize(.t_maps$); .@a++) {
    	if ( strcharinfo(3) == instance_mapname("06guild_01") ) end; 
    	if ( strcharinfo(3) == instance_mapname("force_1-1") ) end;
    	if ( strcharinfo(3) == .t_maps$[.@a]) { 
    			if ( getcharid(1) ) {
    				getpartymember getcharid(1), 1;
    				getpartymember getcharid(1), 2;
    				for ( .@i = 0; .@i < $@partymembercount; .@i++ ) {
    					if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { 
    						.@partymemberaid[.@c] = $@partymemberaid[.@i];
    						.@c++;
    					}
    				}
    				if (rand(100) < .chance) getitem .p_rwd[0], .p_rwd[1], .@partymemberaid[ rand( .@c ) ];
    				announce "[ System ] : Player ["+ strcharinfo(0) +"] of party ["+ strcharinfo(1) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" at "+ strcharinfo(3), bc_all;
    			}
    			else {
    				if (rand(100) < .chance) getitem .s_rwd[0], .s_rwd[1];
    				announce "[ System ] : Player ["+ strcharinfo(0) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" alone at "+ strcharinfo(3), bc_all;
    			}
    		MVPKills = MVPKills+1;
    		dispbottom "---------------------------------------------------";
    		dispbottom "You killed a total of "+MVPKills+" MVP"+((MVPKills == 1)?"":"s")+".";
    		dispbottom "---------------------------------------------------";
    		end;
    		}
    	}
    	if ( getcharid(1) ) {
    		announce "[ System ] : Player ["+ strcharinfo(0) +"] of party ["+ strcharinfo(1) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" at "+ strcharinfo(3), bc_all;
    		} 
    		else {
    		announce "[ System ] : Player ["+ strcharinfo(0) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" alone at "+ strcharinfo(3), bc_all;
    		}
    	end;
    	}
    
    	
    }
    mall01,89,91,6	script	MVP Ladder#Euphy	685,{
    	mes "[Rank MVP]";
    	mes "Hello.";
    	mes "What are you doing here";
    	next;
    	switch(select("Check Ranking.",	"My stats.",( getgmlevel() >= 99 ) ? "RESET":"","Nothing...")) {
    		case 1:
    			mes "[Rank MVP]";
    			query_sql("SELECT char_id, CAST(`value` AS SIGNED) FROM `char_reg_num` WHERE `key` = 'MVPKills' ORDER BY CAST(`value` AS SIGNED) DESC LIMIT 20",.@cid,.@value);
    			for(set .@i,0; .@i<getarraysize(.@cid); set .@i,.@i+1) {
    				query_sql("SELECT `name` FROM `char` WHERE char_id = "+.@cid[.@i]+";",.@j$);
    				set .@name$[.@i], .@j$;
    			}
    			if (!getarraysize(.@cid))
    				mes "The rankings are empty.";
    			else for(set .@i,0; .@i<getarraysize(.@cid); set .@i,.@i+1)
    			mes "["+(.@i+1)+"] "+.@name$[.@i]+" ~ "+.@value[.@i]+" kills";
    			close;
    			
    		case 2:
    			mes "[Rank MVP]";
    			mes "You killed "+((MVPKills)?"^0055FF"+MVPKills:"no")+"^000000 MVP"+((MVPKills == 1)?".":"s.");
    			close;
    		case 3:
    			if ( select( "Confirm","Cancel" ) == 1 ) {
    				query_sql("UPDATE `char_reg_num` SET `value` = '0' WHERE `key` ='MVPKills'");
    				addrid(0);
    				MVPKills = 0;
    			}
    			close;
    		default:		
    			close;
    	}
    	
    OnInit:
    		waitingroom "MVP LADDER!",0;
    		end;
    }

    can someone modify this even if on a party the MVP will only get the reward

  11. function	script	F_RBox	{
    
    	// change Item ID here
    	setarray @i1[0],607,608; // Common Items 
    	setarray @i2[0],512,513; // Rare Items
    	setarray @i3[0],514,515; // Super Rare Items
    
    	set @i1rand,rand( getarraysize(@i1) ); // Randomize Common Items; just change max amount if you add items
    	set @i2rand,rand( getarraysize(@i2) ); // Randomize Rare Items; just change max amount if you add items
    	set @i3rand,rand( getarraysize(@i3) ); //Randomize Super Rare Items; just change max amount if you add items
    
    	.chance = rand(100);
    
    		// Super Rare Item 1%
    		if (.chance == 1) {
    			getitem @i3[@i3rand],1;
    			announce "["+strcharinfo(0)+"] won a ["+getitemname(@i3[@i3rand])+"] from the Super Rare Box.",0;
    			end;
    		} 
    
    		// Rare Item 10%
    		else if (.chance <= 11 && .chance >= 1){
    			getitem @i2[@i2rand],1;
    			announce "["+strcharinfo(0)+"] won a ["+getitemname(@i2[@i2rand])+"] from the Rare Item Box.",0;
    			end;
    		} 
    
    		// Common Items
    		else {
    			getitem @i1[@i1rand],1;
    	end; }
    }

    Ex. #pvppoints #HourlyPoints #Cashpoints

×
×
  • Create New...