ScriptUO

Official ScriptUO EasyUO Scripts => Script Library => Misc. Scripts => Topic started by: TrailMyx on February 20, 2009, 11:34:37 PM

Title: TrailMyx's Disguise Kit Commander
Post by: TrailMyx on February 20, 2009, 11:34:37 PM
Code: [Select]
;=================================================================
; Script Name: TrailMyx's Disguise Kit Commander
; Author: TrailMyx
; Version: 1.0
; Shard OSI / FS: OSI / FS OK
; Revision Date: 7/29/2008
; Purpose: A few routines to manage your disguise kit
;   Routines:
;     gosub TM_PeriodicDisguise 10 ; setup TM_PeriodicDisguise to change your disguise every 10 seconds
;     gosub TM_PeriodicDisguise ; call witout argument to test and see if disguise should chainge
;     gosub TM_RandomHairStyle ; no args, just grabs a random new hairstyle
;     gosub TM_ChangeHairStyle {arg} ; where {arg} can be SHORT LONG PONYTAIL MOHAWK PAGEBOY RECEDING 2-TAILS TOPKNOT NONE
;     gosub TM_OpenDisguiseKit ; just finds and opens your disguise kit (retains your set value of #LOBJECTID
; Globals:
; Special Thanks:
;
; Beta testers:
;
;=================================================================

This set of routines helps you manage your appearance with the thieves disguise kit.  The included example code also will allow you to setup a timed event that will change your appearance when the timer expires.  The following example will change your appearance every 10 seconds:

Code: [Select]
; Test code!!!
gosub TM_PeriodicDisguise 10 ; every 10 seconds
repeat
  gosub TM_PeriodicDisguise ; put this call in your main loop somewhere and call it periodically.
until #FALSE

Just one of the zillion different sets of subs I have laying around.....
Title: Re: TrailMyx's Disguise Kit Commander
Post by: Hollywood_Shono on February 21, 2009, 12:55:14 PM
Thank you for posting this script. If I have a mining script going will this screw it up do you think?
Title: Re: TrailMyx's Disguise Kit Commander
Post by: TrailMyx on February 21, 2009, 01:01:56 PM
It shouldn't, but you might want to try anyhow.  I adjust the #LOBJECTID value, but I restore it when I'm done.  Hopefully that will make it work ok.  The best way to make sure it won't mess up your script is to incorporate it into a script instead of letting it run in another tab.  What I'd do is just copy the subs into your script and then just putting the gosub TM_PeriodicDisguise in your main loop somewhere.  In the setup section, just put the gosub TM_PeriodicDisguise 3600 in your setup section when you first run your script.  That will cause a disguise change every 3600 seconds (1 hour).
Title: Re: TrailMyx's Disguise Kit Commander
Post by: Hollywood_Shono on February 22, 2009, 01:17:06 AM
Sorry I apolgoise and I am still learning. I did test it you were right it needs to be run as a sub into the script...... Here is the mining script created by 12TimesOver. Where can I add it in the script so everytime he drop's the ore off at the bank he changes his disguise? Or as you were saying does every 3600 or 1800 seconds but doesnt screw it up. I am still new at this not exactly sure where to add what..... Please help sir.

http://winuo.org/resource-gathering/613-xiixovers-miner-dummies.html  - 12TimesOver's Mining Script.
Title: Re: TrailMyx's Disguise Kit Commander
Post by: Khameleon on February 22, 2009, 02:48:39 AM
ugg I wish I couldit that.. put that in a code box.
Title: Re: TrailMyx's Disguise Kit Commander
Post by: TrailMyx on February 22, 2009, 07:50:05 AM
If I have some time I'll look at it.  I removed the code, you can just post a link to it. 
Title: Re: TrailMyx's Disguise Kit Commander
Post by: OMGBurgers on February 22, 2009, 08:30:44 AM
I think the sub is called dropnstock for banking in that script if i remember right.  Just do a search for it and add it into the top of that sub and you should be good to go.  I think I'm going to add this into my mining script!  But first to get into the thieves guild ;x
Title: Re: TrailMyx's Disguise Kit Commander
Post by: Oracle on February 22, 2009, 10:13:38 AM
What are the rules to get a character into the Thieve's Guild?  Does stealing have to be at 50 or above?
Title: Re: TrailMyx's Disguise Kit Commander
Post by: Hollywood_Shono on February 22, 2009, 10:49:37 AM
What are the rules to get a character into the Thieve's Guild?  Does stealing have to be at 50 or above?

60 Stealing and Blue.
Title: Re: TrailMyx's Disguise Kit Commander
Post by: Hollywood_Shono on February 22, 2009, 10:51:19 AM
If I have some time I'll look at it.  I removed the code, you can just post a link to it. 

Sorry about that, Link is posted... Let me know what you can do. If it can use the disguise kit right from the bank box after it puts the ore away that would probably work best. Then continue on gateing or recalling to the next location. Thanks again sir I appreciate all the help.
Title: Re: TrailMyx's Disguise Kit Commander
Post by: TrailMyx on February 22, 2009, 12:25:52 PM
I carry mine with me.  They are insurable, so I've never lost one yet.  ;)
Title: Re: TrailMyx's Disguise Kit Commander
Post by: Hollywood_Shono on February 22, 2009, 06:18:55 PM
I carry mine with me.  They are insurable, so I've never lost one yet.  ;)

I dont play on prodo shards ^_^
Title: Re: TrailMyx's Disguise Kit Commander
Post by: TrailMyx on February 22, 2009, 06:31:10 PM
Really this is a great little way to start learning how to script.  It's a really easy integration, but something that needs time to test.  Since I can't tell you when I'd have time to fiddle with this, I'd recommend you give it a whirl, and post your questions about it here.  At the moment, I'm working on 2 other scripting projects and doing some major re-writing of SUO. 
Title: Re: TrailMyx's Disguise Kit Commander
Post by: Hollywood_Shono on February 22, 2009, 07:01:41 PM
Alright ill see what i can do to it let me know what i do wrong
Title: Re: TrailMyx's Disguise Kit Commander
Post by: Hollywood_Shono on February 23, 2009, 01:54:03 PM
Attached code removed - TM
I did make a copy to look at.

Will this work?
Title: Re: TrailMyx's Disguise Kit Commander
Post by: TrailMyx on February 23, 2009, 01:59:23 PM
I dunno, does it?  :)

