Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Endless Night

Pages: 1 ... 4 5 [6] 7 8 ... 260
76
New member introductions / Re: New to SUO
« on: January 20, 2020, 04:18:29 PM »
welcome to scriptuo....

77
Endless Nights' Script Library / Re: ENs - Subs - Gumps
« on: January 18, 2020, 12:47:01 PM »
Are there any examples on how to read rune names out of Runebook or Runic Atlas'?

Sorry, I'm trying to navigate around, but this looks like a really powerful sub

Theses dont OCR the gumps,  they just recognize and manipulate gumps, click buttons etc that sort of stuff.    To read names in a rune-book you need ocr subs, most people use kalocr.

78
New member introductions / Re: New Player, well kinda...
« on: January 17, 2020, 10:31:59 AM »
welcome to scriptuo.

79
New member introductions / Re: Hello UO Friends!
« on: January 17, 2020, 10:31:13 AM »
great intro... welcome to scriptuo.         One of my memories from early up days was the great effort that was needed just to get past the entrance to brit safely.  The swarms of reds just waiting to take down anyone entering or leaving...    ... How fast can you run...   I almost always made it purely because i was on a T1 line  ....

80
Scripting Tutorials / Re: New Menu Code and how to adapt old scripts
« on: January 15, 2020, 02:08:31 PM »
+ reputation    :)

Thanks for this...  I wonder if any of my scripts are broken ...

81
New member introductions / Re: Charcoal returns to Ultima Online
« on: January 15, 2020, 02:03:02 PM »
welcome to scriptuo...

82
New member introductions / Re: Hi, I'm new
« on: January 14, 2020, 07:48:24 AM »
welcome to scriptuo
Hi im new allso, cant wait to get maddogs jeholem bull pin script.

Not gona happen unless you post a new member intro.

83
Scripting Chat / Re: Looking for help
« on: January 10, 2020, 09:37:30 AM »
I hate gotos and repeated code so i rewrote your script with no gotos.   And added in an attack function...     This is just an example for you to expand your knowledge with...

I miss how GOTOs would make Cerveza's veins in his head nearly burst. lol

Gotos make me go bat *bleep* crazy lol  ...  :o

84
Scripting Chat / Re: Looking for help
« on: January 10, 2020, 09:36:41 AM »
I hate gotos and repeated code so i rewrote your script with no gotos.   And added in an attack function...     This is just an example for you to expand your knowledge with...

I miss how GOTOs would make Cerveza's veins in his head nearly burst. lol

So I was kind of on the right track?

It looked like your code would work yes.  You just needed to add attack function.    Finditem offers an easy way to see if something is in a 10 tile radius    G_10  see code in above post

85
Scripting Chat / Re: Looking for help
« on: January 09, 2020, 07:33:15 AM »
I hate gotos and repeated code so i rewrote your script with no gotos.   And added in an attack function...     This is just an example for you to expand your knowledge with...


Code: [Select]
set %hotkey DELETE  ; Pauses Script
set %paused #false
set %Enemy N/A
 
; Setup:
set #targcurs 0
set #targcurs 1
event SysMessage Target The Enemy You Wish To Attack
while #targcurs = 1
         {
          wait 1
         }
set %Enemy #ltargetid
set %enemykind #ltargetkind
event SysMessage Enemy set.

; main Loop:
repeat
  onhotkey %hotkey
    {
       if %Paused
           {
            event sysmessage Resumed.
            set %paused #false
            wait 20
            }
       else
            {
            event sysmessage Paused.
            wait 10
            set %paused #true
            }
       }
   if ! %Paused
        gosub AttackEnemy
  wait 1
until #charghost = #true    ; repeat until dead.
halt  ; end the script

sub AttackEnemy
   finditem %enemyid G_10   ; find enemy within a radius of 10 from me.
   If #findcnt > 0
     {   ; if found attack it.
     set #ltargetID %enemyid
     set #ltargetkind  %enemykind   
    event maco  ....      ; attackdont rember the event macro numbers.
     }
return

86
Scripting Chat / Re: Looking for help
« on: January 07, 2020, 07:04:27 AM »
Hey everyone!! I’m trying to write a script, but I need some guidance. I’ve read the tutorials on here, and they helped somewhat. But what I have in mind, is a little different. I don’t want to put specifics on here, but would love it if an experienced coder could pm me, and maybe we can work together to create the script.

Post what you want to do, its possible it already exists and you just don't know,  or sections of code that you could use already exist.

87
Scripting Chat / Re: BOD Obtaining Script?
« on: January 05, 2020, 07:46:26 AM »
Did you check script library I cannot imaging this does not exist already,.

I found 1, but it doesn't seem to work for me :(

In that case post a message in the thread that the script came from, your problem may have already been solved.

88
New member introductions / Re: Hello all
« on: January 05, 2020, 07:43:34 AM »
welcome to scriptuo

89
New member introductions / Re: Im back and happy to be here!
« on: January 05, 2020, 07:43:06 AM »
welcome to scriptuo

90
Script Debug / Re: Sorting Scrolls
« on: January 02, 2020, 08:40:29 AM »
Damit,  I rewrote your script to make it more generic,  I left it overnight to go out and party, new years eve and I suffered a poweroutage.  I was hoping i had posted it here and I didnt save it opps... Ow well

The basics of the modification was to remove all ignore items, and instead use a finditem    then  for #findindex 1 #findcnt loop.
Then eliminate all the duplicate drag drop code and implement a gosub drapdrop   subroutine.    And finally add all the search strings to a list and then itterate through the list looking for a match each time.

Sorry if above doesn't make sense,  I tried good luck let us know how it all works out.

Pages: 1 ... 4 5 [6] 7 8 ... 260