ralke
(҂ ͠❛ ෴ ͡❛)ᕤ
Hi! I'm trying to replicate wrath of the emperor quest, and I have passed this script to my server
But i'm getting this error. This happens when I use flask of plan poison (itemid 12320) in a tentacle with actionid 8026
This video should explain how it works:
What is wrong here? Thanks in advance!
The same happens using revscritpsys
And triggers this:
orts2/Mission03TheKeeper.lua at main · EPuncker/orts2
ORTS datapack working on latest TFS. Contribute to EPuncker/orts2 development by creating an account on GitHub.
github.com
This video should explain how it works:
What is wrong here? Thanks in advance!
Post automatically merged:
The same happens using revscritpsys
Lua:
local function revertKeeperstorage()
Game.setStorageValue(PlayerStorageKeys.WrathoftheEmperor.Mission03, 0)
end
local wrathEmperorMiss3Keeper = Action()
function wrathEmperorMiss3Keeper.onUse(player, item, fromPosition, target, toPosition, isHotkey)
if item.itemid == 12320 and target.actionid == 8026 then
if Game.getStorageValue(PlayerStorageKeys.WrathoftheEmperor.Mission03) < 5 then
Game.setStorageValue(PlayerStorageKeys.WrathoftheEmperor.Mission03, math.max(0, Game.getStorageValue(Storage.WrathoftheEmperor.Mission03)) + 1)
player:say("The plant twines and twiggles even more than before, it almost looks as it would scream great pain.", TALKTYPE_MONSTER_SAY)
elseif Game.getStorageValue(PlayerStorageKeys.WrathoftheEmperor.Mission03) == 5 then
Game.setStorageValue(PlayerStorageKeys.WrathoftheEmperor.Mission03, 6)
toPosition:sendMagicEffect(CONST_ME_YELLOW_RINGS)
Game.createMonster('the keeper', {x = 1290, y = 984, z = 13})
Position({x = 1290, y = 984, z = 13}):sendMagicEffect(CONST_ME_TELEPORT)
addEvent(revertKeeperstorage, 60 * 1000)
end
elseif item.itemid == 12316 then
if player:getStorageValue(PlayerStorageKeys.WrathoftheEmperor.Questline) == 7 then
player:setStorageValue(PlayerStorageKeys.WrathoftheEmperor.Questline, 8)
player:setStorageValue(PlayerStorageKeys.WrathoftheEmperor.Mission03, 2) --Questlog, Wrath of the Emperor "Mission 03: The Keeper"
player:addItem(12323, 1)
end
end
return true
end
wrathEmperorMiss3Keeper:id(12320,12316)
wrathEmperorMiss3Keeper:register()
And triggers this:
Last edited: