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

06/06/2008 23:12 taylow345#106
xD awesome bro, umm quick question, do you know how to edit the image fof the start up picture of qonuqer where it says "Help Enter Exit"? Im almost done working on the client folder lol.

I've edited the background, the autopatch picture, just need to find the place for the 1st picture.
06/07/2008 01:17 zane203#107
Ok guys im done using taylow's account, i have me own now =D, anyways yeah i'll keep ya updated on anything that i may edit or change lol
06/07/2008 06:27 NoFusion#108
any1 know where i should start to make monster auto move n attack?

n how i make guard attack.
06/07/2008 06:57 SweeTFlower#109
samehvan, I needed to edit i felt wasnt good enough my, how to state appreciation for all of this. i just started learning C# (inbetween my studies) cause we have been trying to get server started for to long and cant get anything working right. thanks so much for all this. i would like to add link to this thread in my sig credit to you of course. thank you a bunch, again lol. hopefuly someday ill get good with codeing/scrips and help out everyone like you. take care and thanks a mil.
06/07/2008 07:20 ~Yuki~#110
SAMEHVAN we dont need mana now but exp from mobs + lvl up !
pls code that first and release it :D
06/07/2008 10:15 ~*NewDuuDe*~#111
Quote:
Originally Posted by lolmaster123 View Post
SAMEHVAN we dont need mana now but exp from mobs + lvl up !
pls code that first and release it :D
Yeah thts a good idea
And maybe make it so monsters drop items? :P
i know its a lot to ask but we'll be foreva greatfull
06/07/2008 12:03 L1nk1n*P4rK#112
Code:
using System;
using System.Collections.Generic;
using System.Text;

namespace TheCOServer.ClientRequests
{
    public class Login : Base
    {
        byte[] Data;
        Client TheClient;
        Packets ThePackets = new Packets();

        public Login(byte[] Dat, Client TehClient)
        {
            Data = Dat;
            TheClient = TehClient;
            DoIt();
        }

        void DoIt()
        {
            if (!TheClient.InWorld)
            {
                byte[] Pack;
                Pack = ThePackets.The89(TheClient.MyChar);
                TheClient.SendPacket(Pack);

                Pack = ThePackets.TheA4(TheClient.MyChar);
                TheClient.SendPacket(Pack);

                Pack = ThePackets.The5604(TheClient.MyChar);
                TheClient.SendPacket(Pack);

                Pack = ThePackets.TheStamina(true);
                TheClient.SendPacket(Pack);

                Pack = ThePackets.TheMinimap(true);
                TheClient.SendPacket(Pack);

                TheClient.MyChar.SendEquips();
                TheClient.MyChar.SendInventory();

                byte[] pack = ThePackets.Vital((long)TheClient.MyChar.UID, 9, 100);
                TheClient.SendPacket(pack);

                WorldHandler.SpawnMeToOthers(TheClient, false);
                WorldHandler.SpawnOthersToMe(TheClient, false);
                WorldHandler.SurroundMobs(TheClient, false);
                WorldHandler.SurroundNPCs(TheClient, false);

                pack = ThePackets.GeneralData((long)(TheClient.MyChar.UID), 3, 0, 0, 96);
                TheClient.SendPacket(pack);

                TheClient.MyChar.SkillAdd(7020, 9);
                TheClient.MyChar.SkillAdd(5030, 4);
                TheClient.MyChar.SkillAdd(1025, 1);
                TheClient.MyChar.SkillAdd(1045, 4);
                TheClient.MyChar.SkillAdd(1046, 4);
                //TheClient.MyChar.SkillAdd(1115, 4);
                TheClient.MyChar.SkillAdd(8001, 5);
                TheClient.MyChar.SkillAdd(5010, 9);
             
                pack = ThePackets.Vital2((long)TheClient.MyChar.UID, TheClient.MyChar.CurHP);
                TheClient.SendPacket(pack);
                TheClient.InWorld = true;

                Console.WriteLine("Def: "+TheClient.MyChar.Defense);
            }            
        }
    }
}
can you add the Hello sistem. pls?
06/07/2008 12:10 samehvan#113
Quote:
Originally Posted by SweeTFlower View Post
samehvan, I needed to edit i felt wasnt good enough my, how to state appreciation for all of this. i just started learning C# (inbetween my studies) cause we have been trying to get server started for to long and cant get anything working right. thanks so much for all this. i would like to add link to this thread in my sig credit to you of course. thank you a bunch, again lol. hopefuly someday ill get good with codeing/scrips and help out everyone like you. take care and thanks a mil.
good luck with learning ,
add links or take the all source and tutorial to wherever u want , and i dont care about credits, just dont claim it is ur work , that is it

