• 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!

Help with the beggning of DHQ and Healer Script for Quentin!

yrre

New Member
Joined
Jul 7, 2009
Messages
20
Reaction score
0
Hello, im searching for a script that Quentin uses in thais temple and in every other temple. For example if you're on low HP then you say hi, heal and then you get healed or your poision or fire removes.

Im also searching for a script that removes 3 stones if two players stands at one switch.
The script is for Demon Helmet quest. You know when you enter DHQ, there is 2 people wich needs to stay in the place where the 2 switches is, then the wall will be opened.
That script am i in need of.
Im using tibia 7.6 Avesta
Yours
Keyvan

PS: Sry for my english.
 
Lua:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

function onCreatureAppear(cid)				npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) 			npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) 	npcHandler:onCreatureSay(cid, type, msg) end
function onThink() 						npcHandler:onThink() end

function creatureSayCallback(cid, type, msg)
	if npcHandler.focus ~= cid then
		return false
	elseif msgcontains(msg, "heal") then
		if getCreatureCondition(cid, CONDITION_FIRE) then
			npcHandler:say("You are burning. I will help you.", cid)
			doRemoveCondition(cid, CONDITION_FIRE)
			doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_GREEN)
		elseif getCreatureCondition(cid, CONDITION_POISON) then
			npcHandler:say("You are poisoned. I will help you.", cid)
			doRemoveCondition(cid, CONDITION_POISON)
			doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_RED)
		elseif getCreatureHealth(cid) < 40 then
			npcHandler:say("You are looking really bad. Let me heal your wounds.", cid)
			doCreatureAddHealth(cid, 40 - getCreatureHealth(cid))
			doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_BLUE)
		else
			npcHandler:say("You aren't looking that bad. Sorry, I can't help you. But if you are looking for additional protection you should go on the pilgrimage of ashes.", cid)
		end
	end
	return TRUE
end

npcHandler:setMessage(MESSAGE_GREET, "Welcome, adventurer |PLAYERNAME|! If you are new in Tibia, ask me for help.")
npcHandler:setMessage(MESSAGE_WALKAWAY, "Remember: If you are heavily wounded or poisoned, I will heal you.")
npcHandler:setMessage(MESSAGE_FAREWELL, "Good bye, |PLAYERNAME|!")

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
 
Back
Top