Jump to content
  • 0

:Give up change to sword:...^_^how to set critical?


Question

19 answers to this question

Recommended Posts

Posted

Please don't waste forum space with bumps. Anyways, I was already looking to find a solution to this, but you should try posting this in source support. It seems like common sense to me, but your not going to write a script to to adjust that. You either going to have to modify source files or a conf somewhere. That really isn't my area or I would help more. I know that it relates to a players crit (and possible would affect monster crit also), but try looking through src/map/pc.c or any of those files there until somebody responds that can help you.

Peopleperson49

  • Upvote 1
Posted

Here's a quick code. Try if it works

Index: battle.c
===================================================================
--- battle.c (revision 16608)
+++ battle.c (working copy)
@@ -1345,7 +1345,8 @@
  (!sd && ((skill_num && skill_get_ammotype(skill_num)) || sstatus->rhw.range>3))
 )
  flag.arrow = 1;
-
+ if (sstatus->cri >= 104)
+  flag.cri = 1;
 if(skill_num){
  wd.flag |= battle_range_type(src, target, skill_num, skill_lv);
  switch(skill_num)

Posted

better do it here

@battle.c


if(tsd && tsd->bonus.critical_def)
  cri = cri * ( 100 - tsd->bonus.critical_def ) / 100;
if (rnd()%1000 < cri)
  flag.cri = 1;

so other crit bonuses will be accumulated

so change it to



if(tsd && tsd->bonus.critical_def)
  cri = cri * ( 100 - tsd->bonus.critical_def ) / 100;
if (rnd()%1000 < cri || cri >= 104)
  flag.cri = 1;


Posted (edited)

sir malufett always pure crit ^_^ if using any weapon with critical ^_^

still not solve... hehe

what i wanna do` is when the critical stat set to 104 and ahead. it will be pure crit ^_^

Edited by RN1986
Posted (edited)

welcome sir peopleperson49 my problem still not solved hmm thank you all for helping me ^_^ i hope someone can help me with this

what i wanna do is a pure critical when the critical stat is set to 104

but when i try this yeah it shows pure crit even if the stats are lower than 104 also if you equip a critical weapon no matter what your character stat it is always in pure critical....even your critical stat only 41...sorry for my bad english ^_^

use sir malufett's solution

revert the change you made..

search for

if (rnd()%1000 < cri)

change it to

if (rnd()%1000 < cri || cri >= 104)

I'm not sure why you error-ed using my diff though xD

Edited by RN1986
Posted (edited)

umh sir malufett my problem now is when i equip two dagger perfect crit wont work...i still get doble attack and a white dmg...

but when i remove 1 dagger and set critical stat pure critical work...

what i wanna do is even two dagger equip i want a perfect crit..

critical.jpg

Edited by RN1986

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...