Did you first off use the searching handy button?
And did you read off on peoples threads of how to make a npc that gives stuff or says stuff? Try reading those kind of posts/threads and maybe that give you a little help on how to do that?
Ok I was wondering, could someone please show, or guide me with the codes for making an ncp that teach rb (pray, rb guards) skills.
Here if you need more help just post on the same thread and I'll be glad to code it for you.. I'm guessing this is for LOTF so i coded it for LOTF.
Here is the Main Dialog for the NPC
Code:
if (CurrentNPC == 1200) // Skill Learner NPC
{
SendPacket(General.MyPackets.NPCSay("Would you like to learn some skills?")); // NPC Dialog
SendPacket(General.MyPackets.NPCLink("Umm Sure... What skills though?", 1)); // Player Controls Destiny
SendPacket(General.MyPackets.NPCLink("Nah, Just passing by.", 255)); // Player Controls Destiny
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
Now here is the Control Dialog for the NPC
Code:
if (CurrentNPC == 1200) // Skill Learner NPC
{
if (Control == 1)
{
SendPacket(General.MyPackets.NPCSay("For now we just have these two skills."));
SendPacket(General.MyPackets.NPCLink("Pray", 2));
SendPacket(General.MyPackets.NPCLink("Guard", 3));
SendPacket(General.MyPackets.NPCLink("No Thanks.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 2)
{
if (MyChar.Job > 132 && MyChar.Job < 136)
{
MyChar.LearnSkill(1100, 0);
SendPacket(General.MyPackets.NPCSay("Congratz, You now learned the water tao skill Pray!"));
SendPacket(General.MyPackets.NPCLink("Thanks!", 255));
}
else
{
SendPacket(General.MyPackets.NPCSay("I'm sorry you are not a water tao Or you are still too low level to learn the skill!"));
SendPacket(General.MyPackets.NPCLink("Oh Darn!", 255));
}
}
if (Control == 3)
{
if (MyChar.RBCount >= 1)
{
MyChar.LearnSkill(4000, 0);
SendPacket(General.MyPackets.NPCSay("Congratz, You now learned the reborn skill Guard!"));
SendPacket(General.MyPackets.NPCLink("Thanks!", 255));
}
else
{
SendPacket(General.MyPackets.NPCSay("You are not reborn yet!"));
SendPacket(General.MyPackets.NPCLink("Oh Darn!", 255));
}
}
}
If I accidentally coded it wrong or you get some bugs, Please tell me so i may fix it.
Uhh, when I select I wanan learn Guard, this is what happened, The dialog box closed, When I click on the ncp again It loads Up, you have learned the reborn skill Guard!Would you like to learn skill, any help?
Uhh, when I select I wanan learn Guard, this is what happened, The dialog box closed, When I click on the ncp again It loads Up, you have learned the reborn skill Guard!Would you like to learn skill, any help?
That actually is not a bug..
MyChar.LearnSkill(4000, 0); SendPacket(General.MyPackets.NPCSay("Congratz, You now learned the reborn skill Guard!"));
As you see the bold in the code brackets. All it does after you learned it is tell you. Check your skills and you should have it. If that does not answer your question please ask again in a different way.
Cabal Files, Sword Skills, Magic Skills, Buffs, and Weapons 01/31/2016 - Cabal Guides & Templates - 65 Replies New Discovered Files ^_^
These Files which i discovered came from other people but sword skill files are my works cause im a melee type character
Sword skills ^_^
For Force Bladders And Force Shileders FB /FS
skil_1h_001.efx - FlashDraw
skil_1h_002.efx - Impact Stab
skil_1h_005.efx - Force Stab (FB, FS)
[Release] NPC That Teaches You Prof For Each Class 02/28/2010 - CO2 PServer Guides & Releases - 10 Replies Some credits to .Arco for hinting me :D
Put this in NPCDialog.cs:
#region Prof Teacher
case 677895:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Would you like to learn all main weapon profencies for your class?"));
GC.AddSend(Packets.NPCLink("Yes", 1));
[Release] NPC That Teaches You All Skills 02/20/2010 - CO2 PServer Guides & Releases - 24 Replies Place this in NPCDialog.cs:
#region NPC All Skills
case 998798:
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Hello. Do you wanna learn all skills?"));
GC.AddSend(Packets.NPCLink("Yes", 1));
GC.AddSend(Packets.NPCLink("No Thanks", 255));
...
Requesting a guide that teaches everything. 11/25/2008 - CO2 Private Server - 9 Replies Is there a guide out that teaches how to add monsters, spawns, change drop rates, and everything else that might be needed?