ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: Cerveza on March 31, 2011, 05:02:54 AM

Title: New Script - Screenshots
Post by: Cerveza on March 31, 2011, 05:02:54 AM
I'm going to throw this out to the masses.

THIS (http://www.ctm-app.co.uk/) is a screenshot program written specifically for UO. It works from a hotkey.

We could write a simple Journal Scan (TM's journal scanning tools) wrapper that would trigger that hotkey whenever we wanted.

Thus providing us with a configurable screenshot tool.

I have not d-loaded, ran, checked, nor have any knowledge of this screenshot tool other then seeing it today. If it works as advertised it could be adapted to be triggered by a script easily enough.

Thoughts? Anyone wanna run with it?
Title: Re: New Script - Screenshots
Post by: Cerveza on March 31, 2011, 06:34:20 AM
Did you want that released in public?
Title: Re: New Script - Screenshots
Post by: Scrripty on March 31, 2011, 08:04:47 AM
Did you want that released in public?

I don't see why not.  It's pretty simplistic.  Far from my special uber screenshot version! :)

Code: [Select]
;==============================================================================
; Script Name: Twinkle McNugget's PVP Picture Taker
; Author: Twinkle McNugget
; Version: Bleh
; Client Tested with: Newest
; EUO version tested with: 1.5 newest
; Shard OSI / FS: OSI
; Revision Date: Wednesday January 27, 2009
; Public Release: BETA should work tho.
; Credits: TrailMyx(journal, general help) many others...
;==============================================================================

set %capturekey1 F12
set %capturekey2 ALT

;-------Set these to your comments in pictures-------

; 0-5 death pic comments
set %picture0 Uhhh , #spc , pwned.
set %picture1 Seriously... , #spc , owned.
set %picture2 You , #spc , got , #spc , got.
set %picture3 You , #spc , can't , #spc , pvp.
set %picture4 I , #spc , wasn't , #spc , even , #spc , trying.
set %picture5 You , #spc , were , #spc , gonna , #spc , die, , #spc , you , #spc , just , #spc , didn't , #spc , know , #spc , it.
; 6-10 attacking, being attacked pic comments
set %picture6 Oh , #spc , no , #spc , you , #spc , didn't.
set %picture7 I'm , #spc , gonna , #spc , beat , #spc , you , #spc , with , #spc , my , #spc , ugly , #spc , stick!
set %picture8 You , #spc , shouldn't , #spc , attack , #spc , me...
set %picture9 Bad , #spc , idea , #spc , son...
set %picture10 The , #spc , force , #spc , is , #spc , weak , #spc , in , #spc , this , #spc , one.
; 11-15 frozen pic comments
set %picture11 Eh, no problem.
set %picture12 Nothing , #spc , to , #spc , see , #spc , here... , #spc , move , #spc , along!
set %picture13 I , #spc , GOTS , #spc , TA , #spc , POP , #spc , DA , #spc , BOX!
set %picture14 Noob.
set %picture15 Mages... , #spc , too , #spc , funny. , #spc , *laughs*
; 16-20
set %picture16 All , #spc , kill , #spc , no , #spc , skill.
set %picture17 Pfft. , #spc , Dismount?
set %picture18 Really?
set %picture19 Seriously? , #spc , haha
set %picture20 HAHAHAH

;--------delay to take the picture-------------------
set #lpc 100
set %delay 15
;--------Main code... do not modify below this-----
;--------Scanning the journal------------------------
set %jstart #jIndex
repeat
if #jindex >= %jstart
{
    scanJournal %jstart
    if gold_has_been_deposited in #JOURNAL
    {
      set %picNum ( #random % 6 )
      gosub picture
    }
    if attacking in #JOURNAL
    {
      set %picNum ( #random % 4 + 6 )
      gosub picture
    }
    if you_cannot_move in #JOURNAL
    {
      set %picNum ( #random % 4 + 11 )
      gosub picture
    }
    if you_fall_off in #JOURNAL
    {
      set %picNum ( #random % 4 + 16 )
      gosub picture
    }
    set %jstart %jstart + 1
}
wait 0
until #charghost = yes

;--------Taking the picture-------------------------

sub picture
event macro 21 0 ; all names
event macro 3 0 %picture . %picNum
key %capturekey1 %capturekey2
wait %delay
key %capturekey1 %capturekey2
set %jstart #jIndex
return
Title: Re: New Script - Screenshots
Post by: Cerveza on March 31, 2011, 08:08:17 AM
Now, I think the screenshot program will sequentially number the screenshots so you wouldn't need it in the script.

Title: Re: New Script - Screenshots
Post by: Scrripty on March 31, 2011, 08:10:33 AM
Now, I think the screenshot program will sequentially number the screenshots so you wouldn't need it in the script.



That's not what this does.  :)  This randomly picks between a set number of sayings to say right as you kill someone and get in the screenshot! heh
Title: Re: New Script - Screenshots
Post by: Cerveza on March 31, 2011, 08:29:40 AM
Ahhh lol... cool.
Title: Re: New Script - Screenshots
Post by: TrailMyx on March 31, 2011, 08:32:17 AM
You can try my screenshot utility:

http://www.scriptuo.com/index.php?topic=3971.0

It seemed to crash Twinkle McNugget, but never crashed for me.  Might be useful to get someone else to test and perhaps I can locate this supposed crash error.
Title: Re: New Script - Screenshots
Post by: Cerveza on March 31, 2011, 08:36:15 AM
Again, this post is public, the links you guys are putting up are in the Elite section...

TM - do you want that script released public?
Title: Re: New Script - Screenshots
Post by: TrailMyx on March 31, 2011, 08:54:19 AM
Sure, mine can be released.  You can play with this one, but I have a new version I forgot about.  The crash error is probably gone now because I wrote the actual screen capture portion of the code myself.  I was relying on windows before.