<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
	-- Version 1.4
	print("start scanning  ........")
	while(true) do
		if isInGame() and player:exists() and player:isAlive() then
			local objectList = CObjectList()
			objectList:update()
			for i = 0,objectList:size() do
				local obj = objectList:getObject(i)
				obj:update()
				if( obj ~= nil ) then
					if obj.Type == PT_NODE then
						if( database.nodes[obj.Id] ) then
							if memoryReadRepeat("float", getProc(), obj.Address + 0x74) ~= 4 then 
								memoryWriteFloat(getProc(), obj.Address + 0x74, 4)
								print("Found: "..obj.Name.." and made it BIG")
								if playalarm then playalarm() end
							end
						end
					end
				end
				yrest(1)
			end
			-- add defend code here.
			player:update()
			if player.Battling and not player.Mounted then
				if player:target(player:findEnemy(true)) then
					player:fight();
				end
			end
		end
		yrest(500)
	end
</onLoad>
</waypoints>
