PDA

View Full Version : checknpc help?



waggles
05-15-2012, 01:25 AM
;e loop { fput "kill" } is basically what Im going for, but it spams kill over and over... I want it to only spam when a critter is in the room. There a simple command I can add to that to accomplish what I want? I cant seem to get checknpc to work properly

this would be for the use of me using two characters hunting and I just want one of them to kill kill kill when creatures are present

subzero
05-15-2012, 02:35 AM
Try looking at one of the lockdown scripts on the repo.

waggles
05-15-2012, 02:44 AM
;e loop { while (GameObj.npcs.any? { |npc| npc.status != 'dead' } ); fput ('kill'); waitrt?; end }

thanks Dionket