ScriptUO

Official ScriptUO EasyUO Scripts => Script Library => Misc. Scripts => Topic started by: camotbik on September 22, 2011, 08:58:32 AM

Title: CAMOTbIK's Journal logger
Post by: camotbik on September 22, 2011, 08:58:32 AM
Code: [Select]
;=====================================================================
; Script Name: CAMOTbIK's Journal logger
; Author: CAMOTbIK
; Version: 0.4 Alfa
; Client Tested with: 7.0.14.0
; EUO version tested with: 1.92
; Shard OSI / FS:  FS WWW.RWUO.COM
; Revision Date: 2011/09/22
; Public Release: 2011/09/22
; Global Variables Used: None
; Purpose: Journal log
;=====================================================================
(http://img546.imageshack.us/img546/3784/journal3.png)
Nothing fancy, but this little thing helps me read the chat, when I come back from whatever I was doing..


Title: Re: CAMOTbIK's Journal logger
Post by: camotbik on September 22, 2011, 02:32:02 PM
Ok now, maybe someone knows, how to handle the tricky editbox by pressing enter to send the message trough? )
Title: Re: CAMOTbIK's Journal logger
Post by: Neo on September 23, 2011, 04:55:10 AM
Code: [Select]
set %_jindex #jindex
repeat
  onhotkey ENTER
  {
    menu get shout_edit ; set this to the name of the edit box where you'll write stuff
    event macro 4 4 #menures
    menu set shout_edit
  }
  if #jindex >= %_jindex
  {
    scanjournal
    if %entry <> #journal
    {
      menu get Public
      set %Public #MENURES
      menu get Guild
      set %Guild #MENURES
      menu get Faction
      set %Faction #MENURES
      menu get Aliance
      set %Aliance #MENURES
      set %entry #journal
      gosub underscore %entry
      set %time #time / 100
      set %hour  %time / 100
      set %minutes %time - ( %hour * 100 )
      if %Guild = #true && [Guild] in %entry
      {
      menu List Add EUOListBox1 %hour , : , %minutes #result
      continue
      }
      if %Faction && <Faction> in %entry
      {
      menu List Add EUOListBox1 %hour , : , %minutes #result
      continue
      }
      if %Aliance && [Alliance] in %entry
      {
      menu List Add EUOListBox1 %hour , : , %minutes #result
      continue
      }
      if %Public
      menu List Add EUOListBox1 %hour , : , %minutes #result
    }
    set %_jindex %_jindex + 1
  }
    if #menubutton = Pause
  {
    set #MENUBUTTON N/A
    menu Delete Button Pause
    menu Button Start 468 208 77 17 START
    repeat
      wait 0
    until #menubutton = Start
    menu Delete Button Start
    menu Button Pause 468 208 77 17 PAUSE
    set #MENUBUTTON N/A
  }
until #false
Title: Re: CAMOTbIK's Journal logger
Post by: camotbik on September 23, 2011, 05:05:46 AM
heh, i was thinking about onhotkey before, but I thought it only works ingame, not in a menu. Thanks.
ps: maybe some one knows, how to shut off the sound(beep) on pressing enter in editbox?
Title: Re: CAMOTbIK's Journal logger
Post by: Neo on September 23, 2011, 05:07:38 AM
heh, i was thinking about onhotkey before, but I thought it only works ingame, not in a menu. Thanks.
ps: maybe some one knows, how to shut off the sound(beep) on pressing enter in editbox?
Is it making a beep sound when you press enter on the edit box?

EDIT: yeah, just turned on the sound and heard it here... It's an editbox thing for when you push enter in your edit box...
Title: Re: CAMOTbIK's Journal logger
Post by: Canuker on September 23, 2011, 12:22:46 PM
Sometimes the stuff that I see written blows me away, I would have never seen the need for this before but my goodness would it be interesting to read and sneak peeks.
Title: Re: CAMOTbIK's Journal logger
Post by: camotbik on September 23, 2011, 12:29:50 PM
lol, i just read the code and i forgot to put few = #TRUE in, so fixed.
Title: Re: CAMOTbIK's Journal logger
Post by: Neo on September 23, 2011, 12:42:53 PM
lol, i just read the code and i forgot to put few = #TRUE in, so fixed.

Don't think you forgot... I removed them when I wrote the code for the enter key stroke thing... They are not needed...
Title: Re: CAMOTbIK's Journal logger
Post by: camotbik on September 23, 2011, 02:31:38 PM
you mean
Code: [Select]
if %Faction
is the same as
Code: [Select]
if %Faction = #true
?
Title: Re: CAMOTbIK's Journal logger
Post by: Neo on September 23, 2011, 02:55:25 PM
you mean
Code: [Select]
if %Faction
is the same as
Code: [Select]
if %Faction = #true
?
Yes
Title: Re: CAMOTbIK's Journal logger
Post by: camotbik on September 23, 2011, 11:15:41 PM
cool, didn't know that
Title: Re: CAMOTbIK's Journal logger
Post by: Endless Night on October 07, 2013, 05:16:40 PM
Congratulations your Script has been moved to Script library
(If you feel the script is in the wrong section please send me a pm.)

Thank you for your submission.