Jump to content

Turn Preserve off/on


Flaid

Recommended Posts


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  398
  • Reputation:   140
  • Joined:  01/04/12
  • Last Seen:  

As some of you guys might remember, preserve was able to be turned off. I now will teach you how you can do that with a few simple source edits.

Open up your skill.c and look for case ST_PRESERVE: It will look like this:

case NPC_DEFENDER:
case NPC_MAGICMIRROR:
case ST_PRESERVE:
case NPC_INVINCIBLE:

Now you outmark it. It will look like this then:

case NPC_DEFENDER:
case NPC_MAGICMIRROR:
//case ST_PRESERVE:
case NPC_INVINCIBLE:

Now you search for case GS_GATLINGFEVER: and add case ST_PRESERVE: at the bottom. It should look like this now:

case CR_SHRINK:
case SG_FUSION:
case GS_GATLINGFEVER:
case ST_PRESERVE:
if( tsce )
{
clif_skill_nodamage(src,bl,skillid,skilllv,status_change_end(bl, type, -1));
map_freeblock_unlock();

Okay, now you'll have to search for // Turn off check and add case ST_PRESERVE: at the end. It will look like this. (Sorry I have to post the screenshot here because tabs don't work and it will look crappy)

sorry1.png

Now just save and recompile your server. You now will be able to turn preserve off when it's on and you use the skill again.

Edited by Flaid
  • Upvote 1
Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  29
  • Reputation:   1
  • Joined:  02/26/12
  • Last Seen:  

thanks for this .. :)

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