First:
I'm not being evasive; but when I script, I generally run something 100s of times and slowly debug things as I go.  The only way you'll know it really works is just to try it. 

On thing you'll find when you script is that you spend probably 10% of your time actually scripting, and 95% of your time debugging (math error intentional....)

Second:
Please check with 12X to make sure it's ok to re-post his code.  It's not good form here to post the work of other without their permission..

Third:
In order to wrap your posted code, you need code tags.  For that you wrap the posted code with {code] and {/code] (replace "{" with "[")

Title: Re: TrailMyx's Disguise Kit Commander
Post by: TrailMyx on February 23, 2009, 02:10:46 PM
Actually what you've done should be close.  You need to move line 1021 up to where the script first starts.

Code: [Select]
gosub TM_PeriodicDisguise 1200

That will initialize the sub to run every 20 minutes.
Title: Re: TrailMyx's Disguise Kit Commander
Post by: Hollywood_Shono on February 23, 2009, 03:57:10 PM
Actually what you've done should be close.  You need to move line 1021 up to where the script first starts.

Code: [Select]
gosub TM_PeriodicDisguise 1200

That will initialize the sub to run every 20 minutes.

Do I just remove the timer to let it repeat whenever it drops the loot off?
Title: Re: TrailMyx's Disguise Kit Commander
Post by: rana70 on March 14, 2009, 06:45:23 PM
Hi TM,

I tried your SUB today ... and had trouble ...
is it broken by any change  of the client .. or is it me ?