Quote:
Originally Posted by BERGHUIS1 View Post
Yeah thts a good idea
And maybe make it so monsters drop items? :P
i know its a lot to ask but we'll be foreva greatfull
move /drop /exp are for cure comming BGW , but hard work and need time ,
notice that when all this done , u will need a very good and strong Computer to handle all this or ur server will be lagy as hill
06/07/2008 12:16 ~*NewDuuDe*~#114
Quote:
Originally Posted by samehvan View Post
good luck with learning ,
add links or take the all source and tutorial to wherever u want , and i dont care about credits, just dont claim it is ur work , that is it



move /drop /exp are for cure comming BGW , but hard work and need time ,
notice that when all this done , u will need a very good and strong Computer to handle all this or ur server will be lagy as hill
Sounds good
And im not going the host the server myself :P
06/07/2008 12:35 adz06676#115
Quote:
Originally Posted by L1nk1n*P4rK View Post
Code:
using System;
using System.Collections.Generic;
using System.Text;

namespace TheCOServer.ClientRequests
{
    public class Login : Base
    {
        byte[] Data;
        Client TheClient;
        Packets ThePackets = new Packets();

        public Login(byte[] Dat, Client TehClient)
        {
            Data = Dat;
            TheClient = TehClient;
            DoIt();
        }

        void DoIt()
        {
            if (!TheClient.InWorld)
            {
                byte[] Pack;
                Pack = ThePackets.The89(TheClient.MyChar);
                TheClient.SendPacket(Pack);

                Pack = ThePackets.TheA4(TheClient.MyChar);
                TheClient.SendPacket(Pack);

                Pack = ThePackets.The5604(TheClient.MyChar);
                TheClient.SendPacket(Pack);

                Pack = ThePackets.TheStamina(true);
                TheClient.SendPacket(Pack);

                Pack = ThePackets.TheMinimap(true);
                TheClient.SendPacket(Pack);

                TheClient.MyChar.SendEquips();
                TheClient.MyChar.SendInventory();

                [B][U]TheClient.SendPacket(ThePackets.SendMsg(TheClient.MessageId,                "SYSTEM", TheClient.MyChar.CharName, "Welcome to *SERVER NAME* enjoy your stay.", 2000));[/U][/B]

                byte[] pack = ThePackets.Vital((long)TheClient.MyChar.UID, 9, 100);
                TheClient.SendPacket(pack);

                WorldHandler.SpawnMeToOthers(TheClient, false);
                WorldHandler.SpawnOthersToMe(TheClient, false);
                WorldHandler.SurroundMobs(TheClient, false);
                WorldHandler.SurroundNPCs(TheClient, false);

                pack = ThePackets.GeneralData((long)(TheClient.MyChar.UID), 3, 0, 0, 96);
                TheClient.SendPacket(pack);

                TheClient.MyChar.SkillAdd(7020, 9);
                TheClient.MyChar.SkillAdd(5030, 4);
                TheClient.MyChar.SkillAdd(1025, 1);
                TheClient.MyChar.SkillAdd(1045, 4);
                TheClient.MyChar.SkillAdd(1046, 4);
                //TheClient.MyChar.SkillAdd(1115, 4);
                TheClient.MyChar.SkillAdd(8001, 5);
                TheClient.MyChar.SkillAdd(5010, 9);
             
                pack = ThePackets.Vital2((long)TheClient.MyChar.UID, TheClient.MyChar.CurHP);
                TheClient.SendPacket(pack);
                TheClient.InWorld = true;

                Console.WriteLine("Def: "+TheClient.MyChar.Defense);
            }            
        }
    }
}
can you add the Hello sistem. pls?
Add the bold underlined lines to it.

