Register for your free account! | Forgot your password?

You last visited: Today at 13:47

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Latest Shop.dat

Discussion on Latest Shop.dat within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2011
Posts: 165
Received Thanks: 17
Latest Shop.dat

Anyone Know the Shop ID of shopping mail of the latest client?
iStefan is offline  
Old 04/03/2011, 14:55   #2
 
{ Angelius }'s Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
2888,

its client sided
Path: ini/emoneyshop
{ Angelius } is offline  
Old 04/03/2011, 15:51   #3
 
elite*gold: 0
Join Date: Mar 2011
Posts: 165
Received Thanks: 17
Now That's weird.
How do I make it work? (Server side)?
iStefan is offline  
Old 04/03/2011, 17:20   #4
 
chickmagnet's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 372
Received Thanks: 53
this from hell mouth check if it'll help

Code:
namespace Hellmouth
{
    partial class Handler
    {
        public static void BuyFromNPC(byte[] Data, Client Client)
        {
            uint Item = BitConverter.ToUInt32(Data, 8),
             Amount = BitConverter.ToUInt32(Data, 20),
             ShopID = BitConverter.ToUInt32(Data, 4),
             gPrice = 0, cPrice= 0, MoneyType = 1;
            string ItemName = string.Empty;
            Amount = Math.Max(1, Amount);
            switch (ShopID)
            {
                case 432:
                case 433:
                case 2888:
                    MoneyType = 2;
                    break;
            }
            foreach (Hellmouth.Struct.ItemData _Item in Dictionary.ItemData.Values)
                if (_Item.ID == Item)
                {
                    ItemName = _Item.Name;
                    gPrice = _Item.GoldCost;
                    gPrice *= Amount;
                    cPrice = _Item.CpCost;
                    cPrice *= Amount;
                }
            byte Plus = 0;
            switch (Item)
            {
                case 730001:
                    Plus = 1;
                    break;
                case 730002:
                    Plus = 2;
                    break;
                case 730003:
                    Plus = 3;
                    break;
                case 730004:
                    Plus = 4;
                    break;
                case 730005:
                    Plus = 5;
                    break;
                case 730006:
                    Plus = 6;
                    break;
                case 730007:
                    Plus = 7;
                    break;
                case 730008:
                    Plus = 8;
                    break;
                case 730009:
                    Plus = 9;
                    break;

            }
            switch (MoneyType)
            {
                case 1:
                    if (Client.Inventory.Count + Amount <= 40)
                    {
                        if (Client.Money >= gPrice)
                        {
                            Client.Money -= gPrice;
                            Client.AddItems(Item,Plus, Convert.ToByte(Amount));
                            Client.Send(Packets.Chat("Bought " + Amount + " " + ItemName + "! Check your inventory!", "SYSTEM", Client.Name, Struct.ChatType.Top));
                        }
                        else
                            Client.Send(Packets.Chat("Not enough silvers to purchase " + Amount + " " + ItemName, "SYSTEM", Client.Name, Struct.ChatType.Top));
                    }
                    else
                        Client.Send(Packets.Chat("You don't have enough inventory space!", "SYSTEM", Client.Name, Struct.ChatType.Top));
                    break;
                case 2:
                    if (Client.Inventory.Count + Amount <= 40)
                    {
                        if (Client.CP >= cPrice)
                        {
                            Client.CP -= cPrice;
                            Client.AddItems(Item, Plus, Convert.ToByte(Amount));
                            Client.Send(Packets.Chat("Bought " + Amount + " " + ItemName + "! Check your inventory!", "SYSTEM", Client.Name, Struct.ChatType.Top));
                        }
                        else
                            Client.Send(Packets.Chat("Not enough cps to purchase " + Amount + " " + ItemName, "SYSTEM", Client.Name, Struct.ChatType.Top));
                    }
                    else
                        Client.Send(Packets.Chat("You don't have enough inventory space!", "SYSTEM", Client.Name, Struct.ChatType.Top));
                    break;
            }
        }
    }
}
chickmagnet is offline  
Thanks
1 User
Old 04/05/2011, 18:04   #5
 
elite*gold: 0
Join Date: Mar 2011
Posts: 165
Received Thanks: 17
Quote:
Originally Posted by chickmagnet View Post
this from hell mouth check if it'll help

