Jump to content

Jarek

Members
  • Posts

    143
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Jarek

  1. You can define itemshop:

    -%TAB%itemshop%TAB%<NPC Name>%TAB%<sprite id>,<costitemid>{:<discount>},<itemid>:<price>{,<itemid>:<price>...}

    where costitemid = 6379

    And then just callshop this itemshop in case 4

    callshop "<name>",<option>;

    callshop "<name>",<option>;

     

  2. I think this could be done via script with 'OnPCBaseLvUpEvent' label, rough outline:

    OnPCBaseLvUpEvent:
    
    	if (BaseLevel = 50) { script of choosing 1st job here }
    	else if (BaseLevel = 100) { script of choosing 2nd job here }
    	else if (BaseLevel = 200) { up to Trans script }
    
    	end;

     

  3. skill_cast_db.txt

    //-- WZ_METEOR
    83,9600,2000:3000:3000:4000:4000:5000:5000:6000:6000:7000,0,2000:3000:3000:4000:4000:5000:5000:6000:6000:7000,5000,0,2400

    2000:3000:3000:4000:4000:5000:5000:6000:6000:7000

    This is number of meteors at skill level

  4. src\map\skil.cpp

    int skill_counter_additional_effect
    ...
    		if( (attack_type&(BF_WEAPON|BF_SHORT)) == (BF_WEAPON|BF_SHORT) ) {
    			sp += sd->bonus.sp_gain_value;
    			sp += sd->sp_gain_race[status_get_race(bl)] + sd->sp_gain_race[RC_ALL];
    			hp += sd->bonus.hp_gain_value;
    		}

    If you change condition like this

    if( attack_type&BF_WEAPON )

    It will work with physical melee and ranged attacks

    • Upvote 1
  5. Why are you use // in

    countitem(42500)//10

    etc

    Quote

    Whenever '//' is encountered in a line upon reading, everything beyond this on
    that line is considered to be a comment and is ignored. This works wherever you
    place it.

     

  6. 1. Bio Cannibalize

    You can change monsters id at: src/skill.cpp

    int skill_castend_pos2
    ...
    	case AM_CANNIBALIZE:
    		{
    			int summons[5] = { MOBID_G_MANDRAGORA, MOBID_G_HYDRA, MOBID_G_FLORA, MOBID_G_PARASITE, MOBID_G_GEOGRAPHER };

    and at

    bool skill_check_condition_castend
    ...
    		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_GEOGRAPHER };
    			int maxcount = (skill_id==AM_CANNIBALIZE)? 6-skill_lv : skill_get_maxcount(skill_id,skill_lv);

    maxcount is a variable for number of mobs

     

    2. Acid Demonstration

    You can change element of this skill and number of hits at db/re(pre-re)/skill_db.txt

    // 05 element (0 - neutral, 1 - water, 2 - earth, 3 - fire, 4 - wind, 5 - poison,
    //             6 - holy, 7 - dark, 8 - ghost, 9 - undead, -1 - use weapon element
    //             -2 - use endowed element, -3 - use random element.)
    
    // 09 Number of hits (when positive, damage is increased by hits, 
    //    negative values just show number of hits without increasing total damage)

     

    4. https://github.com/rathena/rathena/wiki/Adding-New-Bonuses

×
×
  • Create New...