Awesome 5.0 Beta 2 Released

10/04/2009 18:17 maL_88#1
servus zusammen,

fuer beta 2 lieber einen neuen thread, da ja neue bugs vorhanden sein können.


vielen dank an das bot-team

hier der direct link:

[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]
10/04/2009 18:46 xdoddestroyer#2
sind da fehler behoben worden?? bzw sowas wie das der wenn die truhe full ist in inventar nochwas reinlegt bis die full ist??

mfg

matze
10/04/2009 18:50 Power Paul#3
fixes:

* Core stability improved
* AoManager improved
* Act 5 bug
* cube.Runes improved
* cube.Gems improved
* Gambling act 5 fixed and general Npc interactions improved
* Baal waveskills fixed
* Baal precast times fixed
* Select skill failed fixed
* Bot doesnt tp when chickening in baal games fixed
* Full stash bug fixed
* Full cube bug fixed
* Greatly improved pot managing
* and many other things


new:

* Mule feature (USE AT YOUR OWN RISK, COST AND PERIL)
* Do rush quest separately with a .command
* Replaces small rejuvs with big ones in belt
* AoCoreLauncher.exe which starts the core for manual login into bnet(for grush etc)


changes:

* ClearLevel(AreaLevel.level, true) for killing all, ClearLevel(AreaLevel.level) for killing heroes only
* Pits(true) for killing all, Pits() for heroes only.
10/04/2009 18:52 ejact#4
Für MULE wird ein acc mit 8 leeren chars benötigt


Viel spaß damit! Hoffentlich konnten ein paar bugs gefixt werden
10/04/2009 18:59 maL_88#5
frag hier nochmal, da du ja grad da bist :D

danke nochmal ejact.



ist es möglich einzustellen, dass der bot 2 verschiedene runen cubet: sprich 3 ith zu thul und 3 dol zu hel?

danke :)
10/04/2009 19:02 ejact#6
Quote:
Originally Posted by maL_88 View Post
frag hier nochmal, da du ja grad da bist :D

danke nochmal ejact.



ist es möglich einzustellen, dass der bot 2 verschiedene runen cubet: sprich 3 ith zu thul und 3 dol zu hel?

danke :)
um ehrlich zu sein habe ich keine Ahnung. Das neue Cubing hat nathan geschrieben und bis zum erbrechen getested
10/04/2009 19:39 xdoddestroyer#7
edit: fehler auch nicht behoben!!
10/04/2009 19:55 ejact#8
Quote:
Originally Posted by xdoddestroyer View Post
so Leute habe mal nen Fehler beseitigt weis nicht ob es nur bei mir der Fall war kommt wenn ihr startend immer ein Error mit der actions ini überschreibt es mit dem hier!

Code:
function Heal()
   Log(2, "Awesom-O", "Heal")
   local life = ((Ao.me.life / Ao.me.maxlife) * 100 )
    local mana = ((Ao.me.mana / Ao.me.maxmana) * 100)
    if (life < Settings.ShopHealth or mana < Settings.ShopMana) then
   ToTown()
	
   ManagePots()
   
   local npcid
   
   if ( Ao.me.act == 1 ) then
		 npcid = NPCCode.Akara	
	elseif ( Ao.me.act == 2 ) then
		 npcid = NPCCode.Fara
	elseif ( Ao.me.act == 3 ) then
		 npcid = NPCCode.Ormus
	elseif ( Ao.me.act == 4 ) then
         npcid = NPCCode.Jamella
	elseif ( Ao.me.act == 5 ) then
		 npcid = NPCCode.Malah
		 MoveTo(5075, 5023)
	end

   if (not MoveToNPC(npcid)) then
		return false
   end
   
   if (NpcInteract(npcid)) then
	   Ao:Sleep(1000)
       NpcCloseMenu(npcid)
	   Log(2, "Awesom-O", "Heal end")
	   return true
   end
  
   return false
   else
        Log(2, "Awesom-O", "Heal not needed")
   end
    
end

function Repair(skip)

   Log(2, "Awesom-O", "Repair")
   
   if (skip ~= nil and type(skip) == "number") then
	   if (math.mod(Ao.gamenumber , skip) ~= 0 ) then
			Log(2, "Awesom-O", "Skipping Repair!")
			return
	   end
	end
	  
   ToTown()
   
   ManagePots()
   
   local npcid
   
	if ( Ao.me.act == 1 ) then
		npcid = NPCCode.Charsi
	elseif ( Ao.me.act == 2 ) then
		npcid = NPCCode.Fara
	elseif ( Ao.me.act == 3 ) then
		npcid = NPCCode.Hratli
	elseif ( Ao.me.act == 4 ) then
        npcid = NPCCode.Halbu
	elseif ( Ao.me.act == 5 ) then
		npcid = NPCCode.Larzuk
	end	
		
		if (npcid == NPCCode.Larzuk) then
			MoveTo(5143, 5045)
		elseif (not MoveToNPC(npcid)) then
				return false
		end
   
		if (NpcInteract(npcid)) then
			Ao:Sleep(1000)
			NpcMenuSelect(TownFolkMenuItem.Trade, npcid)
			Ao:Sleep(500)
			local npc = FindNpcByCode(npcid)
			Ao:TownFolkRepair(npc.uid)
			Ao:WaitForPacket(42, 3); --TransactionComplete
			NpcCloseMenu(npcid)
			Log(2, "Awesom-O", "Repair end")
			return true
		end
		
		Log(3, "Awesom-O", "Repair failed")
		return false
