Need little help :D for dod waypoint

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
flashgump
Posts: 15
Joined: Fri Sep 23, 2011 10:49 am

Need little help :D for dod waypoint

#1 Post by flashgump » Sun Jun 10, 2012 7:10 am

hi all, i don't find my error.... :'( can you help me plz, i make waypoint for DOD
my personnal waypoint work very good 250 momentos/hours :D
i juste want help other player, with simple good waypoint...

ps: sry for my english :s

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<onLoad>
---=================#!#=======================---------------#!#-------------==============================#!#=========================---	
---=     # Line 18 add your name                                      # Line 64 add your boss buff/food/potions                       =---
---=     # Line 19 add name first alt                                 # Line 202 change dura weapon                                   =--- 
---=     # Line 20 add name second alt if you want                                                                                    =--- 
---=     # Line 21 add name third alt if you want                                                                                     =---
---=     # Line 28 to 32 add your skill what you will use for attack boss                                                             =---
---=     # Line 22 choose difficuty instance "normal" or "easy"                                                                       =---
---=================#!#=======================---------------#!#-------------==============================#!#=========================---	
		__WPL:setWaypointIndex(__WPL:findWaypointTag("start"))
		settings.profile.mobs = {"NeverAttackMobs"};
		settings.profile.options.AUTO_ELITE_FACTOR = 9999;
		settings.profile.options.MAX_FIGHT_TIME = 15;
		settings.profile.options.MAX_TARGET_DIST = 300
		settings.options.MELEE_DISTANCE = 55;
		
		NamePlayer = YourName
		Invite1 = AddInvite1
		Invite2 = AddInvite2
		Invite3 = AddInvite3
		InstanceLvL = normale
		Count = 0
		Zid = 0
---=================#!#=======================---------------#!#-------------==============================#!#=========================---			
	function bossAttackCombo(bossname)
		if player.Name == "NamePlayer" then	
			if not player:cast("SCOUT_VAMPIRE_ARROWS") then return false; end                            
			if not player:cast("SCOUT_COMBO_SHOT") then return false; end              	        
			if not player:cast("SCOUT_PIERCING_ARROW") then return false; end              
			if not player:cast("SCOUT_SHOT") then return false; end              
			if not player:cast("SCOUT_PIERCING_ARROW") then return false; end           
			end;
		end
	end
---=================#!#=======================---------------#!#-------------==============================#!#=========================---
	function LootTargetSolo()
		timeout = os.time();
		while true do
			player:update();
			target = player:getTarget();
			if target == nil then
				break;
			end
			target:update();
			Attack();
			yrest(100);
			if target.Lootable == false or os.difftime(os.time(), timeout) > 1 then
				break;
			end
		end
	end;
---=================#!#=======================---------------#!#-------------==============================#!#=========================---
	function AdjustPosition(X, Z)
		if distance(player.X, player.Z, X, Z) > 20 then
			player:moveTo(CWaypoint(X, Z), true);
		end
	end;
---=================#!#=======================---------------#!#-------------==============================#!#=========================---	
	function FacePosition(X, Z)
		local angle = math.atan2(Z - player.Z, X - player.X);
		local yangle = 0;
		player:faceDirection(angle, yangle);
		camera:setRotation(angle);
	end
---=================#!#=======================---------------#!#-------------==============================#!#=========================---	
function AttackableTarget()
	player:update();
	local target = player:getTarget();
	if target == nil then
		print("Target is nil");
		return false;
	end
	target:update();
	
	if false then
		print("--------------");
		print("Target Name: "..target.Name);
		print("Target Level: "..target.Level);
		print("Target HP: "..target.HP);
		print("Target MaxHP: "..target.MaxHP);
		if target.Lootable then
			print("Lootable");
		else
			print("Not Lootable");
		end
		if target.Alive then
			print("Alive");
		else
			print("Not Alive");
		end
		if target.Attackable then
			print("Attackable");
		else
			print("Not Attackable");
		end
		if target.Aggressive then
			print("Aggressive");
		else
			print("Not Aggressive");
		end
		if player.Battling then
			print("Battling");
		else
			print("Not Battling");
		end
		print ("HP percent: ".. (target.HP/target.MaxHP)*100);
		print("--------------");
	end
	
	if (1 > target.HP) then
		print("AttackableTarget: no hp")
		return false;
	end
	if target.Lootable then
		print("AttackableTarget: lootable")
		return false;
	end
	if not target.Attackable then
		print("ntAttackableTarget: not attackable")
		return false;
	end
	if not target.Alive then
		print("AttackableTarget: not alive")
		return false;
	end
	return true;
end
---=================#!#=======================---------------#!#-------------==============================#!#=========================---	
	function findzi()
		keyboardHold( settings.hotkeys.MOVE_FORWARD.key )
			yrest(500)
		keyboardRelease( settings.hotkeys.MOVE_FORWARD.key )
		waitForLoadingScreen(2)
			local getinlvl = sendMacro('GetInstanceLevel()')
			if getinlvl == ("easy") then
				zid = 128
			elseif getinlvl == ("normal") then
				zid = 127
			elseif getinlvl == ("hard") then
				zid = RoMScript("GetZoneID()");
			sendMacro('SetInstanceLevel("InstanceLvL")');
				cprintf(cli.blue, "Instance Lvl change to normal\n")
			end
	end
---=================#!#=======================---------------#!#-------------==============================#!#=========================---			
	function Invite()
		if player.Name == "NamePlayer" then
			yrest(50);
			sendMacro('InviteByName("Invite1")');
			yrest(50);
			sendMacro('InviteByName("Invite2")');
			yrest(50);
			sendMacro('InviteByName("Invite3")');
		end
	end
---=================#!#=======================---------------#!#-------------==============================#!#=========================---	
	function BossPotion()
		if (not player:hasBuff("506684")) then   -- Gouv Speed Potion --
			inventory:useItem(207200);
		end  
		if (not player:hasBuff("503479")) then   -- Magic Parfum for pet if you want take more momentos --
			inventory:useItem(207582);
		end  
		if (not player:hasBuff("506273")) then   -- Phy Damage food codex --
			inventory:useItem(206876);
		end
		if (not player:hasBuff("501337")) then   -- Hero Potion --
			inventory:useItem(200277);
		end
	end;
---=================#!#=======================---------------#!#-------------==============================#!#=========================---			
	function ireset()
		SlashCommand("ILG destroy")
		yrest(500)
		solorun()
	end
---=================#!#=======================---------------#!#-------------==============================#!#=========================---						
	function solorun()
		cprintf(cli.lightred, "  --===# !!! WARNING !!! #===--\n")
		cprintf(cli.lightgreen, "  --===# I am run Solo. #===--\n")
		inventory:update();
		inventory:findItem(206879, "all");
		print("  --===# Nbr de Jetons #===--  :", inventory:itemTotalCount(206879));
		sendMacro('SetInstanceLevel("normal")');
		cprintf(cli.lightblue, "  --===# Instance LvL Normale #===--\n")
	end
---=================#!#=======================---------------#!#-------------==============================#!#=========================---				
	function NeedReparation()
		local dura = inventory:getMainHandDurability();
        printf("Weapon Durability:%s\n", dura);
			if (85 > dura) then
				player:update(); 
				cprintf(cli.lightred, "--=== !!! GO REPAIR !!! ===--\n");
				__WPL:setWaypointIndex(__WPL:findWaypointTag("repair"));
			end
			if( 3 > inventory:getItemCount(0) ) then
				cprintf(cli.lightred, "--=== !!! GO SELL !!! ===--\n");
				__WPL:setWaypointIndex(__WPL:findWaypointTag("repair"));
			end
		end	
---=================#!#=======================---------------#!#-------------==============================#!#=========================---			
	function Countround()
		Count = Count+1;
			cprintf(cli.pink, "  --===# Round Nbr: %s\n\n", Count )
	end
---=================#!#=======================---------------#!#-------------==============================#!#=========================---			
	unregisterTimer("timedSetWindowName");
    local _starttime = os.time()
    local _startmomentos = inventory:itemTotalCount(206879)
    local function _window()
      local _timepassed = (os.time() - _starttime)/3600 -- total time in hours
      local _gatheredmomentos = inventory:itemTotalCount(206879) - _startmomentos -- total momentos aquired since starting
      local _momentosperhour = (_gatheredmomentos/_timepassed)
      local _currentmomentos = inventory:itemTotalCount(206879) 
      setWindowName(getHwnd(),sprintf(player.Name.." Momentos: ".._currentmomentos..", ".._momentosperhour.." Momentos/Hr, Time Passed:".._timepassed.."Hrs"))
    end
    registerTimer("setwindow", secondsToTimer(1), _window);
---=================#!#=======================---------------#!#-------------==============================#!#=========================---	 
</onLoad>
<!--+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-->
<!--+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-->
    <!-- #  1 --><waypoint x="1644" z="-4921" y="752" tag="start">
		speed(73);
		ireset()
		Countround()
		Invite()
		NeedReparation()
    </waypoint>
    <!-- #  2 --><waypoint x="1670" z="-5077" y="760" tag="In1">  </waypoint>
    <!-- #  3 --><waypoint x="1688" z="-5162" y="759">
		findzi()
			local zoneid = RoMScript("GetZoneID()")
			if zoneid == 209 then
				__WPL:setWaypointIndex(__WPL:findWaypointTag("In1"))
			end
    </waypoint>
	<!-- #  1 --><waypoint x="1772" z="2886" y="433">
		fly();
		speed(73);
		changeProfileOption("LOOT", false);
		if player:hasBuff(506684) then
			teleport(1890,2889,530);
		end
	</waypoint>
	<!-- #  2 --><waypoint x="1890" z="2889" y="530">teleport(1985,2776,560);	</waypoint>
	<!-- #  3 --><waypoint x="1985" z="2776" y="560">
		if player:hasBuff(506684) then
			teleport(2045,2701,550);
		end
	</waypoint>
	<!-- #  4 --><waypoint x="2045" z="2701" y="550">	</waypoint>
	<!-- #  5 --><waypoint x="2124" z="2609" y="443">flyoff(); 	teleport(2229,2487,401);	</waypoint>
	<!-- #  6 --><waypoint x="2229" z="2487" y="401">
	local bossname = "Okander Mallen, le \"Fou\""
	changeProfileOption("MAX_TARGET_DIST", 300);
			AdjustPosition(2229, 2487);
			FacePosition(2334, 2364);
			changeProfileOption("LOOT", true);
			player:target_Unit(bossname);
			if AttackableTarget() then
				BossPotion();
				player:updateBuffs();
				while true do
					player:target_Unit(bossname);
					if not AttackableTarget() then
						break;
					end
				while bossAttackCombo(bossname) do end
			end
			player:target_Unit(bossname);
			LootTargetSolo();
		end
		changeProfileOption("LOOT", false);
		teleport(2158,2561,417);
	</waypoint>
	<!-- #  7 --><waypoint x="2158" z="2561" y="417">fly();	speed(73);
	changeProfileOption("MAX_TARGET_DIST", 50);
	changeProfileOption("LOOT", false);
	teleport(2075,2659,470);
	</waypoint>
	<!-- #  8 --><waypoint x="2075" z="2659" y="470">fly();
	</waypoint>
	<!-- #  9 --><waypoint x="2054" z="2687" y="560">teleport(1945,2794,560);	fly(); </waypoint>
	<!-- # 10 --><waypoint x="1945" z="2794" y="560">fly();	</waypoint>
	<!-- # 11 --><waypoint x="1884" z="2855" y="560">teleport(1774,2883,433);	flyoff(); 	</waypoint>
	<!-- # 11 --><waypoint x="1774" z="2883" y="433" type="NORMAL">changeProfileOption("MAX_TARGET_DIST", 50);   </waypoint>
	<!-- # 12 --><waypoint x="1696" z="2891" y="433"  tag="Out1">  
		findzi()
			local zoneid = RoMScript("GetZoneID()")
				if zoneid == zid then
					ireset()
					cprintf(cli.lightred, "  --=== !!! Portail FAIL - Leave party go OUT !!! ===--\n");
					waitForLoadingScreen(30)
				loadPaths("Dod_Return");
				end
			__WPL:setWaypointIndex(__WPL:findWaypointTag("start"));
    </waypoint>
<!--+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-->
<!--+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-->
	<!-- #  12 --><waypoint x="1721" z="-4713" y="752" tag="repair">speed(68);
		print("---------==    GO REPAIR and SELL    ==--------");
		player:merchant("Isaac Kaid");
		__WPL:setWaypointIndex(__WPL:findWaypointTag("start"));
	</waypoint>
</waypoints>

User avatar
Ego95
Posts: 564
Joined: Tue Feb 28, 2012 12:38 pm
Contact:

Re: Need little help :D for dod waypoint

#2 Post by Ego95 » Sun Jun 10, 2012 5:50 pm

Sorry, I can't help you because I'm a beginner and I can only use very simple commands, but someone has posted his DoD first Boss waypoint a few months ago and it works great. Don't know if you've seen that thread, here's a link :)

http://solarstrike.net/phpBB3/viewtopic ... &hilit=Dod

BillDoorNZ
Posts: 446
Joined: Wed Aug 03, 2011 7:37 pm

Re: Need little help :D for dod waypoint

#3 Post by BillDoorNZ » Sun Jun 10, 2012 6:22 pm

The real barrier to helping you at the moment, is that you have no told us what the problem is that you are asking for help with :)

