Page 1 of 1

Need some help

Posted: Sat Jul 07, 2012 5:13 am
by rage447
HI, While botting Dod with 4 chars sometimes i get a strange error with 1-3 of my chars.
Dont know what to do
Does anybody know what to do ?
Unbenannt.PNG

Re: Need some help

Posted: Sat Jul 07, 2012 6:28 am
by lisa
Hmm interesting. well that line is

Code: Select all

partymemberpawn[i]:update()
Only thing I can think of is that the update is getting an occasional issue when a party member is zoning, so the memory address changes.

The error itself doesn't make sence for the line but it must be part of the update itself failing. Might have to look at it when I have a bit more time, unless Rock has some time to check it out.

Re: Need some help

Posted: Sat Jul 07, 2012 6:51 am
by lisa
Had a quick loot and I probably don't need to use the pawn update at all since all I want is the X Z values for distance calculation, so I could add in the actual memory reads into the function itself and then deal with errors in the function aswell.
I might get a little time tomorrow to have a look at it.

--=== Edit ===--

When you call the function checkparty(_dist) do you have a yrest of atleast 500 in the loop ?
If not try increasing the yrest to 500+ and then test it, the function uses an in game macro and might need the half a second between calls.

Re: Need some help

Posted: Sat Jul 07, 2012 7:34 am
by rage447
This is may Waypoint

Code: Select all

  <!-- #  2 --><waypoint x="1673" z="-5004" y="760">
			
			
				  Countround()
              
			  
			    local groupnumber = RoMScript("GetNumPartyMembers()")
					if gcheck() == false then 
						cprintf(cli.red, "--==Not in a Groupe==--\n")
						repeat
						until gcheck() == true
						__WPL:setWaypointIndex(__WPL:findWaypointTag("enter"))
					else
						keyboardPress(key.VK_SPACE)
						repeat
						until checkparty(80) == true
						selfname()
						yrest(1000)
					end
					keyboardPress(key.VK_SPACE)
					yrest(2000)
				</waypoint>   

Re: Need some help

Posted: Sat Jul 07, 2012 7:50 am
by rock5
So that's your 'may' waypoint? May was awhile ago. Where are your June and July waypoints? :lol:

Re: Need some help

Posted: Sat Jul 07, 2012 7:52 am
by rage447
Oh sry for my terrible english ^^

i forgot the second waypoint on which it chrashs

Code: Select all

!-- # 12 --><waypoint x="2186" z="2530" y="408" type="NORMAL" tag="bossfight"></waypoint>  yrest(5000)
               if gcheck() == true then
                  if Instancereset == true then
                     Boss_buff()
					 yrest(2000)
                     player:fight()
                  elseif not Instancereset == true then
                     keyboardPress(key.VK_SPACE)
					  yrest(5000)
                     local _time = os.time()
                     repeat
                     until checkparty(100) == true or (os.time() - _time > 120)
                     Boss_buff()
                     player:fight()
                  end
               elseif not gcheck() == true then
                  Boss_buff()
                  player:fight()
               end
			   player:lootAll()
			   player:loot()
			   player:loot()
            yrest(3000)

Re: Need some help

Posted: Sat Jul 07, 2012 7:30 pm
by lisa

Code: Select all

                     repeat
                     until checkparty(100) == true or (os.time() - _time > 120)

add in a rest

Code: Select all

                     repeat
yrest(700)
                     until checkparty(100) == true or (os.time() - _time > 120)

Also give this file a try, goes in classes folder, just replace existing file
party.lua
changed partycheck to just update memory of Z and X and not entire pawn info.
(5.11 KiB) Downloaded 130 times
You can always go back to the default file by doing SVN revert on the file.

Re: Need some help

Posted: Sun Jul 08, 2012 11:43 am
by rage447
Thanks Lisa =) Woking now perfekt.
830 mems/h