RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

This SDK is awesome, aid please

Cear Cabal

Wanderer
This SDK is awesome, aid please

ok this is insanely awesome.

im a C# programmer but ive never coded outide of .net aside from XNA, which i have falled in love with.

Anyhow im making a simple application to aide in RP pvp.

my first stage is this,

if(cliloc message is "your are bleeding profusely")
{
"you say this"
}


sure i can make the client say things but my ask for aid is with catching what cliloc message the client is displaying.

Any help?
 

Cear Cabal

Wanderer
Just not getting it.

I can call the cliloc strings and display them in the client. i just cant detect if one is being displayed and send my own text....


How to detect clilocs, that is the question
 

Cear Cabal

Wanderer
Aye Aye thank you. I actually gave UOAI up due to lack of documentation. even tho the ultima SDK has less.
and i was very close to reaching my goal.
Atleast with the ultima sdk i was able to make the client send out messages. i can even get it to send out cliloc messages. I just cant seem to get my program to know when a certian cliloc message is displayed in the client.
UOAI seems so dead, so does this too its sadening. its not even listed in the main forum index.


this is what i had before i moved to XNA for its update method

Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Ultima;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        private void Form1_Load(object sender, EventArgs e)
        {
            
        }
        public static StringList SL = new StringList("ENU");
        private void Say(object sender, EventArgs e)
        {
            if (SL.Table == SL.Table[3000211])
            {
                Client.SendText(textBox1.Text.ToString());   
            }
            MessageBox.Show(SL.Table[3000211].ToString());
        }
            
    }
}





this was my xna code

Code:
        public object Bleed = SL.Table[1060757].ToString();
        public object Bleed2 = SL.Table[1060757];
        protected override void Update(GameTime gameTime)
        {
            if(SL.Table.Contains(Bleed2)|| SL.Table.ContainsKey(Bleed2) || SL.Table.Contains(Bleed))
            {
                Client.SendText(Bleed.ToString());
            }

            base.Update(gameTime);
        }

im always able to get and say the cliloc string. just can detect when the client calls it.
 
Top