Jump to content
  • 0

Questions about Stats


Question

17 answers to this question

Recommended Posts

Posted (edited)

Yes this would be source edit. Did you mean frost by WZ_Stormgust skill? Look into src/map/status.c

Find

	case SC_FREEZE:
  	 sc_def = 3 + status->mdef;
	break;

Replace with

	case SC_FREEZE:
	if (status->int_ >= 100)
		return 0;
	else
		sc_def = 3 + status->mdef;
	break;

Edited by GHul
Posted

case SC_FREEZE:
 if (status->int_ >= 100)
  return 0;
 else
  sc_def = 3 + status->mdef;
 break;

can i ask whether we can change

 if (status->int_ >= 100)
  return 0;
 else

into

 if (status->Luk_ >= 100)
  return 0;
 else

?

Posted

It'd be:

if(status->luk >= 100)

Int_ is just like that because 'int' is a reserved keyword. As for case-sensitivity... not really sure, but might as well play it safe.

Doesn't having some amount of luck stop all status effects anyway?

Posted

actually i only wanted to make 150 luk = frost duration reduced .. only for frost status ..

.../map/status.c

Search:

	case SC_STONE:
case SC_FREEZE:
	sc_def = 3 +status->mdef;
	break;

Replace with:

	case SC_STONE:
case SC_FREEZE:
	if (type == SC_FREEZE) {
		sc_def = status->luk * 100/150;
		break;
	}
	sc_def = 3 +status->mdef;
	break;

Posted

@Fatalerror : still not working .. its should be when luk total 150 = frost duration reduced . while should be higher luk = easier to unfrost .. ( sorry for my bad english )

bump for anyone can help ?

Posted

change this:

		if (type == SC_FREEZE) {
		sc_def = status->luk * 100/150;
		break;
	}

to this:

		if (type == SC_FREEZE) {
		tick_def = status->luk * 100/150; //Every 15 luk, reduce frozen time by 10%
		break;
	}

Posted

I tried it with my GX with 149 luk, i can still be frozen with SG(less than 1 sec),

tried it again with 150 luk, my GX immune to Frozen..

Don't know why it's not working on you,

well, i don't care..

maybe other can help?

Posted

iSkiddo; you probably have other value affecting sc_def for instance :

if (sc_def < battle_config.pc_max_sc_def)
           sc_def += (battle_config.pc_max_sc_def - sc_def)*
               status->luk/battle_config.pc_luk_sc_def;

I didn't get exactly what kind of reduction you wanted; still read closely status_get_sc_def() and you should be able to put your status reduction.

(nb tick duration are in ms)

Posted

actually i just only wan to reduce the frost status duration . means higher luk , reduce frost duration . which means all my player need to make high luk to be a champion . hehe

Posted

I did something with mine a while back, i'll try to remember what, if what i remember is correct, i didn't do/add anything at the src files, but instead in the conf files. high luk & vit reduces the frost duration.

Posted

you really didn't read the function did you.

here a quick exemple :

case SC_FREEZE:

tick -= status->luk *1000; //minus -1s each luk point

break;

Even so you'll still have the small luk reduction from the if I stated before. tick_def, will reduce the duration in %

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