flashgump
Posts: 15
Joined: Fri Sep 23, 2011 10:49 am

Re: Need little help :D for dod waypoint

#4 Post by flashgump » Mon Jun 11, 2012 12:16 am

Now waypoint work perfectly! (you can try it, 240 momentos/h)
juste need -> userfunction FLY and SPEED hack


Waypoint Name = DoD_All

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<onLoad>
<!--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-->
<!-- ################################################################################################################################################
#																	CHANGE FOLOW OPTION																#
#				on line 227				change your name 																							#
#						229				add name first alt																							#
#						231				add name second alt if you want																				#
#						233				add name third alt if you want																				#
#						109 to 207		add your skill what you will use for attack boss  															#
#						221 			choose difficuty instance "normal" or "easy"																#
#						272				change dura weapon																							#
##################################################################################################################################################-->

		settings.profile.mobs = {"aucunmobs"};
		settings.profile.options.AUTO_ELITE_FACTOR = 9999;
		settings.profile.options.MAX_FIGHT_TIME = 15;
		settings.profile.options.MAX_TARGET_DIST = 300
		settings.options.MELEE_DISTANCE = 55;
		
		Count = 0
		Zid = 0	
---=================#!#=======================---------------#!#-------------==============================#!#=========================---	
function MakeArrows()
	if(player.Class1 == CLASS_SCOUT ) then
        if 100 > inventory:getAmmunitionCount() then
			if 100 > inventory:getItemCount(213620) then
				cprintf(cli.lightblue, "  --===# Make Arrows 999X2 #===--\n")
				sendMacro('CastSpellByName("Ombre de mille plumes")')   <!-- Arrows lvl70 -->
				yrest(5100)
				sendMacro('CastSpellByName("Ombre de mille plumes")')	<!-- Arrows lvl70 -->
				yrest(5500)
				inventory:update()
			end
			inventory:useItem(213620)
		end
		end
