if (GetLocalInt(oArea, "NOPORT") == 1)
{
return;
SendMessageToPC(oPC, "You cannot use that item in jail...");
}
needs to be:
if (GetLocalInt(oArea, "NOPORT") == 1)
{
SendMessageToPC(oPC, "You cannot use that item in jail...");
return;
}
Otherwise it'll exit without sending the message.
Also, change:
object oArea = OBJECT_SELF;
to:
object oArea = GetArea (oPC);
OBJECT_SELF in this script is likely the module.
Modifié par Failed.Bard, 28 juillet 2011 - 06:03 .