end

function Ressurect()
	
	if (not Settings.UseMerc) then
		return false
	end
	
	Log(2, "Awesom-O", "Ressurect")
	-- check doesnt work it seems merc struct doest work yet
	if (Ao.merc.uid > 0) then
		Log(2, "Awesom-O", "Merc alive! Skipping Ressurect")
		return false
	end

	if ((Ao.me.gold + Ao.me.goldbank) < 50000) then
		Log(3, "Awesom-O", "Failed to Ressurect Merc, not enough gold")
		return false
	end

   ToTown()

   local npcid
   
   if ( Ao.me.act == 1 ) then
		npcid = NPCCode.Kashya
	elseif ( Ao.me.act == 2 ) then
		npcid = NPCCode.Greiz
	elseif ( Ao.me.act == 3 ) then
		npcid = NPCCode.Asheara
	elseif ( Ao.me.act == 4 ) then
        npcid = NPCCode.Tyrael2
	elseif ( Ao.me.act == 5 ) then
		 npcid = NPCCode.QualKehk
         MoveTo(5061, 5081)
	end
	
	if (not MoveToNPC(npcid)) then
			return false
	end
   
	if (NpcInteract(npcid)) then
			Ao:Sleep(1000)
			local npc = FindNpcByCode(npcid )
			Ao:ResurrectMerc(npc.uid)
			Ao:WaitForPacket(42, 3); --TransactionComplete
			Log(2, "Awesom-O", "Merc Resurrected");
			NpcCloseMenu(npcid)
    end
	
	--Reequip merc weapon
	if (Settings.ReEquipMercWeapon and Ao.merc.uid > 0) then

		while (Ao.me.cursor.uid == 0 ) do
			Ao:ChangeMercEquipment(EquipmentLocation.RightHand, true)
			Ao:WaitForPacket(156, 3) --WorldItemAction
			Ao:Sleep(200)	
		end
			
		while (Ao.me.cursor.uid ~= 0 ) do	
			Ao:ChangeMercEquipment(EquipmentLocation.NotApplicable)
			Ao:WaitForPacket(66, 3) --PlayerClearCursor
			Ao:Sleep(30)	
		end
		
	end	
	
	Log(2, "Awesom-O", "Ressurect end")
end

function Shop()

	Log(2, "Awesom-O", "Shop")
	 
	local blue = Ao.me.belt:getPotionCount(PotionType.Blue)
	local red = Ao.me.belt:getPotionCount(PotionType.Red)
	local purple = Ao.me.belt:getPotionCount(PotionType.Purple)
	
	if ( blue >= Settings.ShopBlue and red >= Settings.ShopRed and Ao.me.tps >= Settings.ShopTp and Ao.me.ids >= Settings.ShopId) then
		Log(2, "Awesom-O", "Don't need to shop, skipping")
		return false
	end
			
	local npcid
	-- npcid of the shop npc for the act we're in
	if ( Ao.me.act == 1 ) then
		 npcid = NPCCode.Akara	
	elseif ( Ao.me.act == 2 ) then
		 npcid = NPCCode.Drognan
	elseif ( Ao.me.act == 3 ) then
		 npcid = NPCCode.Ormus
	elseif ( Ao.me.act == 4 ) then
		npcid = NPCCode.Jamella
	elseif ( Ao.me.act == 5 ) then
		 npcid = NPCCode.Malah
		 MoveTo(5075, 5023)
	end
	

	-- goto town, if we are already in town, this will do nothing
	ToTown()
	
	ManagePots()
	
	--goto the correct npc, and open their menu
	if (not MoveToNPC(npcid)) then
			return false
	end
   
	if ( NpcInteract(npcid) ) then
		
		Ao:Sleep(1000)
		if ( not NpcMenuSelect(TownFolkMenuItem.Trade, npcid)) then
			return false
		end
	
		Log(1, "Awesom-O", "Open store!")
		
		--sleep needed here for creating the item map in dia
		Ao:Sleep(Settings.FindNpcStoreDelay)
		
		-- find the items we may need to buy in the store
		 local _buyblue = Ao.store:findBaseItem("mp")
		 local _buyred = Ao.store:findBaseItem("hp")
		 local _buytp = Ao.store:findBaseItem("tsc")
		 local _buyid = Ao.store:findBaseItem("isc")
		
	   local npc = FindNpcByCode(npcid)
	
	   if (npc == 0) then
		   Log(3, "Awesom-O", "Cant find Npc in Shop() "..npcid)
		   return false
	   end
	     
		-- the following code simply buys the items we need
		for i = blue, Settings.ShopBlue - 1 do
			Ao:BuyItem(npc.uid, _buyblue.uid, 0, false);
			Ao:WaitForPacket(42, 3) --TransactionComplete
			Ao:Sleep(30)	
		end
		
		
		for i = red, Settings.ShopRed - 1 do
			Ao:BuyItem(npc.uid, _buyred.uid, 0, false);
			Ao:WaitForPacket(42, 3) --TransactionComplete
			Ao:Sleep(30)	
		end
		
		
		if (Ao.me.tps < Settings.ShopTp) then
			Ao:BuyItem(npc.uid, _buytp.uid, 0, true);
			Ao:WaitForPacket(42, 3); --TransactionComplete
			Ao:Sleep(30);	
		end
		
		if (Ao.me.ids < Settings.ShopId) then
			Ao:BuyItem(npc.uid, _buyid.uid, 0, true)
			Ao:WaitForPacket(42, 3) --TransactionComplete
			Ao:Sleep(30)
		end
		
		NpcCloseMenu(npcid)
		
		Log(2, "Awesom-O", "Shop end")
		return true
	end
	
	Log(3, "Awesom-O", "Shop failed")
	return false

