


IF
Die()
Global("NaPlocho","LOCALS",0)
THEN
RESPONSE #100
AddexperienceParty(70) //everything is done - creature is dead, we have XP
END
IF
StateCheck(Myself,STATE_SLEEPING) // creature is unconscious
Global("NaPlocho","LOCALS",0) // for the first time
CheckStat(Myself,1,BOJ_NAPLOCHO) // under our non-lethal attack
THEN
RESPONSE #100
ApplySpellRES("INV5",Myself) // invisible creature is summoned on the unsconscious creature
SetGlobal("NaPlocho","LOCALS",1)
AddexperienceParty(70)
END
IF
StateCheck(Myself,STATE_SLEEPING)
CheckStat(Myself,1,BOJ_NAPLOCHO)
Global("NaPlocho","LOCALS",2) // creature is not unconscious for the first time but there is the special situation (see below, #1)
THEN
RESPONSE #100
ApplySpellRES("INV5",Myself)
// !!! -> AddexperienceParty(10) <- just for the test purposes!!!
SetGlobal("NaPlocho","LOCALS",3)
ENDIF
!StateCheck(LastSummonerOf(Myself),STATE_SLEEPING) // my summoner is no longer uncoscious
THEN
RESPONSE #100
ActionOverride(LastSummonerOf(Myself),SetGlobal("NaPlocho","LOCALS",2)) // exit without the transfer of the equipment
DestroySelf()
END
IF
Heard([ANYONE],1001) // shout sensibility, #2
Range([PC],4) // character is in range
!Global("DosahProhledavani","LOCALS",1)
THEN
RESPONSE #100
SetGlobal("DosahProhledavani","LOCALS",1)
END
IF
!Range([PC],4) // character is not in range
THEN
RESPONSE #100
SetGlobal("DosahProhledavani","LOCALS",0)
END
IF
Global("DosahProhledavani","LOCALS",1) // character is in range as well as the shout was heard
THEN
RESPONSE #100
DisplayStringHead(LastSummonerOf(Myself),'Searching of the enemy...')
ActionOverride(LastSummonerOf(Myself),GivePartyAllEquipment()) // equipment transfer
DestroySelf()
ENDIF
True()
THEN
RESPONSE #100
Shout(1001) // shout
DestroySelf()
END
)
)IF
Global("NastaveniAbilit","GLOBAL",0)
THEN
RESPONSE #100
ActionOverride(Player1,AddSpecialAbility("SEARCHNL"))
SetGlobal("NastaveniAbilit","GLOBAL",1)
END