[help] with map 1511 and the items

06/15/2009 18:16 n0mansland#1
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.
06/16/2009 01:27 CIRASH#2
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?
06/16/2009 01:29 n0mansland#3
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
06/16/2009 02:05 CIRASH#4
are they in under npcs and tqnpcs?
06/16/2009 02:11 n0mansland#5
tqnpcs gonna bet they needa be in npcs huh?
06/16/2009 03:52 CIRASH#6
Yeah they need to be in npcs as well as tqnpcs xP
06/16/2009 05:57 n0mansland#7
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?
06/16/2009 16:59 CIRASH#8
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
06/16/2009 17:36 n0mansland#9
ok thanks i got the portal to work btw
06/16/2009 17:50 CIRASH#10
How'd you fix it? i need to fix the one in the houses and stuff
06/16/2009 18:01 n0mansland#11
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... -.-
06/16/2009 21:49 CIRASH#12
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
06/16/2009 21:57 n0mansland#13
what does tinter do?
06/16/2009 21:58 CIRASH#14
tinter changes color of armors
06/16/2009 22:45 n0mansland#15
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