Page 1 of 1

So what's a Lavishscript file look like?

Posted: Tue Mar 22, 2005 3:33 pm
by billthecat
I've been looking around for some examples of Lavishscript. So far I havn't seen any here or in "Lavish Software Forum Index -> GamingTools Members::Inner Space" or in Wiki.

Maybe I just don't recognize them or I misunderstood something and Inner Space runs MQ2 macros? I didn't get the impression that IS would work with the current macros though...

Just looking for a forward link here.

Posted: Tue Mar 22, 2005 3:44 pm
by Lax
There's actually two that Inner Space creates and uses itself. There's also examples on ismods.com, if you are a Lavish subscriber.

AutoExec.iss

Code: Select all

function main()
{
  declare Count int local 1
  do
  {
    if !${Session[is${Count}]}
    {
      Uplink Name is${Count}
      WindowText is${Count} (Ctrl+Alt+${Count})

      GlobalBind is${Count}_key Ctrl+Alt+${Count} "WindowVisibility foreground"
      return
    }
    varcalc Count ${Count}+1
  }
  while ${Count}<10
}
PreInit.iss

Code: Select all

function EQSession()
{
; customize this part for EverQuest 1
  alias normalsize WindowSize -Reset
  alias tinysize WindowScale 20
  alias normalposition WindowPos -viewable ${Display.DesktopX},${Display.DesktopY}
  alias tinyposition WindowPos ${Math.Calc[${Display.DesktopX}+10].Int},${Math.Calc[${Display.DesktopY}+10].Int}
  alias fullscreenmouse DIMouse on
  alias normalmouse DIMouse on
  alias tinymouse DIMouse off
  alias pipforeground normal

  bind fullscreenkey shift+alt+f fullscreen
  bind normalkey shift+alt+n normal
  bind tinykey shift+alt+t tiny
  bind releasekey "Scroll Lock" DIMouse -lock toggle
  bind next ctrl+alt+x "uplink focus -next"
  bind previous ctrl+alt+z "uplink focus -previous"
}

function NormalSession()
{
; customize this part for other games
  alias normalsize WindowSize -viewable 1024x768
  alias tinysize WindowSize -viewable 256x192
  noparse alias normalposition WindowPos -viewable ${Display.DesktopX},${Display.DesktopY}
  noparse alias tinyposition WindowPos ${Math.Calc[${Display.DesktopX}+10].Int},${Math.Calc[${Display.DesktopY}+10].Int}
  alias fullscreenmouse
  alias normalmouse
  alias tinymouse
  alias pipforeground normal

  bind fullscreenkey shift+alt+f fullscreen
  bind normalkey shift+alt+n normal
  bind tinykey shift+alt+t tiny
  bind next ctrl+alt+x "uplink focus -next"
  bind previous ctrl+alt+z "uplink focus -previous"
}

function main()
{
  noparse alias showtexturemem hudadd TextureMem 20,35 "Texture Memory Available: ${Display.TextureMem}MB"
  alias hidetexturemem hudrem TextureMem
  noparse alias showsystemram hudadd SystemRAM 20,20 "System RAM Available: ${System.MemFree}MB/${System.MemTotal}MB"
  alias hidesystemram hudrem SystemRAM
  alias memoryindicatorON "varset memoryindicatorTOGGLE memoryindicatorOFF;showsystemram;showtexturemem"
  alias memoryindicatorOFF "varset memoryindicatorTOGGLE memoryindicatorON;hidesystemram;hidetexturemem"
  declare memoryindicatorTOGGLE string global memoryindicatorON
  noparse bind memoryindicator CTRL+ALT+M "execute ${memoryindicatorTOGGLE}"

  memoryindicatorON

  if ${Game.Name.Equal[EverQuest]}
  {
    FileRedirect eqlsPlayerData.ini "eqlsPlayerData-${Profile}.ini"
    INIRedirect eqclient.ini * * "eqclient-${Profile}.ini" * *
    call EQSession
  }
  else
    call NormalSession

noparse alias fullscreen "WindowSize -fullscreen;WindowPosition -viewable ${Display.DesktopX},${Display.DesktopY};fullscreenmouse"
alias normal "normalsize;normalposition;normalmouse"
alias tiny "tinysize;tinyposition;tinymouse"

}
Lavish Subscribers can check the ISMods forums -- the Scripting category specifically, as well as the Scripting forum in the WoW category

Posted: Mon May 15, 2006 4:42 pm
by Lax
Note: The above post is no longer a valid example of LavishScript. It was at the time of the post, in March 2005.

Re: So what's a Lavishscript file look like?

Posted: Mon Jan 05, 2026 9:27 am
by xyilla

Re: So what's a Lavishscript file look like?

Posted: Mon Jan 05, 2026 9:28 am
by xyilla

Re: So what's a Lavishscript file look like?

Posted: Mon Jan 05, 2026 9:29 am
by xyilla

Re: So what's a Lavishscript file look like?

Posted: Mon Jan 05, 2026 9:31 am
by xyilla

Re: So what's a Lavishscript file look like?

Posted: Mon Jan 05, 2026 9:32 am
by xyilla