Page 1 of 1

Please help script butterflies

Posted: Sun Jul 28, 2013 1:21 pm
by Lamkefyned
hello

someone can tell me that I have wrong here?

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<waypoints>
	<!-- Updated>28/07/2013 20:00 PM PST<-->
	<onLoad>
function quest()
   local queststate = getQuestStatus("Catch Butterflies")
   if queststate == "complete" then
      player:mount()
      __WPL:setForcedWaypointType("TRAVEL")
			end
		end
		function getDailyComplete()
			return RoMScript("Daily_count();");
		end
		function checkDQCount()
			local _tmpQC = getDailyComplete();
			cprintf(cli.lightblue,"%s quests completed.\n",tostring(_tmpQC));
			if (_tmpQC == 10) then
				cprintf(cli.lightblue,"Completed max number of daily quests, logging out.\n");
				player:logout();
			end
		end
		
		settings.profile.friends = {"Ogest","Kupferg\132rtner",105293,105292,105291,105290,105299};
		changeProfileOption("EGGPET_ENABLE_ASSIST",false);
		changeProfileOption("LOOT_ALL",true);
		changeProfileOption("TARGET_LEVELDIF_BELOW",30)
			end
		end
	</onLoad>
<!-- #  1 --><waypoint x="6449" z="5438" y="174">	
player:target_NPC("Robbie Butcher");
CompleteQuestByName("Catch Butterflies");
player:target_NPC("Robbie Butcher");
AcceptQuestByName("Catch Butterflies");
</waypoint>
<!-- #  2 --><waypoint x="6376" z="4945" y="185">__WPL:setForcedWaypointType("TRAVEL")
player:mount();
</waypoint>
<!-- #  3 --><waypoint x="6541" z="3878" y="207">	</waypoint>
<!-- #  4 --><waypoint x="6389" z="3229" y="191">	</waypoint>
<!-- #  5 --><waypoint x="6401" z="2776" y="184">	</waypoint>
<!-- #  6 --><waypoint x="6226" z="2730" y="184">	</waypoint>
<!-- #  7 --><waypoint x="6196" z="2850" y="185">	</waypoint>
<!-- #  8 --><waypoint x="6079" z="2825" y="184">	</waypoint>
<!-- #  9 --><waypoint x="6129" z="2562" y="185">	</waypoint>
<!-- # 10 --><waypoint x="6248" z="2352" y="183">__WPL:setForcedWaypointType("NORMAL")	</waypoint>
<!-- # 11 --><waypoint x="6303" z="2140" y="184">	</waypoint>
<!-- # 12 --><waypoint x="6478" z="1750" y="185">	</waypoint>
<!-- # 13 --><waypoint x="6473" z="1339" y="183">	</waypoint>
<!-- # 14 --><waypoint x="6522" z="1148" y="185">	</waypoint>
<!-- # 15 --><waypoint x="6676" z="1101" y="183">	</waypoint>
<!-- # 16 --><waypoint x="6573" z="1121" y="183">	</waypoint>
<!-- # 17 --><waypoint x="6458" z="1539" y="184">	</waypoint>
<!-- # 18 --><waypoint x="6356" z="1947" y="184">	</waypoint>
<!-- # 19 --><waypoint x="6316" z="2129" y="185">	</waypoint>
<!-- # 20 --><waypoint x="6182" z="2475" y="185">player:mount() </waypoint>
<!-- # 21 --><waypoint x="6062" z="2829" y="184">	</waypoint>
<!-- # 22 --><waypoint x="6187" z="2849" y="185">	</waypoint>
<!-- # 23 --><waypoint x="6220" z="2752" y="185">	</waypoint>
<!-- # 24 --><waypoint x="6402" z="2770" y="184">	</waypoint>
<!-- # 25 --><waypoint x="6376" z="3276" y="193">	</waypoint>
<!-- # 26 --><waypoint x="6594" z="3785" y="179">	</waypoint>
<!-- # 27 --><waypoint x="6374" z="4926" y="185">__WPL:setForcedWaypointType("NORMAL")	</waypoint>
</waypoints>

Re: Please help script butterflies

Posted: Sun Jul 28, 2013 2:08 pm
by rock5
Looks like you have a couple of 'end's too many at the end of your onload.

Re: Please help script butterflies

Posted: Sun Jul 28, 2013 2:27 pm
by Lamkefyned
thanks