Jump to content

bWolfie

Members
  • Content Count

    848
  • Joined

  • Last visited

  • Days Won

    34

Posts posted by bWolfie


  1. can anyone help me on how to run python script? When I run ./scconfigconverter.py on my linux system nothing happens. Same for the item combo one. didn't have issue when converting mob_skill_db.txt back a while.

    [user@host tools]$ ./scconfigconverter.py
    : No such file or directory
    

  2. https://pastebin.com/H9e2SG9t

    Based on the old exp.txt tables. This only works for base level 999.

    If you want to use a lower level, you need to comment out all entries above that level. E.g. if you want base level 500, you need to comment out entries 500-999.

    The formula for no. of entries you need is [Max Base Level - 1]. So if max level is 400, you need 399 entries; 250 needs 249, and so on.

    Let me know if there are any issues with it.


  3. Search skill.c for SG_HATE.  Target is emperium mob then skill fails. Add the mobs you need.

    		case SG_HATE:
    			if (sd) {
    				clif->skill_nodamage(src,bl,skill_id,skill_lv,1);
    				// mobs which cannot be hated
    				int class_ = status->get_class(bl);
    				if (class_ ==   MOBID_EMPELIUM) {
    					clif->message(sd->fd, msg_sd(sd, 1551));  // Hatred cannot be cast on this mob.
    					clif->skill_fail(sd, skill_id, USESKILL_FAIL_LEVEL, 0, 0);
    					break;
    				}
    
    				if (!pc->set_hate_mob(sd, skill_lv-1, bl))
    					clif->skill_fail(sd, skill_id, USESKILL_FAIL_LEVEL, 0, 0);
    			}
    			break;

     


  4. LMAO! Haven't you ever seen somebody make an actual calculation? '^' is literally the character used on PC calculators. SMH. I was trying to show you what your calculation was doing...


  5. You should link where you got the script from.

    Anyway, your issue is basic maths...order of exponents. Use your parentheses correctly.

    pow(10,.@i+1) is the same as 10 ^ (.@i+1)
    When you change it to 10 ** .@i+1 it is being read as (10 ^ .@i) + 1


  6. In static int status_get_sc_def() you can add code.

    Right below this,

    		//Aegis accuracy
    		if (rate > 0 && rate%10 != 0) rate += (10 - rate%10);

    You can add your code:

    		//Aegis accuracy
    		if (rate > 0 && rate%10 != 0) rate += (10 - rate%10);
    
    		// Gain all status immunity by LUK stat. Caps at 99 (100% immunity)
    		// change both 99 values to what you want
    		if (st->luk >= 99)
    			rate = 0;
    		else
    			rate -= rate * st->luk / 99 + 10;

     

×
×
  • Create New...

Important Information

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