Discordance UOS Script

Discussion in 'Helpful Guides' started by Spinnich, Jul 27, 2016.

  1. Spinnich

    Spinnich Newbie

    Joined:
    Nov 18, 2015
    Messages:
    15
    Likes Received:
    2
    Trophy Points:
    3
    Gender:
    Male
    Hopefully this is the right sub-forum for this post, if not please move it accordingly!
    Anyways, with a lot of help from Schism I wrote this script for training Discordance with a mount for someone who was asking for said script on Discord. I decided that why not share it with everyone? This works best when you use it in conjunction with "a giant beetle" around 65 Discordance. Enjoy!

    Code:
    // Created by: Schism & Spinnich v0.6
    // Date created: 27JUL2016
    // Date modified: 01AUG2016
    // Be sure to assign 'mount' in:
    // "general" -> "combat" -> "dismount"
    // This script does not have to be run in a loop.
    // // // // // // // // // // // // // // //
    //Checks to see if you have any instruments, otherwise the script halts.
    if @findtype 0xeb1 'any' 'backpack' // Standing Harp
    elseif @findtype 0xeb2 'any' 'backpack' // Lap Harp
    elseif @findtype 0xeb3 'any' 'backpack' // Lute
    elseif @findtype 0xe9c 'any' 'backpack' // Drum
    elseif @findtype 0xe9d 'any' 'backpack' // Tambourine
    elseif @findtype 0xe9e 'any' 'backpack' // Tambourine with red tassle
    else
    sysmsg "You have no instruments!" 24
    stop
    endif
    //Creates an instrument pushlist if it does not exist.
    if not listexists 'instrumentlist'
    @createlist 'instrumentlist'
    @pushlist 'instrumentlist' 0xeb1 // Standing Harp
    @pushlist 'instrumentlist' 0xeb2 // Lap Harp
    @pushlist 'instrumentlist' 0xeb3 // Lute
    @pushlist 'instrumentlist' 0xe9c // Drum
    @pushlist 'instrumentlist' 0xe9d // Tambourine
    @pushlist 'instrumentlist' 0xe9e // Tambourine with red tassle
    endif
    //Select an instrument automatically to use.
    for 0 to 'instrumentlist'
    while @findtype instrumentlist[]
    @setalias 'instrument' 'found'
    useobject 'instrument'
    while @findobject 'instrument' 'any' 'backpack'
    //Dismounts self if mounted.
    if mounted 'self'
    togglemounted
    endif
    //Uses Discordance and targets assigned 'mount'.
    useskill 'Discordance'
    autotargetobject 'mount'
    pause 4000
    if @injournal "jarring music" 'system'
    while not mounted 'self'
    togglemounted
    pause 16000
    @clearjournal
    endwhile
    elseif @injournal "already in discord" 'system'
    while not mounted 'self'
    togglemounted
    pause 16000
    @clearjournal
    endwhile
    endif
    endwhile
    endwhile
    endfor

    Second script for using a creature that isn't a mount! This uses hiding to lose Line of Sight(LoS). If you don't have GM hiding you'll have to run the script inside your house to not fail hiding.
    Code:
    // Created by: Schism & Spinnich v0.6
    // Date created: 27JUL2016
    // Date modified: 01AUG2016
    // This script does not have to be run in a loop.
    // // // // // // // // // // // // // // //
    //Checks to see if you have any instruments, otherwise the script halts.
    if @findtype 0xeb1 'any' 'backpack' // Standing Harp
    elseif @findtype 0xeb2 'any' 'backpack' // Lap Harp
    elseif @findtype 0xeb3 'any' 'backpack' // Lute
    elseif @findtype 0xe9c 'any' 'backpack' // Drum
    elseif @findtype 0xe9d 'any' 'backpack' // Tambourine
    elseif @findtype 0xe9e 'any' 'backpack' // Tambourine with red tassle
    else
    sysmsg "You have no instruments!" 24
    stop
    endif
    //Creates an instrument pushlist if it does not exist.
    if not listexists 'instrumentlist'
    @createlist 'instrumentlist'
    @pushlist 'instrumentlist' 0xeb1 // Standing Harp
    @pushlist 'instrumentlist' 0xeb2 // Lap Harp
    @pushlist 'instrumentlist' 0xeb3 // Lute
    @pushlist 'instrumentlist' 0xe9c // Drum
    @pushlist 'instrumentlist' 0xe9d // Tambourine
    @pushlist 'instrumentlist' 0xe9e // Tambourine with red tassle
    endif
    //Prompt to set alias for discordance target.
    headmsg "Target the creature you wish to use Discordance on." 24
    promptalias 'creature'
    //Select an instrument automatically to use.
    for 0 to 'instrumentlist'
    while @findtype instrumentlist[]
    @setalias 'instrument' 'found'
    useobject 'instrument'
    while @findobject 'instrument' 'any' 'backpack'
    //Uses Discordance and targets assigned 'creature'
    useskill 'Discordance'
    autotargetobject 'creature'
    pause 4000
    //Checks journal to see if creature is already in Discordance and hides if true.
    if @injournal "jarring music" 'system'
    while not hidden 'self'
    useskill 'Hiding'
    pause 1000
    endwhile
    @clearjournal
    pause 16000
    elseif @injournal "already in discord" 'system'
    while not hidden 'self'
    useskill 'Hiding'
    pause 1000
    endwhile
    clearjournal
    pause 16000
    endif
    endwhile
    endwhile
    endfor
     
    Last edited: Aug 2, 2016
  2. Tek

    Tek Alpha Tester

    Joined:
    Sep 11, 2015
    Messages:
    29
    Likes Received:
    4
    Trophy Points:
    8
    Gender:
    Male
    Glad you guys share your macros, i wish to give you advice. Add to it failure check, otherwise you will waste 17 seconds if you did not succeed discordance.
     
  3. SoulWeaver

    SoulWeaver Neophyte

    Joined:
    Jun 15, 2016
    Messages:
    34
    Likes Received:
    13
    Trophy Points:
    8
    Here are my quickest results using Spinnach's Scripts I did it from scratch.

    Train discord from the Npc brings you to about 27-30+ skill.

    25-55 Polar Bears
    55-91 Blue Beetles
    91-106 Cu Sid's
    Training 106-120 now let you all know what i use after. I went from 30-106 in pretty much 48 hours probably less because it wasnt going none stop.
     
    Last edited: Aug 9, 2016
    Spinnich likes this.
  4. Spinnich

    Spinnich Newbie

    Joined:
    Nov 18, 2015
    Messages:
    15
    Likes Received:
    2
    Trophy Points:
    3
    Gender:
    Male
    Glad to hear it's helping ya! Although I'm a little jealous it sounds like you have a 120 Discord PS already!
     

Share This Page