function onSay(player, words, param)
-- local player = Player(cid) use this if you use function onSay(cid, words, param)
local theNewFrontierPrice = 30000
local wrathOfTheEmperorPrice = 30000
local childrenOfRevolutionPrice = 30000
-- THE NEW FRONTIER
if param == 'The New Frontier' then
if player:getStorageValue(Storage.TheNewFrontier.Questline) == 28 then
doPlayerSendTextMessage(player,MESSAGE_EVENT_ADVANCE,'You have already done this quest.') -- White popup message
elseif doPlayerRemoveMoney(player, theNewFrontierPrice) == TRUE then
doSendMagicEffect(getPlayerPosition(player), CONST_ME_HOLYDAMAGE) -- Animation on player
doPlayerSendTextMessage(player,MESSAGE_EVENT_ADVANCE,'Grats, you have completed TheNewFrontier, and gained all access.') -- White popup message
player:setStorageValue(Storage.TheNewFrontier.Questline, 28) -- Set questline
player:setStorageValue(Storage.TheNewFrontier.Mission01, 3); -- Mission01
player:setStorageValue(Storage.TheNewFrontier.Mission02, 6); -- Mission02
player:setStorageValue(Storage.TheNewFrontier.Mission03, 3); -- Mission03
player:setStorageValue(Storage.TheNewFrontier.Mission04, 2); -- Mission04
player:setStorageValue(Storage.TheNewFrontier.Mission05, 7); -- Mission05
player:setStorageValue(Storage.TheNewFrontier.Mission06, 3); -- Mission06
player:setStorageValue(Storage.TheNewFrontier.Mission07, 3); -- Mission07
player:setStorageValue(Storage.TheNewFrontier.Mission08, 2); -- Mission08
player:setStorageValue(Storage.TheNewFrontier.Mission09, 3); -- Mission09
player:setStorageValue(Storage.TheNewFrontier.Mission10, 1); -- Mission10
player:setStorageValue(Storage.TheNewFrontier.TomeofKnowledge, 13); -- TomeofKnowledge
player:setStorageValue(Storage.TheNewFrontier.Beaver1, 1); -- Beaver1
player:setStorageValue(Storage.TheNewFrontier.Beaver2, 1); -- Beaver2
player:setStorageValue(Storage.TheNewFrontier.Beaver3, 1); -- Beaver3
player:setStorageValue(Storage.TheNewFrontier.BribeKing, 1); -- BribeKing
player:setStorageValue(Storage.TheNewFrontier.BribeLeeland, 1); -- BribeLeeland
player:setStorageValue(Storage.TheNewFrontier.BribeExplorerSociety, 1); -- BribeExplorerSociety
player:setStorageValue(Storage.TheNewFrontier.BribeWydrin, 1); -- BribeWydrin
player:setStorageValue(Storage.TheNewFrontier.BribeTelas, 1); -- BribeTelas
player:setStorageValue(Storage.TheNewFrontier.BribeHumgolf, 1); -- BribeHumgolf
else
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "You need 30,000gp to skip this quest.")
end
end
-- WRATH OF THE EMPEROR
if param == 'Wrath Of The Emperor' then
if player:getStorageValue(Storage.WrathoftheEmperor.Questline) == 33 then
doPlayerSendTextMessage(player,MESSAGE_EVENT_ADVANCE,'You have already done this quest.') -- White popup message
elseif doPlayerRemoveMoney(player, wrathOfTheEmperorPrice) == TRUE then
doSendMagicEffect(getPlayerPosition(player), CONST_ME_HOLYDAMAGE) -- Animation on player
doPlayerSendTextMessage(player,MESSAGE_EVENT_ADVANCE,'Grats, you have completed WrathOfTheEmperor, and gained all access.') -- White popup message
player:setStorageValue(Storage.WrathoftheEmperor.Questline, 33)
player:setStorageValue(Storage.WrathoftheEmperor.Mission01, 3)
player:setStorageValue(Storage.WrathoftheEmperor.Mission02, 3)
player:setStorageValue(Storage.WrathoftheEmperor.Mission03, 3)
player:setStorageValue(Storage.WrathoftheEmperor.Mission04, 3)
player:setStorageValue(Storage.WrathoftheEmperor.Mission05, 3)
player:setStorageValue(Storage.WrathoftheEmperor.Mission06, 4)
player:setStorageValue(Storage.WrathoftheEmperor.Mission07, 6)
player:setStorageValue(Storage.WrathoftheEmperor.Mission08, 2)
player:setStorageValue(Storage.WrathoftheEmperor.Mission09, 2)
player:setStorageValue(Storage.WrathoftheEmperor.Mission10, 6)
player:setStorageValue(Storage.WrathoftheEmperor.Mission11, 2)
player:setStorageValue(Storage.WrathoftheEmperor.Mission12, 1)
player:setStorageValue(Storage.WrathoftheEmperor.CrateStatus, 1)
player:setStorageValue(Storage.WrathoftheEmperor.GuardcaughtYou, 1)
player:setStorageValue(Storage.WrathoftheEmperor.ZumtahStatus, 1)
player:setStorageValue(Storage.WrathoftheEmperor.PrisonReleaseStatus, 1)
player:setStorageValue(Storage.WrathoftheEmperor.GhostOfAPriest01, 1)
player:setStorageValue(Storage.WrathoftheEmperor.GhostOfAPriest02, 1)
player:setStorageValue(Storage.WrathoftheEmperor.GhostOfAPriest03, 1)
player:setStorageValue(Storage.WrathoftheEmperor.InterdimensionalPotion, 1)
player:setStorageValue(Storage.WrathoftheEmperor.BossStatus, 1)
player:setStorageValue(Storage.WrathoftheEmperor.platinumReward, 1)
player:setStorageValue(Storage.WrathoftheEmperor.backpackReward, 1)
player:setStorageValue(Storage.WrathoftheEmperor.mainReward, 1)
else
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "You need 30,000gp to skip this quest.")
end
end
-- CHILDREN OF REVOLUTION
if param == 'Children Of Revolution' then
if player:getStorageValue(Storage.ChildrenoftheRevolution.Questline) == 21 then
doPlayerSendTextMessage(player,MESSAGE_EVENT_ADVANCE,'You have already done this quest.') -- White popup message
elseif doPlayerRemoveMoney(player, childrenOfRevolutionPrice) == TRUE then
doSendMagicEffect(getPlayerPosition(player), CONST_ME_HOLYDAMAGE) -- Animation on player
doPlayerSendTextMessage(player,MESSAGE_EVENT_ADVANCE,'Grats, you have completed ChildrenOfRevolution, and gained all access.') -- White popup message
player:setStorageValue(Storage.ChildrenoftheRevolution.Questline, 21)
player:setStorageValue(Storage.ChildrenoftheRevolution.Mission01, 3)
player:setStorageValue(Storage.ChildrenoftheRevolution.Mission02, 5)
player:setStorageValue(Storage.ChildrenoftheRevolution.Mission03, 3)
player:setStorageValue(Storage.ChildrenoftheRevolution.Mission04, 6)
player:setStorageValue(Storage.ChildrenoftheRevolution.Mission05, 3)
player:setStorageValue(Storage.ChildrenoftheRevolution.SpyBuilding01, 1)
player:setStorageValue(Storage.ChildrenoftheRevolution.SpyBuilding02, 1)
player:setStorageValue(Storage.ChildrenoftheRevolution.SpyBuilding03, 1)
player:setStorageValue(Storage.ChildrenoftheRevolution.StrangeSymbols, 3)
else
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "You need 30,000gp to skip this quest.")
end
end
end