Jump to content

laonglaing

Members
  • Posts

    37
  • Joined

  • Last visited

Posts posted by laonglaing

  1. 40 minutes ago, Emistry said:
    acc_reg_num

    its stored in this table.

    however to reset it, its a bit tricky

    • if there are no player online, you can safely execute the sql script to remove it from database
    • if there are player currently online, you have to manually select each user to reset their points (of course this can be done is numerous ways)
      then run SQL script to remove points from those who aren't online.

     

    thanks for this. so its imposible to reset ingame. i see. so what about limit the usage of kafrapoints for a day. example. you have given 1000 kafrapoints for the week. and you only want the players to use upto 100 points per day. is it possible?
    if its imposible to reset the kafra points of players while they are online, im thinking now to reset it every weekly maintenance. 

     

    also, if i want to define custom points, is this the only where i define them and does it automatically usable ingame?
    or should define it in other part of the emulator?

    pc.hpp
    image.png.2db09c8946edebd6c175260719efb004.png

  2. 6 hours ago, Notorius said:

    check in battle.c it could be this

     

     

    		case SN_SHARPSHOOTING:
    			if (src->type == BL_MOB) { // TODO: Did these formulas change in the renewal balancing?
    				if (wd->miscflag & 2) // Splash damage bonus
    					skillratio += -100 + 140 * skill_lv;
    				else
    					skillratio += 100 + 50 * skill_lv;
    				break;
    			}

     

    Thank you for this! so basically this is only where sharpshoot damage adjustment and its mechanics on skill_db.txt or skill_db.yml

  3. hello!
    Im pretty new in making script, and i have this idea wherein players will have a certain points daily and will be reset the value if not used or anything was left and im thinking to use either #KAFRAPOINTS or #CASHPOINTS. I just wanted to ask where are these values being stored? in the database which table?
    how can i implement this in a script? 

  4. hello!
    not sure if this is the right/correction section. but would like to ask as what the title says to programmatically get values in skill_db.txt when using a skill.

    i am trying to implement in skill.cpp for a certain melee skill wherein if i use the skill to enemy/other player/mobs it will behave as it is. but if i target a party member, it will splash to enemy as well.

    was able to create a code for this, apparently the code depends on the value of "inf" (column 4) in skill_db.txt . if the value is 16, the party member target of skill with splash to enemy works. but i still want to work by default if i target an enemy which requires the value of "inf" to be 1. 

     

    any help or suggestion is much appreciated.

×
×
  • Create New...