Here is what I have done ...
gosub TM_PeriodicDisguise 180 in the settings area to setup the timer for 3 minutes

later in the script I call every cycle
gosub TM_PeriodicDisguise


All I get is an open Gump every 3 minutes of the Disguise Kit
and I have to click it manually ...

cu
Title: Re: TrailMyx's Disguise Kit Commander
Post by: TrailMyx on March 14, 2009, 06:58:09 PM
To be honest, I haven't played with it since I wrote it.  I'll give it a whirl now..
Title: Re: TrailMyx's Disguise Kit Commander
Post by: TrailMyx on March 14, 2009, 07:06:34 PM
It's working for me right now, but I'm using the older client 6.0.12.3 and EUO v147.
Title: Re: TrailMyx's Disguise Kit Commander
Post by: rana70 on March 14, 2009, 07:10:02 PM
Hi again,

thanks for quick response ... I use the latest client and EUO.
So it meight be me ... I will have a closer look tomorrow.

thank you for testing
cu
Title: Re: TrailMyx's Disguise Kit Commander
Post by: TrailMyx on March 14, 2009, 07:11:52 PM
I just updated my client to 6.0.13.0 and EUO v148.  It's still working for me.

Did you try and run the test code at the top of the script?  That's all I'm doing right now to see the disguise change every 10 seconds.  You might give that a whirl with the basic download.

I'm not running UOA/Razor at the moment and I'm using my Windows 7 box.

Edit:
I just tried it with Razor also running and it still works.  I'm not sure what's going on with your setup...  Oddness.
Title: Re: TrailMyx's Disguise Kit Commander
Post by: Endless Night on August 14, 2009, 08:40:40 AM
So where exactly can i pick up one of these disguise kits from ?
Title: Re: TrailMyx's Disguise Kit Commander
Post by: rana70 on August 14, 2009, 08:47:46 AM
Hi,

 guess this will help

http://www.uoguide.com/Disguise_kit

cu
Title: Re: TrailMyx's Disguise Kit Commander
Post by: Alpha on March 24, 2010, 11:10:58 AM
Some info...

The script doesn't function for ELF characters bc the disguise kit gump is different size than for a human character... (Easily corrected)  The number of hair options for an Elf is also different... 

I've fixxed it for myself but I'm sure if TM gets some time...  his solution will be more elegant..   Anyway just letting people know if they are having probs.

Also.. the corret phrase for joining the theives guild is

NPC-Name Join   
Example the Theif Guildmaster's name is John then I would  say

"John Join"  and do this while standing RIGHT NEXT TO the guildmaster..   He will tell you it's 500 gp cost.

To buy a disguise kit simply stand next to the theif guildmaster and say   "Disguise" and you will be told it's 700gp.
Title: Re: TrailMyx's Disguise Kit Commander
Post by: TrailMyx on March 24, 2010, 11:40:58 AM
Ah, never thought about that.  Thanks for the info!
Title: Re: TrailMyx's Disguise Kit Commander
Post by: Oracle on March 24, 2010, 11:59:56 AM
This Script makes playing 'a thief' even more enjoyable and fun!!!
Title: Re: TrailMyx's Disguise Kit Commander
Post by: Tarpan on January 06, 2011, 10:31:47 PM
Something to consider when joining the thieves guild - being a member will allow you to steal from players, but it also means that you won't be able to give murder counts to anyone that kills you.
Title: Re: TrailMyx's Disguise Kit Commander
Post by: Shawn on March 25, 2013, 01:25:35 PM
Thanks TM!  Tried this and added it to a mining script I have been using and its working perfectly!!  Learned a little in the process too!!  Thx again!
Title: Re: TrailMyx's Disguise Kit Commander
Post by: NObama on March 25, 2013, 03:12:25 PM
Incorrectly read this as "Disguise Kit Commando" which is either far more tactical or far less underwear than TM intended.  Either would be funny.

