Jump to content

(Script) How do I...


silenzer

Recommended Posts

short stolekey

 

if player.getitemcount "key" && stolekey == 0

if npc.getlos player

npc.startcombat player

else

set stolekey to 1

endif

endif

 

 

This will startcombat between the npc and the player if in the same frame the player has the key and the npc has line of sight to the player. Else the player "stole" the key and wasnt detected.

 

Hope this helps.

 

 

Montana

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...