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

Real tibia blessing system request

shawntio

Member
Joined
Apr 14, 2008
Messages
737
Reaction score
5
Location
sweden
Hi i need the real tibia blessing system, when dying you're not losing any items, and the real npc scripts please reply if you have it Thanks! i use frankfarmers real tibia project

sorry for my bad english
 
LUA:
function onDeath(cid, corpse, killer)
local nonremskulls = {4,5}
for i = 1,5 do
   if getPlayerBlessing(cid, i) then
       if (not isInArray(nonremskulls, getPlayerSkullType(cid))) then
           doCreatureSetDropLoot(cid, false)
       end
   end
end
return true
end

i donno try that?
 
Myra.xml

PHP:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Myra" script="data/npc/scripts/Myra.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100"/>
<look type="331" head="96" body="94" legs="79" feet="115" addons="0"/>
<parameters>
<parameter key="module_shop" value="1" />
<parameter key="module_keywords" value="1" />
        <parameter key="keywords" value="amulet of loss;help;blessings;" />
		<parameter key="shop_buyable" value="amulet of loss,2173,50000;"/>
		<parameter key="shop_sellable" value="amulet of loss,2173,45000;broken amulet amulet,2196,50000;"/>
        <parameter key="keyword_reply1" value="I've collected quite a few protection amulets, and some amulets of loss as well."/>
		<parameter key="keyword_reply2" value="I can bless you with The {Wisdom of Solitude}, The {Spiritual Shielding}, The {Embrace of Tibia}, The {Fire of the Suns}, The {Spark of the Phoenix}." />
		<parameter key="keyword_reply3" value="I can bless you with The {Wisdom of Solitude}, The {Spiritual Shielding}, The {Embrace of Tibia}, The {Fire of the Suns}, The {Spark of the Phoenix}." />
        <parameter key="message_greet" value="Welcome to ServerName, adventurer |PLAYERNAME|! You can ask me for {help} if you want to buy {blessings}."/>
</parameters>
</npc>
Myra.lua

PHP:
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

local node1 = keywordHandler:addKeyword({'spiritual shielding'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Here on Arelyth you may receive the blessing The Spiritual Shielding. But we must ask of you to sacrifice 2000 gold. Are you still interested?'})
	node1:addChildKeyword({'yes'}, StdModule.bless, {npcHandler = npcHandler, number = 1, premium = true, baseCost = 2000, levelCost = 200, startLevel = 30, endLevel = 120})
	node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Oh. You do not have enough money.'})

local node2 = keywordHandler:addKeyword({'embrace of tibia'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Here on Arelyth you may receive the blessing The Embrace of Tibia. But we must ask of you to sacrifice 2000 gold. Are you still interested?'})
	node2:addChildKeyword({'yes'}, StdModule.bless, {npcHandler = npcHandler, number = 2, premium = true, baseCost = 2000, levelCost = 200, startLevel = 30, endLevel = 120})
	node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Oh. You do not have enough money.'})

local node3 = keywordHandler:addKeyword({'fire of the sun'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Here on Arelyth you may receive the blessing The Fire of the Suns. But we must ask of you to sacrifice 2000 gold. Are you still interested?'})
	node3:addChildKeyword({'yes'}, StdModule.bless, {npcHandler = npcHandler, number = 3, premium = true, baseCost = 2000, levelCost = 200, startLevel = 30, endLevel = 120})
	node3:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Oh. You do not have enough money.'})

local node4 = keywordHandler:addKeyword({'wisdom of solitude'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Here on Arelyth you may receive the blessing The Wisdom of Solitude. But we must ask of you to sacrifice 2000 gold. Are you still interested?'})
	node4:addChildKeyword({'yes'}, StdModule.bless, {npcHandler = npcHandler, number = 4, premium = true, baseCost = 2000, levelCost = 200, startLevel = 30, endLevel = 120})
	node4:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Oh. You do not have enough money.'})

local node5 = keywordHandler:addKeyword({'spark of the phoenix'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Here on Arelyth you may receive the blessing The Spark of the Phoenix. But we must ask of you to sacrifice 2000 gold. Are you still interested?'})
	node5:addChildKeyword({'yes'}, StdModule.bless, {npcHandler = npcHandler, number = 5, premium = true, baseCost = 2000, levelCost = 200, startLevel = 30, endLevel = 120})
	node5:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Oh. You do not have enough money.'})

npcHandler:addModule(FocusModule:new())




All in on.
 
Back
Top