I think I've fixed this. I added a my $factioncheck = undef; statement just above the SetAppearance function, and it seems to be working now:
Code:
sub EVENT_ENTER
{
my $player = $entity_list->GetClientByID($userid);
my $get_player = $player->CastToClient();
my $player_hps = $get_player->GetHPRatio();
if ($player_hps <= 70)
{
my $factioncheck = undef;
$npc->SetAppearance(1);
$factioncheck = $client->GetCharacterFactionLevel(484);
{
if ($factioncheck >= 1101)
{
$client->Message(257,"A mysterious voice calls to you, 'Come quickly, $name, citizen of the Realm, and let me have a look at those wounds. I am inside the city, near the causeway to the Wall.' ");
}
if ($factioncheck >= 101)
{
$client->Message(257,"A mysterious voice calls to you, 'Come quickly, $name, friend of the realm, and let me have a look at those wounds. I am inside the city, near the causeway to the Wall.' ");
}
}
}
}