end

function Sell()
	Log(2, "Awesom-O", "Sell")

	local needSell = false
	local items = Ao.me.inventory:get()
	
	for i = 0, items:size() - 1 do
		if (Settings.Inventory[items[i].y + 1][items[i].x + 1] ~= 1) then
			if (not items[i].flags.Identified) then
				if (identifyItem(items[i])) then
					needSell = true
				end
			else
				if (sellItem(items[i])) then
					needSell = true
				end
			end
		end
	end

	if (not needSell) then
		Log(2, "Awesom-O", "Sell not needed")
		return false
	end

	ToTown()

	ManagePots()
	
	local npcid
	
   if ( Ao.me.act == 1 ) then
		 npcid = NPCCode.Akara
	elseif ( Ao.me.act == 2 ) then
		 npcid = NPCCode.Drognan
	elseif ( Ao.me.act == 3 ) then
		 npcid = NPCCode.Ormus
	elseif ( Ao.me.act == 4 ) then
         npcid = NPCCode.Jamella
	elseif ( Ao.me.act == 5 ) then
		 npcid = NPCCode.Malah
		 MoveTo(5075, 5023)
	end
	--goto the correct npc, and open their menu
	if (not MoveToNPC(npcid)) then
			return false
	end

	if ( NpcInteract(npcid) ) then

		Ao:Sleep(1000)
		if ( not NpcMenuSelect(TownFolkMenuItem.Trade, npcid)) then
			return false
		end
	end

	--sleep needed here for creating the item map in dia
	Ao:Sleep(Settings.FindNpcStoreDelay)

	local npc = FindNpcByCode(npcid)
	
	items = Ao.me.inventory:get()

	for i = 0, items:size() - 1 do
		-- check if item is locked
		if (Settings.Inventory[items[i].y + 1][items[i].x + 1] ~= 1) then
			-- check if item needs to be indentified
			if (not items[i].flags.Identified) then
				-- run Pickit Revolution func to check if item should be identified
				if (identifyItem(items[i])) then
					local ids = Ao.me.inventory:findByCode("ibk")
					
					if (ids:size() == 0) then -- if no id book buy a scroll
						local buyid = Ao.store:findBaseItem("isc")
						Ao:BuyItem(npc.uid, buyid.uid, 0, false)
						Ao:WaitForPacket(42, 3) --TransactionComplete
						ids = Ao.me.inventory:findByCode("isc")
					end

					Ao:UseInventoryItem(ids[0].uid, Ao.me.x, Ao.me.y)
					Ao:WaitForPacket(63, 3) --UseStackableItem
					Ao:Sleep(30)
					
					Ao:IdentifyItem(items[i].uid, ids[0].uid);
					Ao:WaitForPacket(124, 3) --UseSpecialItem
					Ao:Sleep(30)
				end
			end
		end
	end
			Ao:Sleep(Settings.SellDelay)
			

	items = Ao.me.inventory:get()

	for i = 0, items:size() - 1 do
		-- check if item is locked
		if (Settings.Inventory[items[i].y + 1][items[i].x + 1] ~= 1) then
			--check if item can be sold
			if (sellItem(items[i])) then -- run PR script to check if item should be sold
				ItemMessage("Sold:", items[i])
				if (Settings.LogSold) then LogItem("Sold", items[i]) end
   				while (Ao.me.cursor.uid == 0 ) do
					Ao:PickItemFromContainer(items[i].uid)
					Ao:WaitForPacket(157, 3) -- OwnedItemAction
					Ao:Sleep(30)
				end

				

				Ao:SellItem(npc.uid, items[i].uid, 0)
				Ao:WaitForPacket(42, 3) --TransactionComplete
				Ao:Sleep(30)

			end
			Ao:Sleep(Settings.SellDelay)
		end


	end

	NpcCloseMenu(npcid)
	
	if Ao.me.cursor.uid > 0 then
		Ao:DropItem(Ao.me.cursor.uid)
		Ao:WaitForPacket(156, 3) --WorldItemAction
	end
	Log(2, "Awesom-O", "Sell end")
end

