Itemtype Prices

07/12/2011 05:33 zTek#1
Although I'm pretty sure this was asked before, and couldn't find it, I'm gonna ask it.

If you've seen the release I made today (Honor Arena - Shit Version), you get 2 honor points per kill. What I was wondering is, if I made a custom shop, how could I sell them with Honor Points, instead of CP's.

Code:
111303 IronHelmet 21 0 15 0 0 0 0 0 0 0 150 0 0 0 3 0 0 0 0 3998 3998 0 0 0 0 0 0 0 0 1 1000 0 0 0 [SIZE="3"][COLOR="Red"]0[/COLOR][/SIZE] Warrior`sHelmet None
Above is the IronHelmet in itemtype, and the 0 is for CP's. How would go about making one for Honor Points instead of CP's.

Thank you
07/12/2011 06:06 djneo31#2
Hello man, Well, to make the npc shop style I do not know, but you can do in dialogs.cs, an NPC that exchanges honor per item.
07/12/2011 07:35 -Shunsui-#3
Quote:
Originally Posted by zTek View Post
Although I'm pretty sure this was asked before, and couldn't find it, I'm gonna ask it.

If you've seen the release I made today (Honor Arena - Shit Version), you get 2 honor points per kill. What I was wondering is, if I made a custom shop, how could I sell them with Honor Points, instead of CP's.

Code:
111303 IronHelmet 21 0 15 0 0 0 0 0 0 0 150 0 0 0 3 0 0 0 0 3998 3998 0 0 0 0 0 0 0 0 1 1000 0 0 0 [SIZE="3"][COLOR="Red"]0[/COLOR][/SIZE] Warrior`sHelmet None
Above is the IronHelmet in itemtype, and the 0 is for CP's. How would go about making one for Honor Points instead of CP's.

Thank you
you can go ahead and add your own variable in there , and make sure you read it in your source as honor points cost,
07/12/2011 09:40 S/W#4
Quote:
Originally Posted by zTek View Post
Although I'm pretty sure this was asked before, and couldn't find it, I'm gonna ask it.

If you've seen the release I made today (Honor Arena - Shit Version), you get 2 honor points per kill. What I was wondering is, if I made a custom shop, how could I sell them with Honor Points, instead of CP's.

Code:
111303 IronHelmet 21 0 15 0 0 0 0 0 0 0 150 0 0 0 3 0 0 0 0 3998 3998 0 0 0 0 0 0 0 0 1 1000 0 0 0 [SIZE="3"][COLOR="Red"]0[/COLOR][/SIZE] Warrior`sHelmet None
Above is the IronHelmet in itemtype, and the 0 is for CP's. How would go about making one for Honor Points instead of CP's.

Thank you
Its no right but try some like his
source were read shop data
Quote:
Gold = 0,
ConquerPoints = 1
Honor = 2
And In shop data write MoneyType = 2 its only example
07/12/2011 10:45 zTek#5
Thanks to Jose, and S/W, problem solved.
Thread can be closed now (or can it?) lol
07/12/2011 21:22 Santa#6
Quote:
Originally Posted by Y u k i View Post
Simpler way: Search where you buy items for a regular shop, in the code add something like that

PHP Code:
if (ShopID == HONORSHOPID)
{
   
// instead of calculating if the player has the required Silvers, do it with HonorPoints

That would be less efficient.