wyświetla się tylko opcja textowa "działa" i do tego kiedy ruszę kołowrót straży, dla skrzyni reakcji brak. sam pomysł testowania rewelacyjny.
cały skrypt wyglądał tak: func void B_AssessUseMob ()
{
PrintDebugNpc (PD_ZS_FRAME, "B_AssessUseMob");
var string detectedMob;
detectedMob = Npc_GetDetectedMob(other);
PrintDebugNpc (PD_ZS_CHECK, detectedMob);
if (Npc_CanSeeNpcFreeLOS (self, other))
{
if (Npc_IsDetectedMobOwnedByNpc(other, self)
|| Npc_IsDetectedMobOwnedByGuild(other, self.guild)
|| Hlp_StrCmp(LastMobName, "Chest") )
{
PrintDebugNpc (PD_ZS_CHECK, "...MOB gehört NSC oder seiner Gilde!");
if (Npc_GetPermAttitude (self, other)==ATT_FRIENDLY || self.guild==other.guild)
{
PrintDebugNpc (PD_ZS_CHECK, "...Manipulator ist FRIENDLY oder in gleicher Gilde!");
B_Say (self, other, "$HandsOff");
penaltymoboc();
}
else
{
PrintGlobals(PD_ZS_CHECK);
penaltymoboc();
PrintScreen (IntToString(Npc_IsDetectedMobOwnedByNpc(other, self)), 3,50,"font_old_10_white.tga",2);
PrintScreen (IntToString(Npc_IsDetectedMobOwnedByGuild(other, self.guild)), 3,55,"font_old_10_white.tga",2);
PrintScreen (LastMobName, 3,60,"font_old_10_white.tga",2);
PrintScreen ("działa",-1,-1,"font_old_10_white.tga",5);
//---- Täter vermöbeln ----
Npc_SetTempAttitude ( self, ATT_HOSTILE);
Npc_ClearAIQueue ( self);
B_WhirlAround ( self, other);
B_SayOverlay ( self, other, "$IWillTeachYouRespectForForeignProperty");
// JP: Ist ein heikler Fall, eigentlich sollten die Nsc´s nah genug sein, evtl. aber noch auf ZS_WarnAndPunish umbauen
AI_SetWalkmode ( self, NPC_RUN);
Npc_SetTarget ( self, other);
AI_StartState ( self, ZS_Attack, 0, "");
//penaltymoboc();
};
}
else
{
PrintDebugNpc (PD_ZS_DETAIL, "not my MoB");
};
}
else
{
PrintDebugNpc (PD_ZS_DETAIL, "kann SC nicht sehen");
};
};