end	
---=================#!#=======================---------------#!#-------------==============================#!#=========================---
	function LootTargetSolo()
		timeout = os.time();
		while true do
			player:update();
			target = player:getTarget();
			if target == nil then
				break;
			end
			target:update();
			Attack();
			yrest(100);
			if target.Lootable == false or os.difftime(os.time(), timeout) > 1 then
				break;
			end
		end
	end;
---=================#!#=======================---------------#!#-------------==============================#!#=========================---
	function XtAdjustPosition(X, Z)
		if distance(player.X, player.Z, X, Z) > 20 then
			player:moveTo(CWaypoint(X, Z), true);
		end
	end;
---=================#!#=======================---------------#!#-------------==============================#!#=========================---	
	function XtFacePosition(X, Z)
		local angle = math.atan2(Z - player.Z, X - player.X);
		local yangle = 0;
		player:faceDirection(angle, yangle);
		camera:setRotation(angle);
	end
---=================#!#=======================---------------#!#-------------==============================#!#=========================---	
function CPlayer:ntCast(_skillname, _noPreCast)
	local canCast = true;
	local skill = nil
	for i,v in pairs(settings.profile.skills) do
		if( v.Name == _skillname ) then
			skill = v; break;
		end
	end
	
	-- TODO test Rage / focus
	
	if canCast then
		if _noPreCast then
			player:cast(skill);
			yrest(ntSkill_Rest);
			return true;
		else
			if ntSkillPreCast() then
				player:cast(skill);
				yrest(ntSkill_Rest);
				return true
			else
				return false
			end
		end
	end
	return true
