Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

WarZ-how to spawn item in map ?

Newbie Spellweaver
Joined
Aug 22, 2023
Messages
10
Reaction score
2
first of all, i'm sorry about my bad english, maybe has some syntax problem.:censored:

friends wants to play WarZ, so i build a private Warz server following this guide :

every step is good, but the item not spawn, every building, every spawn point don't refresh the item, what should i do to to resolve this problem?
 

Attachments

You must be registered for see attachments list
Solution
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.

1693322268235 - WarZ-how to spawn item in map ? - RaGEZONE Forums


You can do this as follows.

LootID = LootBoxID
Chance = It's up to you
ItemID = ID of the item to spawn
Newbie Spellweaver
Joined
Jan 26, 2021
Messages
47
Reaction score
2
Are you sure you have installed php and connect with IIS php manager?
 
Upvote 0
Newbie Spellweaver
Joined
Aug 22, 2023
Messages
10
Reaction score
2
Are you sure you have installed php and connect with IIS php manager?
thanks for replay at first,i have installed it

what do i do at php install? I wish you 'll understand, cause i'm using different languages(Zn-ch)chinese
---
1 . install the iis, check all the function, especially "CGI" Function.
2. download the php program, and unzip to D:\php.
3. handle the php mapping
the rest operate is following the guide, maybe the step 3 is wrong, but the local server can run php program

i'm not sure you can see the guide or not, the page probably missing, i found this guide using the way back function
 

Attachments

You must be registered for see attachments list
Upvote 0
Newbie Spellweaver
Joined
Jan 26, 2021
Messages
47
Reaction score
2
thanks for replay at first,i have installed it

what do i do at php install? I wish you 'll understand, cause i'm using different languages(Zn-ch)chinese
---
1 . install the iis, check all the function, especially "CGI" Function.
2. download the php program, and unzip to D:\php.
3. handle the php mapping
the rest operate is following the guide, maybe the step 3 is wrong, but the local server can run php program

i'm not sure you can see the guide or not, the page probably missing, i found this guide using the way back function
If you're sure installed correctly php, you can check it right here=> Windows+R->cmd->php -version
If you're not installed correctly then cmd show you php not installed.

So maybe you miss "Environment Variables->System variables->New->PATH->C:\PHP->OK"
You can add and try again this Windows+R->cmd->php -version

After doing this, php will be installed.
 
Upvote 0
Newbie Spellweaver
Joined
Aug 22, 2023
Messages
10
Reaction score
2
Are you sure you have installed php and connect with IIS php manager?
maybe i made a mistake
If you're sure installed correctly php, you can check it right here=> Windows+R->cmd->php -version
If you're not installed correctly then cmd show you php not installed.

So maybe you miss "Environment Variables->System variables->New->PATH->C:\PHP->OK"
You can add and try again this Windows+R->cmd->php -version

After doing this, php will be installed.
like this, buddy ?

1693244608483 - WarZ-how to spawn item in map ? - RaGEZONE Forums

at first, the php command can't be identified, i added the system variable, and php command is activated.
but the problem still exist

the item spawn function depends on the php manager execute correct?

or is the item spawn interval too much longer? i have no idea :censored:
 

Attachments

You must be registered for see attachments list
Upvote 0
Newbie Spellweaver
Joined
Aug 22, 2023
Messages
10
Reaction score
2
Can you show your game server logs?
is this file ? i've never know what the file is
1693276836757 - WarZ-how to spawn item in map ? - RaGEZONE Forums

the logs tell me the file is located at logss\GS_100...b2.txt
and i uploaded this logs

1693276987693 - WarZ-how to spawn item in map ? - RaGEZONE Forums

this is the key errors
 

Attachments

You must be registered for see attachments list
Upvote 0
Newbie Spellweaver
Joined
Jan 26, 2021
Messages
47
Reaction score
2
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.

1693322268235 - WarZ-how to spawn item in map ? - RaGEZONE Forums


You can do this as follows.

LootID = LootBoxID
Chance = It's up to you
ItemID = ID of the item to spawn
 

Attachments

You must be registered for see attachments list
Upvote 0
Solution
Newbie Spellweaver
Joined
Aug 22, 2023
Messages
10
Reaction score
2
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! :) :zippy::bird:

enter the game, and the spawn items function is worked!

1693394368345 - WarZ-how to spawn item in map ? - RaGEZONE Forums


I played for an hour, no errors found!
 

Attachments

You must be registered for see attachments list
Upvote 0
Back
Top