Jump to content
  • 0

Custom Status Not Being Read?


Jhedzkie

Question


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  297
  • Reputation:   15
  • Joined:  11/17/11
  • Last Seen:  

I created a custom status but its not being recognized. I am not sure what I am doing wrong.
The general idea is that I want to create a custom status that is permanent Like OW50, OW90, Pushcart, Riding, etc. Simple.

Spoiler

Defined in status.h

Defined SC in status.h
 

Spoiler

Added to status.c SC_START

Added to permanent effects in sc_start.
And recompiled.
Created an NPC to check if status is active.
Tried to display ID but says 0. It comes after SC_ARMOR_ELEMENT_WIND so I assumed its 672. Seems like its not. And yeah, I did tried to index it manually and set it to 1001 earlier in status.h. Still doesn't work.
 

Spoiler

script.PNG.6672601c4f993f73e34da1b3550019dd.PNGingame.PNG.4a0d7f93a729340518fc682210c08108.PNG

I am using a consumable item as trigger and script is pretty basic, 

21005,StatusScroll,Scroll of Status Update,2,100,,100,,,,,0xFFFFFFFF,7,2,,,,,,{ sc_start 672,1,0; },{},{}

Pretty much did what I can. What could I be doing wrong?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  742
  • Reputation:   47
  • Joined:  03/12/14
  • Last Seen:  

Here my Custom status Icon on Land PRO



		
src/map/script_constants.h

	export_constant(SC_VOLCANO);
	export_constant(SC_DELUGE);
	export_constant(SC_VIOLENTGALE);
+	export_constant(SC_LANDPROTECTOR);


	export_constant(SI_VOLCANO);
	export_constant(SI_DELUGE);
	export_constant(SI_VIOLENTGALE);
+	export_constant(SI_LANDPROTECTOR);

 

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

  • 0

  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  297
  • Reputation:   15
  • Joined:  11/17/11
  • Last Seen:  

script_constants did the trick. thanks a bunch.
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  742
  • Reputation:   47
  • Joined:  03/12/14
  • Last Seen:  

16 hours ago, Jhedzkie said:

script_constants did the trick. thanks a bunch.

yes your missing code hehe

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