end
---=================#!#=======================---------------#!#-------------==============================#!#=========================---	
function AttackableTarget()
	player:update();
	local target = player:getTarget();
	if target == nil then
		print("Target is nil");
		return false;
	end
	target:update();
	
	if false then
		print("--------------");
		print("Target Name: "..target.Name);
		print("Target Level: "..target.Level);
		print("Target HP: "..target.HP);
		print("Target MaxHP: "..target.MaxHP);
		if target.Lootable then
			print("Lootable");
		else
			print("Not Lootable");
		end
		if target.Alive then
			print("Alive");
		else
			print("Not Alive");
		end
		if target.Attackable then
			print("Attackable");
		else
			print("Not Attackable");
		end
		if target.Aggressive then
			print("Aggressive");
		else
			print("Not Aggressive");
		end
		if player.Battling then
			print("Battling");
		else
			print("Not Battling");
		end
		print ("HP percent: ".. (target.HP/target.MaxHP)*100);
		print("--------------");
	end
	
	if (1 > target.HP) then
		print("ntAttackableTarget: no hp")
		return false;
	end
	if target.Lootable then
		print("ntAttackableTarget: lootable")
		return false;
	end
	if not target.Attackable then
		print("ntAttackableTarget: not attackable")
		return false;
	end
	if not target.Alive then
		print("ntAttackableTarget: not alive")
		return false;
	end
	
	-- TODO Rendre générique l'ajout d'un test (fonction variable)
	if target.Name == "Lytfir" then
		if( 50 > (target.HP/target.MaxHP)*100) then
			print("ntAttackableTarget: Lytfir will sleep");
			yrest(500);
			inventory:useItem(205836); -- Boule de crystal pour endormir le dragon
			yrest(500);
			inventory:useItem(205836);
			return false;
		end
	end
	return true;