function Stash()
	Log(2, "Awesom-O", "Stashing")
	
	local needStash = false
	local maxgoldstash = (Ao.me.level - 30) * 50000 - 800000  -- formula for max gold in stash, will just work for lvl 31 and further
	
	if Ao.me.gold >= Settings.StashGold and Ao.me.goldbank < maxgoldstash then
		needStash = true
	end
	
	if (not needStash) then
		local items = Ao.me.inventory:get()
		for i = 0, items:size() - 1 do
			if (Settings.Inventory[items[i].y + 1][items[i].x + 1] ~= 1) then 
				if ( (items[i].flags.Identified ) or ( not identifyItem(items[i]))) then
					if (not sellItem(items[i])) then
						needStash = true
					end
				end
			
			end
		end
	end
	
	if (not needStash) then
		Log(2, "Awesom-O", "Stashing not needed!")
		return false
	end
	
	ToTown()

	ManagePots()
	
	if ( not Settings.StashEveryWhere ) then
		MoveToObjectById(267)
	end
	
	OpenStash()
	
	local items = Ao.me.inventory:get()
	local count = 0
	
	if ( Ao.me.gold >= Settings.StashGold and Ao.me.goldbank < maxgoldstash) then
		while (Ao.me.gold ~= 0 and count < 5) do
			Ao:ClickButton(GameButton.StashGold, Ao.me.gold)
			Ao:WaitForPacket(29, 2) --AttributeByte
			Ao:Sleep(30)
			count = count + 1
		end
	end
	
	for i = 0, items:size() - 1 do
		-- check if item is locked
		if (Settings.Inventory[items[i].y + 1][items[i].x + 1] ~= 1) then 
			
			-- if its cube dont go further
			if (items[i].baseItem.code ~= "box") then
				-- if its not identified and has to be identified dont go further
				
				if ( (items[i].flags.Identified ) or ( not identifyItem(items[i]))) then
					--if the item should be sold, dont go further
					
					if (not sellItem(items[i])) then
						-- if pot drink it
						
						if (Items:GetPotType(items[i].baseItem.code) ~= PotionType.Error) then 
							Ao:UseInventoryItem(items[i].uid, Ao.me.x, Ao.me.y)
							Ao:Sleep(300)
						else 
							-- pick up item
							
							while (Ao.me.cursor.uid == 0 ) do  
								Ao:PickItemFromContainer(items[i].uid)
								Ao:WaitForPacket(157, 3) --OwnedItemAction
								Ao:Sleep(30);	
							end
							-- if its scroll drop it
							if (items[i].baseItem.code == "tsc" or items[i].baseItem.code == "isc" ) then		
								Ao:DropItem(items[i].uid)
								Ao:WaitForPacket(156, 3) --WorldItemAction
								Ao:Sleep(30)	
							-- else to stash
							else
								local container = GetStashContainer(items[i])
								local to
								if ( container ~= ItemContainerGC.Inventory) then
									ItemMessage("Stashed:",items[i])
                                    if (Settings.LogStashed) then LogItem("Stashed", items[i]) end
									if (container == ItemContainerGC.Stash) then
										to = Ao.me.stash:findLocation(items[i])
									else
										to = Ao.me.cube:findLocation(items[i])
									end
								else
									Log(3, "Awesom-O", "Stash is full, item back to Inventory")
									to = Ao.me.inventory:findLocation(items[i])
								end
							    
								Ao:DropItemToContainer(items[i].uid, to.x, to.y, container)
								Ao:WaitForPacket(156, 3) --WorldItemAction
								Ao:Sleep(30)
									
							end	
							
						end
					end
					
				end
			end
			Ao:Sleep(Settings.StashDelay)
		end

	end
	CloseStash()
	Log(2, "Awesom-O", "Stash end")
end



function IdentifyCain()
    Log(2, "Awesom-O", "IdentifyCain")	
	ToTown()
	
	ManagePots()
	
	local npcid
	
	if ( Ao.me.act == 1 ) then
		npcid = NPCCode.DeckardCain5
	elseif ( Ao.me.act == 2 ) then
		npcid = NPCCode.DeckardCain2
	elseif ( Ao.me.act == 3 ) then
		npcid = NPCCode.DeckardCain3
	elseif ( Ao.me.act == 4 ) then
        npcid = NPCCode.DeckardCain4
	elseif ( Ao.me.act == 5 ) then
		npcid = NPCCode.DeckardCain6
	end

	if (not MoveToNPC(npcid)) then
			return false
	end
	
	local npc = FindNpcByCode(npcid)

	if ( NpcInteract(npcid) ) then
		Ao:CainIdentifyItems(npc.uid)
		Ao:Sleep(50)
		NpcCloseMenu(npcid)
	end
	Log(2, "Awesom-O", "IdentifyCain end")
end

function Act1()
	Log(2, "Awesom-O", "Moving to act 1")
	MoveToArea(AreaLevel.RogueEncampment)
end

function Act2()
	Log(2, "Awesom-O", "Moving to act 2")
	MoveToArea(AreaLevel.LutGholein)
end

function Act3()
	Log(2, "Awesom-O", "Moving to act 3")
	MoveToArea(AreaLevel.KurastDocks)
end

function Act4()
	Log(2, "Awesom-O", "Moving to act 4")
	MoveToArea(AreaLevel.ThePandemoniumFortress)
end

function Act5()
	Log(2, "Awesom-O", "Moving to act 5")
	MoveToArea(AreaLevel.Harrogath)
end

