elitepvpers

elitepvpers (https://www.elitepvpers.com/forum/)
-   CO2 Private Server (https://www.elitepvpers.com/forum/co2-private-server/)
-   -   [help] with map 1511 and the items (https://www.elitepvpers.com/forum/co2-private-server/264814-help-map-1511-items.html)

n0mansland 06/15/2009 18:16

[help] with map 1511 and the items
 
Ok I'm making the furniture store still... I went on regular co got the prices what they say etc. Now I got some questions w/ bugs or something w/ that map

1. None of the npcs in MySql set for that map ever show up.

2. The portal doesnt work you get an error something like "error unknown portal 1511, 73 ,51" or something like that.

3. *Challenge* Anyone know how to make furniture work? If you dont Idc just making this server like CO not many people will use house anyway... Maybe...

4. Whats the real code for NPCS to add item to inventory?

I'll add more later

If you answer atleast 1 of these questions and it works you got my thanks.

CIRASH 06/16/2009 01:27

As far as add item for npcs its

Code:

public static void AddItem(int itemid, int bless, int dura, int enchant, int plus, int position, int soc1, int soc2, int color, ClientSocket CSocket)
        {
            Struct.ItemInfo Item = new Struct.ItemInfo();
            if (dura == 255)
            {
                Item.Dura = Item.MaxDura;
            }
            else
            {
                Item.Dura = dura;
            }
            Item.Bless = bless;
            Item.Enchant = enchant;
            Item.ItemID = itemid;
            Item.Plus = plus;
            Item.Position = position;
            Item.Soc1 = soc1;
            Item.Soc2 = soc2;
            Item.Color = color;
            Item.UID = Nano.Rand.Next(1, 9999999);
            bool created = Database.Database.NewItem(Item, CSocket);
            while (!created)
            {
                Item.UID = Nano.Rand.Next(1, 9999999);
                created = Database.Database.NewItem(Item, CSocket);
            }

            CSocket.Client.Inventory.Add(Item.UID, Item);
            CSocket.Send(ConquerPacket.ItemInfo(Item.UID, Item.ItemID, Item.Plus, Item.Bless, Item.Enchant, Item.Soc1, Item.Soc2, Item.Dura, Item.MaxDura, Item.Position, Item.Color));
        }

at the end of NpcTalk.cs. As, for portals mayby its not in your mysql?

n0mansland 06/16/2009 01:29

The portal IDK and dont know how to check but the npcs are in MySQL but dont show up in that map... It's a weird problem

CIRASH 06/16/2009 02:05

are they in under npcs and tqnpcs?

n0mansland 06/16/2009 02:11

tqnpcs gonna bet they needa be in npcs huh?

CIRASH 06/16/2009 03:52

Yeah they need to be in npcs as well as tqnpcs xP

n0mansland 06/16/2009 05:57

Thanks now i need the npc IDS for the furnitures cause the one now is alll different kinds of things like shop keepers and blacksmiths and stuff...

Also w/ portals i added it as Start 51,73,1511 and set it to w/e 1002 (TC) and it doesnt work.. any suggestions?

CIRASH 06/16/2009 16:59

Hmm, not sure about your portals. When i get home from school I'll make a npc to send me to furniture place and ill try fixing the portal. Ill update you with my results xD

n0mansland 06/16/2009 17:36

ok thanks i got the portal to work btw

CIRASH 06/16/2009 17:50

How'd you fix it? i need to fix the one in the houses and stuff

n0mansland 06/16/2009 18:01

you got houses to work? or did you just set the npc to teleport you to the house map ID i did that in LOTF then i came across a problem where everyone went to the same map but i didnt test to see if that really happened i just supposed... that it would..


But i didnt do anything to it I just filled in the Coords of the portal and the start map then where i wanted it to go and restarted my server and it worked...

sorry i took so long answering my brother messed up our connection and now i have to use a crappy connection... -.-

CIRASH 06/16/2009 21:49

Thanks. And, nah im just having a npc teleport me there atm. its not coded atm.

By any chance are you working on tinter NPC? I just cant seem to make it work xP

n0mansland 06/16/2009 21:57

what does tinter do?

CIRASH 06/16/2009 21:58

tinter changes color of armors

n0mansland 06/16/2009 22:45

Nah i dont know where to start w/ him... SORRY it took so long to reply bro wont fix my router cause hes too lazy and had to use the most crappiest connection ever -.-... but do you have the furniture npcs yet?

brb gonna watch a movie

CIRASH 06/16/2009 23:08

Haha im doing that now =]

n0mansland 06/16/2009 23:20

ok just came on for a sec gonna go back in a few mins.. thanks for getting that for me

CIRASH 06/16/2009 23:37

Can you do me a favor and post your FurnitureNPC code. Mines not working atm. kinda weird idk why

n0mansland 06/16/2009 23:48

ok 1 sec

EDIT: Ok here

Code:

                case 30161:// FurnitureNPC
                    {
                        if (LinkBack == 0)
                        {
                            Text("Welcome to Twin City Furniture Store. Currently, you have limited selection, but more", CSocket);
                            Text(" furniture will come soon.", CSocket);
                            Link("I wanna have a look.", 1, CSocket);
                            Link("I am not interested.", 255, CSocket);
                            End(CSocket);
                        }
                        else if (LinkBack == 1)
                        {
                            Teleport(1511, 42, 42, 0, CSocket);
                        }
                        break;
                    }


CIRASH 06/17/2009 01:26

Thanks.No npcs are in there or even the furniture for examples.

n0mansland 06/17/2009 01:31

So you can't do it? Whats your suggestion then?

brb gonna get a bad storm

CIRASH 06/17/2009 01:44

well, id have to add all the npcs and everything. The room that npc brought me to was like an empty promo area.

n0mansland 06/17/2009 02:08

yea if you check real co its the same thing. If you dont feel like adding them all you could add 1 if you know how to get its ID

or tell me how to do it cause i added em all just wrong npc type

CIRASH 06/17/2009 03:02

I could help you. I just honestly do not feel like doing furniture store atm xD. Think of anoother area or something different that isnt too difficult and ill help you =]

n0mansland 06/17/2009 03:07

what do you mean too difficult?

Kinda like any other map tell me what to do and ill try it

CIRASH 06/17/2009 03:26

too difficult would you be asking me to do skills or sumthing. Hmm, we should do guild conductresses


All times are GMT +2. The time now is 14:39.

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