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 - jcw

Pages: [1]
1
Stealth Client / Stealth C# questions
« on: August 31, 2015, 01:10:20 PM »
Hello Stealth world.

So I have A couple questions about stealth and C#. I was testing a few things just playing around with it to see some simple stuff.

Stealth.Default.ToggleFly();               Is this working?

Stealth.Default.CastSpell("cure");     
Stealth.Default.WaitTargetSelf();        This seems like target queing. Is there a way to make it wait to finish the 2 actions?

Stealth.Default.UsePrimaryAbility();      Will this do a check its self to see if its already active or do I need to add my own check?

Sorry for the noob coding. I was just trying to play around with it to get a better understanding of the flow.     

Code: [Select]
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace ConsoleApplication1
{
    using ScriptDotNet2;

    class Program
    {
        static void Main(string[] args)
        {
            Stealth.Default.ToggleFly();
            Stealth.Default.ClientPrint("test");
            Stealth.Default.SendTextToUO("test2");
            Stealth.Default.CastSpell("cure");
            Stealth.Default.WaitTargetSelf();
            Stealth.Default.UsePrimaryAbility();
        }
    }
}

2
General UO Chat / Re: Hi all, i want come back
« on: October 19, 2014, 06:29:15 PM »
The House full of mining tools?

3
Scripting Chat / Re: backpack item count
« on: August 23, 2014, 09:03:42 AM »
That is what I was guessing. I was just hoping because it was the backpack would have been a shorter/better way of pulling the info.

4
Scripting Chat / backpack item count
« on: August 22, 2014, 08:57:28 PM »
I was trying to make my script pause when my bag fills up. What I came up with is

Code: [Select]
set #strres 0
while #strres < 3
{
   event property #BACKPACKID
   str count #property $
}
   if 125/125 in #property
   {
      pause
   }

Tried looking to see if there was a easier way of doing this but this is all I can seem to come up with. Was just wondering if there is another way of doing it with out using event property?

5
Scripting Chat / Check Box question
« on: July 29, 2014, 09:52:05 AM »
Is there any way to make a check box work like radio buttons? The only option that I have been able to make work (using yes/no) if cbYes is #true remake cbNo to #false. I was just wondering if there was a better way of doing that.

6
Could just drop the 1 if that is a problem with were you mine. I just Hate blues more than I hate reds.  >:(

Or red healers I have never trusted them. Its a good thing that there are no red healers in fel.

7
Guess I could take a shot at this. I haven't used that script so wouldn't know a good spot to put this but...
Should work just need to add "gosub findred" some were within the main loop.

Code: [Select]
set %pk XU_OCB_IS_AV_
set %runebook  ; runebook with a default stop to recall and halt

sub findred
    finditem %pk G_10
    if #findrep 4 || if #findrep = 5 || if #findrep = 6 || if #findrep = 1  ;only because who trusts blues?
    {
      finditem %runebook C_ , #backpackid
      set #ltargetid #findid
      if #targcurs = 1
      key esc
      event macro 15 31
      target
      event macro 22 0
      halt
    }
return

I am sure there is a cleaner way of doing that but that's about all I am good for right now.

8
Script Debug / Re: save/loading
« on: July 27, 2014, 05:31:45 PM »
OOOO I love you so much I spent most of the night trying to get it to work. At one point I had it working then I broke it and called it a night.

PS. this made me really happy I was making a pvm healper script for my sampire and I needed to save a couple settings.  :)

9
Script Debug / save/loading
« on: July 26, 2014, 08:45:45 PM »
So I am trying to figure out how to load information from a saved file and just having all kinds of issues.

I can make this work but I want a file to look at and edit if need be.

Code: [Select]
sub save
    set *jc_disco_save %discolist
return

sub loadlist
    if *jc_disco_save = n/a
    {
    set %discolist %Peerless
    }
    else
    {
    set %discolist *jc_disco_save
    }
return

And what I was trying to do is load the information from a file.

Code: [Select]
sub save
   execute cmd.exe /c echo set , #spc , ! , discolistsave , #spc , %discolist > test.txt
return

sub loadlist
    call !test.txt
    if !discolistsave = N/A
    {
    set %discolist %Peerless
    }
    else
    {
    set %discolist !discolistsave
    }
return

I didn't think it would have been that easy. I tried looking around to find other scripts that loaded data from a file. The only ones I can find are in TM scripts and well yea. In all of them that save it seems to be a little different. 


Post Merge: July 26, 2014, 09:04:44 PM
Guess it might also help to post what the save file looks like.

Code: [Select]
set !discolistsave WM_ZM_SIB_aab_UM_JN_BD_WM_CD_UZ_Y_DB_DF_ME_AV_

10
I had that problem as well. Whats funny is with windows 7 you can move ezuo to get to the window but with windows 8 you cant.

11
Is any one running windows 8 having problems with when you load your saved setup it loots random stuff? This also is happening on my other computer with windows 7 but not all the time.

12
New member introductions / Re: HELLLo
« on: July 06, 2012, 03:48:10 PM »
Thank you. I have some family and friends who work on the oil rigs and the pay is decent but you get to spend alot of time with the family. Work 7 days then have 7 days off normally.

13
New member introductions / Re: HELLLo
« on: July 06, 2012, 03:26:08 PM »
Yea sure. Im 29 been playing uo about a year after it came out off and on. uo got me hooked on mmo's and turned me into a mmo junky. I have played eq , eq2, aion, lineage 1 and 2 , wow, rift, anarchy online and all ways seem to come back to uo not sure why. Was going to school for computer science then droped out to join the navy and the navy didn't pan out the way it was supposed to. But end up meeting a wounder full woman that plays uo to. So it works out lol. Been married for a year now and lovin life.

Atm trying to get a job on the oil rigs (far shot from computer science lol)

and in a nut shell thats a speedy run down of me.

14
New member introductions / HELLLo
« on: July 05, 2012, 01:38:49 PM »
Hi my name is John I like long walks in the park and........

O back to topic

I have played uo for about ever from osi to free shards and just coming back from a longgggg break. Tried going to winuo but they tried to sell me a cell phone in Chinese I think. Then searched and stumbled upon this site. And I hope to join the community.

On a side note im liking some of the changes that they have made to osi over the last few years.

Pages: [1]