Jump to content

dreinor

Members
  • Content Count

    54
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by dreinor

  1. hi.. thanks for the reply.. but the effect that it consumes gemstones is not exactly the effect that i want... i want it too work that if the target is undead, the skill will not consume any gemstone, but if the target is not undead eg. demi-human, insect, brute etch., it will consume a gemstone..
  2. good day.. i customized the turn undead skill for it to be useable on any race.. but i want it to consume gemstones whenever the target is not an undead race or element.. can someone help me on this? this is the block which makes the skill require items in specific condition.. i don't know the code to be added for the gemstone requirement.. case PR_TURNUNDEAD: if( itemid_isgemstone(skill->db[idx].itemid) && !battle->check_undead(tstatus->race, tstatus->def_ele) ); continue; break; the code in red doesn't seem to work.. it says after rebuilding tstatus is no a member of interference.. can someone help me on the code? thanks..
  3. hi.. can someone help me? where can i locate the code for the skill double attack(TF_DOUBLE) so that i can make it work on autocast spells.. the skill of rouge autosteal works with double attack an i want to make double attack proc autospell from cards and hindsight.. thanks..
  4. here is the block for the additional flee for two-hand quicken.. if( sc->data[sC_TWOHANDQUICKEN] ) flee += 1.5 * sc->data[sC_TWOHANDQUICKEN]->val1; //The main status definitions set_sc( KN_TWOHANDQUICKEN , SC_TWOHANDQUICKEN , SI_TWOHANDQUICKEN , SCB_ASPD|SCB_FLEE ); <---- put SCB_FLEE in this block
  5. already found the problem, nvm..
  6. Hi.. Can someone help me.. i want to modify the Magic Attack of Magic Decoy and Silver Sniper.. I want the Damage of Silver Sniper to be affected by the DEX stats of the caster.. here is the code for the damage of FAW - Silver Sniper: if( ud->skill_id == NC_SILVERSNIPER ) mstatus->rhw.atk = mstatus->rhw.atk2 = 200 * ud->skill_lv; What Code Should I add so that the damage of Silver Sniper be affected by the Dex of the caster? btw, this is found in status.c 2nd is the FAW - Magic Decoy.. i want the Matk of the Magic Decoy to be affected by the Luk of the caster.. Here is the code for the matk that is found on skill.c: md->status.matk_min = md->status.matk_max = 250 + (50 * skill_id) What Code Should I add so that the Matk of the Magic Decoy be affected by the luk of the caster? sorry.. I'm not really familiar with the language of the codes, can someone help me on this? thanks.. i tried adding status_get_luk & status_get_dex but it wasn't working.. i don't know the proper identifier for the desired effect.. i tried, src, bl & src2..
  7. already found the answer.. please close this topic..
  8. I want to modify the damage of enchant blase to = (skillLvL/5)*int.. The code I used is : ( ( sc->data[sC_ENCHANTBLADE]->val1) / 5) * status_get_int(src) But whenever i recompile the server, the damage is still the same with the original.. I edited this from battle.c, can someone help me?
  9. Good day.. can someone help me, i added an increase in flee whenever using 2-hand quicken.. the increase in flee works only after relogging or changing maps.. what is the problem with this? i tried it on spear quicken but spear quicken's increase in flee works fine..
  10. this is the skill motion when you use the skill shield charge.. http://prntscr.com/6cx9rb and this is when you use shield press.. http://prntscr.com/6cxbj8 is it possible to change the motion when casting shield press to the one like shield charge? is it client sided? or can it be changed in the src?
  11. Hi.. Can someone help me on this, i would like to add an extra effect on the skill venom splasher.. I want it to work that whenever the target is on Venom Splasher Countdown, the target will receive 20% more damage from Envenom Skill.. Can someone help me on this? I tried using this code but there's a part there that i don't know what to put.. Here are the codes.. Thanks.. found the answer.. this topic can now be closed, the code was.. if( sc->data[sC_SPLASHER] ) { switch (skill_id){ case TF_POISON: damage += damage * 20 / 100; if (--sc->data[sC_SPLASHER]->val1 == 0) status_change_end(bl, SC_SPLASHER, INVALID_TIMER); } }
  12. Tested it.. Working 100%.. Thank you so much malufett..
  13. i see.. sry sry..T_T btw, thanks a lot malufett.. Recompiled and there's no error.. I'll try it later.. thanks again..
  14. } else if (!dstsd || map_flag_vs(bl->m)) //HP damage only on pvp-maps when against players. hp = tstatus->max_hp/50; //Recover 2% HP [skotlex] clif->skill_nodamage(src,bl,skill_id,skill_lv,1); unit->skillcastcancel(bl,0); if (dstsd) skill_blockpc_start (dstsd, ud->skill_id, 5000); sp = skill->get_sp(bl_skill_id,bl_skill_lv); status_zap(bl, hp, sp); if (hp && skill_lv >= 5) hp>>=1; //Recover half damaged HP at level 5 [skotlex] else hp = 0; if (sp) //Recover some of the SP used sp = sp*(25*(skill_lv-1))/100; if(hp || sp) status->heal(src, hp, sp, 2); } } you mean like this? sorry i'm not very good at scripting.. but i tried this and it failed in rebuilding.. also "skill_blockpc_start" says that it is undefined..
  15. dreinor

    FAW summons

    Can someone help me on modifying the stats of the FAW summons.. I want the atk/matk of the summons to be affected by dex of the caster and the hp and duration of the monster based on the luk of the caster.. Is this possible?
  16. @malufett Hi, thanks for the reply.. the effect that i want to have in spell break is that for example.. I successfully casted spell break on the enemy wizard while he is casting storm gust, the next thing will happen is he can't cast storm gust for the next 5 secs because the skill will be on forced cooldown.. But he can still cast other skills, that is the effect i want to add in spell breaker.. can you help me on this sir? sry, the 1st post was not detailed, edited it now..
  17. I want to have a new effect in the skill spell breaker.. I want it to work that whenever the caster breaks a target's spell, the specific spell that was casted will be on forced cooldown for 5 secs, the target can still cast other spells but not the disrupted one.. this is the part of the skill that disrupts the casting, case SA_SPELLBREAKER: { int sp; if(tsc && tsc->data[sC_MAGICROD]) { sp = skill_get_sp(skill_id,skill_lv); sp = sp * tsc->data[sC_MAGICROD]->val2 / 100; if(sp < 1) sp = 1; status_heal(bl,0,sp,2); status_percent_damage(bl, src, 0, -20, false); //20% max SP damage. } else { struct unit_data *ud = unit_bl2ud(bl); int bl_skill_id=0,bl_skill_lv=0,hp = 0; if (!ud || ud->skilltimer == INVALID_TIMER) break; //Nothing to cancel. bl_skill_id = ud->skill_id; bl_skill_lv = ud->skill_lv; if (tstatus->mode & MD_BOSS) { //Only 10% success chance against bosses. [skotlex] if (rnd()%100 < 90) { if (sd) clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0); break; } is this the code for the effect that i want? if (sd) skill_blockpc_start (sd, ud->skill_id, 5000) ? if it is the code, where should i put it? sorry i'm not that good at this..
  18. dreinor

    Preserve Skill

    can someone hep me on this problem.. i want to add an effect on the Preserve skill of Stalker.. i want to add an effect of increase sp consumption of skills by 50% and all incoming damage increased by 20%.. how can i add this effects to the skill? thanks..
×
×
  • Create New...

Important Information

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