Author Topic: Problem with Corpse identifying  (Read 1163 times)

0 Members and 1 Guest are viewing this topic.

Offline said3Topic starter

  • Jr. Member
  • **
  • Posts: 50
  • Activity:
    0%
  • Reputation Power: 1
  • said3 has no influence.
  • Respect: +20
  • Referrals: 2
    • View Profile
Problem with Corpse identifying
« on: July 11, 2015, 12:20:56 AM »
0
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]
« Last Edit: July 11, 2015, 12:23:07 AM by said3 »

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 12917
  • Activity:
    1%
  • Reputation Power: 150
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1328
  • Referrals: 32
    • View Profile
    • ScriptUO
Re: Problem with Corpse identifying
« Reply #1 on: July 11, 2015, 12:54:44 PM »
0
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.
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline said3Topic starter

  • Jr. Member
  • **
  • Posts: 50
  • Activity:
    0%
  • Reputation Power: 1
  • said3 has no influence.
  • Respect: +20
  • Referrals: 2
    • View Profile
Re: Problem with Corpse identifying
« Reply #2 on: July 12, 2015, 04:46:39 AM »
0
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...

Tags: