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.


Topics - 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
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?

3
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.

4
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_

5
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]