Kownikuzyt
Member
- Joined
- Feb 11, 2020
- Messages
- 170
- Solutions
- 1
- Reaction score
- 8
Hello, I have a problem with "The Elemental Spheres Quest".
I am using TFS 1.1.
According to the guide, talk to Arkulius.
The interview went well.
And here's the problem, because I can't get the machine running to get to the quest.
The code that is responsible for transferring us to after use:
data/actions/actions.xml
data/actions/scripts/quests/elemental spheres/machine.lua
Anyone know a solution? How to fix it?
I am using TFS 1.1.
According to the guide, talk to Arkulius.
Player: hi
Arkulius: ...then I could transform a spell to bend... How can anyone expect me to work under these conditions?? What do you want?
Player: Alverus
Arkulius: It happened while he carried out an experiment concerning the creation of the elemental shrines. I still get goose bumps just by thinking of it. ...
Arkulius: You need to know about the process of creating an elemental shrine to understand it completely, but I don't want to go into detail now. ...
Arkulius: Anyway, his spell had a different outcome than he had planned. He accidentally created an Ice Overlord, pure living elemental ice, who froze him in a blink of an eye.
Player: shrines
Arkulius: The creation of the elemental shrines is a really complex matter. They are actually nodes, locations where the matching elemental sphere is very close. ...
Arkulius: The shrine itself is like a portal between our world and the elemental sphere and enables us to use the elemental energy emerging from it.
Player: sphere
Arkulius: There are four spheres we know of: ice, fire, earth and energy. ....<mumbles> Hmmm, should I ask or not?....The heck with it! Now that you know about the spheres ...
Arkulius: I found a way to visit them. It's VERY dangerous and there is a decent chance that you won't come back BUT if you succeed you'll write history!!! Ask me about that mission if you're interested.
Player: mission
Arkulius: Okay, listen closely: First of all, you need to gather 20 enchanted amethysts in order to go to the energy sphere. Deep under the academy, one floor below the elemental shrines, there is a machine. Put the gems in there and activate it. ...
Arkulius: Once you got there, find a way to gather elemental energy in any form. You will face energy elementals, that's for sure, but I don't know how the energy is stored. ...
Arkulius: Anyway, there should be a way to use that energy and strengthen one of the elementals. If my calculations are right, you will create an Energy Overlord who hopefully will consist of some sort of 'concentrated' energy. ...
Arkulius: THAT'S what we need!! Are you in on it?
Player: yes
Arkulius: Good, don't waste time! Come back here when you have the elemental object!
The interview went well.
We go to the very bottom of the middle tower, there is a machine in the north. If it is on, you have to turn it off, use 20 enchanted pebbles on it and turn it on.
And here's the problem, because I can't get the machine running to get to the quest.
The code that is responsible for transferring us to after use:
- Small Enchanted Ruby,
- Small Enchanted Amethyst,
- Small Enchanted Emerald,
- Small Enchanted Sapphire.
data/actions/actions.xml
<action fromid="7911" toid="7912" script="quests/elemental spheres/machine.lua" />
data/actions/scripts/quests/elemental spheres/machine.lua
Lua:
local config = {
[1] = Position(33183, 32197, 13),
[2] = Position(33331, 32076, 13),
[3] = Position(33265, 32202, 13),
[4] = Position(33087, 32096, 13)
}
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if isInArray({7911, 7912}, item.itemid) then
local gemCount = player:getStorageValue(Storage.ElementalSphere.MachineGemCount)
if isInArray({33268, 33269}, toPosition.x) and toPosition.y == 31830 and toPosition.z == 10 and gemCount >= 20 then
player:setStorageValue(Storage.ElementalSphere.MachineGemCount, gemCount - 20)
player:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
player:teleportTo(config[player:getVocation():getBase():getId()], false)
player:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
end
toPosition.x = toPosition.x + (item.itemid == 7911 and 1 or -1)
local tile = toPosition:getTile()
if tile then
local thing = tile:getItemById(item.itemid == 7911 and 7912 or 7911)
if thing then
thing:transform(thing.itemid + 4)
end
end
item:transform(item.itemid + 4)
else
toPosition.x = toPosition.x + (item.itemid == 7915 and 1 or -1)
local tile = toPosition:getTile()
if tile then
local thing = tile:getItemById(item.itemid == 7915 and 7916 or 7915)
if thing then
thing:transform(thing.itemid - 4)
end
end
item:transform(item.itemid - 4)
end
return true
end
Anyone know a solution? How to fix it?