Register for your free account! | Forgot your password?

You last visited: Today at 11:25

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

Advertisement



[Release]NPC To Change Jobs

Discussion on [Release]NPC To Change Jobs within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2007
Posts: 1,326
Received Thanks: 539
Talking [Release]NPC To Change Jobs

iam a noob coder but here is my first steps in codeing

hope u guys like it



Code:
#region jobs changer
case 301552:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Would you like to change your job only for its only for 1kk CPS"));
GC.AddSend(Packets.NPCLink("Sure!", 1));
GC.AddSend(Packets.NPCLink("No thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}

else if (Control == 1)
{

GC.AddSend(Packets.NPCSay("Alright choose the job."));
GC.AddSend(Packets.NPCLink("Trojan", 4));
GC.AddSend(Packets.NPCLink("Warrior", 5));
GC.AddSend(Packets.NPCLink("Archer", 6));
GC.AddSend(Packets.NPCLink("WaterTaoist", 7));
GC.AddSend(Packets.NPCLink("FireTaoist", 8));
GC.AddSend(Packets.NPCLink("Ninja", 9));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());

}

else if (Control == 4)
{
if (GC.MyChar.CPs >= 1000000)
{
GC.MyChar.Job = 15;
GC.MyChar.CPs -= 1000000;
}
else
{
GC.AddSend(Packets.NPCSay("You don't have enough Cps."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else if (Control == 5)
{
if (GC.MyChar.CPs >= 1000000)
{
GC.MyChar.Job = 25;
GC.MyChar.CPs -= 1000000;
}
else
{
GC.AddSend(Packets.NPCSay("You don't have enough Cps."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else if (Control == 6)
{
if (GC.MyChar.CPs >= 1000000)
{
GC.MyChar.Job = 45;
GC.MyChar.CPs -= 1000000;
}
else
{
GC.AddSend(Packets.NPCSay("You don't have enough Cps."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else if (Control == 7)
{
if (GC.MyChar.CPs >= 1000000)
{
GC.MyChar.Job = 135;
GC.MyChar.CPs -= 1000000;
}
else
{
GC.AddSend(Packets.NPCSay("You don't have enough Cps."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else if (Control == 8)
{
if (GC.MyChar.CPs >= 1000000)
{
GC.MyChar.Job = 145;
GC.MyChar.CPs -= 1000000;
}
else
{
GC.AddSend(Packets.NPCSay("You don't have enough Cps."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else if (Control == 9)
{
if (GC.MyChar.CPs >= 1000000)
{
GC.MyChar.Job = 55;
GC.MyChar.CPs -= 1000000;
}
else
{
GC.AddSend(Packets.NPCSay("You don't have enough Cps."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
break;
}
#endregion
[GM] is offline  
Thanks
2 Users
Old 02/15/2010, 16:07   #2
 
elite*gold: 0
Join Date: Feb 2010
Posts: 480
Received Thanks: 207
good job, but I think something like this has already been released.
Decker_ is offline  
Thanks
1 User
Old 02/15/2010, 17:57   #3
 
elite*gold: 0
Join Date: Dec 2007
Posts: 1,326
Received Thanks: 539
Quote:
Originally Posted by _Decker View Post
good job, but I think something like this has already been released.
oh i didn't see anything like this before
[GM] is offline  
Old 02/15/2010, 19:46   #4
 
elite*gold: 0
Join Date: Dec 2007
Posts: 1,326
Received Thanks: 539
Quote:
Originally Posted by copz1337 View Post
Yeah look there is a similarity. But I don't care, if it means that much to you then forget I said anything. It's not a big deal. And yeah I'd suggest you fix the NPC because all it does is checks if you have the CPs, it doesn't remove them.


no it removes the cps try it yourself



#edit
_Decker i gave u a thanks cause u gave me a one lol
[GM] is offline  
Old 02/15/2010, 19:51   #5
 
elite*gold: 0
Join Date: Feb 2009
Posts: 700
Received Thanks: 79
Quote:
Originally Posted by [GM] View Post
no it removes the cps try it yourself
#edit- ah alright now I noticed the negative sign in there, before the equal sign. my bad..

Code:
GC.MyChar.CPs [COLOR="Red"]-[/COLOR]= 1000000;
copz1337 is offline  
Old 02/15/2010, 20:10   #6
 
killersub's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
Quote:
Originally Posted by copz1337 View Post
This has already been released. Reported.
roflmao...y u gonna report him for? he's just a newbie trying to learn C# give him a break bro...this thread is not breaking the rules whatsoever...next time if you don't have something nice to say don't say it at all...

@[GM] u did a nice job don't listen to the "pro's"...
killersub is offline  
Old 02/15/2010, 21:52   #7
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Great to see other people learning c#.
Keep getting better bro!
Arcо is offline  
Old 02/15/2010, 21:56   #8
 
elite*gold: 0
Join Date: Feb 2010
Posts: 480
Received Thanks: 207
I never said he stole, I thanked him. I just said something similiar like this has been released. But if he did code it hiself he did a good job, so I thank him for that!
Decker_ is offline  
Old 02/15/2010, 22:03   #9
 
elite*gold: 0
Join Date: Dec 2007
Posts: 1,326
Received Thanks: 539
Quote:
Originally Posted by .Arco View Post
Great to see other people learning c#.
Keep getting better bro!

.Arco u r my teacher i learnt alot from u


Quote:
Originally Posted by _Decker View Post
I never said he stole, I thanked him. I just said something similiar like this has been released. But if he did code it hiself he did a good job, so I thank him for that!

and i gave u a thanks too lol xD
[GM] is offline  
Thanks
1 User
Old 02/15/2010, 22:06   #10


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Cleaned.

Please dont spam an entire thread because something is similar to something else, if its a significant difference then it can stay, if its almost identical then it will be removed, thats it, instead of spamming this thread, report it, only one of you did so, yet alot of you felt the need to comment on it. I will happily look into things if they are reported, not if they are spammed.
Korvacs is offline  
Thanks
2 Users
Reply


Similar Threads Similar Threads
How do u change jobs on GC Pumaloco?
08/25/2009 - Grand Chase - 2 Replies
I'm having a VERY hard time navigating through the Gc server since I can't read Portuguese. I cant seem to know what's going on since its so different from the USA server (The no world map is still weird to me...)
[Release] Change Name NPC
04/28/2009 - CO2 PServer Guides & Releases - 21 Replies
This is everything you need to Code a Name Changing NPC in LOTF source. Why Release it? - It is fairly easy to figure out, and if you have decent knowledge of C# and of the source you use, then you can figure it out. - Also, I believe that open source coding for servers is a lot more efficient, and produces better/more advanced results. What does this NPC do? - Changes your characters name for 1 Dragonball. What will I need?
[Release]V.54 Final Attk For All Jobs *UPDATED* [GMS]
05/16/2008 - MapleStory - 0 Replies
DOWNLOAD LINK HERE Sorry for not updating as soon as possible as I had many things to do over these past couple weeks, but enjoy this newly updated one. Tested Almost All skills. What is in this Skill.wz? Fighters - It has level 1-30 Sword Final Atk working at 99% - It has level 1-30 Axe Final Atk working at 99%
[Question] 2 Jobs & Job Change Hack
04/30/2008 - Kal Online - 14 Replies
Hello. I have been already looking for this via Search but things which I found does't really work. Does any1 know how to do it? If you need I can upload version of UCE who works on all private and international server.



All times are GMT +1. The time now is 11:25.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

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