Jump to content
×
×
  • Create New...
  • 0

Question on function GetNPC


alin2894

Question

Hi, metin2dev.

I have a question concerning the function:

	if (IsPolymorphed() == true)
	{
		RemoveAffect(AFFECT_POLYMORPH);
	}

	if (GetHorse())
	{
		HorseSummon( false, true );
	}
	else if (GetMountVnum())
	{
		RemoveAffect(AFFECT_MOUNT);
		RemoveAffect(AFFECT_MOUNT_BONUS);
	}
		SetPolymorph(20091, true);

}

This function It turns into npc (20091, Seon Pyeong), how can I call that npc but not transform, appear next to me ?

 

I tried this function:

    if (IsPolymorphed() == false)
    {
        RemoveAffect(AFFECT_POLYMORPH);
    }

	if (GetHorse())
	{
		HorseSummon( false, true );
	}
	else if (GetMountVnum())
	{
		RemoveAffect(AFFECT_MOUNT);
		RemoveAffect(AFFECT_MOUNT_BONUS);
	}
		GetNPC(20091, true);

}

but receive compilation error, you know another method?

Link to comment
  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

2 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.