ScriptUO

Scripting Resources & Utilities => Stealth Client => Stealth archive => Topic started by: said3 on July 11, 2015, 12:20:56 AM

Title: Problem with Corpse identifying
Post by: said3 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]
Title: Re: Problem with Corpse identifying
Post by: TrailMyx on July 11, 2015, 12:54:44 PM
That's strange.  The same analogy can be drawn from EUO. 2 different kinds of cows, but 1 kind of body.  That's pretty much what I have working in my leather farmer, and I don't seem to miss many bodies.  Sometimes I might miss one because i'm trying to do something too fast, but for the most part I catch most bodies.
Title: Re: Problem with Corpse identifying
Post by: said3 on July 12, 2015, 04:46:39 AM
I've noticed that the black ones are missing completely and i don't know if its a coding issue or stealth not recognizing bodies...