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

Pages: [1]
1
Stealth Client / Function types and result
« on: April 24, 2017, 04:16:04 AM »
Hi all,

I am having an issue trying to debug a script that I have not written myself but as some of us do, tweak to our needs. This is the part that I cannot understand why it does not work
Spoiler: show
function CheckTiles:Array of array of Integer;
var
X0,Y0,i,q,x,y,One,Two:Integer;
StaticData:TStaticCell;
h:Byte;
TSTData:TStaticTileData;
Tiles:Array of array of Integer;
begin
  for i:=0 to 33 do begin
    x:=-15;
    y:=2;
    if i>0 then begin
      if One=Two then begin
        Inc(One);
      end
      else begin
        Inc(Two);
      end;
    end;
    While True do begin
      X0:=GetX(Self)+x+One;
      Y0:=GetY(Self)+y+Two;
      StaticData:=ReadStaticsXY(X0,Y0,WorldNum);
      if GetLayerCount(X0,Y0,WorldNum)<1 then begin
        if x>2 then break;
        Inc(x);
        Dec(y);
        Continue;
      end;
      TSTData:=GetStaticTileData(StaticData.Statics[0].Tile);
      h:=TSTData.Height;
      if (StaticData.Statics[0].Tile>3275) and (StaticData.Statics[0].Tile<3300) then begin
        SetLength(Tiles, q+1);
        SetLength(Tiles[q], 4);
        Tiles[q][0]:=StaticData.Statics[0].Tile;
        Tiles[q][1]:=StaticData.Statics[0].X;
        Tiles[q][2]:=StaticData.Statics[0].Y;
        Tiles[q][3]:=StaticData.Statics[0].Z;
        if x>2 then break;
        Inc(q);
        Inc(x);
        Dec(y);
        Continue;
      end
      else begin
        if x>2 then break;
        Inc(x);
        Dec(y);
        Continue;
      end;
    end;
  end;
  Result:=Tiles;
end;

The function is declared as array of array of integer, and the variable that I want to return is another array of array of integers, but when I try to compile the script. It pops up an issue saying Result and tiles are not the same type therefore it stops...

Any help with this please? I am sure it is a silly thing but I cannot figure it out on my own...

Thanks in advance

2
Stealth Client / Client Connection Lost
« on: February 25, 2017, 05:58:32 AM »
So I solved my problems with EUO and now, stealth doesn't want to allow me to see my precious chars.

I log in with stealth, and everything is fine, the problem comes when I want to open the client, I get a connection lost every single time that I try to open it and it makes impossible to see what my char does.

Any ideas of what's causing the issue?

Thank you.

3
Script Debug / EasyUo and win10
« on: February 20, 2017, 11:26:28 PM »
Hi all!

I left the game time ago and I wanted to come back to do some crazy farming but it seems that EasyUo doesn't work anymore as it used to...

I'm struggling to get it working at the minute, issues that I have found:

   -It doesn't recognize tiles anymore using muls (Probably a change on the client?)
   -I cannot use the control tools to step into, step over, and basically any debugging that I was doing normally.
   -It crashes my client after some tweaking around...

Could it be possible that win10 is interfering with it?

Is it time to move all my scripts to StealthUO... I'm sure @Crome would be proud of me doing that...

Any help is really appreciated, hope you have a good day guys.

4
Submit your Script / Auto HLD farmer (RebirthUo)
« on: November 10, 2015, 10:46:07 AM »
Simple as it sounds, this script will use all you ingots stored at home and convert them into a pretty pair of Mace and shield Glasses.

This script is completely functional on RebirthUo.

Setup:
- 2 Runes: One to a box at home, the second one close enough to the Samurai NPC within Britain Library.
- 1 Container at home with a lot of iron.
- Craft the first buckler yourself

You also need to setup the different IDs of the Runes, the container and also the Samurai NPC.

After that press play at home with your container open. Congrats getting your fancy glasses at www.rebirthuo.com

5
Stealth archive / Problem with Corpse identifying
« on: July 11, 2015, 12:20:56 AM »
Hi all, im trying to develop my skills in stealth and as a basic exercise i'm trying to create a leather gatherer for cows. It seems that everything goes smoothly but there is a type of cow that stealth doesnt recognize its corpse, if i'm not wrong there are red/white cows and black/white cows ingame, but both corpses are type $2006, is there anything im doing wrong? Because i'm loosing half of the leather i could get, this is what i coded.
Any help would be really appreciated.

