|
You last visited: Today at 23:10
Advertisement
[Help]can someone help me with this
Discussion on [Help]can someone help me with this within the CO2 Private Server forum part of the Conquer Online 2 category.
10/12/2008, 17:59
|
#1
|
elite*gold: 0
Join Date: Sep 2008
Posts: 259
Received Thanks: 64
|
[Help]can someone help me with this
hey all i'm trying to add some things to the powersource but i got some problems with 2 things
1st problem:Promotion center :
where can i add some skills to the npc dialog and how like superman at warrior trainer or fire at fire tao trainer
2nd problem:labyrinth:
anyone has a guide on how to add lab and the tokens + diamonds
i tried with emmes guide but it wasn't complete
ty greetz jochemke
|
|
|
10/12/2008, 18:14
|
#2
|
elite*gold: 0
Join Date: Apr 2008
Posts: 470
Received Thanks: 264
|
1st problem: because you cant code (that is what you said on msn) i tell you the easyest option: delete a skill from the prof npc that you dont need anymore and change the name and the id.
2nd problem: you can make a new type of mob.
|
|
|
10/12/2008, 18:16
|
#3
|
elite*gold: 0
Join Date: Sep 2008
Posts: 259
Received Thanks: 64
|
hehe u can tell that i can't code(wich is true in a certain way) but i'm trying to wich is better then just wait and take the credits
but still tnx i got it now
|
|
|
10/12/2008, 18:41
|
#4
|
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
|
Quote:
Originally Posted by XxArcherMasterxX
1st problem: because you cant code (that is what you said on msn) i tell you the easyest option: delete a skill from the prof npc that you dont need anymore and change the name and the id.
2nd problem: you can make a new type of mob.
|
No offence,but dont think you are something just because you got ahold of the broadcast packet id? Lol? You really shouldnt act so smart,atleast what it looks like,when you probally cant code your own.
LOL? Delete a skill from the npc and change it a bit? Lol,that was the dumbest thing I heard today.
Heres the prof code,;
Lets say,I want the npcid to be 71,I want my job to be a trojan and I need to be level 46 or above.
if (CurrentNPC == 71)
{
if (Control == 1)
{
if (MyChar.Level >= 46)
if (MyChar.Job < 16 && MyChar.Job > 9)
{
MyChar.LearnSkill(SKILLID, SKILLLEVEL);
}
}
|
|
|
10/12/2008, 18:55
|
#5
|
elite*gold: 0
Join Date: Apr 2008
Posts: 470
Received Thanks: 264
|
Quote:
Originally Posted by emildayan1
No offence,but dont think you are something just because you got ahold of the broadcast packet id? Lol? You really shouldnt act so smart,atleast what it looks like,when you probally cant code your own.
LOL? Delete a skill from the npc and change it a bit? Lol,that was the dumbest thing I heard today.
Heres the prof code,;
Lets say,I want the npcid to be 71,I want my job to be a trojan and I need to be level 46 or above.
if (CurrentNPC == 71)
{
if (Control == 1)
{
if (MyChar.Level >= 46)
if (MyChar.Job < 16 && MyChar.Job > 9)
{
MyChar.LearnSkill(SKILLID, SKILLLEVEL);
}
}
|
read you smart ***, i said it on the newbie way because i know him and he cant code.
|
|
|
10/12/2008, 19:01
|
#6
|
elite*gold: 0
Join Date: Sep 2008
Posts: 259
Received Thanks: 64
|
well emme he's right i can't code but i'm learning
|
|
|
10/12/2008, 19:32
|
#7
|
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
|
Quote:
Originally Posted by XxArcherMasterxX
read you smart ***, i said it on the newbie way because i know him and he cant code.
|
I don't know you, but I know that you can't code.
|
|
|
10/12/2008, 20:33
|
#8
|
elite*gold: 0
Join Date: Jun 2007
Posts: 323
Received Thanks: 30
|
Quote:
Originally Posted by tao4229
I don't know you, but I know that you can't code.
|
Well I don't know you, but I know you can code <3
|
|
|
10/12/2008, 22:01
|
#9
|
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
|
And I dont know any of you,I just know im the best=D
Also,tao,you got an competer. I love haydz more than you ever can,so get the **** away from my *****.
|
|
|
10/12/2008, 22:59
|
#10
|
elite*gold: 0
Join Date: Jun 2007
Posts: 387
Received Thanks: 64
|
Quote:
Originally Posted by emildayan1
And I dont know any of you,I just know im the best=D
Also,tao,you got an competer. I love haydz more than you ever can,so get the fuck away from my whore.
|
wow... this thread got off topic... but in other news, never do ANYTHING the nooby way. If you don't know how to do something, ask for help to do that task, and wait til you get an intelligent answer. Don't take a short cut because its easier... this will kill your server. Always do things the right way first... so you won't have to fix things later. The code emme provided will do what you need perfectly. Emme, I hope you don't mind me expanding a bit on your code =). The best way to do this is like so:
Search for:
Scroll to the first:
Quote:
This is the first part of the NPC coding, which is the dialog. Add something like this:
Code:
if (CurrentNPC == ###)
{
SendPacket(General.MyPackets.NPCSay("Do you want to learn a really neat archer skill called 'NOOBXOR'?"));
SendPacket(General.MyPackets.NPCLink("I'd love to learn NOOBXOR.", 1);
SendPacket(General.MyPackets.NPCLink("Just passing by.", 255));
SendPacket(General.MyPackets.NPCSetFace(0));
SendPacket(General.MyPackets.NPCFinish());
}
That is the main dialog for the skill adding NPC, just change the NOOBXOR part to what ever the skill is.
Then search for:
Scroll to the first:
Quote:
and add this:
Code:
if (CurrentNPC == ###)
{
if (Control == 1)
{
if (MyChar.Level >= xx)
if (MyChar.Job < xx && MyChar.Job > xx)
{
MyChar.LearnSkill(SKILLID, SKILLLEVEL);
}
else
{
SendPacket(General.MyPackets.NPCSay("Your not a xx. Come back when your done lying!"));
SendPacket(General.MyPackets.NPCLink("Course.", 255));
SendPacket(General.MyPackets.NPCSetFace(0));
SendPacket(General.MyPackets.NPCFinish());
}
}
}
Change the xxx to the same number as the xxx in the first NPC Dialog area. So if your npc number was 104 on the first part of the code, the npc number will be 104 on this one as well. Change the xx's to the correct values, and viola, you have a working NPC to check job, level, and add skills if they are the right class.
|
|
|
10/13/2008, 09:01
|
#11
|
elite*gold: 0
Join Date: Sep 2008
Posts: 259
Received Thanks: 64
|
ty taguro i tried it already a few times and i added all the skills i have in my source to the npc dialogs and its working fine
i like this kind of posts where u need to add what u want this way i learn it much faster then just copy and paste it and also my source(i don't really mean my source its just a source that i found here and i'm using to edit so don't get mad on me saying my source cause the real credits go to others here on e*pvp) is getting better tnx to everyone that releases his or her codes
|
|
|
All times are GMT +2. The time now is 23:10.
|
|