function Dump()
	Log(1, "Awesom-O", "Dump")  
  
	local items = Ao.me.inventory:get()

	if Settings.DumpDelay > 0 then
		Ao:Sleep(Settings.DumpDelay)
	end

	for i = 0, items:size() - 1 do
		-- check if item is locked
		if (Settings.Inventory[items[i].y + 1][items[i].x + 1] ~= 1) then
			-- check if item needs to be indentified
			if (not items[i].flags.Identified) then
				-- run Pickit Revolution func to check if item should be identified
				if (identifyItem(items[i])) then
					local ids = Ao.me.inventory:findByCode("ibk")
					--add checks here if book is empty so buy ids

					Ao:UseInventoryItem(ids[0].uid, Ao.me.x, Ao.me.y)
					Ao:WaitForPacket(63, 3) --UseStackableItem
					Ao:Sleep(30)

					Ao:IdentifyItem(items[i].uid, ids[0].uid);
					Ao:WaitForPacket(124, 3) --UseSpecialItem
					Ao:Sleep(30)
				end
			end
		end
	end

   	items = Ao.me.inventory:get()

	if Settings.DumpDelay > 0 then
		Ao:Sleep(Settings.DumpDelay)
	end
	
	for i = 0, items:size() - 1 do
		-- check if item is locked
		if (Settings.Inventory[items[i].y + 1][items[i].x + 1] ~= 1) then
			if (dumpItem(items[i])) then
				ItemMessage("Dumping:", items[i])
				if (Settings.LogDumped) then LogItem("Dumped", items[i]) end
					while (Ao.me.cursor.uid == 0 ) do
						Ao:PickItemFromContainer(items[i].uid)
						Ao:WaitForPacket(157, 3) --OwnedItemAction
						Ao:Sleep(30)
					end
					while (Ao.me.cursor.uid > 0 ) do
						Ao:DropItem(items[i].uid)
						Ao:WaitForPacket(156, 3) --WorldItemAction
						Ao:Sleep(30)
					end
			end
		end
	end

end

function Gamble()

	if ((Ao.me.gold + Ao.me.goldbank) < Settings.GambleFrom) then
	    Log(1, "Awesom-O", Ao.me.gold + Ao.me.goldbank.." gold found; Skipping Gamble")
		return
	end
    Log(2, "Awesom-O", "Gambling")
	ToTown()
	
	local npcid
	
   if ( Ao.me.act == 1 ) then
		 npcid = NPCCode.Gheed
	elseif ( Ao.me.act == 2 ) then
		 npcid = NPCCode.Elzix
	elseif ( Ao.me.act == 3 ) then
		 npcid = NPCCode.Alkor
	elseif ( Ao.me.act == 4 ) then
         npcid = NPCCode.Jamella
	elseif ( Ao.me.act == 5 ) then
		 npcid = NPCCode.Drehya
		 MoveTo(5110, 5121, false)
	end
	--goto the correct npc, and open their menu
	if (not MoveToNPC(npcid)) then
			return false
	end

	local done = false

	while (not done) do
		if ( NpcInteract(npcid) ) then

			if ( not NpcMenuSelect(TownFolkMenuItem.Gamble, npcid)) then
				return false
			end
		end

			if (Ao.me.gold + Ao.me.goldbank < Settings.GambleTo) then
				done = true
				return
			end
			
			local gamble = Ao.store:gamble() 
			local npc = FindNpcByCode(npcid)
			
			for i = 0, gamble:size() - 1 do
				if (gambleItem(gamble[i])) then
					Ao:GambleItem(npc.uid, gamble[i].uid, 0)
					Ao:WaitForPacket(42, 3) --TransactionComplete
					Ao:Sleep(30)
				end
			end
			
   			local items = Ao.me.inventory:get()
			
			for i = 0, items:size() - 1 do
				-- check if item is locked
				if (Settings.Inventory[items[i].y + 1][items[i].x + 1] ~= 1) then
                	ItemMessage("Gambled:", items[i])
                    if (Settings.LogGambled) then LogItem("Gambled", items[i]) end
					if (sellItem(items[i])) then
						--LOG(logINFO) << "Sell " << item.baseItem->code << " prefix = " << item.prefix.Index << " suffix = " << item.suffix.Index;
						while (Ao.me.cursor.uid == 0 ) do
							Ao:PickItemFromContainer(items[i].uid)
							Ao:WaitForPacket(157, 3) --OwnedItemAction
							Ao:Sleep(30);
						end
						
						
						
    					while (Ao.me.cursor.uid > 0 ) do
							Ao:SellItem(npc.uid, items[i].uid, 0)
							Ao:WaitForPacket(42, 3) --TransactionComplete
							Ao:Sleep(30)
						end
					end
				end
			end
			NpcCloseMenu(npcid)
			Ao:Sleep(500)
		--end
	end
	Log(1, "Awesom-O", "Gamble end")
end
mfg

matze
könntest du vll auch schreiben was der Bot gereade gemacht hat und wie der Fehler in den logs aussah? Hast du vll beta 2 dateien mit beta 1 vermischt ?

Denn wir hatten keinen fehler in actions.lua und ich teste seid einiger Zeit. Wäre vll hilfreich wenn du die nötigen Infos rausrückst :P
10/04/2009 20:24 xdoddestroyer#9
Quote:
Originally Posted by ejact View Post
könntest du vll auch schreiben was der Bot gereade gemacht hat und wie der Fehler in den logs aussah? Hast du vll beta 2 dateien mit beta 1 vermischt ?

