P Server "NPC base code/shops/drop items" for who asked me 2 do it

07/01/2008 01:03 zane203#1276
Where is his source, cant find it O_o
07/01/2008 01:27 bobtin777#1277
Quote:
Originally Posted by adz06676 View Post
to you
heyyyyyy you guys are useing my Npc dialog i better update it for you LOL
so then could i join you team thing... :cool::cool:
07/01/2008 02:00 Bottingpunk#1278
Quote:
Originally Posted by zane203 View Post
Where is his source, cant find it O_o
well lol when he post u will c it its called dirty something lol. Also there working on a SVN project which is better so u can update right when they add something new
07/01/2008 03:00 gfun1#1279
Quote:
Originally Posted by bobtin777 View Post
heyyyyyy you guys are useing my Npc dialog i better update it for you LOL
so then could i join you team thing... :cool::cool:
Thank You for helping us. If you want to join the project, then please PM me :)

Quote:
Originally Posted by Bottingpunk View Post
well lol when he post u will c it its called dirty something lol. Also there working on a SVN project which is better so u can update right when they add something new
Thats exactly right.

Now this is a note to everyone: Our SVN project is a public "on the fly" development server, we will not release guides on how to do this and that, and how to drop items then pick them up, we will be adding features to the current source code, and removing security issues. The main thing about this source is it will be more powerful for the GM to use, and feature more options then any other source code on the market, if we waste our time on telling someone how to make /reborn work, or keep telling people that /GM has not been coded (Maybe in Samehvan's version, so Revision4A (Not adz mana fix) may contain /GM.

We are currently NOT supporting this open project! Once we have a server with all the features working, we will then support it. Bug reports are welcome, but people asking for help to make guilds work, reborn their character and so on, are not going to be responded to by the team, we have a server to program here, and it will only take longer to make, if we spend all of our time telling people what Tortoise SVN is... Google it guys. We'll have this server more full of features sooner if we have the time.

Thank You.

As for warehouses, does anyone have an example packet that they can show me, of someone depositing money and an item?

Thanks.
07/01/2008 04:34 bboynam#1280
Umm
I have some thing to talk with sam and his team
(first things,i'm not good in English,so ...sry people :-))
I used to play CO very long time be4,about 5 or 6 years ago.
Nowaday,so many game release but i still like this CO game.It's look like a fantasy classic game....
I wish i can creat a QO p-server,but i can't becoz i have a lot thing in life(beside,i don't know coding C# etc,lol...)
I know qonquer 2 year ago,they still working hard for good server like nowaday.
Now i know Sam and his team(gfun,adz....)and some other CO fan like me.
Hope you will keep doing good job like these days.And hope in the future,we will have got other Conquer P-server,with full working and many...many things plus in it.
I like you,who working for CO fan P-server.
Just good luck to you,best wish for you!!
(i think hope that sum1 understand my english and translate it again...lol)
07/01/2008 04:43 bobtin777#1281
Code:
 if (Message[0] == '/')
            {
                string[] Splitter = Message.Split(' ');
                foreach (string[] NPC3 in BackendDB.CommandsDatabase)
                {
                    //2 = helper
                    //4 = gm
                    //6 = administrator
                    int Flag = 0;
                    string Message3 = Convert.ToString(NPC3[0]);
                    int Flags = Convert.ToInt32(NPC3[1]);
                    if (Splitter[0].ToLower() == ("/" + Message3))
                    {
                        Flag = 0;
                    }
would this be the code for messageing everyone

Code:
    /// <summary>
    /// Summary description for Inventory.
    /// </summary>
    public class Inventory
    {
        private int m_MaxSize = 40;
        public int[][] n_items = new int[40][];
        public System.Collections.ArrayList m_Items;
        public System.Collections.ArrayList m_Items2;
    }
}
and this is for the inventory if you want to have more right

Code:
{
    public class Warehouse : ServerBasePacket
    {
        //Attack
        private int UniqueID;
        private int ItemID;
        private int NpcID;
        private int Amount;
        private int Length;
        private int Value;
        private int Value2;
        private int _Type;
        private COClient Client;
        private int[][] warehouse = null;

        public Warehouse(int _npcid, int _amount, int _value, int _value2, COClient _client)
        {
            NpcID = _npcid;
            Amount = _amount;
            if (Amount != 0)
            {
                Length = Amount * 20;
            }
            else
            {
                Length = 20;
            }
            Value = _value;
            Value2 = _value2;
            Client = _client;
            if (NpcID == 8)//twincity
            {
                warehouse = _client.Char.TwinWare;
            }
            if (NpcID == 10012)//phoenix castle
            {
                warehouse = _client.Char.PhoenixWare;
            }
            if (NpcID == 10028)//ape mountain
            {
                warehouse = _client.Char.ApeWare;
            }
            if (NpcID == 10011)//desert city
            {
                warehouse = _client.Char.DesertWare;
            }
            if (NpcID == 10027)//bird island
            {
                warehouse = _client.Char.BirdWare;
            }
            if (NpcID == 44)//market
            {
                warehouse = _client.Char.MarketWare;
            }
        }

        //soooooo not working yet >.< look into 'value2' values and 'value' values,
        //10 is display, 11 deposit cash, 12 withdraw cash,
        public byte[] writeImpl()
        {
            writeH(20);
            writeH(1009);
            writeD(NpcID);
            writeD(Amount);
            writeD(Value);
            writeD(Value2);
            return getBytes();
        }

        public byte[] writeImp0()
        {
            writeH(16 + Length);
            writeH(1102);
            writeD(NpcID);
            writeD(0);
            writeD(Amount);
            if (Amount >= 1)
            {
                foreach (int[] item in warehouse)
                {
                    if (item[0] != 0)
                    {
                        writeD(Convert.ToInt32(item[9]));//uid
                        writeD(Convert.ToInt32(item[0]));//itemid
                        writeC(0);
                        writeC(Convert.ToInt32(item[10]));//Soc1
                        writeC(Convert.ToInt32(item[11]));//Soc2
                        writeH(0);
                        writeC(Convert.ToInt32(item[3]));//+dmg
                        writeC(Convert.ToInt32(item[4]));//-dmg
                        writeC(0);
                        writeH(Convert.ToInt32(item[5]));//enchant
                        writeH(0);
                    }
                }
            }
            else
            {
                writeD(0);
                writeD(0);
                writeD(0);
                writeD(0);
                writeD(0);
            }
            return getBytes();
        }

        public byte[] writeImp2()
        {
            writeH(32);
            writeH(1102);
            writeD(NpcID);
            writeD(1);
            writeD(Value);
            writeD(Value2);
            writeD(0);
            writeH(0);
            writeC(0);
            writeC(255);
            writeD(0);
            return getBytes();
        }

        public byte[] writeImp3()
        {
            writeH(32);
            writeH(1102);
            writeD(NpcID);
            writeD(2562);
            writeD(Value);
            writeD(0);
            writeD(0);
            writeD(0);
            writeD(0);
            return getBytes();
        }
    }
}
That i think is you Wherehouse code
07/01/2008 05:33 Jim22444#1282
Quote:
Originally Posted by netplace View Post
I am posting the Source Rev 4

that has many people with work to download

Samehvan

Ty for source
With that does it include all of the updates until then?

EDIT: Btw, How do i edit the hp of guards :P they are to easy to kill when your char is all maxed out.
07/01/2008 06:03 DemonRenki#1283
can n e one post all spell ids and all prof ids? plz i know there have been post for this before but look how many pages so plaz have a little pitty on mee and plz dont flame... u flame be awar i flame back 0.0
07/01/2008 06:28 Jim22444#1284
Quote:
Originally Posted by DemonRenki View Post
can n e one post all spell ids and all prof ids? plz i know there have been post for this before but look how many pages so plaz have a little pitty on mee and plz dont flame... u flame be awar i flame back 0.0
LMAO!!!!!! The bolded font amuses me greatly
07/01/2008 06:41 zane203#1285
oi, its hard keeping up now with all the other things i have to do -_-... anyways

for mobs hp, i believe there is a .txt file that has their info, its around the 1st 30pages i believe should have the list where to edit it from sam himself.

for spells and ids and what not, open your chat.cs file in a C# maker/editor or if you dont have one open it in notepad search "/skill" and that whole list of handlers will be your skill and their ids.

jesus help me... C# is a beast of a language xD
07/01/2008 09:20 ~Yuki~#1286
As im a member of samhvans team i thought i release a Mob.txt 4 ya all which contains special mobs u have never seen be4 like a Doubble Winged Dragen or a Zombie,Axeman,....KINGS ARE ADDED!
I HOPE U PRESS THE THX BUTTON 4 it lol
ENJOY

//BTW L8TER I RELEASE A NPC DIALOG WITCH ADDING LAB1 2 3 4 DIS CITY AND SO ON //
07/01/2008 09:46 mindula#1287
where's the code for reborn to archer?

reborn1archer ???
07/01/2008 09:51 ~Yuki~#1288
Quote:
Originally Posted by mindula View Post
where's the code for reborn to archer?

reborn1archer ???
Archer Reborn not added now but i think its done in some time pls be patient:D
07/01/2008 10:08 mindula#1289
Quote:
Originally Posted by lolmaster123 View Post
Archer Reborn not added now but i think its done in some time pls be patient:D
oks thanks.

Love stone work? How to get married
07/01/2008 10:35 ~Yuki~#1290
Quote:
Originally Posted by mindula View Post

Love stone work? How to get married
Rofl lovestone dont work now be patient (i feel like an parrot :S)+



BTW POST REPLAYS //FEEDBACKS// 4 MY MOB.TXT and tell me if i should add a mob