Spoiler: show
[sup] procedure killcow    ;  
begin
    cow[1]:=$00D8;
    cow[2]:=$00E7;
      while weight < 340 do
      begin
      FindDistance := 20;
      if (FindType(cow[1],Ground)>0) then
      begin;
      attack(FindItem);
      while GetDistance(FindItem)>2 do
      begin
          NewMoveXY(GetX(FindItem),GetY(FindItem),true,1,true);
          wait(3000);
        end ;
        end;
       if (FindType(cow[2],Ground)>0) then
      begin;
      attack(FindItem);
      while GetDistance(FindItem)>2 do
      begin
          NewMoveXY(GetX(FindItem),GetY(FindItem),true,1,true);
          wait(3000);
        end ;  
         end;
      FindDistance := 2;    
      if FindType($2006,Ground)<>0 then
                begin
                Corpse:=FindItem;
                WaitTargetObject(Corpse);
                UseType(cleaver,$FFFF);
                UseObject(Corpse);
                end
              
      end
      end; [/sup]

6
Stealth archive / Handling Stealth
« on: November 28, 2014, 11:51:25 PM »
Hi, first i want to say is that i'm trying to learn Stealth but there are some things that i can't really get along with.

First of all, Gumps, i don't really know how to implement those in my scripts, i was trying to do a simple script, i just wanted that my char pops up a gump, then buy something and finally move that item to my bank, everything in the same spot.

I am struggling a lot with this, how does stealth manage gumps? When i learnt EUO it was everything self explaining, but i'm having a lot of problems with gumps and strings, i don't quite get the idea of what is a string, and im getting frustrated when i see that i can't do what i want to do on stealth like with EUO.

I'm really helpless, if anyone out there could give some advice on how to learn and improve.. i would really appreciate it.

7
Questing / said3 Heartwood trinket weaver quester
« on: May 20, 2013, 09:11:43 AM »
Well first of all, i want to thank everybody in this forum for doing this awesome web possible. Second i want to thank TrailMyx and Crome because all the stuff they did here made this quester possible, i learned a lot from you two guys.

So here i go, this is my first released script and hope i continue doing stuff like this. I've been asked to do this on my server by some guildmates and i just wanted to share it here, because i think its updated to the last patch and can work everywhere.

I have to thank Crome again, because i used his Crome's heartwood quester as a base for doing this script, so i hope you don't mind on what i did here, if u have any issue with it i will just delete this post (really hope you don't =))

So here is the deal, you will need Kalocr on the same folder as you save this script, because i call it on one sub to read the quest title and accept it. The script is set to do Neccesity's Mother quest as i wanted to farm Scrapper's compendium and Pendant of the magi recipes.

Its so easy you just need a lot of iron on your backpack a couple of tinker tool's and also you have to do A TINKER TOOL BEFORE YOU RUN THE SCRIPT this is very important because i use make last for crafting.

You can use a beetle also, all you have to do is follow the setup and when it says target your runic tool box target the beetle.

The script will save talismans and rare recipes.

So i hope you can give me a good feedback and also if u have any ideas on how to improve it, just say it! I' will try to add it. Good luck guys.

8
New member introductions / Hi guys
« on: February 03, 2012, 02:35:32 PM »
Hello everyone, i spent so much years playing UO and now i want to comeback with a new mentality, i had to stop to play it because i was focused on my basketball team and also in my studies, now i learned some C++ from college and i want to use it to become a good scripter here, i dont have so much time because i'm busy with college stuff, but i want to spend some time on UO and scripting, i really want to join this community and learn from all of you.
I have to apologize because i was looking for one script and my first post is not this one. So sorry guys i really apologize for that, i should have read the rules before post, but... now i cant fix my mistake, i can only do this.
By the way i was reading a lot about scripts and there is some differences with tables and arrays that i cant get properly (im talking from my c++ knowledge and this is a little wierd for me) if u can give me a link about the basics-medium level i will really aprecciate it.
Also i have to admit my english is not perfect, but i will try hard for you to understand me when i write.

Hugs and kisses for everyone, Graves. =)

Pages: [1]