Jump to content
  • 0

How to check for sc_statuses on NPC?


Question

Posted

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!

4 answers to this question

Recommended Posts

Posted


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;

}

Posted

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!

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...