Jump to content

Kyroad

Members
  • Posts

    114
  • Joined

  • Last visited

Posts posted by Kyroad

  1. Mangyayari lang yan Kung gagawin mo pre-renewal server mo. disable mo xa sya. gawin mo xa  pre-renewal pra magbago yung formula. kaw bahala kung didisable mo yung ibang renewal stuff. 

     

    <renewal.h>

     

    /**
    * @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

  2. Is this script exists? An npc that similar to Annieruru's mission board but the npc not configured by gm, only player and the reward only comes from the player who configured the mission. The player can add items that he/ she needs and make it a mission/quest. Another player can check the mission/quest, he can accept it or give up the mission/quest, if the mission is completed, it will delete the mission and the npc give the reward to the player that complete it, and delete to the player that configured it. The requirements in the mission will go to the one who configured it.

  3. in atcommand.c find:

    	//wrong or no entry
    	clif_displaymessage(fd,msg_txt(sd,460)); // Please enter a valid language (usage: @langtype <language>).
    	clif_displaymessage(fd,msg_txt(sd,464)); // ---- Available languages:
    	while(test!=-1){ //out of range
    		test = msg_checklangtype(i,false);
    		if(test == 1)
    			clif_displaymessage(fd,msg_langtype2langstr(i));
    		i++;
    	}
    	return -1;
    }
    

    after that insert these lines:

     

    /*==========================================
    * @afk
    *------------------------------------------*/
    ACMD_FUNC(afk) {
     
    		nullpo_retr(-1, sd);
    
    				if(sd->bl.m == map_mapname2mapid("prontera")) {
    				clif_displaymessage(fd, "@afk is not allowed on this map.");
    				return 0;
    				}
    
    				if( pc_isdead(sd) ) {
    				clif_displaymessage(fd, "Cannot @afk if you are dead.");
    				return -1;
    				}
    
    				if( map[sd->bl.m].flag.autotrade == battle_config.autotrade_mapflag )
    				{
    
    				if(map[sd->bl.m].flag.pvp  || map[sd->bl.m].flag.gvg){
    				clif_displaymessage(fd, "You may not use the @afk maps PVP or GVG.");
    				return -1;}
    
    						sd->state.autotrade = 1;
    						sd->state.monster_ignore = 1;
    						pc_setsit(sd);
    						skill_sit(sd,1);
    						clif_sitting(&sd->bl);
    						clif_changelook(&sd->bl,LOOK_HEAD_TOP,471);
                            clif_specialeffect(&sd->bl, 234,AREA);                       
    						if( battle_config.afk_timeout )
    						{
    								int timeout = atoi(message);
    								status_change_start(NULL, &sd->bl, SC_AUTOTRADE, 10000,0,0,0,0, ((timeout > 0) ? min(timeout,battle_config.afk_timeout) : battle_config.afk_timeout)*60000,0);
    						}
    						clif_authfail_fd(fd, 15);
    				} else
    						clif_displaymessage(fd, "@afk is not allowed on this map.");
    		return 0;
    }
    

    then find:

    		ACMD_DEF(langtype),
    

    after that insert this line:

    		ACMD_DEF(afk)
    

    in battle.c find:

    	{ "at_timeout",                         &battle_config.at_timeout,                      0,      0,      INT_MAX,        },
    

    then after that insert this line:

    	{ "afk_timeout",                        &battle_config.afk_timeout,                     0,      0,      INT_MAX,        },
    

    in battle.h find:

    	int at_timeout;
    

    then after that insert this line:

    	int afk_timeout;
    

    in misc.conf find:

     // 1 = Yes
     // 2 = Yes, when there are unread mails
     mail_show_status: 0
    

    then after that insert these lines:

    
    // Set this to the amount of minutes afk chars will be kicked from the server.
    afk_timeout: 0
    

     

    then after that recompile your server. Hope these helps you

  4. Just replace this red one:

     

     22000,_yyvm,Enrage Valkyrie Manteau,5,5000,,400,,2,,1,0xFFFFFFFF,7,2,4,,0,1,0,{ bonus bFlee,5; bonus bAllStats,5; if(BaseClass==Job_Mage||BaseClass==Job_Archer||BaseClass==Job_Thief||BaseJob==Job_Gunslinger||BaseClass==Job_Taekwon) bonus bFlee2,6+getrefine()*5; else if(BaseClass==Job_Swordman||BaseClass==Job_Merchant||BaseClass==Job_Acolyte||BaseJob==Job_Ninja) bonus bShortWeaponDamageReturn,6+getrefine()*5; },{},{}

     

    7 is considered as  normal jobs,upper jobs and baby jobs but cannot use by 3rd jobs.

     

    Use these numbers for combinations:

    1:Normal = only normal job can use the item

    2:Trans/Upper = only Trans job can use the item

    4:Baby= only Baby job can use the item

    8:Third= only Third job can use the item

     

    Example:

    I want my custom items use by normal jobs and trans only.

     

    I use 1 + 2 = 3

     

    then i replace 7 into 3

     

      22000,_yyvm,Enrage Valkyrie Manteau,5,5000,,400,,2,,1,0xFFFFFFFF,3,2,4,,0,1,0,{ bonus bFlee,5; bonus bAllStats,5; if(BaseClass==Job_Mage||BaseClass==Job_Archer||BaseClass==Job_Thief||BaseJob==Job_Gunslinger||BaseClass==Job_Taekwon) bonus bFlee2,6+getrefine()*5; else if(BaseClass==Job_Swordman||BaseClass==Job_Merchant||BaseClass==Job_Acolyte||BaseJob==Job_Ninja) bonus bShortWeaponDamageReturn,6+getrefine()*5; },{},{}

     

    Hope this helps

×
×
  • Create New...