Denn wir hatten keinen fehler in actions.lua und ich teste seid einiger Zeit. Wäre vll hilfreich wenn du die nötigen Infos rausrückst :P
ne problem mit beta 2 habe gerade gemerkt auch das funzt nich hier nen screen

[Only registered and activated users can see links. Click Here To Register...]
10/04/2009 20:30 ejact#10
Quote:
Originally Posted by xdoddestroyer View Post
ne problem mit beta 2 habe gerade gemerkt auch das funzt nich hier nen screen

[Only registered and activated users can see links. Click Here To Register...]
Du benutzt die settings.lua von beta 1 und sag jetzt nicht nein. :)
Das geht leider nicht solange wir beta sind , da wir jeden und ich meine jeden Tag etwas verändern
10/04/2009 20:33 xdoddestroyer#11
Quote:
Originally Posted by ejact View Post
Du benutzt die settings.lua von beta 1 und sag jetzt nicht nein. :)
Das geht leider nicht solange wir beta sind , da wir jeden und ich meine jeden Tag etwas verändern
sieht so etwa die beta1 setting asu??

Code:
Settings = {}
Settings.Shrine = {}
Settings.Inventory = {}
Settings.WaveMessage = {}
Settings.WaveSkill = {}
Settings.PotRow = {}
Settings.Tp = {}
Settings.DiabloTp = {}
Settings.Teleport = {}
Settings.PrecastX = {}
Settings.PrecastY = {}
Settings.HotIp = {}

------------------ Logging & Displaying ------------------------
--- 1 = Debug 2 = Info 3 = Errors and fails 4 = Fatal Errors ---
----------------------------------------------------------------
Settings.LogLevel = 2
Settings.LogDisplayMSG = true
Settings.LogSold = true
Settings.LogDumped = true
Settings.LogGambled = true
Settings.LogStashed = true
Settings.LogSkipped = false

------------------ Char Builds -------------------------
Settings.Build = "Hammerdin.lua"
--Settings.Build = "LightSorc.lua"
--Settings.Build = "FireballSorc.lua"
--Settings.Build = "BlizzSorc.lua"
--Settings.Build = "Trapsin.lua"
--Settings.Build = "Zmiter.lua"
--Settings.Build = "ZerkerBarb.lua"
--Settings.Build = "Javazon.lua"
--Settings.Build = "WindDruid.lua"

Settings.LeechBot = false --Disables pickit for leechbots.

------------------ GAME DELAYS -------------------------
Settings.TeleportDelay = 0
Settings.WalkDelay = 250
Settings.FindNpcStoreDelay = 1000
Settings.MaxGameTime = 6000
Settings.KillDelay = 100
Settings.SellDelay = 500
Settings.StashDelay = 500
Settings.DumpDelay = 100

------------ POTION & CHICKEN SETTINGS -----------------
Settings.PotRow[1] = PotionType.Blue
Settings.PotRow[2] = PotionType.Red
Settings.PotRow[3] = PotionType.Purple
Settings.PotRow[4] = PotionType.Purple
-- percentage life values
Settings.RedPot = 85 --Life percentage required to chug down a red pot
Settings.BluePot = 50 --same for mana
Settings.PurplePot = 50 --Life percentage required to chug down a purple pot
Settings.PurplePotMana = 0 --Same for mana, usually happens when youre out of bluepots
Settings.ChickenTown = 30
Settings.ChickenExit = 15
Settings.ChickenOnHostile = false
Settings.ChickenExitMessage = "CLUCK!"
Settings.ChickenTownMessage = "CLUCK!"
Settings.ChickenOnHostileMessage = "Don't fuck with me"

--------- MERC POTION & RESURRECT SETTINGS -------------
Settings.UseMerc = true
Settings.MercRedPot = 60
Settings.MercPurplePot = 20
Settings.AutoResurrect = true
Settings.ChickenTownOnIronMaiden = false
Settings.ReEquipMercWeapon = true

------------ BOT ACTIONS & BEHAVIORS -------------------
Settings.AttackDistance = 0
Settings.BlockUserInteractions = true
Settings.UseCta = true --Self explanatory
Settings.UseTeleport = true --walking bot or a teleportin bot? hmm...
Settings.UseRedemption = true --switches redemption on for 0,75s after finishing some things...
Settings.KillMinions = true
Settings.KillIMCasters = true --Gets Oblivion knights first when using clearpath, cleararea etc.
Settings.ClearPath = false --Clear the path of enemies while moving from point A to point B
Settings.KillHostiledPlayer = false --Make that bastard pay for the insult.
Settings.KillHeroes = false --Kill heroes during pathing
Settings.PrecastTime = 90
Settings.OpenChests = false
Settings.WaitingTime = 6 --Waiting time in minutes you want your bot to wait before dropping stuff and rejoining with mule

