Jump to content
  • 0

How to check for sc_statuses on NPC?


johnbond

Question


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

Hello!

 

I am trying to look for an "if ()" command that will check for sc_statuses for an NPC script but I cannot find or know any that would do it with my limited scripting capabilities.

 

May I request for a simple npc script that when clicked will check for players that has the let's say SC_KYRIE status on them then the NPC will warp then somewhere. I will use it as a basis and just adjust things from there.

 

Any help will be greatly appreciated.

 

Thank you guys!

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  509
  • Reputation:   80
  • Joined:  11/20/11
  • Last Seen:  


poring_w02,121,68,1 script sample 2235,3,3,{

OnTouch:

if(!getstatus (39))end;

mes "You are in Kyrie";

next;

menu "I will now warp you somewhere";

close2;

warp "poring_w02",118,83;

end;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  509
  • Reputation:   80
  • Joined:  11/20/11
  • Last Seen:  

if(getstatus (39)) mes "Kyrie";

for restriction in warper?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

Nice i think this will work.

 

But let's say this is my NPC:

 

poring_w02,121,68,1	script	sample	2235,3,3,{


OnTouch:


	mes "You are in Kyrie";
	next;
	menu "I will now warp you somewhere";
	close2;
	warp "poring_w02",118,83;
	end;
}

What I want is when player is on a specific status and he goes near the NPC it will warp him. Where do I add the getstatus check for this sample NPC?

 

 

Thanks!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

Wow nice its working!!!

 

Thank you my friend!!!

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