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

Remove twist of fate tfs 1.2

thomson9292

New Member
Joined
Feb 28, 2017
Messages
97
Solutions
1
Reaction score
2
Which files I need to edit to completely remove twist of fate (including dialogues).
 
Solution
Search for this
Code:
local player = Player(cid)
        local parseInfo = {[TAG_BLESSCOST] = getBlessingsCost(player:getLevel()), [TAG_PVPBLESSCOST] = getPvpBlessingCost(player:getLevel())}
        if player:hasBlessing(parameters.bless) then
            npcHandler:say("You already possess this blessing.", cid)
        elseif parameters.bless == 4 and player:getStorageValue(Storage.KawillBlessing) ~= 1 then
            npcHandler:say("You need the blessing of the great geomancer first.", cid)
        elseif parameters.bless == 6 and player:getBlessings() == 0 and not player:getItemById(2173, true) then
            npcHandler:say("You don't have any of the other blessings nor an amulet of loss, so it wouldn't make sense to bestow this protection on you now. Remember...
NpcName.lua? This NPC who has it on offer.

Post your npc modules.
npc/lib/modules
 
Last edited by a moderator:
Search for this
Code:
local player = Player(cid)
        local parseInfo = {[TAG_BLESSCOST] = getBlessingsCost(player:getLevel()), [TAG_PVPBLESSCOST] = getPvpBlessingCost(player:getLevel())}
        if player:hasBlessing(parameters.bless) then
            npcHandler:say("You already possess this blessing.", cid)
        elseif parameters.bless == 4 and player:getStorageValue(Storage.KawillBlessing) ~= 1 then
            npcHandler:say("You need the blessing of the great geomancer first.", cid)
        elseif parameters.bless == 6 and player:getBlessings() == 0 and not player:getItemById(2173, true) then
            npcHandler:say("You don't have any of the other blessings nor an amulet of loss, so it wouldn't make sense to bestow this protection on you now. Remember that it can only protect you from the loss of those!", cid)
        elseif not player:removeMoney(type(parameters.cost) == "string" and npcHandler:parseMessage(parameters.cost, parseInfo) or parameters.cost) then
            npcHandler:say("Oh. You do not have enough money.", cid)
        else
            npcHandler:say(parameters.text or "You have been blessed by one of the five gods!", cid)
            if parameters.bless == 4 then
                player:setStorageValue(Storage.KawillBlessing, 0)
            end
            player:addBlessing(parameters.bless)
            player:getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE)
        end
        npcHandler:resetNpc(cid)
        return true
    end

and replace for this

Code:
local player = Player(cid)
        local parseInfo = {[TAG_BLESSCOST] = getBlessingsCost(player:getLevel()), [TAG_PVPBLESSCOST] = getPvpBlessingCost(player:getLevel())}
        if player:hasBlessing(parameters.bless) then
            npcHandler:say("You already possess this blessing.", cid)
        elseif parameters.bless == 4 and player:getStorageValue(Storage.KawillBlessing) ~= 1 then
            npcHandler:say("You need the blessing of the great geomancer first.", cid)
        elseif parameters.bless == 6 then
            npcHandler:say("This blessing is currently dissabled.", cid)
        elseif not player:removeMoney(type(parameters.cost) == "string" and npcHandler:parseMessage(parameters.cost, parseInfo) or parameters.cost) then
            npcHandler:say("Oh. You do not have enough money.", cid)
        else
            npcHandler:say(parameters.text or "You have been blessed by one of the five gods!", cid)
            if parameters.bless == 4 then
                player:setStorageValue(Storage.KawillBlessing, 0)
            end
            player:addBlessing(parameters.bless)
            player:getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE)
        end
        npcHandler:resetNpc(cid)
        return true
    end

now when someone ask for the bless (6) < twist of fate, the npcs will return this message:

  1. elseif parameters.bless == 6 then
  2. npcHandler:say("This blessing is currently dissabled.", cid)
else if you want to remove totally the blessing 6.

remove the line
npcHandler:say("This blessing is currently dissabled.", cid)

and go to all your npcs (temple) script:
and remove all the lines where says:
twist
fate
pvp
 
Solution
Back
Top