Show m_hitPot.lua syntax highlighted
-- This script tests to see if the player has the mission
-- to hit this pot. If he has this mission, and hits the pot
-- it is marked as a success.
-- Definitions --
NOTASSIGNED = -1;
INPROGRESS = 0;
COMPLETED = 1;
FAILED = 2;
-- bind the player
player.Init();
-- test if the player has this mission --
if ( player.HasMission("data/scripts/test_mission/m_hitPot") )
then
player.SetMissionStatus( "data/scripts/test_mission/m_hitPot", COMPLETED );
console.Exec("echo Mission update!" );
end
See more files for this project here