Jump to content

bWolfie

Members
  • Content Count

    850
  • Joined

  • Last visited

  • Days Won

    35

Posts posted by bWolfie


  1. like Xross said, likely using older SQL database which is incompatible with the current Hercules revision. When you start the login server, it should say which files you need to add.

    In any case, you can usually fix this by doing the following.

    1. Backup current database using mysqldump (unsure how to dump other ways)
      mysqldump database > ~/database-backup.sql
    2. Drop database, then recreate.
      DROP DATABASE database;
      CREATE DATABASE database;
    3. Create new table structures using Hercules SQL.
      mysql .... < sql-files/main.sql
    4. Then add your backed up database on top of that...
      mysql .... < ~/database-backup.sql

  2. 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
    

  3. 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.


  4. 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;

     


  5. 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...


  6. 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

×
×
  • Create New...

Important Information

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