end
---=================#!#=======================---------------#!#-------------==============================#!#=========================---	
function ntSkillPreCast()
	if not ntAttackableTarget() then
		return false;
	end
	
	if player.Class1 == 5 or player.Class2 == 5 then 
		if(20 > player.HP/player.MaxHP*100) then
			player:ntCast("PRIEST_HOLY_AURA", true)
		end
		if(75 > player.HP/player.MaxHP*100) then
			player:ntCast("SCOUT_MANA_ARROWS", true)
		end
	end
	return true;
end
---=================#!#=======================---------------#!#-------------==============================#!#=========================---		
function AttackCombo()

	if(0 >= player.HP/player.MaxHP*100) then
		return false;
	end
		player:cast("SCOUT_SNIPE");
        player:cast("SCOUT_AUTOSHOT");
				
			if not player:ntCast("SCOUT_VAMPIRE_ARROWS") then return false; end
			if not player:ntCast("SCOUT_COMBO_SHOT") then return false; end
			if not player:ntCast("SCOUT_SHOT") then return false; end
			if not player:ntCast("SCOUT_PIERCING_ARROW") then return false; end
			if not player:ntCast("SCOUT_REFLECTED_SHOT") then return false; end	
			if not player:ntCast("SCOUT_VAMPIRE_ARROWS") then return false; end
			if not player:ntCast("SCOUT_COMBO_SHOT") then return false; end
			if not player:ntCast("SCOUT_SHOT") then return false; end
			if not player:ntCast("SCOUT_VAMPIRE_ARROWS") then return false; end
