Jump to content

Editar skills de REGEN: siempre activos (no solo cuando estas quieto)


aleph075

Recommended Posts


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.06
  • Content Count:  49
  • Reputation:   0
  • Joined:  04/10/24
  • Last Seen:  

Quisiera editar las skills de REGEN de HP y SP para que esten activas SIEMPRE. Por ejemplo, SM_Recovery, solo se activa si estas quieto. Similar a MG_SRecovery.
Como puedo editarlas para que siempre den esa regeneracion?

I guess the most of pasive regen skills are here.... but dunno wich one is the variable that controls the "sit/not moving" stat to active regen. Aqui esta una parte del codigo

// Only players have skill/sitting skill regen for now.
sregen = regen->sregen;

val = 0;
if( (skill=pc_checkskill(sd,SM_RECOVERY)) > 0 )
	val += skill*5 + skill*status->max_hp/500;

if (sc && sc->count) {
	if (sc->data[SC_INCREASE_MAXHP])
		val += val * sc->data[SC_INCREASE_MAXHP]->val2 / 100;
}

 

Luego, tengo otra duda, creo que mucho mas dificil de hacer, pero quisiera ver si hay algun video o explicacion de como hacerlo.

En el futuro me gustaria hacer que estas skills sean ACTIVAS, en vez de pasivas... definirlas como si fuera un improve concentration. Se que no es facil definir una hueva habilidad, pero solo encontre ejemplos de como crear skills que hacen DAÑO. Pero es muy distinto crear una habilidad NO DAMAGE, que es un "auto buff".
 

Alguna ayudita?

Link to comment
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

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

×
×
  • Create New...