Page 1 of 1

Kill Boddosh in CL (special function)

Posted: Wed Dec 18, 2013 9:13 am
by Bot_romka
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>

Re: Kill Boddosh in CL (special function)

Posted: Fri Dec 20, 2013 1:54 pm
by artosaari
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?

Re: Kill Boddosh in CL (special function)

Posted: Sat Dec 21, 2013 12:55 am
by Bot_romka
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.

Re: Kill Boddosh in CL (special function)

Posted: Sun Dec 22, 2013 6:35 pm
by artosaari
This really is amazing!! Thx alot romka!! :D