Jump to content

Sofia

Members
  • Posts

    25
  • Joined

  • Last visited

Posts posted by Sofia

  1. Oh... Now I see how dumb I am...

    Well, after hours of editting it's more than likely to happen something like that xD

    The problem was:

    case SN_SHARPSHOOTING:
    	case MA_SHARPSHOOTING:
    	case NJ_KAMAITACHI:
    	case NPC_ACIDBREATH:
    		sc_start(src, bl, SC_BLIND, 5 * skill_lv, skill_lv, skill_get_time2(skill_id, skill_lv));
    		break;

    There's no "sc_start(src, bl, SC_BLIND, 5 * skill_lv, skill_lv, skill_get_time2(skill_id, skill_lv));         break;" ?

  2. I'm using the 2018-05-30 version and everything was working fine, but now my Sharp Shooting doesn't work!!
    I can hear the sound of the blind effect sometimes when I use the skill, but there's no damage and no animation (even using a item with autospell)
    All the other skills of the class are working 100% ? 

    Here's everything I could find about sharp shooting:

    Battle.c(2454 and 2491)

    if( !(wd.type&DMG_MULTI_HIT) && sstatus->cri && (!skill_id ||
    		skill_id == KN_AUTOCOUNTER || skill_id == SN_SHARPSHOOTING ||
    		skill_id == MA_SHARPSHOOTING || skill_id == NJ_KIRIKAGE))
    	{
    		short cri = sstatus->cri;
    
    		if (sd) {
    			cri += sd->critaddrace[tstatus->race] + sd->critaddrace[RC_ALL];
    			if(is_skill_using_arrow(src, skill_id)) {
    				cri += sd->bonus.arrow_cri;
    				if (!skill_id)
    					cri += sd->bonus.critical_rangeatk;
    			}
    		}
    
    		if(sc && sc->data[SC_CAMOUFLAGE])
    			cri += 100 * min(10,sc->data[SC_CAMOUFLAGE]->val3); //max 100% (1K)
    
    		//The official equation is *2, but that only applies when sd's do critical.
    		//Therefore, we use the old value 3 on cases when an sd gets attacked by a mob
    		cri -= tstatus->luk * ((!sd && tsd) ? 3 : 2);
    
    		if( tsc && tsc->data[SC_SLEEP] )
    			cri <<= 1;
    
    		switch(skill_id) {
    			case 0:
    				if(sc && !sc->data[SC_AUTOCOUNTER])
    					break;
    				clif_specialeffect(src, EF_AUTOCOUNTER, AREA);
    				status_change_end(src, SC_AUTOCOUNTER, INVALID_TIMER);
    			case KN_AUTOCOUNTER:
    				if(battle_config.auto_counter_type &&
    					(battle_config.auto_counter_type&src->type))
    					return true;
    				else
    					cri <<= 1;
    				break;
    			case SN_SHARPSHOOTING:
    			case MA_SHARPSHOOTING:
    				cri += 200;
    				break;
    			case NJ_KIRIKAGE:
    				cri += 250 + 50*skill_lv;
    				break;
    		}
    		if(tsd && tsd->bonus.critical_def)
    			cri = cri * ( 100 - tsd->bonus.critical_def ) / 100;
    		return (rnd()%1000 < cri);
    	}
    	return 0;

    battle.c(3754)

    case SN_SHARPSHOOTING:
    		case MA_SHARPSHOOTING:
    			skillratio += 100 + 50 * skill_lv;
    			break;

    battle.c(5005)

    if (skill_id != SN_SHARPSHOOTING && skill_id != RA_ARROWSTORM)
    		status_change_end(src, SC_CAMOUFLAGE, INVALID_TIMER);

    battle.c(5242)

    if( sc ) {
    		//SC_FUSION hp penalty [Komurka]
    		if (sc->data[SC_FUSION]) {
    			int hp= sstatus->max_hp;
    			if (sd && tsd) {
    				hp = 8*hp/100;
    				if (((int64)sstatus->hp * 100) <= ((int64)sstatus->max_hp * 20))
    					hp = sstatus->hp;
    			} else
    				hp = 2*hp/100; //2% hp loss per hit
    			status_zap(src, hp, 0);
    		}
    		// Only affecting non-skills
    		if (!skill_id && wd.dmg_lv > ATK_BLOCK) {
    			if (sc->data[SC_ENCHANTBLADE]) {
    				//[((Skill Lv x 20) + 100) x (casterBaseLevel / 150)] + casterInt + MATK - MDEF - MDEF2
    				int64 enchant_dmg = sc->data[SC_ENCHANTBLADE]->val2;
    				if (sstatus->matk_max > sstatus->matk_min)
    					enchant_dmg = enchant_dmg + sstatus->matk_min + rnd() % (sstatus->matk_max - sstatus->matk_min);
    				else
    					enchant_dmg = enchant_dmg + sstatus->matk_min;
    				enchant_dmg = enchant_dmg + (sstatus->luk * 5 + sstatus->int_ * 3) - (tstatus->mdef + tstatus->mdef2);
    				if (enchant_dmg > 0)
    					ATK_ADD(wd.damage, wd.damage2, enchant_dmg);
    			}
    		}
    		if (skill_id != SN_SHARPSHOOTING && skill_id != RA_ARROWSTORM)
    			status_change_end(src, SC_CAMOUFLAGE, INVALID_TIMER);
    	}

    skill.c(4785)

    case SN_SHARPSHOOTING:
    	case MA_SHARPSHOOTING:
    	case NJ_KAMAITACHI:
    	case NPC_ACIDBREATH:
    		sc_start(src, bl, SC_BLIND, 5 * skill_lv, skill_lv, skill_get_time2(skill_id, skill_lv));
    		break;

    skill.c(4791)

    case NPC_FIREBREATH:
    	case NPC_ICEBREATH:
    	case NPC_THUNDERBREATH:
    		skill_area_temp[1] = bl->id;
    		if (battle_config.skill_eightpath_algorithm) {
    			//Use official AoE algorithm
    			if (!(map_foreachindir(skill_attack_area, src->m, src->x, src->y, bl->x, bl->y,
    			   skill_get_splash(skill_id, skill_lv), skill_get_maxcount(skill_id, skill_lv), 0, splash_target(src),
    			   skill_get_type(skill_id), src, src, skill_id, skill_lv, tick, flag, BCT_ENEMY))) {
    				//These skills hit at least the target if the AoE doesn't hit
    				skill_attack(skill_get_type(skill_id), src, src, bl, skill_id, skill_lv, tick, flag);
    			}
    		} else {
    			map_foreachinpath(skill_attack_area, src->m, src->x, src->y, bl->x, bl->y,
    				skill_get_splash(skill_id, skill_lv), skill_get_maxcount(skill_id, skill_lv), splash_target(src),
    				skill_get_type(skill_id), src, src, skill_id, skill_lv, tick, flag, BCT_ENEMY);
    		}
    		if (skill_id == SN_SHARPSHOOTING)
    			status_change_end(src, SC_CAMOUFLAGE, INVALID_TIMER);
    		break;

     

    Is there something missing or wrong? ?
    I don't know enough about to tell ;-;

    Pleeease someone help me ? 

    image.thumb.png.6d1cda594867947250a29f8816fbe81e.png

  3. Yeah... I'm not used to play in pre-re. I don't know if the damage is right or not, but it seems to be right (for me).

    That's why I said "go and ask a good pre-re player".

    I don't remember where to look. Gonna sleep and search that tomorrow. Good luck.

  4. Have you checked your item db?

    I've messed up with so many items...

    This is how a hydra card should look like:

    Quote

    bonus2 bAddRace,RC_DemiHuman,20;
    bonus2 bAddRace,RC_Player,20;

    And here's the Vadon card (+20% against water):

    Quote

    bonus2 bAddEle,Ele_Fire,20;

    So there's no difference if you use 4x Race of 4x Element to kill a monster.

    Also, Composite bow damage is 29. While Hunter bow is 125.

    If you're using hunting arrows, the damage seems to be normal.

    But I think the damage formula may have a higher weapon damage multiplicator.

    I don't know that much about pre-re...

     

    I tested in my renew server and...

    Bows used (showing the highest damage):

    +0 Composite Bow [4] - 285 damage. (hunting arrow - 35 dmg)

    +0 Composite Bow [4] (Kaho x1, Goblin x1, Skel Worker x1, Skel Archer x1) - 360 damage. (hunting arrow - 35 dmg)

    +0 Composite Bow [4] (Goblin x4) - 333 damage. (hunting arrow - 35 dmg)

    +0 Hunter Bow [0] - 584 damage. (hunting arrow - 35 dmg + 50% bonus combo)

    All the bows tested against a bigfoot.

     

    I'd say the damage in your server is normal.

    In renew the cards effect don't stack that much like in pre-re, so the damage I got with 4 goblins isn't the same you'll get.

     

    But, if you don't like the way the damage works, change to renew or change the formula (I don't remember where, but it's easy to find).

     

    And again: Composite Bow = 29 ATK and Hunter Bow = 125.

     

    One thing I learned when playing in a friend's server is: ask a experienced ragnarok player if the damage is strange and test the damage a LOT of times in every single way possible.

  5. Update:

    Fixed the second bug, I forgot to update some LUA files xD

    Now I can't see the skills, but... I tryed to change to the custom class with the Alt+S open and everything was perfect (until I close the skill window and re-open, now everything is missing again).

    I think I know the problem... The class I used as base is a 2-1 class and I added as a 1-1... Gonna try to modify something here and fix this problem (maybe not).

     

    WORKING FINE AND NO PROBLEM!!!!
    THANKS TO MYSELF!!!!

     

    I'm secretly a genius...

     

    Ok... I may not be a genius...

    All the skills are locked. I can't lvl up them. Not even the swordman skills (kinda).

    I can put skill points in them, but when I press Apply nothing happens and I still have all the points...

    image.thumb.png.fa9177e26ee78f089df5723d05f6a9c5.png

    image.thumb.png.952c56d343bca7dceb6054d390576b35.png

     

      

  6. > Version: 07 July 2018.

    > Re-server.

    I'm having 2 issues:

    1st: I'm trying to build a custom class, but I can't organize the skilltree.

    All the skills are working fine, but the Alt+S is messed up and I can't levelup a skill. I have to use @allskill all the time.

    image.thumb.png.bc442240dcb87cb56465e7af6e5fd7b5.png

     

    2nd: This... (????) 

    I don't know the problem, I don't know what to do, I don't know if it's the same problem, but everytime I login, this message appears, I press enter and everythig is normal.

    I'm totally lost here.

     image.thumb.png.35bf811a94ed318b8247c2486ef1fc72.png

     

    I'm gonna try to start the server using my backup files tomorrow (without the new configs I made and everything) and re-do the custom skilltree and see what happens.

    Wish me luck.

  7. I just finished creating a skill, but it have no visual effects.

    I want to give the skill the Dragon Breath - Water visual effect, but I can't figure out how or find a tutorial (or anything useful)?

    I'm new here, my english is very bad,  but I understand everything.

    If anyone knows the files I need to look or have a tutorial, please tell me :3

     

    I want to use this effect:

    image.png.7d2080eec8d94deee458ad95404fb5b5.png

    But it's like the Bash effect but with AOE ?

     

  8. Thank you ❤️ 

    I'm downloading the files and I'll let you know if anything goes wrong :c

     

    On 12/17/2018 at 8:31 AM, Chaos92 said:

    its regarding skill. try use zackdreaver data folder.

    Ok, I'm using his files and I'm having the same problem.

    What should I do? Search for a problem in a specific file?

    You dont need to explain everything, just say something like "data/lua files/common.lub" or anything like that and I'll try to fix by myself (I preffer this way, I can learn more).

  9. I'll search in my data, if everything goes wrong I'll use my backup files or download a new one ?

     

    On 12/17/2018 at 8:15 AM, Chaos92 said:

    your GetSkillAttackRange fille in data folder line 262 having issue. Get a clean and usable data folder, then use it. Maybe you can try zackdreaver adta folder 

    PRE-RE : https://github.com/zackdreaver/ROenglishPRE
    RE : https://github.com/zackdreaver/ROenglishRE

    Uh... The file name is "GetSkillAttackRange"? I can't find that in the zackdreaver RE data...

    I'm really dumb and slow. Please don't kill me :c

  10. https://drive.google.com/open?id=1dimMJZKU1P34FWYGhn04rw3KY_vn3pEG

    Here everything you need to do:

    Download my *mob_db.txt* and get the nightmare biolab mobs (3208 - 3246) or replace yours.

    Download the *lhz_dun_n.txt* (mobs respawn) and put in your *npc\re\mobs\dungeons*

    Edit the file *scripts_monster.conf* and add "npc: npc/re/mobs/dungeons/lhz_dun_n.txt" in the last line.

    Download the *bio4nightmare.txt* (enchant system) and put to your *\npc\re\merchants*

    Edit the *scripts_athena.conf* and add this text to the last line "npc: npc/re/merchants/bio4nightmare.txt"

    Tip @reloadmobdb and @reloadscripts and enjoy your bio4.

     

    I found these files in the forum and they're not complete. The mobs dont have skills or anything like that and you'll need to edit everything. But it's pretty easy with the database editor.

×
×
  • Create New...