Results 1 to 4 of 4

Thread: CMAN scripts targeting dead creatures

  1. #1

    Default CMAN scripts targeting dead creatures

    So I made a cman dirtkick script. It works great except for when there's a dead creature around with the same name. It will target the dead creature and say the critters dead instead of targeting the living critter that I want it to target.

    Is there anything I can do about this?

  2. #2

    Default

    Use status.

    So like target = GameObj.npcs.find{|i| i.name =~ /rat/ && i.status !~ /dead/

    Whoops. Noticed this wasn't in the Lich folder. Not sure about wizard or SF scripts.
    Last edited by Tgo01; 11-07-2017 at 10:43 PM.

  3. #3

    Default

    I add PUT LOOT at the start of my attack scripts to clear the bodies.
    "Hi, my name is Ososis and I'm blaming my shitty life for being such a fragile, soy drinking, emotionally unstable loser. My triggers are: Red reputation, ANY mention of MacGuyver and being called a fragile, soy drinking, emotionally unstable loser."

  4. #4

    Default

    Quote Originally Posted by Ososis View Post
    I add PUT LOOT at the start of my attack scripts to clear the bodies.
    I think if i loot I won't be able to skin the creature?

Similar Threads

  1. Targeting only mob in the room...
    By nocturnix in forum Scripting Discussion
    Replies: 4
    Last Post: 04-28-2017, 08:06 AM
  2. HSN: ELR - ELEMENTAL TARGETING (425) UPDATE
    By Fallen in forum Gemstone News
    Replies: 10
    Last Post: 09-13-2015, 01:13 PM
  3. targeting script?
    By CaptContagious in forum The Lich Project
    Replies: 13
    Last Post: 01-10-2014, 10:52 AM
  4. Obama Targeting Our Front Doors with GPS
    By ClydeR in forum Politics
    Replies: 13
    Last Post: 05-07-2009, 12:02 PM
  5. This is why targeting is a BAD idea
    By The Cat In The Hat in forum General Gemstone
    Replies: 18
    Last Post: 09-08-2004, 09:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •