[Help]can someone help me with this

10/12/2008 17:59 ~jochemke~#1
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
:confused:
10/12/2008 18:14 XxArcherMasterxX#2
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 ~jochemke~#3
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 _Emme_#4
Quote:
Originally Posted by XxArcherMasterxX View Post
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 XxArcherMasterxX#5
Quote:
Originally Posted by emildayan1 View Post
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 ass, i said it on the newbie way because i know him and he cant code.
10/12/2008 19:01 ~jochemke~#6
well emme he's right i can't code but i'm learning
10/12/2008 19:32 tao4229#7
Quote:
Originally Posted by XxArcherMasterxX View Post
read you smart ass, 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 Zanzibar#8
Quote:
Originally Posted by tao4229 View Post
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 _Emme_#9
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.
10/12/2008 22:59 taguro#10
Quote:
Originally Posted by emildayan1 View Post
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.
:eek: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.
10/13/2008 09:01 ~jochemke~#11
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