• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Action {QUEST} The Count script TFS 0.3.6pl1

Bulet

Knight of Apocalypse
Joined
Jul 12, 2009
Messages
183
Reaction score
9
Location
Brazil
For who has waiting for release thats are him.
Script of 3th Inquisitor Mission, to kill The Vampiric Boss The Count.
I will fix that script to Sumon The Weakened Count if had Garlick Necklace and if not The Count.

tutox.jpg


actions.xml.:
Code:
<!-- Inquisiton Quest -->
<action actionid="1290" event="script" value="inq/thecount.lua" />

If you want make that quest more than one time on your server just remove the red line ...

thecount.lua.:
Code:
local altars = {
	{x=32779, y=31977, z=9},
	{x=32777, y=31982, z=9},
	{x=32781, y=31982, z=9}
}
 
local summonPos = {x=32779, y=31978, z=9}
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid, 1290) == -1 then	
		doCreatureSay(cid, "You aren't a member of the inquisition.", TALKTYPE_ORANGE_1)
	elseif getPlayerStorageValue(cid, 1290) > 1 then
		doPlayerSendCancel(cid, "You already made this mission.")
	elseif getPlayerStorageValue(cid, 1290) == 1 then
		local k = {}
		for _, v in ipairs(altars) do
			local tmp = getTileItemById(v, 2199).uid
			if tmp == 0 then
				doCreateMonster('The Count', summonPos)
				doSendMagicEffect(summonPos, CONST_ME_TELEPORT)
				return true
			else
				table.insert(k, tmp)
			end
		end
		for i = 1, #k do
			doRemoveItem(k[i])
		end
		doCreateMonster('The Weakened Count', summonPos)
		doSendMagicEffect(summonPos, CONST_ME_TELEPORT)
		return true
	end
end

IF i help you REP+++ Me and Sypher
Tks so Much :peace:
 
Last edited:
Back
Top