ScriptUO

Official ScriptUO EasyUO Scripts => Script Library => Misc. Scripts => Topic started by: NObama on February 02, 2014, 06:08:25 AM

Title: NObama's Harpsichord Filler
Post by: NObama on February 02, 2014, 06:08:25 AM
NObama's Harpsichord Filler

-Automated Setup
-Have a bag of music rolls in your backpack
-Stand next to a placed harpsichord
-Press play & follow instructions

This one is pretty simple, so I doubt anyone will have questions.

Code: [Select]
;============================================
; Script Name: NObama's Harpsichord Filler
; Author: NObama
; Version: 0.99
; Client Tested with: 5.0.1h 60
; EUO version tested with: 1.5
; Shard OSI / FS:  FS (Alexandria) / OSI OK
; Revision Date:  01-Feb-14
; Public Release: 02-Feb-14
; Global variables:  none
; Purpose: Fills a harpsichord from a bag of music rolls.
;============================================
_Main:
display Target your bag of music
    set #TARGCURS 1
    repeat
    until #TARGCURS = 0
    set %musicbag #LTARGETID
    set #LOBJECTID #LTARGETID
    event macro 17 0 ; last object, open container
    wait 20
display Target your placed Harpsicord
    set #TARGCURS 1
    repeat
    until #TARGCURS = 0
    set %harpsicord #LTARGETID
    wait 20
repeat
    finditem NTCB C_ , %musicbag
    if #findcnt > 0
       {
       set #LOBJECTID #FINDID
       event macro 17 0
       set #LTARGETID %harpsicord
       event macro 22 0
       wait 20
       }
    ignoreitem #findid
until #findcnt = 0
display The remaining music rolls are duplicates!
halt
Title: Re: NObama's Harpsichord Filler
Post by: gimlet on February 02, 2014, 06:55:26 AM
Cool!
Title: Re: NObama's Harpsichord Filler
Post by: Endless Night on April 07, 2015, 10:15:20 AM
Congratulations your Script has been moved to the script library
(if you dont think the section is appropriate please pm me)
Thank you for your submission



(Nobamma when are you going to learn how to use for x=1 #findcnt   instead of repeated finditem/ignoreitems....  works either-way just nit picking)
Title: Re: NObama's Harpsichord Filler
Post by: NObama on April 19, 2015, 06:31:54 AM
=P
Title: Re: NObama's Harpsichord Filler
Post by: gimlet on April 19, 2015, 06:34:44 AM
If it works - don't knock it! heheheheheehe
Grats!