end;
---=================#!#=======================---------------#!#-------------==============================#!#=========================---	
	function findzi()
		keyboardHold( settings.hotkeys.MOVE_FORWARD.key )
			yrest(500)
		keyboardRelease( settings.hotkeys.MOVE_FORWARD.key )
		waitForLoadingScreen(2)
			local getinlvl = sendMacro('GetInstanceLevel()')
			if getinlvl == ("easy") then
				zid = 128
			elseif getinlvl == ("normal") then
				zid = 127
			elseif getinlvl == ("hard") then
				zid = RoMScript("GetZoneID()");
			sendMacro('SetInstanceLevel("InstanceLvL")');
				cprintf(cli.blue, "Instance Lvl change to normal\n")
			end
	end
---=================#!#=======================---------------#!#-------------==============================#!#=========================---			
	function Invite()
		if player.Name == "PLayerName" then
			yrest(50);
			sendMacro('InviteByName("")');
			yrest(50);
			sendMacro('InviteByName("")');
			yrest(50);
			sendMacro('InviteByName("")');
		end
	end
---=================#!#=======================---------------#!#-------------==============================#!#=========================---	
	function BossPotion()
		if (not player:hasBuff("506684")) then   <!-- Gouv Speed Potion -->
			inventory:useItem(207200);
		end  
		if (not player:hasBuff("503479")) then   <!-- Magic Parfum for pet if you want take more momentos -->
			inventory:useItem(207582);
		end  
		if (not player:hasBuff("506273")) then   <!-- Phy Damage food codex -->
			inventory:useItem(206876);
		end
		if (not player:hasBuff("501337")) then   <!-- Hero Potion -->
			inventory:useItem(200277);
		end
	end
---=================#!#=======================---------------#!#-------------==============================#!#=========================---			
	function ireset()
		SlashCommand("ILG destroy")
		yrest(500)
		solorun()
		MakeArrows()
	end
---=================#!#=======================---------------#!#-------------==============================#!#=========================---						
	function solorun()
		cprintf(cli.lightred, "  --===# !!! WARNING !!! #===--\n")
		cprintf(cli.lightgreen, "  --===# I am run Solo. #===--\n")
		inventory:update();
		inventory:findItem(206879, "all");
		print("  --===# Nbr de Jetons #===--  :", inventory:itemTotalCount(206879));
		sendMacro('SetInstanceLevel("normal")');
		cprintf(cli.lightblue, "  --===# Instance LvL Normale #===--\n")
	end
