Updated scripts

git-svn-id: https://ja2svn.mooo.com/source/ja2_v1.13_data@2388 4f8fa57e-7814-0410-bad4-adc449f26b7c
This commit is contained in:
Flugente
2017-09-21 18:47:53 +00:00
parent 129edcc670
commit 085514b206
4 changed files with 115 additions and 9 deletions
+12 -7
View File
@@ -47,6 +47,9 @@ Profiles =
{
DYNAMO = 66,
CARMEN = 78,
KINGPIN = 86,
MARIA = 88,
ANGEL = 89,
MADAME = 107,
}
@@ -55,7 +58,7 @@ nHistory = {
HISTORY_QUEST_FINISHED = 16,
}
nFacts = {
Facts = {
FACT_ESTONI_REFUELLING_POSSIBLE = 277,
@@ -65,13 +68,15 @@ local NO_PROFILE = 200
function InternalStartQuest( ubQuest, sSectorX, sSectorY, fUpdateHistory )
if ( CheckQuest(ubQuest) == qStatus.QUESTNOTSTARTED ) then
if ( CheckQuest(ubQuest) == qStatus.QUESTNOTSTARTED ) then
SetQuest( ubQuest, qStatus.QUESTINPROGRESS )
if ( fUpdateHistory == true) then
if ( is_networked == 0 ) then
SetHistoryFact( nHistory.HISTORY_QUEST_STARTED, ubQuest, GetWorldTotalMin(), sSectorX, sSectorY )
end
end
if ( fUpdateHistory == true) then
if ( is_networked == 0 ) then
SetHistoryFact( nHistory.HISTORY_QUEST_STARTED, ubQuest, GetWorldTotalMin(), sSectorX, sSectorY )
end
end
else
SetQuest( ubQuest, qStatus.QUESTINPROGRESS )
end