----------------- IN TOWN SETTINGS ----------------------
Settings.HealHealth = 70 --HP % to heal at vendor and to trigger redemption
Settings.HealMana = 50 --Mana % to heal at vendor and to trigger redemption
Settings.ShopBlue = 4
Settings.ShopRed = 4
Settings.ShopTp = 10
Settings.ShopId = 10
Settings.TownPick = true
Settings.StashEveryWhere = false --Warning if enabled  this may or may not get you banned. The bot will stash items without moving to the Stash in Town and its reliable. Be advised and pray to god
Settings.StashGold = 10000 --Minimum amount of gold to stash
Settings.DropInventoryGold = 0
Settings.GambleFrom = 1000000
Settings.GambleTo = 10000
Settings.UseAnyasPortal = false

------------------ CUBE SETTINGS ------------------------
--- Rune names must be capitalized                    ---
--- Example: Shael is correct; shael or SHAEL is not  ---
---------------------------------------------------------
Settings.UseCube = true --must be false to transmute items
Settings.CubeChippedGems = false
Settings.CubeFlawedGems = false
Settings.CubeNormalGems = false
Settings.CubeFlawlessGems = true
Settings.CubeRunesStart = El
Settings.CubeRunesStop = Lem
Settings.PickRuneGems = true --When you got 3 runes that need a gem to be cubed, bot will pick the gem automatically

----------- GAME CONFIGURATION & OPTIONS ---------------
Settings.PublicChat = false
Settings.PublicBot = false
Settings.SquelchLevel = 10
Settings.AutoParty = true
Settings.AcceptParty = true
Settings.StopOnDiaClone = true

------------------ GRUSH SETTINGS ----------------------
Settings.IncludeSideQuests = false
---- Quests ----
Settings.SearchForCain = true
Settings.RadamentsLair = true
Settings.LamEsensTome = true
Settings.FallenAngel = true
Settings.Hellforge = true
Settings.SiegeOnHarrogath = true
Settings.PrisonOfIce = true

------------------ DIA CLONE HUNT SETTINGS ----------------------
Settings.HuntHotIp = false -- this will stop the bot if ip found
Settings.HotIp[0] = 214
Settings.HotIp[1] = 54
-- Settings.HotIp[2] = "56"
-- add as much as you want
--------------- IMMUNITY SETTINGS ----------------------
Settings.SkipImmunePhysical = false
Settings.SkipImmuneMagic = false
Settings.SkipImmuneFire = false
Settings.SkipImmuneLightning = false
Settings.SkipImmuneCold = false
Settings.SkipImmunePoison = false

--------------- AURA SKIP FUNCTIONS --------------------
Settings.SkipAuraFanatics = false

------------------ INVENTORY LOCK ----------------------
--      0=STASH OR SELL    1=LOCK INTO INVENTORY      --
--    Edit this or you'll be surprised soon enough    --
--------------------------------------------------------

Settings.Inventory[1] = { 0,0,1,1,1,1,1,1,1,1 }
Settings.Inventory[2] = { 0,0,1,1,1,1,1,1,1,1 }
Settings.Inventory[3] = { 0,0,1,1,1,1,1,1,1,1 }
Settings.Inventory[4] = { 0,0,1,1,1,1,1,1,1,1 }

--------------------------------------------------------
--                 BAAL SETTINGS                      --
--      DONT MODIFY UNLESS U KNOW WUT TO DO           --
--------------------------------------------------------
------------ BAAL MESSAGES & SETTINGS ------------------
Settings.BaalStartMessage = "Welcome to my baal runs!"
Settings.BaalHotMessage = "TP is HOT! High lvls plz help clear"
Settings.BaalWarmMessage = "TP is WARM. %d near tp, %d total"
Settings.BaalColdMessage = "TP safe"

Settings.WaveMessage[1] = ""
Settings.WaveMessage[2] = ""
Settings.WaveMessage[3] = ""
Settings.WaveMessage[4] = ""
Settings.WaveMessage[5] = ""
Settings.WaveMessage[6] = ""
Settings.NgMessage = "New Game"
Settings.BaalKillMessage = "Baal!"
--Settings.VoteMessage = "Type .vote if you want to kill Baal"
Settings.KillBaal = true
--Settings.VoteBaal = 0

------------- WAVE-BASED AURA CHANGES ------------------

Settings.WaveSkill[1] = SkillType.Cleansing
Settings.WaveSkill[2] = SkillType.Cleansing
Settings.WaveSkill[3] = SkillType.Cleansing
Settings.WaveSkill[4] = SkillType.Cleansing
Settings.WaveSkill[5] = SkillType.Cleansing
Settings.WaveSkill[6] = SkillType.Cleansing

--------------------------------------------------------
--             ADVANCED BAAL OPTIONS                  --
--      DON'T MODIFY UNLESS YOU KNOW WHAT TO DO       --
--------------------------------------------------------
---------------- PRECAST LOCATION ----------------------
-- Based on Wave Level, 0 = no wave yet 5 = last wave --

Settings.PrecastX[0] = 15092
Settings.PrecastY[0] = 5025
Settings.PrecastX[1] = 15092
Settings.PrecastY[1] = 5025
Settings.PrecastX[2] = 15092
Settings.PrecastY[2] = 5025
Settings.PrecastX[3] = 15092
Settings.PrecastY[3] = 5025
Settings.PrecastX[4] = 15092
Settings.PrecastY[4] = 5025
Settings.PrecastX[5] = 15092
Settings.PrecastY[5] = 5025

------------ THRONE TELEPORT LOCATION ------------------
Settings.Teleport.x = 15090
Settings.Teleport.y = 5005

