Page 1 of 1

Waypoint or userfunction for daily level 90 in salioca

Posted: Wed Feb 25, 2015 9:30 am
by Nadanthiel
Someone have a waypoint or other to do dailies in new map level 90, Salioca?

Please! thanks!

Re: Waypoint or userfunction for daily level 90 in salioca

Posted: Tue Mar 24, 2015 3:57 pm
by Rintintin
This is my Waypoint for the Quest for Healing/treating the Mushrooms.
That takes approx. 2-3min per Day.

But riding to the quest is very annoying.
Coords: 72 / 37

Re: Waypoint or userfunction for daily level 90 in salioca

Posted: Tue Mar 24, 2015 5:48 pm
by rock5
You could just use TravelTo userfunction to get there automatically.

Hm... which reminds me. I need to update TravelTo with the new zone. Looks like I can't get to it. Do you have to do the quest chain to get there? Can someone get the info for me? I need the following.
  • - The ID of the Salioca Basin Snoop (Use getid.lua)
    - The coordinates of the Salioca Basin Snoop (Use getpos.lua)
    - Whether Wailing Fjord Snoop links to it and what name is displayed.
    - Whether Hortek Snoop links to it and what name is displayed.
    - What links are displayed in the Salioca Basin Snoop dialog.

Re: Waypoint or userfunction for daily level 90 in salioca

Posted: Mon Apr 13, 2015 2:51 am
by sauhard

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
<onload>
	time = os.time();		-- Startingtime of Waypoint
	questItemId 	= 209974;	-- WaluPilz
	batchieGras 	= 209975;		
	questGiverId 	= 123217; -- Gulali;
	questid 		= 426848;
	buffid			= 625116;
	questName 		= GetIdName(questid);
	questtype 		= "daily"; -- "public" or "daily";
	
	if not player:hasBuff(622537) then
		cprintf (cli.pink,"Pet for morer XP/TP not summoned. Continue?\n");
		player:sleep();
	end

	
	__WPL:setForcedWaypointType("TRAVEL")	
	
	pilztable = {}
	local objectList = CObjectList();
	objectList:update();
	local objSize = objectList:size()
	for i = 0,objSize do 
		obj = objectList:getObject(i)
		obj:update();
		if obj.Id == 123218 then
			table.insert(pilztable,obj)
		end
	end
	
	function questsDone()
		local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()");
		if (dailyQuestCount==dailyQuestsPerDay) then
			return true;
		else 
			cprintf(cli.pink,"Noch %s Dailys uebrig\n",dailyQuestsPerDay-dailyQuestCount);
			return false;
		end
	end	
	
function pilzeSammeln() 

		if inventory:itemTotalCount(batchieGras) == 0 then
			print ("Kein BatchieGrass - Quest neu annehmen!");
--			player:sleep();
			return false;
		end
	
		repeat 
			for k,v in pairs(pilztable) do 
				player:target(v)
				target = player:getTarget();
				if target:hasBuff("Insektenbiss") then
					inventory:useItem(GetIdName(batchieGras));
				end
			end
		until  getQuestStatus(GetIdName(questid)) == "complete" 

end
	

</onload>
	<!-- #  1 --><waypoint x="22116" z="25905" y="853" tag="questGiver">
		player:target_NPC(questGiverId) -- Koka Li
		if getQuestStatus(questName) == "complete" then
			CompleteQuestByName(questName);
			yrest(150);
			__WPL:setWaypointIndex(__WPL:findWaypointTag("questGiver"));
		else
			AcceptQuestByName(questName,questtype) 
		end
			
		if (questsDone() and questtype == "daily") or keyPressed(key.VK_SHIFT)  then
			cprintf (cli.pink,"Time spend for this daily: %s Minutes\n",(os.time()-time)/60);
			sendMacro("Logout();");
			error("TQ done.",0);
			
		end
	</waypoint>

<!-- #  2 --><waypoint x="22116" z="25905" y="855" tag="feld">pilzeSammeln();</waypoint>	
</waypoints>

How do we add a daily quest reset option in it? Like if i wanna spam dqt standing there all day long ? :P

Re: Waypoint or userfunction for daily level 90 in salioca

Posted: Mon Apr 13, 2015 8:43 am
by rock5
Please use the Code button for code instead of Quote. I've changed it for you.

If you do a search on the forum for "daily reset" you should find lots of examples.

Re: Waypoint or userfunction for daily level 90 in salioca

Posted: Tue Apr 14, 2015 2:30 pm
by Rintintin
I created a waypoint which brings you from Sturopur to the regarding Daily.
When the char arrives the destination, it'll start the daily automatically.

It uses the userfunction "useGoodie" in the onLoad Section. See http://www.solarstrike.net/phpBB3/viewt ... =usegoodie for more details.


Please note:
You probably want to adjust the path to the files within the waypoint.

Line 168:

Code: Select all

loadPaths("tqs/Walu-Pilzzucht");