---=================#!#=======================---------------#!#-------------==============================#!#=========================---				
	function NeedReparation()
		local dura = inventory:getMainHandDurability();
        printf("Weapon Durability:%s\n", dura);
			if (85 > dura) then
				player:update(); 
				cprintf(cli.lightred, "--=== !!! GO REPAIR !!! ===--\n");
				__WPL:setWaypointIndex(__WPL:findWaypointTag("repair"));
			end
			if( 3 > inventory:getItemCount(0) ) then
				cprintf(cli.lightred, "--=== !!! GO SELL !!! ===--\n");
				__WPL:setWaypointIndex(__WPL:findWaypointTag("repair"));
			end
	end	
---=================#!#=======================---------------#!#-------------==============================#!#=========================---			
	function Countround()
		Count = Count+1;
			cprintf(cli.pink, "  --===# Round Nbr: %s\n\n", Count )
		end
---=================#!#=======================---------------#!#-------------==============================#!#=========================---			
	unregisterTimer("timedSetWindowName");
    local _starttime = os.time()
    local _startmomentos = inventory:itemTotalCount(206879)
    local function _window()
      local _timepassed = (os.time() - _starttime)/3600 -- total time in hours
      local _gatheredmomentos = inventory:itemTotalCount(206879) - _startmomentos -- total momentos aquired since starting
      local _momentosperhour = (_gatheredmomentos/_timepassed)
      local _currentmomentos = inventory:itemTotalCount(206879) 
      setWindowName(getHwnd(),sprintf(player.Name.." Momentos: ".._currentmomentos..", ".._momentosperhour.." Momentos/Hr, Time Passed:".._timepassed.."Hrs"))
    end
    registerTimer("setwindow", secondsToTimer(1), _window);
---=================#!#=======================---------------#!#-------------==============================#!#=========================---	 
</onLoad>
<!--+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-->
<!--+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-->
    <!-- #  1 --><waypoint x="1644" z="-4921" y="752" tag="start">
		speed(73);
		ireset()
		Countround()
		Invite()
		NeedReparation()
    </waypoint>
    <!-- #  2 --><waypoint x="1670" z="-5077" y="760" tag="In1">  </waypoint>
    <!-- #  3 --><waypoint x="1688" z="-5162" y="759">
		findzi()
			local zoneid = RoMScript("GetZoneID()")
			if zoneid == 209 then
				__WPL:setWaypointIndex(__WPL:findWaypointTag("In1"))
			end
    </waypoint>
	<!-- #  1 --><waypoint x="1772" z="2886" y="433">
		fly();
		speed(73);
		changeProfileOption("LOOT", false);
		if player:hasBuff(506684) then
			teleport(1890,2889,530);
		end
	</waypoint>
	<!-- #  2 --><waypoint x="1890" z="2889" y="530">teleport(1985,2776,560);	</waypoint>
	<!-- #  3 --><waypoint x="1985" z="2776" y="560">
		if player:hasBuff(506684) then
			teleport(2045,2701,550);
		end
	</waypoint>
	<!-- #  4 --><waypoint x="2045" z="2701" y="550">	</waypoint>
	<!-- #  5 --><waypoint x="2124" z="2609" y="443">flyoff(); 	teleport(2229,2487,401);	</waypoint>
	<!-- #  6 --><waypoint x="2229" z="2487" y="401">
	local bossname = "Okander Mallen, le \"Fou\""
	changeProfileOption("MAX_TARGET_DIST", 300);
			XtAdjustPosition(2229, 2487);
			XtFacePosition(2334, 2364);
			changeProfileOption("LOOT", true);
			player:target_Unit(bossname);
			player:update();
			player:target_Unit(bossname);
				BossPotion();
				if AttackableTarget() then
				player:updateBuffs();
				while true do
					player:target_Unit(bossname);
					if not AttackableTarget() then
						break;
					end
				while AttackCombo() do end
			end
			player:target_Unit(bossname);
			LootTargetSolo();
		end
		changeProfileOption("LOOT", false);
		teleport(2158,2561,417);
	</waypoint>
	<!-- #  7 --><waypoint x="2158" z="2561" y="417">fly();	speed(73);
	changeProfileOption("MAX_TARGET_DIST", 50);
	changeProfileOption("LOOT", false);
	teleport(2075,2659,470);
	</waypoint>
	<!-- #  8 --><waypoint x="2075" z="2659" y="470">fly();
	</waypoint>
	<!-- #  9 --><waypoint x="2054" z="2687" y="560">teleport(1945,2794,560);	fly(); </waypoint>
	<!-- # 10 --><waypoint x="1945" z="2794" y="560">fly();	</waypoint>
	<!-- # 11 --><waypoint x="1884" z="2855" y="560">teleport(1774,2883,433);	flyoff(); 	</waypoint>
	<!-- # 11 --><waypoint x="1774" z="2883" y="433" type="NORMAL">changeProfileOption("MAX_TARGET_DIST", 50);   </waypoint>
	<!-- # 12 --><waypoint x="1696" z="2891" y="433"  tag="Out1">  
		findzi()
			local zoneid = RoMScript("GetZoneID()")
				if zoneid == zid then
					ireset()
					cprintf(cli.lightred, "  --=== !!! Portail FAIL - Leave party go OUT !!! ===--\n");
					waitForLoadingScreen(30)
				loadPaths("Dod_Return");
				end
			__WPL:setWaypointIndex(__WPL:findWaypointTag("start"));
    </waypoint>
