LootBoxID 301304 - 301303 - 301281 - 301290 - 301287 - 301297
There are no items in these boxes, so it is normal that the item does not spawn, you need to add items to the empty boxes I wrote.
View attachment 240977
You can do this as follows.
LootID = LootBoxID
Chance = It's up to you
ItemID = ID of the item to spawn
em, i guess
six empty lootBoxes, i need to insert the tableData(The picture) into items_Loot Table six times,
different LootBox can insert same Item?
spawn Item function maybe is worked, but the Array of every LootBox is empty, six array represent six lootBox?
the six Array is empty, so nothing spawn, am I right?
after insert the item data, the problem still exist, why ?
-----
By analyzing the WarZ source code, discovered the logic of spawn items
in the folder inetpub\wwwroot\api\php\
api_GetLootBoxConfig.php -> get the LootBox_item config form DataBase
dbinfo.inc.php -> create the DataBase Query instance
api_GetItemsDB.php -> query the Items data
To implement The above three files function,
I checked that PHP is working well, why?
After several hours of research, i found PHP can't recognize the "sqlsrv_connect" function
and i install the extension of php, paste the sqlserver middleware file at "php/ext/" folder,
then restart the iis, finally run the WarZ Server, the LootBox Empty errors disappeared,I am very excited!
enter the game, and the spawn items function is worked!
I played for an hour, no errors found!