Code:
namespace Hellmouth
{
    partial class Handler
    {
        public static void BuyFromNPC(byte[] Data, Client Client)
        {
            uint Item = BitConverter.ToUInt32(Data, 8),
             Amount = BitConverter.ToUInt32(Data, 20),
             ShopID = BitConverter.ToUInt32(Data, 4),
             gPrice = 0, cPrice= 0, MoneyType = 1;
            string ItemName = string.Empty;
            Amount = Math.Max(1, Amount);
            switch (ShopID)
            {
                case 432:
                case 433:
                case 2888:
                    MoneyType = 2;
                    break;
            }
            foreach (Hellmouth.Struct.ItemData _Item in Dictionary.ItemData.Values)
                if (_Item.ID == Item)
                {
                    ItemName = _Item.Name;
                    gPrice = _Item.GoldCost;
                    gPrice *= Amount;
                    cPrice = _Item.CpCost;
                    cPrice *= Amount;
                }
            byte Plus = 0;
            switch (Item)
            {
                case 730001:
                    Plus = 1;
                    break;
                case 730002:
                    Plus = 2;
                    break;
                case 730003:
                    Plus = 3;
                    break;
                case 730004:
                    Plus = 4;
                    break;
                case 730005:
                    Plus = 5;
                    break;
                case 730006:
                    Plus = 6;
                    break;
                case 730007:
                    Plus = 7;
                    break;
                case 730008:
                    Plus = 8;
                    break;
                case 730009:
                    Plus = 9;
                    break;

            }
            switch (MoneyType)
            {
                case 1:
                    if (Client.Inventory.Count + Amount <= 40)
                    {
                        if (Client.Money >= gPrice)
                        {
                            Client.Money -= gPrice;
                            Client.AddItems(Item,Plus, Convert.ToByte(Amount));
                            Client.Send(Packets.Chat("Bought " + Amount + " " + ItemName + "! Check your inventory!", "SYSTEM", Client.Name, Struct.ChatType.Top));
                        }
                        else
                            Client.Send(Packets.Chat("Not enough silvers to purchase " + Amount + " " + ItemName, "SYSTEM", Client.Name, Struct.ChatType.Top));
                    }
                    else
                        Client.Send(Packets.Chat("You don't have enough inventory space!", "SYSTEM", Client.Name, Struct.ChatType.Top));
                    break;
                case 2:
                    if (Client.Inventory.Count + Amount <= 40)
                    {
                        if (Client.CP >= cPrice)
                        {
                            Client.CP -= cPrice;
                            Client.AddItems(Item, Plus, Convert.ToByte(Amount));
                            Client.Send(Packets.Chat("Bought " + Amount + " " + ItemName + "! Check your inventory!", "SYSTEM", Client.Name, Struct.ChatType.Top));
                        }
                        else
                            Client.Send(Packets.Chat("Not enough cps to purchase " + Amount + " " + ItemName, "SYSTEM", Client.Name, Struct.ChatType.Top));
                    }
                    else
                        Client.Send(Packets.Chat("You don't have enough inventory space!", "SYSTEM", Client.Name, Struct.ChatType.Top));
                    break;
            }
        }
    }
}
That Didn't help. Anyway Thanks for trying.
iStefan is offline  
Old 04/05/2011, 20:02   #6
 
.Kinshi's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 341
Received Thanks: 255
Are you trying to make it work with the Npc client side? Or the actual buying sever side?
.Kinshi is offline  
Old 04/05/2011, 20:31   #7
 
elite*gold: 0
Join Date: Mar 2011
Posts: 165
Received Thanks: 17
Quote:
Originally Posted by .Kinshi View Post
Are you trying to make it work with the Npc client side? Or the actual buying sever side?
I'm Actually buying ingame.
iStefan is offline  
Old 04/06/2011, 07:01   #8
 
{ Angelius }'s Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
Quote:
Originally Posted by iStefan View Post
I'm Actually buying ingame.
if you Bothered to Read what i replayed earlier it wold be much more easier thought .

ITS CLIENT SIDED , the ID for the shopping mall 2888 and you'll find it in the client folder Coblabla/ini/emoneyshop.ini open it and search for shopID 2888,

Ps.You cant change/add any items to the shopping mall with out modifying that file ,

Good luck.
{ Angelius } is offline  
Old 04/06/2011, 13:24   #9
 
elite*gold: 0
Join Date: Mar 2011
Posts: 165
Received Thanks: 17
Quote:
Originally Posted by { Angelius } View Post
if you Bothered to Read what i replayed earlier it wold be much more easier thought .

ITS CLIENT SIDED , the ID for the shopping mall 2888 and you'll find it in the client folder Coblabla/ini/emoneyshop.ini open it and search for shopID 2888,

Ps.You cant change/add any items to the shopping mall with out modifying that file ,

Good luck.

Dude. Changing items is not the problem, I Can't Buy from it. I Tried adding new shop in my Shop.dat (Server sided) with an ID 2888, and it didn't work.
Please contact me on msn
iStefan is offline  
Old 04/06/2011, 14:01   #10
 
{ Angelius }'s Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
Quote:
Originally Posted by iStefan View Post
Dude. Changing items is not the problem, I Can't Buy from it. I Tried adding new shop in my Shop.dat (Server sided) with an ID 2888, and it didn't work.
Please contact me on msn
to add a new shop take the same path and find the emonyshpt.ini file and add the shop inside that file .

the shopping mall is no longer in the shop.dat
{ Angelius } is offline  
Old 04/06/2011, 16:45   #11
 
elite*gold: 0
Join Date: Mar 2011
Posts: 165
Received Thanks: 17
Quote:
Originally Posted by { Angelius } View Post
to add a new shop take the same path and find the emonyshpt.ini file and add the shop inside that file .

the shopping mall is no longer in the shop.dat
WHICH PART OF "I CAN'T ADD THE SHOPPING MAIL ON SERVER SIDE" YOU CAN'T UNDERSTAND?
iStefan is offline  
Old 04/06/2011, 17:50   #12
 
F i n c h i's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 785
Received Thanks: 422
Where to find Shopping Mall items in source (Hellmouth) side?
F i n c h i is offline  
Old 04/07/2011, 01:49   #13
 
.Kinshi's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 341
Received Thanks: 255
To buy an item from a shop, the client sends a Item Usage packet (1009) with type 1.

Once you get to handling the packet, give me a PM and I'll help you further.
.Kinshi is offline  
Reply


Similar Threads Similar Threads
T>>ur latest Untradable = tradable to my latest Server Crash
01/12/2011 - RF Online - 4 Replies
i need it ASAP *BUT* Try first post here for those who are willing to trade only ! takenote: Server Crash = Item Dupplicate



All times are GMT +1. The time now is 13:47.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.