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

07/01/2008 10:40 adz06676#1291
Quote:
Originally Posted by mindula View Post
oks thanks.

Love stone work? How to get married
The spouse feature is just a test atm
07/01/2008 10:55 mindula#1292
Quote:
Originally Posted by adz06676 View Post
The spouse feature is just a test atm
Other quest: How to level up with mobs?

I can change the GM dialoge?
07/01/2008 11:01 Danutzhaha#1293
Quote:
Originally Posted by lolmaster123 View Post
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 //
nice mobs, but do you know the much for mobs? o you test it to see if they are like in CO?btw i hit ty button ;)
07/01/2008 11:11 YukiXian#1294
Quote:
Originally Posted by bobtin777 View Post
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
Nice about that Warehouse, But ... Were i need to place it? :confused:
07/01/2008 11:36 ~Yuki~#1295
Quote:
Originally Posted by Danutzhaha View Post
nice mobs, but do you know the much for mobs? o you test it to see if they are like in CO?btw i hit ty button ;)
The much=mesh i think?
If so i got mesh from nearly all mobs ye!

thx 4 hitting the button :P

Btw i like your server good work go on with it! (maybe lemme join there?lol as pm xD)
07/01/2008 11:41 blastered#1296
Quote:
Originally Posted by lolmaster123 View Post
BTW POST REPLAYS //FEEDBACKS// 4 MY MOB.TXT and tell me if i should add a mob
Sorry tried to test it on Rev4-A but the client crashes like before,after tried to hit a mob in tc the client was closed.
Ill try tomorrow after back from work
07/01/2008 11:45 Danutzhaha#1297
Quote:
Originally Posted by lolmaster123 View Post
The much=mesh i think?
If so i got mesh from nearly all mobs ye!

thx 4 hitting the button :P

Btw i like your server good work go on with it! (maybe lemme join there?lol as pm xD)
sry i was type fast and i was what to type mesh no much lolz...

about srv, come and join it and will see there okay?
07/01/2008 11:54 mindula#1298
Other quest: How to level up with mobs?

I can change the GM dialoge?
07/01/2008 12:00 ~Yuki~#1299
Quote:
Originally Posted by mindula View Post
Other quest: How to level up with mobs?

I can change the GM dialoge?
How often u wanna post this?
Read the WHOLE forum like every other guy here...
07/01/2008 12:00 Danutzhaha#1300
Quote:
Originally Posted by mindula View Post
Other quest: How to level up with mobs?

I can change the GM dialoge?

what source you use lolz?
07/01/2008 12:36 mindula#1301
Quote:
Originally Posted by Danutzhaha View Post
what source you use lolz?
DirtyDozenz Source
07/01/2008 13:01 ~Yuki~#1302
THEN IT SHOULD WORK :P
07/01/2008 13:50 Danutzhaha#1303
lolz hes noob, go and chech in bin\debug\npcstuffdialog.ini and try

if isnt work you need to rebuild the source

gl & hf



OFF Topic:
btw how i can dl Rev4 A with SVN?? a link something?
07/01/2008 13:55 Danutzhaha#1304
okay i found it, sry for double post ^_^
07/01/2008 14:05 YukiXian#1305
Adz, Were i can find the text in ur REV4-A Source that will let the reborn effect stay and show for everyone?