Quote:
TheClient.SendPacket(ThePackets.SendMsg(TheClient. MessageId, "SYSTEM", TheClient.MyChar.CharName, "Welcome to *SERVER NAME* enjoy your stay.", 2000));
Quote:
Originally Posted by samehvan View Post
good luck with learning ,
add links or take the all source and tutorial to wherever u want , and i dont care about credits, just dont claim it is ur work , that is it



move /drop /exp are for cure comming BGW , but hard work and need time ,
notice that when all this done , u will need a very good and strong Computer to handle all this or ur server will be lagy as hill
Can't wait till you add the monsters stuff. =p
06/07/2008 12:35 jadatbenik#116
hmm... i still prefer mana first ._. if i wanna get drops/xp, ill go play CO xD
06/07/2008 12:39 adz06676#117
Quote:
Originally Posted by jadatbenik View Post
hmm... i still prefer mana first ._. if i wanna get drops/xp, ill go play CO xD
Even if he did code mana the skills wouldn't work he would have to code the skills too, which is why i think it would be quicker to add the mobs drops, move, attack etc first.
06/07/2008 12:53 samehvan#118
Quote:
Originally Posted by adz06676 View Post
Add the bold underlined lines to it.





Can't wait till you add the monsters stuff. =p
nice line , now i am not working alone , and if u wanna do something ,

i need 3 things now , so we can go faster

1-add the Items to requirements as this order "req =item,<ItemID>,<Number of items needed>" ,

2-also someone else can find us the +Attack for each Magic skill mean (thunder lvl1=+dmg1,lvl2=+dmg2,lvl3=+dmg3,lvl4=+dmg4)
(fire lvl1=+dmg1,....................................... ..............)
(tornado lvl1=+dmg,........................................ ........)

and so on

3-last someone r8 down the NPCs dialogs

so we can have it done much faster


The next release will be a prize (done on it so far)

-Skill saved
-Mana and Magic skills
-Upgrade Items (level/quality)
-and a new usefull edit (u wont need the ACC creator anymore)
06/07/2008 13:13 adz06676#119
Quote:
Originally Posted by samehvan View Post
nice line , now i am not working alone , and if u wanna do something ,

i need 3 things now , so we can go faster

1-add the Items to requirements as this order "req =item,<ItemID>,<Number of items needed>" ,

2-also someone else can find us the +Attack for each Magic skill mean (thunder lvl1=+dmg1,lvl2=+dmg2,lvl3=+dmg3,lvl4=+dmg4)
(fire lvl1=+dmg1,....................................... ..............)
(tornado lvl1=+dmg,........................................ ........)

and so on

3-last someone r8 down the NPCs dialogs

so we can have it done much faster


The next release will be a prize (done on it so far)

-Skill saved
-Mana and Magic skills
-Upgrade Items (level/quality)
-and a new usefull edit (u wont need the ACC creator anymore)
I remember you helping me with the Item one here it is if you didn't save it.

Quote:
else if (TheReq[0] == "item")
{
bool found_ = false;
for (int ss = 1; ss < ClickyClient.MyChar.Inventory.Length; ss++)
{
string anitem = ClickyClient.MyChar.Inventory[ss];
if (anitem == null) break;
string[] spli_ = anitem.Split('-');
if (spli_[0] == TheReq[1])
{
ClickyClient.MyChar.RemoveAnItem(ClickyClient.MyCh ar.Inventory_UIDs[ss], 0);
found_ = true;
}
}
if (found_ == true)
Requirs = true;
else
DontHave = false;
}
Not quite sure how too add the number of items needed but i'll give it a shot in a sec.

As for the npc dialogs I think i deleted the folder they was in but luckily i didn't get very far with it.

Edit: Hmm what skills are you going too implement?

Edit2:If people are getting annoyed by the inventory bug i found a temporary solution remove this line from Login.cs then build it:
Quote:
TheClient.MyChar.SendInventory();
06/07/2008 13:16 abdomiky7#120
yatra fe gded ya sam7 aw aft7 el hotmail now klmne