Someone who knows about the zTeam files to help me configure the ItemPrice Please.
I use these zTeam files
https://forum.ragezone.com/f197/rele...urces-1092599/
Printable View
Someone who knows about the zTeam files to help me configure the ItemPrice Please.
I use these zTeam files
https://forum.ragezone.com/f197/rele...urces-1092599/
What's wrong with the ItemPrice?
Last time I've checked on these files it worked good.
The order it's ID, Index, Level, Zen Price, Divisor.Code:14 14 0 9000000 3 // Jewel Of Soul
14 13 0 6000000 3 // Jewel Of Bless
12 15 0 650000 3 // Jewel Of Chaos
E.g.: Jewel Of Soul will have the price of 3.000.000 zen because it's 9.000.000 / 3.
Jewel Of Bless will have 2.000.000 zen price set because it's 6.000.000 / 3
To set up price, take in consideration the divisor.
You can think about the price as this:
- YourPrice * 3 for an item
- In the ItemPrice file you will have: YourItemID YourItemIndex YourItemLevel YourPrice*3 3
- Convert the ItemPrice file to ItemPrice.z with the Encoder tool and replace it in your client folder / Data / Custom. (Same as you did with the Common file for the client's IP)
Not 100% sure but I think the Level should be 0 for every item because if you have a Jewel Of Bless +15, you will have the default price probably from the game client, but you should test this theory in your server:
And the ItemPrice is set in Zen, not WCoins or other in-game currency.Code:14 13 15 6000000 3 // Jewel Of Bless --> This will be the price set for a Jewel Of Bless +15
For WCoins or any other in-game currency, I think you will need to readapt and recode your GameServer and Client source for this.
And also, I'm pretty sure (maybe not) you opened this subject last year or two about the ItemPrice on zTeam S6 files. :D:
Maybe I will when I'll have some free time. It's not like copy pasting things out in the source code tho. Also, please, write in English, use the Google Translate or something. I don't speak Spanish.
@zipper20032 Give me a hand with it please.
You could use this S6 server files. It does have the PriceManager which can set the price in WCoins or whatever for items.
Spoiler:
@zipper20032 Do you know how I can get that code and adapt it to the source zteam
Yes, I do, but it's much more complicated because you need to understand assembly language and hook into the item price string offset and replace it to those coin names (replacing the zen string with that currency name). Also you need to make sure that the item is generated with the correct string and also make sure you are loading the item from the client side config files and not the default one sent by your server.
I will try to see if I can adapt it for zTeam tho.
I thank you very much for your help. All day and I can't adapt it.
- - - Updated - - -
@zipper20032 Friend, I can't adapt to him, you could throw me away.
@zipper20032 Dude, how were you able to adapt it?