mirror of
https://github.com/1dot13/source.git
synced 2026-08-19 14:20:30 +02:00
- UB Improvements / Cleanup (by Jazz)
o added the lacking items of UB to files "the "Data\TableData\Items\Items.xml". o Necessary "Hand Cannon" were moved to the task Raul, to files H11_0_ExtraItems_xxx.xml. o The instruction Morrisa will be generated after destruction of Morrisa automatically. o All scripts lua were modified for UB git-svn-id: https://ja2svn.mooo.com/source/ja2_v1.13_data@1743 4f8fa57e-7814-0410-bad4-adc449f26b7c
This commit is contained in:
@@ -39,6 +39,28 @@ nQuests =
|
||||
-- max Quests 254
|
||||
}
|
||||
|
||||
ShopID = {
|
||||
ARMS_DEALER_TONY = 0,
|
||||
ARMS_DEALER_FRANZ = 1,
|
||||
ARMS_DEALER_KEITH = 2,
|
||||
ARMS_DEALER_JAKE = 3,
|
||||
ARMS_DEALER_GABBY = 4,
|
||||
ARMS_DEALER_HOWARD = 5,
|
||||
ARMS_DEALER_SAM = 6,
|
||||
ARMS_DEALER_FRANK = 7,
|
||||
ARMS_DEALER_BAR_BRO_1 = 8,
|
||||
ARMS_DEALER_BAR_BRO_2 = 9,
|
||||
ARMS_DEALER_BAR_BRO_3 = 10,
|
||||
ARMS_DEALER_BAR_BRO_4 = 11,
|
||||
ARMS_DEALER_MICKY = 12,
|
||||
ARMS_DEALER_ARNIE = 13,
|
||||
ARMS_DEALER_FREDO = 14,
|
||||
ARMS_DEALER_RAUL = 15, -- Raul UB
|
||||
ARMS_DEALER_ELGIN = 16,
|
||||
ARMS_DEALER_MANNY = 17,
|
||||
ARMS_DEALER_BETTY = 18, -- Betty UB
|
||||
}
|
||||
|
||||
qStatus = {
|
||||
QUESTNOTSTARTED = 0,
|
||||
QUESTINPROGRESS = 1,
|
||||
@@ -65,6 +87,15 @@ nFacts = {
|
||||
|
||||
local NO_PROFILE = 200
|
||||
|
||||
-- UB function
|
||||
local function AddLaptopTransmitterToBettysInventory()
|
||||
GuaranteeAtLeastXItemsOfIndex( ShopID.ARMS_DEALER_BETTY, UB_itemLAPTOP_TRANSMITTER, 1 ) -- Laptop transmitter
|
||||
GuaranteeAtLeastXItemsOfIndex( ShopID.ARMS_DEALER_BETTY, 216, 1 )
|
||||
GuaranteeAtLeastXItemsOfIndex( ShopID.ARMS_DEALER_BETTY, 202, 2 )
|
||||
GuaranteeAtLeastXItemsOfIndex( ShopID.ARMS_DEALER_BETTY, 201, 2 )
|
||||
end
|
||||
-- End UB
|
||||
|
||||
function InternalStartQuest( ubQuest, sSectorX, sSectorY, fUpdateHistory )
|
||||
|
||||
if ( CheckQuest(ubQuest) == qStatus.QUESTNOTSTARTED ) then
|
||||
@@ -145,6 +176,10 @@ function InternalEndQuest( ubQuest, sSectorX, sSectorY, fUpdateHistory )
|
||||
GiveQuestRewardPoint( sSectorX, sSectorY, 25, NO_PROFILE )
|
||||
elseif ( ubQuest == nQuests.QUEST_ESCORT_SHANK ) then
|
||||
GiveQuestRewardPoint( sSectorX, sSectorY, 5, NO_PROFILE )
|
||||
-- UB
|
||||
elseif ( ubQuest == nQuests.QUEST_GET_RID_BLOODCATS_AT_BETTYS ) then
|
||||
AddLaptopTransmitterToBettysInventory()
|
||||
-- end UB
|
||||
else
|
||||
GiveQuestRewardPoint( sSectorX, sSectorY, 4, NO_PROFILE )
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user