mirror of
https://github.com/Bones50/ammoSave.git
synced 2024-08-30 17:22:11 +00:00
V2 Update
Supports Exile 1.04 (Inc VG)
This commit is contained in:
parent
9fc1043481
commit
792756d112
@ -235,7 +235,7 @@ Number Of Inputs = 1
|
||||
SQL1_INPUTS = 1
|
||||
|
||||
[loadVehicleIdPage]
|
||||
SQL1_1 = SELECT id FROM vehicle WHERE deleted_at IS NULL LIMIT ?,?
|
||||
SQL1_1 = SELECT id FROM vehicle WHERE deleted_at IS NULL AND territory_id IS NULL LIMIT ?,?
|
||||
Number Of Inputs = 2
|
||||
SQL1_INPUTS = 1,2
|
||||
OUTPUT = 1
|
||||
@ -271,21 +271,44 @@ SQL1_15 = cargo_items = ?,
|
||||
SQL1_16 = cargo_magazines = ?,
|
||||
SQL1_17 = cargo_weapons = ?,
|
||||
SQL1_18 = cargo_container = ?,
|
||||
SQL1_19 = money = ?
|
||||
SQL1_20 = WHERE id = ?
|
||||
SQL1_19 = money = ?,
|
||||
SQL1_20 = last_updated_at = NOW()
|
||||
SQL1_21 = WHERE id = ?
|
||||
Number of Inputs = 19
|
||||
SQL1_INPUTS = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19
|
||||
|
||||
[updateVehicleSkin]
|
||||
SQL1_1 = UPDATE vehicle SET vehicle_texture = ? WHERE id = ?
|
||||
SQL1_1 = UPDATE vehicle SET vehicle_texture = ?, last_updated_at = NOW() WHERE id = ?
|
||||
Number of Inputs = 2
|
||||
SQL1_INPUTS = 1,2
|
||||
|
||||
[vehicleSetPinCode]
|
||||
SQL1_1 = UPDATE vehicle SET pin_code = ? WHERE id = ?
|
||||
SQL1_1 = UPDATE vehicle SET pin_code = ?, last_updated_at = NOW() WHERE id = ?
|
||||
Number of Inputs = 2
|
||||
SQL1_INPUTS = 1,2
|
||||
|
||||
[storeVehicle]
|
||||
SQL1_1 = UPDATE vehicle SET territory_id = ?, nickname = ?, last_updated_at = NOW() WHERE id = ?
|
||||
Number of Inputs = 3
|
||||
SQL1_INPUTS = 1,2,3
|
||||
|
||||
[retrieveVehicle]
|
||||
SQL1_1 = UPDATE vehicle SET territory_id = NULL, last_updated_at = NOW(), nickname = '' WHERE id = ?
|
||||
Number of Inputs = 1
|
||||
SQL1_INPUTS = 1
|
||||
|
||||
[confirmVehicleOwnership]
|
||||
SQL1_1 = SELECT id, territory_id FROM vehicle WHERE nickname = ?
|
||||
Number of Inputs = 1
|
||||
SQL1_INPUTS = 1
|
||||
OUTPUT = 1,2
|
||||
|
||||
[loadTerritoryVirtualGarage]
|
||||
SQL1_1 = SELECT class, nickname FROM vehicle WHERE territory_id = ?
|
||||
Number of Inputs = 1
|
||||
SQL1_INPUTS = 1
|
||||
OUTPUT = 1-STRING,2-STRING
|
||||
|
||||
[getVehicleAmmo]
|
||||
SQL1_1 = SELECT ammo FROM vehicle WHERE id = ?
|
||||
Number of Inputs = 1
|
||||
@ -343,22 +366,27 @@ Number Of Inputs = 0
|
||||
OUTPUT = 1
|
||||
|
||||
[constructionSetPinCode]
|
||||
SQL1_1 = UPDATE construction SET pin_code= ? WHERE id = ?
|
||||
SQL1_1 = UPDATE construction SET pin_code= ?, last_updated_at = NOW() WHERE id = ?
|
||||
Number of Inputs = 2
|
||||
SQL1_INPUTS = 1,2
|
||||
|
||||
[upgradeObject]
|
||||
SQL1_1 = UPDATE construction SET class=? WHERE id = ?
|
||||
SQL1_1 = UPDATE construction SET class = ?, last_updated_at = NOW() WHERE id = ?
|
||||
Number of Inputs = 2
|
||||
SQL1_INPUTS = 1,2
|
||||
|
||||
[addDoorLock]
|
||||
SQL1_1 = UPDATE construction SET pin_code = ?,is_locked = -1 WHERE id = ?
|
||||
SQL1_1 = UPDATE construction SET pin_code = ?, is_locked = -1, last_updated_at = NOW() WHERE id = ?
|
||||
Number of Inputs = 2
|
||||
SQL1_INPUTS = 1,2
|
||||
|
||||
[removeDoorLock]
|
||||
SQL1_1 = UPDATE construction SET pin_code = '000000', is_locked = 0, last_updated_at = NOW() WHERE id = ?
|
||||
Number of Inputs = 1
|
||||
SQL1_INPUTS = 1
|
||||
|
||||
[updateLock]
|
||||
SQL1_1 = UPDATE construction SET is_locked = ? WHERE id = ?
|
||||
SQL1_1 = UPDATE construction SET is_locked = ?, last_updated_at = NOW() WHERE id = ?
|
||||
Number of Inputs = 2
|
||||
SQL1_INPUTS = 1,2
|
||||
|
||||
@ -368,7 +396,7 @@ Number of Inputs = 2
|
||||
SQL1_INPUTS = 1,2
|
||||
|
||||
[updateDamage]
|
||||
SQL1_1 = UPDATE construction SET damage = ? WHERE id = ?
|
||||
SQL1_1 = UPDATE construction SET damage = ?, last_updated_at = NOW() WHERE id = ?
|
||||
Number of Inputs = 2
|
||||
SQL1_INPUTS = 1,2
|
||||
|
||||
@ -441,14 +469,15 @@ SQL1_13 = cargo_magazines = ?,
|
||||
SQL1_14 = cargo_weapons = ?,
|
||||
SQL1_15 = cargo_container = ?,
|
||||
SQL1_16 = territory_id = $CUSTOM_1$,
|
||||
SQL1_17 = money = ?
|
||||
SQL1_18 = WHERE id = ?
|
||||
SQL1_17 = money = ?,
|
||||
SQL1_18 = last_updated_at = NOW()
|
||||
SQL1_19 = WHERE id = ?
|
||||
Number of Inputs = 16
|
||||
Number of Custom Inputs = 1
|
||||
SQL1_INPUTS = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16
|
||||
|
||||
[containerSetPinCode]
|
||||
SQL1_1 = UPDATE container SET pin_code= ? WHERE id = ?
|
||||
SQL1_1 = UPDATE container SET pin_code= ?, last_updated_at = NOW() WHERE id = ?
|
||||
Number of Inputs = 2
|
||||
SQL1_INPUTS = 1,2
|
||||
|
||||
@ -598,7 +627,7 @@ SQL1_INPUTS = 1
|
||||
|
||||
; Marks for deletion containers outside territories that were not accessed within ? days
|
||||
[markDeleteOldContainers]
|
||||
SQL1_1 = UPDATE container SET deleted_at = NOW() WHERE last_updated_at < DATE_SUB(NOW(), INTERVAL ? DAY) AND territory_id IS NULL
|
||||
SQL1_1 = UPDATE container SET deleted_at = NOW() WHERE last_updated_at < DATE_SUB(NOW(), INTERVAL ? DAY) AND territory_id IS NULL AND deleted_at IS NULL
|
||||
Number Of Inputs = 1
|
||||
SQL1_INPUTS = 1
|
||||
|
||||
@ -610,7 +639,7 @@ SQL1_INPUTS = 1
|
||||
|
||||
; Marks contructions outside territories deleted after ? days
|
||||
[markDeleteOldConstructions]
|
||||
SQL1_1 = UPDATE construction SET deleted_at = NOW() WHERE last_updated_at < DATE_SUB(NOW(), INTERVAL ? DAY) AND territory_id IS NULL
|
||||
SQL1_1 = UPDATE construction SET deleted_at = NOW() WHERE spawned_at < DATE_SUB(NOW(), INTERVAL ? DAY) AND territory_id IS NULL AND deleted_at IS NULL
|
||||
Number Of Inputs = 1
|
||||
SQL1_INPUTS = 1
|
||||
|
||||
@ -622,7 +651,7 @@ SQL1_INPUTS = 1
|
||||
|
||||
; Marks for deletion vehicles that were not used within ? days
|
||||
[markDeleteOldVehicles]
|
||||
SQL1_1 = UPDATE vehicle SET deleted_at = NOW() WHERE last_updated_at < DATE_SUB(NOW(), INTERVAL ? DAY)
|
||||
SQL1_1 = UPDATE vehicle SET deleted_at = NOW() WHERE last_updated_at < DATE_SUB(NOW(), INTERVAL ? DAY) AND deleted_at IS NULL
|
||||
Number Of Inputs = 1
|
||||
SQL1_INPUTS = 1
|
||||
|
||||
@ -634,9 +663,9 @@ SQL1_INPUTS = 1
|
||||
|
||||
; Marks territories (and all containers/constructions) that were not paid within ? days as deleted
|
||||
[markDeleteUnpaidTerritories]
|
||||
SQL1_1 = UPDATE territory SET deleted_at = NOW() WHERE last_paid_at < DATE_SUB(NOW(), INTERVAL ? DAY)
|
||||
SQl2_1 = UPDATE construction SET deleted_at = (select deleted_at from territory where territory.id=construction.territory_id and territory.deleted_at IS NOT NULL)
|
||||
SQL3_1 = UPDATE container SET deleted_at = (select deleted_at from territory where territory.id=container.territory_id and territory.deleted_at IS NOT NULL)
|
||||
SQL1_1 = UPDATE territory SET deleted_at = NOW() WHERE last_paid_at < DATE_SUB(NOW(), INTERVAL ? DAY) AND deleted_at IS NULL
|
||||
SQl2_1 = UPDATE construction SET deleted_at = (SELECT deleted_at FROM territory WHERE territory.id = construction.territory_id AND territory.deleted_at IS NOT NULL) WHERE construction.territory_id IS NOT NULL
|
||||
SQL3_1 = UPDATE container SET deleted_at = (SELECT deleted_at FROM territory WHERE territory.id = container.territory_id AND territory.deleted_at IS NOT NULL) WHERE container.territory_id IS NOT NULL
|
||||
Number Of Inputs = 1
|
||||
SQL1_INPUTS = 1
|
||||
|
||||
@ -658,8 +687,8 @@ SQL1_INPUTS = 1
|
||||
|
||||
; Unlock doors and mark safes as abandoned if flag stolen for X days
|
||||
[setAbandonedUnlocked]
|
||||
SQL1_1 = UPDATE container SET abandoned = NOW(), pin_code = '0000' WHERE (SELECT flag_stolen_at from territory WHERE territory.id=container.territory_id AND territory.flag_stolen_at < DATE_SUB(NOW(), INTERVAL ? DAY));
|
||||
SQL2_1 = UPDATE construction SET pin_code = '0000' WHERE (SELECT flag_stolen_at from territory WHERE territory.id = construction.territory_id AND territory.flag_stolen_at < DATE_SUB(NOW(), INTERVAL ? DAY)) AND pin_code != '000000'
|
||||
SQL1_1 = UPDATE container SET abandoned = NOW(), pin_code = '0000' WHERE (SELECT flag_stolen_at FROM territory WHERE territory.id = container.territory_id AND territory.flag_stolen_at < DATE_SUB(NOW(), INTERVAL ? DAY));
|
||||
SQL2_1 = UPDATE construction SET pin_code = '0000' WHERE (SELECT flag_stolen_at FROM territory WHERE territory.id = construction.territory_id AND territory.flag_stolen_at < DATE_SUB(NOW(), INTERVAL ? DAY)) AND pin_code != '000000'
|
||||
Number Of Inputs = 1
|
||||
SQL1_INPUTS = 1
|
||||
SQL2_INPUTS = 1
|
||||
@ -680,12 +709,12 @@ SQL1_INPUTS = 1
|
||||
OUTPUT = 1
|
||||
|
||||
[setContainerMoney]
|
||||
SQL1_1 = UPDATE container SET money = ? WHERE id = ?
|
||||
SQL1_1 = UPDATE container SET money = ?, last_updated_at = NOW() WHERE id = ?
|
||||
Number of Inputs = 2
|
||||
SQL1_INPUTS = 1,2
|
||||
|
||||
[setVehicleMoney]
|
||||
SQL1_1 = UPDATE vehicle SET money = ? WHERE id = ?
|
||||
SQL1_1 = UPDATE vehicle SET money = ?, last_updated_at = NOW() WHERE id = ?
|
||||
Number of Inputs = 2
|
||||
SQL1_INPUTS = 1,2
|
||||
|
||||
@ -701,4 +730,36 @@ SQL1_INPUTS = 1
|
||||
[setTerritoryNotified]
|
||||
SQL1_1 = UPDATE territory SET xm8_protectionmoney_notified = ? WHERE id = ?
|
||||
Number of Inputs = 2
|
||||
SQL1_INPUTS = 1,2
|
||||
SQL1_INPUTS = 1,2
|
||||
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Exile Escape
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
[addAccountWin]
|
||||
SQL1_1 = UPDATE account SET wins = wins + 1 WHERE uid = ?
|
||||
Number Of Inputs = 1
|
||||
SQL1_INPUTS = 1
|
||||
|
||||
[addAccountMatches]
|
||||
SQL1_1 = UPDATE account SET matches = matches + 1 WHERE uid = ?
|
||||
Number Of Inputs = 1
|
||||
SQL1_INPUTS = 1
|
||||
|
||||
[createMatch]
|
||||
SQL1_1 = INSERT INTO game_data SET players = ?, total_players = ?
|
||||
Number Of Inputs = 2
|
||||
SQL1_INPUTS = 1,2
|
||||
Return InsertID = true
|
||||
|
||||
[setMatchWinner]
|
||||
SQL1_1 = UPDATE game_data SET winner_uid = ?, win_type = ? WHERE id = ?
|
||||
Number Of Inputs = 3
|
||||
SQL1_INPUTS = 1,2,3
|
||||
|
||||
[getEscapeAccountStats]
|
||||
SQL1_1 = SELECT wins, matches FROM account WHERE uid = ?
|
||||
Number of Inputs = 1
|
||||
SQL1_INPUTS = 1
|
||||
OUTPUT = 1,2
|
||||
|
Loading…
Reference in New Issue
Block a user