Page 5 of 7 FirstFirst ... 34567 LastLast
Results 41 to 50 of 70

Thread: Learn how to script with this simple hunting script

  1. #41

    Default

    This would break the loop if none of your listed targets are in the room.

    break if !GameObj.npcs.find{ |npc| npc.name =~ $my_target}

  2. #42

    Default

    More fun with scripting!

    Want to use mstrike whenever you're out of the cooldown period and thus it doesn't cost stamina to use?

    Try this!

    Code:
    def this_script_use_mstrike
    	fput "mstrike ##{$my_target.id}" if (!Spell[9005].active?) && (!Spell[9699].active?)
    end
    9005 is Lich's code for mstrike's cooldown period, 9699 is if popped muscles are active, thus this would check to see if both are active on your character and if they aren't active then the script would use mstrike on your target.

    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.

  3. #43
    Join Date
    Jun 2007
    Location
    Mars
    Posts
    34,084
    Blog Entries
    17

    Default

    You best get back to scripting, bitch.
    Ceterum censeo Carthaginem esse delendam

  4. #44

    Default

    Quote Originally Posted by Gelston View Post
    You best get back to scripting, bitch.

  5. Default


  6. #46

    Default

    Tg01:

    Thank you so much for that quick little example. I found this today, and I figured that your example looked like enough to get me started, and now my aching wrists are blessing your name.

    Modified it for bard hunting, and VOILA! It just worked.

    ::happy dance::

    ~L.
    Luxie's adventures (because I must write) plus some guests from the past at my blog:
    http://www.thebardess.com

  7. #47

    Default

    Quote Originally Posted by Luxelle View Post
    Tg01:

    Thank you so much for that quick little example. I found this today, and I figured that your example looked like enough to get me started, and now my aching wrists are blessing your name.

    Modified it for bard hunting, and VOILA! It just worked.

    ::happy dance::

    ~L.
    Woo! Glad it helped.

  8. #48

    Default

    This is an awesome thread.

    Mad props, Tgo!
    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!

  9. #49

    Default

    Quote Originally Posted by elcidcannon View Post
    This is an awesome thread.

    Mad props, Tgo!
    Yes. Stop that.

  10. #50

    Default

    Quote Originally Posted by Tgo01 View Post
    Yes. Stop that.
    Ok......I lol'd
    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!

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
  •