Register for your free account! | Forgot your password?

You last visited: Today at 16:59

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



One npc for honor halos

Discussion on One npc for honor halos within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
WHITELIONX's Avatar
 
elite*gold: 0
Join Date: Apr 2006
Posts: 534
Received Thanks: 66
One npc for honor halos

Ok so somebody was asking about a single npc for all the honor halos so I decided to have a go and yup I created that single npc for all the honor halos, however the problem still remains for me that a Warrior can obtain an Archer halo I tried to have it so that only ninja can obtain Ninja halo and so on but I am not sure what else to do but anyways this code is set for Victor in TC the npv with the balloons. I hope somebody works on this so that it only gives the correct halos for the correct profession chars apart from Deputy/Guild/MonthlyPK/WeeklyPK.

case 300006: //Victor
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Hi, I can give honor halos are you interested?"));
GC.AddSend(Packets.NPCLink("Would you like the Top FireTaoist Halo?", 1));
GC.AddSend(Packets.NPCLink("Would you like the Top Trojan Halo?", 2));
GC.AddSend(Packets.NPCLink("Would you like the Top WaterTaoist Halo?", 3));
GC.AddSend(Packets.NPCLink("Would you like the Top Archer Halo?", 4));
GC.AddSend(Packets.NPCLink("Would you like the Top Warrior Halo?", 5));
GC.AddSend(Packets.NPCLink("Would you like the Top Ninja Halo?", 6));
GC.AddSend(Packets.NPCLink("Would you like the Top GuildLeader Halo?", 7));
GC.AddSend(Packets.NPCLink("Would you like the Top DeputyLeader Halo?", 8));
GC.AddSend(Packets.NPCLink("Nah.", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 1)
{
if (GC.MyChar.Job >= 140 && GC.MyChar.Job <= 145)
{
}
else
{
GC.AddSend(Packets.NPCSay("You are not a FireTaoist, so get lost, will you?"));
GC.AddSend(Packets.NPCLink("Sorry.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
GC.MyChar.StatEff.Add(StatusEffectEn.TopFireTaoist );
GC.Message(2005, GC.MyChar.Name + "Has won the Top FireTaoist Halo");

}

if (Control == 2)
{
if (GC.MyChar.Job >= 10 && GC.MyChar.Job <= 15)
{
}
else
{
GC.AddSend(Packets.NPCSay("You are not a Trojan, so get lost, will you?"));
GC.AddSend(Packets.NPCLink("Sorry.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
GC.MyChar.StatEff.Add(StatusEffectEn.TopTrojan);
GC.Message(2005, GC.MyChar.Name + "Has won the Top Trojan Halo");
}
if (Control == 3)
{
if (GC.MyChar.Job >= 130 && GC.MyChar.Job <= 135)
{
}
else
{
GC.AddSend(Packets.NPCSay("You are not a WaterTaoist, so get lost, will you?"));
GC.AddSend(Packets.NPCLink("Sorry.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
GC.MyChar.StatEff.Add(StatusEffectEn.TopWaterTaois t);
GC.Message(2005, GC.MyChar.Name + "Has won the Top WaterTaoist Halo");

}
if (Control == 4)
{
if (GC.MyChar.Job >= 40 && GC.MyChar.Job <= 45)
{
}
else
{
GC.AddSend(Packets.NPCSay("You are not an Archer, so get lost, will you?"));
GC.AddSend(Packets.NPCLink("Sorry.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
GC.MyChar.StatEff.Add(StatusEffectEn.TopArcher);
GC.Message(2005, GC.MyChar.Name + "Has won the Top Archer Halo");

}
if (Control == 5)
{
if (GC.MyChar.Job >= 20 && GC.MyChar.Job <= 25)
{
}
else
{
GC.AddSend(Packets.NPCSay("You are not a Warrior, so get lost, will you?"));
GC.AddSend(Packets.NPCLink("Sorry.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
GC.MyChar.StatEff.Add(StatusEffectEn.TopWarrior);
GC.Message(2005, GC.MyChar.Name + "Has won the Top Warrior Halo");

}
if (Control == 6)
{
if (GC.MyChar.Job >= 50 && GC.MyChar.Job <= 55)
{

}
else
{
GC.AddSend(Packets.NPCSay("You are not a Ninja, so get lost, will you?"));
GC.AddSend(Packets.NPCLink("Sorry.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
GC.MyChar.StatEff.Add(StatusEffectEn.TopNinja);
GC.Message(2005, GC.MyChar.Name + "Has won the Top Ninja Halo");

}
if (Control == 7)
{
GC.MyChar.StatEff.Add(StatusEffectEn.TopGuildLeade r);
GC.Message(2005, GC.MyChar.Name + "Has won the TopGuildLeaderHalo");
}
}
if (Control == 8)
{
GC.MyChar.StatEff.Add(StatusEffectEn.TopDeputyLead er);
GC.Message(2005, GC.MyChar.Name + "Has won the TopDeputyLeaderHalo");
}

break;

#endregion
WHITELIONX is offline  
Old 12/16/2009, 10:30   #2
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
This has been released already.

And next time you release a code.
Use the [code] tags please.
It makes it alot neater.
Arcо is offline  
Old 12/16/2009, 10:48   #3
 
WHITELIONX's Avatar
 
elite*gold: 0
Join Date: Apr 2006
Posts: 534
Received Thanks: 66
Yup but that Top Class Effects thing gives around eleven pole npcs in TC and this script gives one npc only, that being Victor Somebody asked for a script like this and instead of cluttering the city up with loads of npcs for halos lol. Yup I will use code tag next time but how do I do that?
WHITELIONX is offline  
Old 12/16/2009, 10:53   #4
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by WHITELIONX View Post
Yup but that Top Class Effects thing gives around eleven pole npcs in TC and this script gives one npc only, that being Victor Somebody asked for a script like this and instead of cluttering the city up with loads of npcs for halos lol. Yup I will use code tag next time but how do I do that?

The post that I just referenced you to works perfectly with 1 npc, I don't know what you're talking about.
And a code tag is [*code*][*/code*].
Just take out the *'s.
Arcо is offline  
Old 12/16/2009, 11:01   #5
 
WHITELIONX's Avatar
 
elite*gold: 0
Join Date: Apr 2006
Posts: 534
Received Thanks: 66
Ahhhh you mean the post that Korvacs put on that page hehehe I didn`t see that so my apologies
WHITELIONX is offline  
Old 12/16/2009, 11:18   #6
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Here is what control 6 should look like:
Code:
if (Control == 6)
                                    {
                                        if (GC.MyChar.Job >= 50 && GC.MyChar.Job <= 55)
                                        {
                                            GC.MyChar.StatEff.Add(StatusEffectEn.TopNinja);
                                            GC.Message(2005, GC.MyChar.Name + "Has won the Top Ninja Halo");
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("You are not a Ninja, so get lost, will you?"));
                                            GC.AddSend(Packets.NPCLink("Sorry.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
Arcо is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[Release] Patch 5165 Honor Halos
12/05/2009 - CO2 PServer Guides & Releases - 7 Replies
Eh very basic release, doesn't require much coding just C+P and some eyes. For those who dont already have it. Ill release it later when I'm feeling better. (Swine Flu)
CoEurope - With Steeds, Ninjas, Honor Halos...
12/01/2009 - CO2 PServer Archive - 1 Replies
Hey Everyone, CoEurope is back up with 5165 and Supports Ninjas, Talismans, Steeds, Honor Halos etc now! #Removed
removing honor halos?
04/27/2009 - Conquer Online 2 - 1 Replies
i'm wanting to remove a halo i have (top DL halo.) any idea which file i should delete?



All times are GMT +1. The time now is 17:00.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.