Jump to content
  • 0

Miracle (SG) ends when die. And height of union skill.


Sacul71

Question


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  25
  • Reputation:   0
  • Joined:  03/03/17
  • Last Seen:  

I modified the SG Miracle to last after death.


like this> src\map pc.cpp
status_change_end (& sd-> bl, SC_MIRACLE, INVALID_TIMER);

// status_change_end (& sd-> bl, SC_MIRACLE, INVALID_TIMER);

but it's still canceling the effect on dying ...
I can change map and relog. But if I die, it's over.

 

How not to cancel the effect after death?

 

 

and how to increase flight height with Union skill
the distance between the ground and the SG?

Edited by Sacul71
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.01
  • Content Count:  235
  • Reputation:   63
  • Joined:  04/29/19
  • Last Seen:  

Go to status.c (11914) and change the order:

			switch (i) { // Type 0: PC killed -> Place here statuses that do not dispel on death.
			case SC_ELEMENTALCHANGE: // Only when its Holy or Dark that it doesn't dispell on death
				if( sc->data[i]->val2 != ELE_HOLY && sc->data[i]->val2 != ELE_DARK )
					break;
			[...]
			//SC_MIRACLE

to line 12034:

		if( type == 3 ) {
			switch (i) { // !TODO: This list may be incomplete
			case SC_WEIGHT50:
			case SC_WEIGHT90:
			case SC_NOCHAT:
			case SC_PUSH_CART:
			case SC_ALL_RIDING:
			case SC_STYLE_CHANGE:
			case SC_MIRACLE:


I believe it works

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   0
  • Joined:  06/18/12
  • Last Seen:  

can you help me same with mapchange ?

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