Elĩţέ Găмέrś™
April 19, 2024, 11:05:53 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  

Item NPC ( C# )

Pages: [1]
  Print  
Author Topic: Item NPC ( C# )  (Read 50 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:28:05 pm »

Ok well this is for C#

Code:
   #region Item NPC
                    if (CLNPC == 435)
                    {
                        if (_NPCcontrol == 0)
                        {
                            CmdNPC.Say("Hey i Am Here To Help You On Your Way ");
                            CmdNPC.Link("DragonBall", 1);
                            CmdNPC.Link("Meteor", 2);
                            CmdNPC.Link("SDG", 3);
                            CmdNPC.Link("SPG", 4);
                            CmdNPC.Link("Emerald", 5);
                            CmdNPC.Link("MoonBox", 6);
                            CmdNPC.Link("Acces To Staff Room(Staff Only)", 7);
                            CmdNPC.Link("Nothing thank you", 255);
                            CmdNPC.Finish();
                        }
                        else if (_NPCcontrol == 1)
                        {
                            AddItem(1088000, 0, 0, 0, 0, 0);
                        }
                        else if (_NPCcontrol == 2)
                        {
                            AddItem(1088001, 0, 0, 0, 0, 0);
                        }
                        else if (_NPCcontrol == 3)
                        {
                            AddItem(700013, 0, 0, 0, 0, 0);
                        }
                        else if (_NPCcontrol == 4)
                        {
                            AddItem(700003, 0, 0, 0, 0, 0);
                        }
                        else if (_NPCcontrol == 5)
                        {
                            AddItem(1080001, 0, 0, 0, 0, 0);
                        }
                        else if (_NPCcontrol == 6)
                        {
                            AddItem(721090, 0, 0, 0, 0, 0);
                        }
                                                else if (_NPCcontrol == 7 && _client.AccountStatus >= 8)
                        {
                            TeleportPlayer(022, 027, 1009);
                            CmdNPC.Say("Welcome To The Staff Room");
                            CmdNPC.Link("Thanks", 255);
                            CmdNPC.Finish();
                        }
                        else if (_NPCcontrol == 7 && _client.AccountStatus < 8)
                        {
                            CmdNPC.Say("You Are Not A Member Of Staff You Cannot Acces The Staff Room");
                            CmdNPC.Link("awww", 255);
                            CmdNPC.Finish();
                        }
                    }
                    #endregion

Credits:IcedEarth from Uni Pvpers thnx again
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