Jump to content

Mutate

Members
  • Posts

    12
  • Joined

  • Last visited

Posts posted by Mutate

  1. 6 hours ago, Chaos92 said:
    
    #define RENEWAL

    Disable this for pre-renewal setting. Thats why. You're still in renewal. If you really wanna use pre-renewal, then disable all the #define RENEWAL in list

    // Copyright (c) rAthena Dev Teams - Licensed under GNU GPL
    // For more information, see LICENCE in the main folder
    
    #ifndef CONFIG_RENEWAL_HPP
    #define CONFIG_RENEWAL_HPP
    
    //quick option to disable all renewal option, used by ./configure
    #define PRERE
    #ifndef PRERE
    /**
     * rAthena configuration file (http://rathena.org)
     * For detailed guidance on these check http://rathena.org/wiki/SRC/config/
     **/
    
    
    /**
     * @INFO: This file holds general-purpose renewal settings, for class-specific ones check /src/config/classes folder
     **/
    
    /// Game renewal server mode
    /// (disable by commenting the line)
    ///
    /// Leave this line to enable renewal specific support such as renewal formulas
    //define RENEWAL
    
    /// Renewal cast time
    /// (disable by commenting the line)
    ///
    /// Leave this line to enable renewal casting time algorithms and enable fixed cast bonuses.
    /// See also default_fixed_castrate in conf/battle/skill.conf for default fixed cast time (default is 20%).
    /// Cast time is altered be 2 portion, Variable Cast Time (VCT) and Fixed Cast Time (FCT).
    /// By default FCT is 20% of VCT (some skills aren't)
    /// - VCT is decreased by DEX * 2 + INT.
    /// - FCT is NOT reduced by stats, reduced by equips or buffs.
    /// Example:
    ///  On a skill whos cast time is 10s, only 8s may be reduced. the other 2s are part of a FCT
    //define RENEWAL_CAST
    
    /// Renewal drop rate algorithms
    /// (disable by commenting the line)
    ///
    /// Leave this line to enable renewal item drop rate algorithms
    /// While enabled a special modified based on the difference between the player and monster level is applied
    /// Based on the http://irowiki.org/wiki/Drop_System#Level_Factor table
    //define RENEWAL_DROP
    
    /// Renewal exp rate algorithms
    /// (disable by commenting the line)
    ///
    /// Leave this line to enable renewal item exp rate algorithms
    /// While enabled a special modified based on the difference between the player and monster level is applied
    //define RENEWAL_EXP
    
    /// Renewal level modifier on damage
    /// (disable by commenting the line)
    ///
    // Leave this line to enable renewal base level modifier on skill damage (selected skills only)
    //define RENEWAL_LVDMG
    
    /// Renewal ASPD [malufett]
    /// (disable by commenting the line)
    ///
    /// Leave this line to enable renewal ASPD
    /// - shield penalty is applied
    /// - AGI has a greater factor in ASPD increase
    /// - there is a change in how skills/items give ASPD
    /// - some skill/item ASPD bonuses won't stack
    //define RENEWAL_ASPD
    
    /// Renewal stat calculations
    /// (disable by commenting the line)
    ///
    /// Leave this line to enable renewal calculation for increasing status/parameter points
    //define RENEWAL_STAT
    
    #endif
    
    #endif /* CONFIG_RENEWAL_HPP */

    Did this, Clean > Build > Run the server , still mob spawned

  2. @Chaos92 already added as per screenshot,
    also restarted couple of times as written above, still the same issue ?

    // Copyright (c) rAthena Dev Teams - Licensed under GNU GPL
    // For more information, see LICENCE in the main folder
    
    #ifndef CONFIG_RENEWAL_HPP
    #define CONFIG_RENEWAL_HPP
    
    //quick option to disable all renewal option, used by ./configure
    #define PRERE
    #ifndef PRERE
    /**
     * rAthena configuration file (http://rathena.org)
     * For detailed guidance on these check http://rathena.org/wiki/SRC/config/
     **/
    
    
    /**
     * @INFO: This file holds general-purpose renewal settings, for class-specific ones check /src/config/classes folder
     **/
    
    /// Game renewal server mode
    /// (disable by commenting the line)
    ///
    /// Leave this line to enable renewal specific support such as renewal formulas
    #define RENEWAL
    
    /// Renewal cast time
    /// (disable by commenting the line)
    ///
    /// Leave this line to enable renewal casting time algorithms and enable fixed cast bonuses.
    /// See also default_fixed_castrate in conf/battle/skill.conf for default fixed cast time (default is 20%).
    /// Cast time is altered be 2 portion, Variable Cast Time (VCT) and Fixed Cast Time (FCT).
    /// By default FCT is 20% of VCT (some skills aren't)
    /// - VCT is decreased by DEX * 2 + INT.
    /// - FCT is NOT reduced by stats, reduced by equips or buffs.
    /// Example:
    ///  On a skill whos cast time is 10s, only 8s may be reduced. the other 2s are part of a FCT
    #define RENEWAL_CAST
    
    /// Renewal drop rate algorithms
    /// (disable by commenting the line)
    ///
    /// Leave this line to enable renewal item drop rate algorithms
    /// While enabled a special modified based on the difference between the player and monster level is applied
    /// Based on the http://irowiki.org/wiki/Drop_System#Level_Factor table
    #define RENEWAL_DROP
    
    /// Renewal exp rate algorithms
    /// (disable by commenting the line)
    ///
    /// Leave this line to enable renewal item exp rate algorithms
    /// While enabled a special modified based on the difference between the player and monster level is applied
    #define RENEWAL_EXP
    
    /// Renewal level modifier on damage
    /// (disable by commenting the line)
    ///
    // Leave this line to enable renewal base level modifier on skill damage (selected skills only)
    #define RENEWAL_LVDMG
    
    /// Renewal ASPD [malufett]
    /// (disable by commenting the line)
    ///
    /// Leave this line to enable renewal ASPD
    /// - shield penalty is applied
    /// - AGI has a greater factor in ASPD increase
    /// - there is a change in how skills/items give ASPD
    /// - some skill/item ASPD bonuses won't stack
    #define RENEWAL_ASPD
    
    /// Renewal stat calculations
    /// (disable by commenting the line)
    ///
    /// Leave this line to enable renewal calculation for increasing status/parameter points
    #define RENEWAL_STAT
    
    #endif
    
    #endif /* CONFIG_RENEWAL_HPP */

    Pre-renewal settings , Compiled before starting server, still the mobs are spawning

  3. 13 hours ago, buraquera said:

    This script is not  complete... Post it full....

    Anyway, for what i can see it is already set this way u want
     

    
    if ( distance(.@x, .@y, @x, @y) > 15 || @map$ != .@map$ ) {

    I dunno where  theses scope varibles came from but assuming its getmapxy from mvp killer, it  means the party member shouuld be on 14 cells distance and also in the same map (obviously)

    Unfortunately i cannot share the whole script

     

  4. Hi Everyone,

    I'm trying to implement a condition

    - if the party member is not within 14 cell of the mvp killer ( that player will not receive a point ) 

    Thank you in advance

    here is the part of my code 

    OnNPCKillEvent:
    	if( getgmlevel() >= 60 ) end; // if gm.. event wont trigger
    	for (.@i = 0; .@i < getarraysize(.mvp_id); .@i += 3 ) {
    		if( killedrid == .mvp_id[.@i] && compare( strcharinfo(3), .maps$[.@i/3] ) ) {
    			.@solopoints = .mvp_id[.@i+1];
    			.@partypoints = .mvp_id[.@i+2];
    			if( .haltevent ) { // temporarily disable while giving away rewards to avoid bugs
    				dispbottom "Event is still giving away rewards. This kill wont not recorded.", 0xff0000;
    				end;
    			}
    			query_sql( "INSERT INTO `mvp_ladder_rank` SET `char_id`='"+ getcharid(0) +"', `name`='"+ strcharinfo(0) +"', `day_kills` = '1', `week_kills` = '1', `month_kills` = '1', `all_kills` = '1' ON DUPLICATE KEY UPDATE `day_kills` = `day_kills` + 1, `week_kills`=`week_kills` + 1, `month_kills` = `month_kills` + 1,`all_kills` = `all_kills` + 1" );
    			if( !getcharid(1) ) {
    				if(.Option&8 && rand(100) < .chance) 
    				{
    					.@annouce = true;
    					for (.@p = 0; .@p < getarraysize(.solo_reward); .@p+=2)
    						getitem .solo_reward[.@p], .solo_reward[.@p+1];
    				}
    				if(.Option&16) {
    					#MVPPOINTS += .@solopoints;	
    					dispbottom "You got "+ .@solopoints +" MVP Points. Total: "+ #MVPPOINTS;
    				}	
    				if ( .@annouce )
    					announce "[ "+ strcharinfo(0) +" ] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" and received an item.", bc_all;
    				else
    					announce "[ "+ strcharinfo(0) +" ] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" alone at "+ strcharinfo(3), bc_all;
    			} else {
    				if ( rand(100) < .chance )
    					.@chance = true;
    				if ( .@chance )
    					announce "[ System ] : Player ["+ strcharinfo(0) +"] of party ["+ strcharinfo(1) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" and received an item.", bc_all;
    				else
    					announce "[ System ] : Player ["+ strcharinfo(0) +"] of party ["+ strcharinfo(1) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" at "+ strcharinfo(3), bc_all;
    				getpartymember getcharid(1), 1;
    				getpartymember getcharid(1), 2;
    				for ( .@q = 0; .@q < $@partymembercount; ++.@q ) {
    					
    					if ( isloggedin( $@partymemberaid[.@q], $@partymembercid[.@q] ) ) {
    						.@count_online++;
    						
    						if(.Option&16) {
    							attachrid $@partymemberaid[.@q];
    							getmapxy ( @map$, @x, @y, BL_PC );
    							if ( distance(.@x, .@y, @x, @y) > 15 || @map$ != .@map$ ) {
    								#MVPPOINTS += .@solopoints;	
    								dispbottom "You got "+ .@solopoints +" MVP Points. Total: "+ #MVPPOINTS;								
    								if ( .@annouce ) 
    									announce "[ "+ strcharinfo(0) +" ] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" and received an item.", bc_all;
    								else
    									announce "[ "+ strcharinfo(0) +" ] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" alone at "+ strcharinfo(3), bc_all;
    								
    							}
    							else 
    							#MVPPOINTS += .@partypoints / $@partymembercount;
    							dispbottom "--------------------------------------------";
    							dispbottom "You got "+ (.@partypoints / $@partymembercount) +" MVP Points. Total: "+ #MVPPOINTS;
    							dispbottom "--------------------------------------------";
    							
    							.@partymemberaid[.@c] = $@partymemberaid[.@q];
    							++.@c;
    							
    						}
    					}
    					
    				}
    				if ( .Option&8 && .@chance ) {
    					for (.@p = 0; .@p < getarraysize(.party_reward); .@p+=2)
    						getitem .party_reward[.@p], .party_reward[.@p+1];
    				}
    			}
    			end;
    		}
    	}
    	end;

     

×
×
  • Create New...