Carry on.
Title: Re: TrailMyx's Disguise Kit Commander
Post by: Neo on March 25, 2013, 03:28:39 PM
hahahahaha
Title: Re: TrailMyx's Disguise Kit Commander
Post by: TrailMyx on March 26, 2013, 03:56:48 PM
Incorrectly read this as "Disguise Kit Commando" which is either far more tactical or far less underwear than TM intended.  Either would be funny.

Carry on.

I may have to close my window shades at my house since I wander around nekkid all the time. 
Title: Re: TrailMyx's Disguise Kit Commander
Post by: Alpha on March 26, 2013, 08:45:01 PM
Lol TM.....   This probably tmi but my wife pointed out to me that even with our bedroom curtains closed when i get out of the shower & gor for boxers / socks in my dresser the only thing you can see through the gap at the end of curtain is crack... This is really only funny when you realize she was talking our dog out off the deck which is basically right next where my neighbor sits & drinks his coffee in the morning.....   :-\
Title: Re: TrailMyx's Disguise Kit Commander
Post by: gimlet on March 26, 2013, 08:51:28 PM
I have nothing to hide!    :'(
Title: Re: TrailMyx's Disguise Kit Commander
Post by: Neo on March 26, 2013, 08:59:17 PM
Wow, this topic has gotten all weird outta nowhere...  :o
Title: Re: TrailMyx's Disguise Kit Commander
Post by: TrailMyx on March 26, 2013, 09:08:16 PM
Lol TM.....   This probably tmi but my wife pointed out to me that even with our bedroom curtains closed when i get out of the shower & gor for boxers / socks in my dresser the only thing you can see through the gap at the end of curtain is crack... This is really only funny when you realize she was talking our dog out off the deck which is basically right next where my neighbor sits & drinks his coffee in the morning.....   :-\

While we're at TMI, since I've been in the same place for 15 years now, my neighbours completely told me that I "should" close my blinds..  They were kinda insistent on it.  lol.
Title: Re: TrailMyx's Disguise Kit Commander
Post by: NObama on March 27, 2013, 05:20:46 AM
Lol TM.....   This probably tmi but my wife pointed out to me that even with our bedroom curtains closed when i get out of the shower & gor for boxers / socks in my dresser the only thing you can see through the gap at the end of curtain is crack... This is really only funny when you realize she was talking our dog out off the deck which is basically right next where my neighbor sits & drinks his coffee in the morning.....   :-\

While we're at TMI, since I've been in the same place for 15 years now, my neighbours completely told me that I "should" close my blinds..  They were kinda insistent on it.  lol.

Now THAT is funny.  You exhibitionist, you!
Title: Re: TrailMyx's Disguise Kit Commander
Post by: TrailMyx on March 27, 2013, 07:29:19 AM
Now THAT is funny.  You exhibitionist, you!

Ya, it was a bit embarrassing.  Oh well.  No videos have popped up on the interwebz yet, so my efforts of concealing seem to be working.  lol.
Title: Re: TrailMyx's Disguise Kit Commander
Post by: gimlet on March 27, 2013, 07:31:25 AM
maybe you broke there video cameras.   ;)
Title: Re: TrailMyx's Disguise Kit Commander
Post by: Masscre on March 27, 2013, 11:32:30 AM
maybe you broke there video cameras.   ;)
or cameras and they were tired of buying new ones !!
Title: Re: TrailMyx's Disguise Kit Commander
Post by: MeWonUo on March 29, 2013, 10:35:09 AM
Lol TM.....   This probably tmi but my wife pointed out to me that even with our bedroom curtains closed when i get out of the shower & gor for boxers / socks in my dresser the only thing you can see through the gap at the end of curtain is crack... This is really only funny when you realize she was talking our dog out off the deck which is basically right next where my neighbor sits & drinks his coffee in the morning.....   :-\

Maybe that's why your neighbor chooses to drink his coffee there. :D Yikes..
Title: Re: TrailMyx's Disguise Kit Commander
Post by: Alpha on March 29, 2013, 11:27:29 PM
Lol MeWon......   That's not a pretty thought!