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.
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);
}
}
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.
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:
Code:
case 2031
Scroll to the first:
Quote:
if (CurrentNPC == xxx)
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:
Code:
case 2032
Scroll to the first:
Quote:
if (CurrentNPC == xxx)
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.
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