Kill Boddosh in CL (special function)

Additional botting resources. Addons may be either for the game itself or for the RoM bot.
Forum rules
Only post additional bot resources here. Please do not ask unrelated questions.
Post Reply
Message
Author
User avatar
Bot_romka
Posts: 96
Joined: Tue Apr 05, 2011 2:59 am
Location: Russia

Kill Boddosh in CL (special function)

#1 Post by Bot_romka » Wed Dec 18, 2013 9:13 am

Function for kill Boddosh outside the big room with mobs.

Code: Select all

	<onLoad>
	-- Boddosh
		function Boddosh()
			local objectList = CObjectList();
			objectList:update();
			local objSize = objectList:size()
			for i = 0,objSize do
				local obj = objectList:getObject(i);
				if obj.Id == 101346 then
					player:updateXYZ()
					if( 250 > distance(player.X, player.Z, obj.X, obj.Z) and PointInPoly({{X=4102,Z=2489}, {X=3515, Z=2487}, {X=3514,Z=2922}, {X=4100, Z=2924}}, player.X, player.Z) ) then
						cprintf(cli.white, player.Name.." find Boddosh\n")
						player:clearTarget()
						teleport(3480,2695)
						teleport(3365,2680)
						yrest(1000)
						__WPL:setWaypointIndex(__WPL:findWaypointTag("BoddoshStart"));
					end
				end
			end
		end;

	-- onSkillCast
		if( not onSkillCastProfile ) then
			if( type(settings.profile.events.onSkillCast) ~= "function" ) then
				onSkillCastProfile =  function(unused) return; end;
			else
				onSkillCastProfile = settings.profile.events.onSkillCast;
			end
		end;
		function settings.profile.events:onSkillCast()
			onSkillCastProfile();
			Boddosh()
			-- Housekeeper Special Spicy Meatsauce Burrito
			if( not player:hasBuff(506677) and inventory:itemTotalCount(207213) > 0 ) then
				inventory:useItem(207213)
			end
		end;
	</onLoad>
	
	...
	
	<!-- # 35 --><waypoint x="3365" z="2680" tag="BoddoshStart">
		CheckInventory();
		player:update();
		useMaidItems();
		if( not CL_KillFerstBoss ) then
			-- Potion: Scarlet Love
			if( not player:hasBuff(506690) and inventory:itemTotalCount(207206) > 0 ) then
				inventory:useItem(207206)
				yrest(1750)
				inventory:update()
			end
			-- Hero Potion
			if( not player:hasBuff(501337) and inventory:itemTotalCount(200277) > 0 ) then
				inventory:useItem(200277)
				yrest(1000)
				inventory:update()
			end
			-- Touch of the Unicorn
			if( not player:hasBuff(500310) and inventory:itemTotalCount(200199) > 0 ) then
				inventory:useItem(200199)
			end
		end;
		-- Loot any other dead monsters nearby
		player:updateBattling()
		if not player.Battling or not player:findEnemy(true,nil,evalTargetDefault) then
			player:lootAll()
		end
	</waypoint>
Last edited by Bot_romka on Sat Dec 21, 2013 12:46 am, edited 1 time in total.

artosaari
Posts: 15
Joined: Sat Mar 16, 2013 7:59 am

Re: Kill Boddosh in CL (special function)

#2 Post by artosaari » Fri Dec 20, 2013 1:54 pm

What does this do? Is it to kill Bodosh with a Rainbow Crystal Candy? And where does it go to? into the Waypoint file or is it for the Profile?

User avatar
Bot_romka
Posts: 96
Joined: Tue Apr 05, 2011 2:59 am
Location: Russia

Re: Kill Boddosh in CL (special function)

#3 Post by Bot_romka » Sat Dec 21, 2013 12:55 am

Its a function for kill Boddosh outside the big room with mobs. Char when finds Boddosh near in big room then teleport backward to "BoddoshStart" waypoint and kill his there.

artosaari
Posts: 15
Joined: Sat Mar 16, 2013 7:59 am

Re: Kill Boddosh in CL (special function)

#4 Post by artosaari » Sun Dec 22, 2013 6:35 pm

This really is amazing!! Thx alot romka!! :D

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests