Hultin
Member
- Joined
- Dec 2, 2008
- Messages
- 262
- Reaction score
- 17
@Mokerhamer where can this source be found?
@Mokerhamer where can this source be found?
Should release your quest skip codeWhat kind of source?
Should release your quest skip code
Its not a bad idea really i might start making one with modal windows.. did you just make it so it gives all the storages?Nah it's still not. at this point i only added quests that give new area access or usage to goto new areas. It's bassicly a shortcut npc for players who win events often.
-Yes :0 dont forget to include outfit system. and some quests like yalahar give you different outfitsa depending on choises you made. I've added those to .Its not a bad idea really i might start making one with modal windows.. did you just make it so it gives all the storages?
You should just release it haha looks really good man! good work!-Yes :0 dont forget to include outfit system. and some quests like yalahar give you different outfitsa depending on choises you made. I've added those to .
This data pack is actually very very good, and should be used a default package for starting new servers. i daily maintain my server with ORTS updates and fixes. Besides TFS provides more potions in shorter and faster coding for example my daily Task Npc
You should just release it haha looks really good man! good work!
Everyone keeps there features private hence the decline of OTland just saying but serious man good job. I will probs make one.i'm actually going to keep it privet since it's one of the unique features i have i have more systems like marriage system that gives hp/mana regain + hearth effect if marriage couple are both in screen and many more
Everyone keeps there features private hence the decline of OTland just saying but serious man good job. I will probs make one.
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
<talkaction words="!completequest" script="gainaccess.lua"/>
thanks for your answer wikidmj, you were right, but it was not working well pluguin and remove not I get those letters, but also thanks again for pointing more or less where the error was.Lopez, those are Line Feed markers, which are being inserted automatically by your text editor. You need to disable "Insert Line Feed" or something like this in your editor's preferences / options.