Jump to content

Bringer

Members
  • Content Count

    148
  • Joined

  • Last visited

Posts posted by Bringer


  1.  

     

    WHEN USING OBB WHEN INVENTORY is full remove restriction

     

    //src/map/pc.c::pc_isUseitem

    1477: Item cannot be opened when inventory is full

     

     

    How to do it?

    That message happens when you have 100 items in inventory.

    You can change the MAX_INVENTORY setting, but client won't support it...

    It's anyhow common among players to have some free slots in inventory while opening boxes

    how about can still open even you have 100 items the items from obb/opb/gift will be drop on the floor like aeis setting on eathena

  2.  

     

    How i can make it Per Summon 2 Monster by Level ?

     

    Go to skill_check_condition_castend at skill.c and look for case AM_CANNIBALIZE:

    Below that you will see 

    maxcount = 6-skill_lv;
    

    change it to 

    maxcount = 2;
    

    save and recompile.

    can you check my Private Msg to you sir?


  3.  

     

    To set a new skill for any job you just have to navigate to your db/(pre-)re folder and edit skill_db.conf

     

    That file handles what skill is being used by whom.

     

    Study how the AM_CANNIBALIZE works in the source and use it as a base to start a new skill, or edit that one, but you will have to set conditions everywhere if the base class of an user is alchemist or priest, and as far as I know, you won't be able to edit the skill icon to show two different sprites.

    can you help me?

    I've never done a new custom skill, just edited existing ones so I don't know the preliminar steps. Also you need to be more specific. Check for a tutorial in how to add a new custom skill.

    How i can make it Per Summon 2 Monster by Level ?


  4. To set a new skill for any job you just have to navigate to your db/(pre-)re folder and edit skill_db.conf

     

    That file handles what skill is being used by whom.

     

    Study how the AM_CANNIBALIZE works in the source and use it as a base to start a new skill, or edit that one, but you will have to set conditions everywhere if the base class of an user is alchemist or priest, and as far as I know, you won't be able to edit the skill icon to show two different sprites.

    can you help me?

  5. 	case AM_SPHEREMINE:
    	case AM_CANNIBALIZE:
    		{
    			int summons[5] = { MOBID_G_MANDRAGORA, MOBID_G_HYDRA, MOBID_G_FLORA, MOBID_G_PARASITE, MOBID_G_GEOGRAPHER };
    			int class_ = skill_id==AM_SPHEREMINE?MOBID_MARINE_SPHERE:summons[skill_lv-1];
    			int ai = (skill_id == AM_SPHEREMINE) ? AI_SPHERE : AI_FLORA;
    			struct mob_data *md;
    
    			// Correct info, don't change any of this! [celest]
    			md = mob_once_spawn_sub(src, src->m, x, y, status_get_name(src), class_, "", SZ_SMALL, ai);
    			if (md) {
    				md->master_id = src->id;
    				md->special_state.ai = (enum mob_ai)ai;
    				if( md->deletetimer != INVALID_TIMER )
    					delete_timer(md->deletetimer, mob_timer_delete);
    				md->deletetimer = add_timer (gettick() + skill_get_time(skill_id,skill_lv), mob_timer_delete, md->bl.id, 0);
    				mob_spawn (md); //Now it is ready for spawning.
    			}
    		}
    		break;
    

     

    		case AM_CANNIBALIZE:
    		case AM_SPHEREMINE: {
    			int c=0;
    			int summons[5] = { MOBID_G_MANDRAGORA, MOBID_G_HYDRA, MOBID_G_FLORA, MOBID_G_PARASITE, MOBID_G_MANDRAGORA };
    			int maxcount = (skill_id==AM_CANNIBALIZE)? 6-skill_lv : skill_get_maxcount(skill_id,skill_lv);
    			int mob_class = (skill_id==AM_CANNIBALIZE)? summons[skill_lv-1] :MOBID_MARINE_SPHERE;
    			if(battle_config.land_skill_limit && maxcount>0 && (battle_config.land_skill_limit&BL_PC)) {
    				i = map_foreachinmap(skill_check_condition_mob_master_sub, sd->bl.m, BL_MOB, sd->bl.id, mob_class, skill_id, &c);
    				if(c >= maxcount ||
    					(skill_id==AM_CANNIBALIZE && c != i && battle_config.summon_flora&2))
    				{	//Fails when: exceed max limit. There are other plant types already out.
    					clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
    					return false;
    				}
    			}
    			break;
    		}
    

     

    How i can make it Per Summon 2 Monster by Level ?


  6. Are you talking about a treasure hunter SCRIPT? I don't quite understand what you mean by shop.

     

    I made a script that is a treasure hunting script, please review the whole post, it contains @commands to aid you in executing this Treasure Hunt event.

     

     

    If you want it to be castle drops, please supply me the ID's. (I put a randomized list of a whole bunch of different treasure chests so I MAY have included the Castle drops without intentionally doing so.)

     

    http://herc.ws/board/topic/12367-event-treasure-hunter/

    this script use on rathena?

  7.  

     

    requesting for Sniper nonstop Sonic Blow When Using Injustice Card or Iset When under status of Hunter Spirit

     

    On src/map/skill.c

     

     

    if (skill == AS_SONICBLOW)
    pc_stop_attack(sd); //Special case, Sonic Blow autospell should stop the player attacking.
    

    What Code i need to put ONLY Work For Sniper ?

    try this, i dont know if it will work
    if (skill == AS_SONICBLOW)
        if( sc && sc->data[SC_SOULLINK] && sc->data[SC_SOULLINK]->val2 != SL_HUNTER )
            pc_stop_attack(sd); //Special case, Sonic Blow autospell should stop the player attacking.
    
    nothing happen

  8. requesting for Sniper nonstop Sonic Blow When Using Injustice Card or Iset When under status of Hunter Spirit

     

    On src/map/skill.c

     

    if (skill == AS_SONICBLOW)

    pc_stop_attack(sd); //Special case, Sonic Blow autospell should stop the player attacking.

     

    What Code i need to put ONLY Work For Sniper ?


  9. what i mean is this part

    	case 3:
    		mes "[MVP Ladder]";
    		mes "Last month ranking";
    		if ( gettime(6) > 10 )
    			.@store_date$ = gettime(7) +"-"+( gettime(6) -1 )+"-00 00:00:00";
    		else if ( gettime(6) > 1 )
    			.@store_date$ = gettime(7) +"-0"+( gettime(6) -1 )+"-00 00:00:00";
    		else
    			.@store_date$ = ( gettime(7) -1 ) +"-12-00 00:00:00";
    		.@nb = query_sql( "select name, points from mvp_rank_archive where `date` = '"+ .@store_date$ +"' order by pos", .@name$, .@count );
    		if ( !.@nb ) {
    			mes "no entry";
    			close;
    		}
    		for ( .@i = 0; .@i < .@nb; .@i++ )
    			mes ( .@i +1 )+". "+ .@name$[.@i] +" -> "+ .@count[.@i] +" points";
    		close;
    	}
    	close;
    

    i need to edit that part all gettime (4) right? 

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.