Page 1 of 1

Heffner Daily - Wont accept quest

Posted: Sun Oct 21, 2012 1:51 am
by ZZZZZ
Just putting together a waypoint file for the daily quest "Earn a Reputation". Using:

Code: Select all

	<!-- # 10 --><waypoint x="-7107" z="-4130" y="172" tag='Main'>	</waypoint>
         local dqCount, dqPerDay = RoMScript("Daily_count()");
         if 10 > dqCount then   
            queststate = getQuestStatus("Earn a Reputation");
        if queststate = "complete" then
            -- Complete quest
               player:target_NPC("Hugope");
               CompleteQuestByName("Earn a Reputation");
            __WPL:setWaypointIndex(__WPL:findWaypointTag("Main"));   
        else
            -- Accept quest
               player:target_NPC("Hugope");
               AcceptQuestByName("Earn a Reputation");
            __WPL:setWaypointIndex(__WPL:findWaypointTag("Quest"));	
            end
        else
            __WPL:setWaypointIndex(__WPL:findWaypointTag("Done"));
         end
Currently it all works fine, except for accepting and completing the quest so just runs in an endless loop...too tired to think clearly atm so thought i would ask here...lol

Re: Heffner Daily - Wont accept quest

Posted: Sun Oct 21, 2012 1:56 am
by Hidden
ZZZZZ wrote:Just putting together a waypoint file for the daily quest "Earn a Reputation". Using:

Code: Select all

	<!-- # 10 --><waypoint x="-7107" z="-4130" y="172" tag='Main'>	
         local dqCount, dqPerDay = RoMScript("Daily_count()");
         if 10 > dqCount then   
            queststate = getQuestStatus("Earn a Reputation");
        if queststate = "complete" then
            -- Complete quest
               player:target_NPC("Hugope");
               CompleteQuestByName("Earn a Reputation");
            __WPL:setWaypointIndex(__WPL:findWaypointTag("Main"));   
        else
            -- Accept quest
               player:target_NPC("Hugope");
               AcceptQuestByName("Earn a Reputation");
            __WPL:setWaypointIndex(__WPL:findWaypointTag("Quest"));	
            end
        else
            __WPL:setWaypointIndex(__WPL:findWaypointTag("Done"));
         end
</waypoint>
Currently it all works fine, except for accepting and completing the quest so just runs in an endless loop...too tired to think clearly atm so thought i would ask here...lol
</waypoint> in the wrong spot :D so was skipping all the code

Re: Heffner Daily - Wont accept quest

Posted: Sun Oct 21, 2012 2:13 am
by ZZZZZ
..... lol .....

Thanks

Re: Heffner Daily - Wont accept quest

Posted: Mon Oct 22, 2012 1:44 am
by ZZZZZ
All works fine. Just wondering though, would anyone know why the bot 'overshoots' a waypoint? (particularly on a mount) Its a real pain especially when running through tight area's where it gets stuck...i thought it might be due to computer lag but there is no difference between using normal client and Ultra Model folder so i'm lost..Any info would be greatly appreciated :)

Re: Heffner Daily - Wont accept quest

Posted: Mon Oct 22, 2012 2:24 am
by lisa
ZZZZZ wrote:All works fine. Just wondering though, would anyone know why the bot 'overshoots' a waypoint? (particularly on a mount) Its a real pain especially when running through tight area's where it gets stuck...i thought it might be due to computer lag but there is no difference between using normal client and Ultra Model folder so i'm lost..Any info would be greatly appreciated :)
Are you in combat at the time?
Since you are mounted I mean a mob is trying to attack you.

Re: Heffner Daily - Wont accept quest

Posted: Mon Oct 22, 2012 3:03 am
by ZZZZZ
Nope, all my waypoints seem to do the same thing...my main issue is with the Heffner Daily i recently made, it's the 2nd time i have remade the waypoints and it still runs further than it should. I even tried putting in extra waypoints to try and break up the length it runs in the hope it would fix it but still no improvement.

Re: Heffner Daily - Wont accept quest

Posted: Mon Oct 22, 2012 3:39 am
by rock5
If you are not fighting, try changing to travel mode so it doesn't waste time looking for mobs.

Re: Heffner Daily - Wont accept quest

Posted: Mon Oct 22, 2012 7:02 pm
by ZZZZZ
If you are not fighting, try changing to travel mode so it doesn't waste time looking for mobs.
Worked a charm, thanks :D