Page 4 of 4 FirstFirst ... 234
Results 31 to 40 of 40

Thread: Bored! Give me some script ideas!

  1. #31

    Default

    Quote Originally Posted by Methais View Post
    How about a script that's a modified version of your ;roleplay script, except instead it only talks down to people in a passive-aggressive manner?

    You can call it ;brauden or something.
    lol

  2. #32

    Default

    Still would love to be able to mail things from any city to a specific person with one command.

    ;mail <item> to <person>

    I need to start shipping all these weapons to my forger for smelting them down.

    http://forum.gsplayers.com/showthrea...-a-MAIL-script

  3. #33
    Join Date
    Sep 2016
    Location
    Kekistan
    Posts
    10,586
    Blog Entries
    1

    Default

    Quote Originally Posted by nocturnix View Post
    Still would love to be able to mail things from any city to a specific person with one command.

    ;mail <item> to <person>

    I need to start shipping all these weapons to my forger for smelting them down.

    http://forum.gsplayers.com/showthrea...-a-MAIL-script
    That system already exists and has existed since around 2005, message worms.

    Not sure why they didn't just expand on the message worms. It was kind of like when the last RR guru "added" a bait house without even knowing a bait house already existed in RR.


    The object of life is not to be on the side of the majority, but to escape finding oneself in the ranks of the insane. ~ Marcus Aurelius
    “It's a beautiful thing, the destruction of words.”
    ― George Orwell, 1984

    “The urge to shout filthy words at the top of his voice was as strong as ever.”
    ― George Orwell, 1984

  4. #34

    Default

    Quote Originally Posted by nocturnix View Post
    Still would love to be able to mail things from any city to a specific person with one command.

    ;mail <item> to <person>

    I need to start shipping all these weapons to my forger for smelting them down.

    http://forum.gsplayers.com/showthrea...-a-MAIL-script
    The script I posted to that thread doesn't work?

  5. #35

    Default

    Quote Originally Posted by Tgo01 View Post
    The script I posted to that thread doesn't work?
    My bad man, I didn't even see that. Been super busy with work. It sounds great will try it out.

  6. #36

    Default

    It all good.

  7. #37

    Default

    Wracking my brain on this one. I am making myself a simple script to drop stuff. I want to be able to do ;drop 5 emerald and it will drop 5 emerald and stop. I also want it to drop multiple items, like if I do a ;drop diamond emerald sapphire it will drop every diamond, emerald, and sapphire I have. The problem I am running into is some gems I have to get more specific, like I have to do a ;drop "green sap" "yellow sap", "blue sap" and the spaces within each gem are messing things up! there are some random 'respond' in there, I was trying to test things out.

    Code:
    if script.vars[1].to_i > 0
    	script.vars[1].to_i.times{
    		fput "get my #{script.vars[2]}"
    		result = waitfor(/You remove|Get what?|I could not find|Wait (1|2|3) sec./)
    		if result =~ /You remove/
    			fput "drop my #{script.vars[2]}"
    		elsif result =~ /Get what?|I could not find/
    			respond "*** NOT ENOUGH ***"
    			exit
    		end
    		
    	}
    elsif script.vars[1].to_i == 0
    	container = GameObj.inv.find{ |item| item.noun == "knapsack" }
    	Script.current.vars[0].split(" ").each{ |vname|
    	if script.vars[1] =~ /\s/
    		respond "* space detected *"
    		respond "* #{vname} *"
    		exit
    		loop{
    			container = GameObj.inv.find{ |item| item.noun == "knapsack" }
    			needed_item = container.contents.find{ |item| item.name =~ /#{vname}/ }
    			if needed_item
    				fput "get my #{needed_item}"
    				fput "drop my #{needed_item}"
    			else
    				break
    			end
    		}
    	else
    		respond "* no space detected *"
    		respond "* #{vname} *"
    		exit
    		loop{
    			container = GameObj.inv.find{ |item| item.noun == "knapsack" }
    			needed_item = container.contents.find{ |item| item.name =~ /#{vname}/ }
    			if needed_item
    				fput "get my #{needed_item}"
    				fput "drop my #{needed_item}"
    			else
    				break
    			end
    		}
    	end
    	}
    	exit
    end

  8. #38

    Default

    it works if I do ;drop gem gem gem but not if I do ;drop gem "gem gem" gem

  9. #39

    Default

    I don't think the script would recognize you putting quotes around some of the command line variables.

    What you would probably need to do is something like separate the gems with multiple words with a comma, so like ;drop ruby star,sapphire emerald

    Then go through each variable like script.vars.each{ } and separate the variables via a comma and now you can make the one words into one words and the two words into two words.

  10. #40

    Default

    I think I am onto something...

    Code:
    vcount = Script.current.vars.count - 1
    vcount.times{
    respond Script.current.vars[1]
    Script.current.vars.shift
    }

    >;test aaa "bbb bbb" ccc
    --- Lich: test active.
    aaa
    bbb bbb
    ccc
    --- Lich: test has exited.

Posting Permissions

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