----------- THRONE TOWN PORTAL LOCATION ----------------
Settings.Tp.x = 15116
Settings.Tp.y = 5006

--------------------------------------------------------
--               DIABLO SETTINGS                      --
--      DON'T MODIFY UNLESS YOU KNOW WHAT TO DO       --
--------------------------------------------------------
----------- CHAOS-DIABLO-GRUSH MESSAGES ----------------
Settings.DiabloStartMessage = "Welcome to my chaos run!"
Settings.DiabloHotMessage = "Lots of minions. Please wait..."
Settings.DiabloWarmMessage = "High levels plz come help"
Settings.DiabloColdMessage = "OK, TP's safe for leechers!"
Settings.DiabloKillMessage = "Let's Kill D then I make NG"
Settings.NextBossMessage = "New game"

------------- SEAL ORDER - TP LOCATION -----------------
Settings.Seal1 = "right"
Settings.Seal2 = "top"
Settings.Seal3 = "left"

Settings.DiabloTp.x = 7793
Settings.DiabloTp.y = 5555

--------------------------------------------------------
--                 MEPHISTO SETTINGS                  --
--------------------------------------------------------
Settings.LetMercHoldMeph = false
Settings.UseMoat = false
Settings.UseMephPortal = false --portal to Act4 when Meph is dead

----------------------------------------------------------
--                 SHRINE PICKING                       --
--          Based on priority from 1-xx                 --
--          Only first to match gets picked             --
-- NOTE: IT IS A TABLE. YOU CAN NOT SKIP NUMBERS!!!     --
-- IF YOU WANT TO ADD A SHRINE, YOU WILL HAVE TO MAKE   --
-- IT TO BE THE NEXT IN LIST.                           --
-- EG. Settings.Shrine[3] = GameObjectType.CombatShrine --
----------------------------------------------------------
Settings.GetShrines = true -- Get Shrines while moving around

Settings.Shrine[1] = GameObjectType.ExperienceShrine --Shrine1 = first priority
Settings.Shrine[2] = GameObjectType.SkillShrine --Shrine2 = second priority
--Settings.Shrine[3] = GameObjectType.GemShrine
--Settings.Shrine[4] = GameObjectType.ManaRechargeShrine
--Settings.Shrine[5] = GameObjectType.CombatShrine
--Settings.Shrine[6] = GameObjectType.ArmorShrine
--Settings.Shrine[7] = GameObjectType.ResistFireShrine 
--Settings.Shrine[8] = GameObjectType.ResistColdShrine
--Settings.Shrine[9] = GameObjectType.ResistLightningShrine
--Settings.Shrine[10] = GameObjectType.ResistPoisonShrine
--Settings.Shrine[11] = GameObjectType.StaminaShrine


--------------------------------------------------------
--                 PICKIT REVOLUTION                  --
--------------------------------------------------------
------------------ Pickit Version ----------------------
--Settings.Pickit = "Greedy"
--Settings.Pickit = "Moderate"
Settings.Pickit = "Strict"

------------------ Pickit Settings ---------------------
Settings.MinGoldPile = 1000
Settings.AutoDump = false
Settings.InstantDump = false
das is die die da in den ordner youchar drine war und die ich auch nutze!
10/04/2009 20:41 ejact#12
ne :D aber dein fehler lag an diesen settings

Settings.HealHealth = 70 --HP % to heal at vendor and to trigger redemption
Settings.HealMana = 50 --Mana % to heal at vendor and to trigger redemption


die haben wir für beta 2 umbennant und der Fehler kann nur passieren wenn
1. du Settings.HealHealth = blabloa setzt oder so, ergo keine nummer
2. du die alten settings namen von beta 1 benutzt. ein anderer fehler kann in actions.lua line 5 nicht passieren
10/04/2009 22:21 xdoddestroyer#13
Quote:
Originally Posted by ejact View Post
ne :D aber dein fehler lag an diesen settings

Settings.HealHealth = 70 --HP % to heal at vendor and to trigger redemption
Settings.HealMana = 50 --Mana % to heal at vendor and to trigger redemption


die haben wir für beta 2 umbennant und der Fehler kann nur passieren wenn
1. du Settings.HealHealth = blabloa setzt oder so, ergo keine nummer
2. du die alten settings namen von beta 1 benutzt. ein anderer fehler kann in actions.lua line 5 nicht passieren
habs schon hinbekommen bei nt hats auch geklapt aber naja egal:D
10/05/2009 02:59 xXx__xXx#14
[Only registered and activated users can see links. Click Here To Register...]

neuer Link dazu!!!

Der alte ist nicht mehr aktuell,.....

LG René
10/05/2009 15:43 Hillextreme#15
Also mir ist bei dieser version aufgefallen bis jetzt: (hammerdin)
-Redemption braucht oft mehr zeit als 0,75 sekunden um zu wirken
-Oft kann er gegner nicht killen, weil er danebenhaemmert, dann macht er solange weiter bis er alle mana potions aufgebraucht hat
-Bei d2nt konnte man einstellen, bei welcher anzahl er neue potions kaufen soll, dass hab ich entweder nicht gefunden, nicht verstanden oder es gibt es nicht
-Wenn merc nicht alive ist, resurrected er auch nicht