You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why do I use commands to add misson tasks to myself
!completemisson 6 1 gm
6=cop logID 1=copID
First line prompt: Completed Chains of Promathia Misson with ID 1 for GM
Tip: NOTE! this does NOT clear or update ANY misson variables
Does LSB have new logID and missonID? Why this command cannot be used?
The command cannot send the task to my task completion column
Misson > Promathia Can't view here
-- func: completemission
-- desc: Completes the given mission for the target player, if that mission is currently active.
require("scripts/globals/missions")
cmdprops =
{
permission = 1,
parameters = "sss"
}
function error(player, msg)
player:PrintToPlayer(msg)
player:PrintToPlayer("!completemission {player}")
end
function onTrigger(player, logId, missionId, target)
-- validate logId
local logName
local logInfo = GetMissionLogInfo(logId)
if (logInfo == nil) then
error(player, "Invalid logID.")
return
end
logName = logInfo.full_name
logId = logInfo.mission_log
-- validate missionId
local areaMissionIds = xi.mission.id[xi.mission.area[logId]]
if (missionId ~= nil) then
missionId = tonumber(missionId) or areaMissionIds[string.upper(missionId)] or _G[string.upper(missionId)]
end
if (missionId == nil or missionId < 0) then
error(player, "Invalid missionID.")
return
end
-- validate target
local targ
if (target == nil) then
targ = player
else
targ = GetPlayerByName(target)
if (targ == nil) then
error(player, string.format("Player named '%s' not found!", target))
return
end
end
-- complete mission
targ:completeMission( logId, missionId )
player:PrintToPlayer( string.format( "Completed %s Mission with ID %u for %s", logName, missionId, targ:getName() ) )
player:PrintToPlayer("NOTE! This does NOT clear or update ANY mission variables! ")
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Why do I use commands to add misson tasks to myself
!completemisson 6 1 gm
6=cop logID 1=copID
First line prompt: Completed Chains of Promathia Misson with ID 1 for GM
Tip: NOTE! this does NOT clear or update ANY misson variables
Does LSB have new logID and missonID? Why this command cannot be used?
The command cannot send the task to my task completion column
Misson > Promathia Can't view here
-- func: completemission
-- desc: Completes the given mission for the target player, if that mission is currently active.
require("scripts/globals/missions")
cmdprops =
{
permission = 1,
parameters = "sss"
}
function error(player, msg)
player:PrintToPlayer(msg)
player:PrintToPlayer("!completemission {player}")
end
function onTrigger(player, logId, missionId, target)
end
Beta Was this translation helpful? Give feedback.
All reactions