Jump to content
  • 0

How to enable Professor/Sage Elemental Change skill to work on players?


Pink Guy

Question


  • Group:  Members
  • Topic Count:  131
  • Topics Per Day:  0.03
  • Content Count:  371
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

Hello, I remember seeing a guide on how to do this years ago but I can't seem to find it. Anyways, I'm just wondering how to enable the Sage/Professor skill "Element Change" to work on players (instead of just monsters). If you're not sure, it's the quest skill that consumes Elemental Converters to use. Thanks in advance!

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 2

  • Group:  Members
  • Topic Count:  78
  • Topics Per Day:  0.03
  • Content Count:  436
  • Reputation:   167
  • Joined:  12/12/17
  • Last Seen:  

11 minutes ago, Pink Guy said:

I tried it just now after recompiling. It's the same thing. Still can't work on players.

LOL sorry I'm sure now

case SA_ELEMENTWATER:
	case SA_ELEMENTFIRE:
	case SA_ELEMENTGROUND:
	case SA_ELEMENTWIND:
		//if (sd && (!dstmd || status_has_mode(tstatus,MD_STATUS_IMMUNE))) // Only works on monsters (Except status immune monsters).
		//	break;

comment it out

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  131
  • Topics Per Day:  0.03
  • Content Count:  371
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

Anyone can help? I remember it was posted in this forum as well I just can't seem to find it.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  78
  • Topics Per Day:  0.03
  • Content Count:  436
  • Reputation:   167
  • Joined:  12/12/17
  • Last Seen:  

I don't know how but try editing this part at skill.cpp

if (sd && (!dstmd || status_has_mode(tstatus,MD_STATUS_IMMUNE)))

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  131
  • Topics Per Day:  0.03
  • Content Count:  371
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

Thanks. I still have my old svn just wanted to know where exactly I edit it. I'll post here once I've confirmed it for people who are interested.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  131
  • Topics Per Day:  0.03
  • Content Count:  371
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

On 1/30/2018 at 6:15 PM, pajodex said:

I don't know how but try editing this part at skill.cpp


if (sd && (!dstmd || status_has_mode(tstatus,MD_STATUS_IMMUNE)))

 

It's not working. I tried copying my old one then recompiled but then map server won't load up. So, I'm guessing that they changed the syntax/coding somehow. Would anyone be kind enough to help me?

Here's what I had on my old svn (which worked). Don't know the rathena version tho.

	case SA_ELEMENTWATER:
	case SA_ELEMENTFIRE:
	case SA_ELEMENTGROUND:
	case SA_ELEMENTWIND:
		if(tstatus->mode&MD_BOSS)
			break;

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  78
  • Topics Per Day:  0.03
  • Content Count:  436
  • Reputation:   167
  • Joined:  12/12/17
  • Last Seen:  

4 minutes ago, Pink Guy said:

It's not working. I tried copying my old one then recompiled but then map server won't load up. So, I'm guessing that they changed the syntax/coding somehow. Would anyone be kind enough to help me?

Here's what I had on my old svn (which worked). Don't know the rathena version tho.


	case SA_ELEMENTWATER:
	case SA_ELEMENTFIRE:
	case SA_ELEMENTGROUND:
	case SA_ELEMENTWIND:
		if(tstatus->mode&MD_BOSS)
			break;

 

try this:

From:
if (sd && (!dstmd || status_has_mode(tstatus,MD_STATUS_IMMUNE)))

to:
if (sd && dstmd || status_has_mode(tstatus,MD_STATUS_IMMUNE))

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  131
  • Topics Per Day:  0.03
  • Content Count:  371
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

13 minutes ago, pajodex said:

try this:


From:
if (sd && (!dstmd || status_has_mode(tstatus,MD_STATUS_IMMUNE)))

to:
if (sd && dstmd || status_has_mode(tstatus,MD_STATUS_IMMUNE))

 

I tried it just now after recompiling. It's the same thing. Still can't work on players.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  131
  • Topics Per Day:  0.03
  • Content Count:  371
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

53 minutes ago, pajodex said:

LOL sorry I'm sure now


case SA_ELEMENTWATER:
	case SA_ELEMENTFIRE:
	case SA_ELEMENTGROUND:
	case SA_ELEMENTWIND:
		//if (sd && (!dstmd || status_has_mode(tstatus,MD_STATUS_IMMUNE))) // Only works on monsters (Except status immune monsters).
		//	break;

comment it out

BRO! You're a god! Thank you, it worked!

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

×
×
  • Create New...