Page 6 of 7 FirstFirst ... 4567 LastLast
Results 51 to 60 of 70

Thread: Learn how to script with this simple hunting script

  1. #51

    Default

    Quote Originally Posted by Tgo01 View Post
    This is focused mstrike, you could get fancy and for example have the script check if there are two or more critters in the room then you would use open mstrike instead.
    Now that I've got you buttered up, how would I do this? Can lich tell the room population without having to do a look?
    Calling you names is fun, because your skin is so thin and your vagina so sandy.

    Check out my Solhaven Shop!
    https://ps.lichproject.org/shops/3818
    Fusion Orbs, Flaring 100-arrow Bundles, ICE age stuff, 50-count Gem Jars and more!

    --------

    d100(Open): 261
    You forage briefly and manage to find some acantha leaf!

  2. #52

    Default

    Quote Originally Posted by elcidcannon View Post
    Can lich tell the room population without having to do a look?
    Yes.

  3. #53

    Default

    Where could I find a list of the functions that lich uses to query the game?
    Calling you names is fun, because your skin is so thin and your vagina so sandy.

    Check out my Solhaven Shop!
    https://ps.lichproject.org/shops/3818
    Fusion Orbs, Flaring 100-arrow Bundles, ICE age stuff, 50-count Gem Jars and more!

    --------

    d100(Open): 261
    You forage briefly and manage to find some acantha leaf!

  4. #54

    Default

    Quote Originally Posted by elcidcannon View Post
    Where could I find a list of the functions that lich uses to query the game?
    There are some functions here:

    https://gswiki.play.net/mediawiki/in...ting_reference

    What you could do I think is:

    Code:
    if GameObj.npcs.length > 2
    	fput "do stuff"
    end
    And change the number to whatever. Use your grade school learning of greater than and less than, which number would the duck rather eat?

  5. #55

    Default

    Awesome....I'm on the right track, I believe.

    I'm having difficulty with multiple targets. It seems as if I'm only targeting one creature at a time, and have to re-run the script if there are two or more of the listed targets in the room.

    Could I make a "targets?" script to go first inside of the loop, that exits if null and continues if 1 or more?
    Calling you names is fun, because your skin is so thin and your vagina so sandy.

    Check out my Solhaven Shop!
    https://ps.lichproject.org/shops/3818
    Fusion Orbs, Flaring 100-arrow Bundles, ICE age stuff, 50-count Gem Jars and more!

    --------

    d100(Open): 261
    You forage briefly and manage to find some acantha leaf!

  6. #56

    Default

    Quote Originally Posted by elcidcannon View Post
    I'm having difficulty with multiple targets. It seems as if I'm only targeting one creature at a time, and have to re-run the script if there are two or more of the listed targets in the room.
    Yeah I think my example on the first post just deals with one critter then ends.

    Quote Originally Posted by elcidcannon View Post
    Could I make a "targets?" script to go first inside of the loop, that exits if null and continues if 1 or more?
    You can do anything with Ruby that your mind can imagine.

  7. #57

    Default

    Bloody useful post. Will scrutinise on weekend when time permits. Want to translate my stormfront scripts into lich.
    Bremerial God'thor
    ______________________________________

    Valinda accepts Aneris's embalmed puppy.
    Valinda blinks.
    Valinda frowns at an embalmed puppy.
    Aneris accepts Valinda's puppy pelt pantaloons.
    Speaking to Valinda, Aneris says, "Thanks again.... I'll be back with more dead puppies if I happen tah find yah around."
    Valinda says, "Nooo."
    Valinda exclaims, "Ive filled my dead puppy quota, sorry!"

  8. #58

    Default

    Good stuff here!

  9. #59

    Default

    Is anyone else having problems with the initial code? I go to run the script and it just does this:

    --- Lich: ambush active.
    --- Lich: ambush has exited.

    So it sees a target, it just doesn't engage.

  10. #60

    Default

    Quote Originally Posted by Intel View Post
    Is anyone else having problems with the initial code? I go to run the script and it just does this:

    --- Lich: ambush active.
    --- Lich: ambush has exited.

    So it sees a target, it just doesn't engage.
    Can you copy and paste the code you are using?

Similar Threads

  1. Simple Hunting script
    By Razadine in forum The Lich Project
    Replies: 0
    Last Post: 10-15-2018, 06:40 PM
  2. Simple hunting script that uses ;wander
    By Viekn in forum The Lich Project
    Replies: 4
    Last Post: 05-17-2017, 05:05 AM
  3. learn to script
    By oneillseanm in forum The Lich Project
    Replies: 5
    Last Post: 06-11-2013, 12:16 PM
  4. help with another i'm sure simple script
    By Glaves in forum Miscellaneous Scripts
    Replies: 3
    Last Post: 11-30-2011, 09:02 AM
  5. Sorcerer Rose Illusion teach/learn/speed script
    By Drew2 in forum Scripting Discussion
    Replies: 1
    Last Post: 04-14-2004, 04:46 AM

Posting Permissions

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