Elĩţέ Găмέrś™
April 18, 2024, 09:09:34 am
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to Elite Gamers Community have fun and contribute to the community and be Rewarded.
 
  Home Help Search Arcade Gallery Links Staff List Login Register  

Market NPC Virtual Points

Pages: [1]
  Print  
Author Topic: Market NPC Virtual Points  (Read 48 times)
Unidentical
Administrator
Known Member
*

Karma: +105/-0
Posts: 69


I have the cape! I am an admin, dont double post!


View Profile WWW
« on: December 03, 2007, 09:26:43 pm »

Ok well this is for C#

Code:
                       if (CLNPC == 300000)// npc virtue points
                        {
                            if (_NPCcontrol == 0)
                            {
                                CmdNPC.Say("We hope all can help each other. If you power level the");
                                CmdNPC.Say("newbies, we may reward you a Dragon Ball. Are you");
                                CmdNPC.Say("interested?");
                                CmdNPC.Link("Tell me more details.", 1);
                                CmdNPC.Link("Check my virtue points.", 2);
                                CmdNPC.Link("Claim Prize.", 3);
                                CmdNPC.Link("Just passing by.", 255);
                                CmdNPC.Finish();
                            }

                            if (_NPCcontrol == 1)
                            {
                                CmdNPC.Say("If you are above level 70 and try to power the");
                                CmdNPC.Say("newbies (at least 20 levels lower than you), you may gain");
                                CmdNPC.Say("virtue points.");
                                CmdNPC.Link("What are the virtue points?", 4);
                                CmdNPC.Finish();
                            }
                            if (_NPCcontrol == 2)
                            {
                                CmdNPC.Say("Your current virtue points are " + _char.VP + ", please try to gain");
                                CmdNPC.Say("more.");
                                CmdNPC.Link("Thanks.", 255);
                                CmdNPC.Finish();
                            }
                            if (_NPCcontrol == 3)
                            {
                                CmdNPC.Say("What prize do you prefer?");
                                CmdNPC.Link("Meteor", 7);
                                CmdNPC.Link("Dragon Ball", 8);
                                CmdNPC.Link("Let me think it over", 255);
                                CmdNPC.Finish();
                            }
                            if (_NPCcontrol == 4)
                            {
                                CmdNPC.Say("The more newbies you power level, the more virtue points");
                                CmdNPC.Say("you gain. I shall give you a good reward for a certain");
                                CmdNPC.Say("virtue points.");
                                CmdNPC.Link("How can I gain virtue points?", 5);
                                CmdNPC.Link("What prize can I expect?", 6);
                                CmdNPC.Finish();
                            }
                            if (_NPCcontrol == 5)
                            {
                                CmdNPC.Say("Once the newbies are one level up, the team captain can");
                                CmdNPC.Say("gain virtue points accordingly");
                                CmdNPC.Link("I see.", 255);
                                CmdNPC.Finish();
                            }
                            if (_NPCcontrol == 6)
                            {
                                CmdNPC.Say("I shall reward you a meteor for 5,000 virtue points, and a");
                                CmdNPC.Say("dragon ball for 270,000 virtue points.");
                                CmdNPC.Link("I see.", 255);
                                CmdNPC.Finish();
                            }

                            if (_NPCcontrol == 7)
                            {
                                if (_client.Char.VP > 4999)
                                {
                                    int Remove_Virtue = Convert.ToInt32(_client.Char.VP - 5000);
                                    _client.Char.VP = Remove_Virtue;
                                    AddItem(1088001, 0, 0, 0, 0, 0);
                                }
                                if (_client.Char.VP < 5000)
                                {
                                    CmdNPC.Say("Sorry, you do not have the required virtue points.");
                                    CmdNPC.Link("I see.", 255);
                                    CmdNPC.Finish();
                                }
                            }
                            if (_NPCcontrol == 8)
                            {
                                if (_client.Char.VP > 269999)
                                {
                                    int Remove_Virtue = Convert.ToInt32(_client.Char.VP - 270000);
                                    _client.Char.VP = Remove_Virtue;
                                    AddItem(1088000, 0, 0, 0, 0, 0);
                                }
                                else if (_client.Char.VP < 270000)
                                {
                                    CmdNPC.Say("Sorry, you do not have the required virtue points.");
                                    CmdNPC.Link("I see.", 255);
                                    CmdNPC.Finish();
                                }
                            }
                        }

Credits:IcedEarth From Uni Pvpers thanks man
Report Spam   Logged


Share on Facebook Share on Twitter



Pages: [1]
  Print  
 
Jump to:  

Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy