Page 2 of 2

Re: How to get the runes that I have in an item

Posted: Sat Apr 13, 2013 4:01 am
by rock5
lisa wrote:I might leave the object info as

Code: Select all

      self.Address = ptr;
      self.Name = "<UNKNOWN>";
      self.Id = 0;
      self.Type = PT_NONE;
      self.X = 0.0;
      self.Y = 0.0;
      self.Z = 0.0;
      self.TargetPtr = 0;
      self.HP = 1000;
      self.MaxHP = 1000;
      self.Class1 = CLASS_NONE;
      self.Level = 1;
Personally, I wouldn't add them. Especially if they aren't used. They add unnecessary time, especially for non mob searches. I just did a test.

With the extra info

Code: Select all

Command> local tt = getTime() for i = 1,100 do local objectList = CObjectList()
objectList:update() end print(deltaTime(getTime(),tt))
7970.7192605234
Without the extra info

Code: Select all

Command> local tt = getTime() for i = 1,100 do local objectList = CObjectList()
objectList:update() end print(deltaTime(getTime(),tt))
5680.7516513624
That looks significant to me.