|
You last visited: Today at 14:52
Advertisement
P Server "NPC base code/shops/drop items" for who asked me 2 do it
Discussion on P Server "NPC base code/shops/drop items" for who asked me 2 do it within the CO2 Private Server forum part of the Conquer Online 2 category.
06/06/2008, 23:12
|
#106
|
elite*gold: 0
Join Date: Nov 2007
Posts: 20
Received Thanks: 0
|
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
|
#107
|
elite*gold: 0
Join Date: Jun 2008
Posts: 418
Received Thanks: 56
|
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
|
#108
|
elite*gold: 0
Join Date: Jan 2007
Posts: 95
Received Thanks: 9
|
any1 know where i should start to make monster auto move n attack?
n how i make guard attack.
|
|
|
06/07/2008, 06:57
|
#109
|
elite*gold: 0
Join Date: May 2008
Posts: 113
Received Thanks: 12
|
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
|
#110
|
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
|
SAMEHVAN we dont need mana now but exp from mobs + lvl up !
pls code that first and release it
|
|
|
06/07/2008, 10:15
|
#111
|
elite*gold: 111
Join Date: Feb 2008
Posts: 2,161
Received Thanks: 646
|
Quote:
Originally Posted by lolmaster123
SAMEHVAN we dont need mana now but exp from mobs + lvl up !
pls code that first and release it 
|
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
|
#112
|
elite*gold: 0
Join Date: Mar 2008
Posts: 303
Received Thanks: 39
|
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
|
#113
|
elite*gold: 20
Join Date: Jul 2007
Posts: 613
Received Thanks: 486
|
Quote:
Originally Posted by SweeTFlower
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
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
|
#114
|
elite*gold: 111
Join Date: Feb 2008
Posts: 2,161
Received Thanks: 646
|
Quote:
Originally Posted by samehvan
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
|
#115
|
elite*gold: 0
Join Date: Oct 2007
Posts: 450
Received Thanks: 68
|
Quote:
Originally Posted by L1nk1n*P4rK
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
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
|
#116
|
elite*gold: 0
Join Date: Nov 2006
Posts: 199
Received Thanks: 138
|
hmm... i still prefer mana first ._. if i wanna get drops/xp, ill go play CO xD
|
|
|
06/07/2008, 12:39
|
#117
|
elite*gold: 0
Join Date: Oct 2007
Posts: 450
Received Thanks: 68
|
Quote:
Originally Posted by jadatbenik
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
|
#118
|
elite*gold: 20
Join Date: Jul 2007
Posts: 613
Received Thanks: 486
|
Quote:
Originally Posted by adz06676
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
|
#119
|
elite*gold: 0
Join Date: Oct 2007
Posts: 450
Received Thanks: 68
|
Quote:
Originally Posted by samehvan
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
|
#120
|
elite*gold: 0
Join Date: May 2008
Posts: 168
Received Thanks: 4
|
yatra fe gded ya sam7 aw aft7 el hotmail now klmne
|
|
|
Similar Threads
|
Verkaufe: Guild Wars "Platin", "Ectos, "Items" mehr...
09/12/2008 - Guild Wars Trading - 0 Replies
Hallo,
ich biete gegen Euro viele schöne dinge für das Spiel Guild Wars an. Bitte meldet euch dann bei mir per PM was genau ihr haben möchtet und wieviel von den jeweiligen Virtuellen Gegenständen. Die Übergabe kann wie folgt ab laufen. Ich erstelle extra für euch die Ebay Auktion mit der gewünschten menge der jeweiligen Virtuellen Guild Wars gegenstände. Wenn ihr kein Ebay habt und euch auch kein Account anlegen möchtet kann die Übergabe auch ausserhalb Ebays statt finden hierzu erhaltet...
|
All times are GMT +1. The time now is 14:54.
|
|