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

Pages: [1]
1
New member introductions / Hey all !
« on: December 30, 2015, 04:21:32 PM »
My charname is Mieza, a big fan of Ultima Online. I'm a 32 year old guy who's been playing UO for about 16 years, mostly on freeshards. I'm a lover of Felucca, as a result of being a PVPer. Beside of this, i spend my time in my home which is close to Vesper (my fav. town). I've lots of stories, memories about UO...
In the "real" world, i'm a mechanical engineer. I'm interested in physics, maths, programming, algorithms. I like coding, i usually write in c#. Last year i met with UO stealth. I've been writing my own codes in EasyUO and UO Stealth...
 I hope, you'll let me in :)

2
Stealth archive / Re: c# scripting problem
« on: January 14, 2015, 11:45:08 AM »
Ty for reply. A small question about time-based events. Which way do u prefer in c# if you need to use timers? Can you give an example :)

3
Stealth archive / c# scripting problem
« on: January 14, 2015, 09:25:28 AM »
Code: [Select]
namespace firstMacro
{
    class Program
    {
        static DateTime lastBandage;
        static DateTime nextBandage;
        static double bandageDelay;

        static void Main(string[] args)
        {
            lastBandage = DateTime.Now;
            while (true)
            {
                int hp = Stealth.Script_GetSelfLife();
                int maxHp = Stealth.Script_GetSelfMaxLife();
                if (hp < maxHp)
                {
                    BandageSelf();
                }

            }
        }

        public static void BandageSelf()
        {
            bandageDelay = 5.0 + (0.5 * ((double)(120 - Stealth.Script_GetSelfDex()) / 10));
            nextBandage = lastBandage.AddSeconds(bandageDelay + 0.2); // + 0.2s is just for testing.

            if (nextBandage <= DateTime.Now)
            {
                Stealth.Script_SendTextToUO("[band");   // [band is a server command for bandaging.
                lastBandage = DateTime.Now;
            }
        }
        
    }
}


The problems are;
1- Stealth does'nt get hitpoints and any other stats instantly. (because of this, the script can't start to aid instantly)
2- After aiding successfuly, if hitpoints equals to maxhits, the script starts to wait the delay even if the character gets wounded in that time. (this could be related to script)

Stealth version : 6.0.0
Client version : 6.0.1.10
(if i want to update my stealth version, there becomes lots of problems, its the most stable version for me right now)




4
Stealth archive / Cannot create server directory
« on: January 13, 2015, 10:44:55 PM »
I'm playing on a freeshard that has a name includes colon ( : ) in. Because of this, when stealth client tries to create a server based directory, it can't. Is there a solution of this?

Post Merge: January 14, 2015, 01:50:01 AM
I've tested in other servers, no problem. The problem as i've said before is the server's name includes colon ( : ). I think it's not a big issue to fix. Need help :)

Pages: [1]