<!--+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-->
<!--+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-->
	<!-- #  12 --><waypoint x="1721" z="-4713" y="752" tag="repair">speed(68);
		print("---------==    GO REPAIR and SELL    ==--------");
		player:merchant("Isaac Kaid");
		__WPL:setWaypointIndex(__WPL:findWaypointTag("start"));
	</waypoint>
</waypoints>
Waypoint Name = Dod_Return

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
	<!-- #  1 --><waypoint x="-3773" z="5178" y="24">
	inventory:useItem(207200); 
	yrest(100);
	inventory:useItem(207204); 
	player:mount();
	</waypoint>
	<!-- #  2 --><waypoint x="-3104" z="5758" y="16">	</waypoint>
	<!-- #  3 --><waypoint x="-2430" z="6451" y="27">	</waypoint>
	<!-- #  4 --><waypoint x="-2452" z="6518" y="35">	</waypoint>
	<!-- #  5 --><waypoint x="-2827" z="6755" y="52">	</waypoint>
	<!-- #  6 --><waypoint x="-2822" z="6948" y="52">	</waypoint>
	<!-- #  7 --><waypoint x="-2865" z="7240" y="-72">
	
	</waypoint>
	<!-- #  8 --><waypoint x="-2960" z="7229" y="-88">
	keyboardHold( settings.hotkeys.MOVE_FORWARD.key );
		yrest(300);
		keyboardRelease( settings.hotkeys.MOVE_FORWARD.key );
	waitForLoadingScreen();
	player:target_NPC("Jake Wallanda");
		sendMacro("ChoiceOption(1);");
		waitForLoadingScreen();
	</waypoint>
	<!-- # 11 --><waypoint x="1631" z="-4907" y="764">	</waypoint>
	<!-- # 12 --><waypoint x="1707" z="-4725" y="764">		player:merchant("Isaac Kaid");
	</waypoint>
	<!-- # 14 --><waypoint x="1647" z="-4878" y="764">
	loadPaths("DoD_All");
	</waypoint>
</waypoints>

revolver
Posts: 26
Joined: Fri Dec 23, 2011 8:05 am

Re: Need little help :D for dod waypoint

#5 Post by revolver » Tue Jun 12, 2012 4:38 pm

Hi i get an error in that waypoint .[string ''...'']:165 attempt to call global 'ntAttacableTarget' <a nil value> can you help me out? :)
OK i fixed it but now i want the bot to press some keys and it doesn't do it "keyboardPress( key.VK_8 );
keyboardPress( key.VK_7 );
keyboardPress( key.VK_2 );"

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests