AutentificareUtilizatorParola
Autentifica-ma automat la fiecare vizita    
Inregistrare
Inregistrare
Mesaje private
Mesaje private
Pagina de start a forumului MuZone Forum » NPC Scripts

Creaza un subiect nou   Raspunde la subiect
[Release] Shelby [NPC Script]
Subiectul anterior :: Subiectul urmator  
Autor Mesaj
Scottdavey
Member
<b>Member</b>
Scottdavey

Data inscrierii: 01/Mai/2007
Mesaje: 68
Localitate: Northen Ireland

MesajTrimis: 06/05/2007 14:21    Titlul subiectului: [Release] Shelby [NPC Script] Raspunde cu citat (quote)

This is the script for shelby (the vps girl at the market)
Cod:
if (CLNPC == 300000) //Shelby (VPs NPC - Market)
                {
                    if (_NPCcontrol == 0)
                    {
                        CmdNPC.Face(02);
                        CmdNPC.Say("We hope all can help each other out. If you power level the");
                        CmdNPC.Say("newbies, we may reward you Expirience or DragonBalls. Are you");
                        CmdNPC.Say("interested?");
                        CmdNPC.Link("Tell me more Details.", 3);
                        CmdNPC.Link("Check my virtue points.", 4);
                        CmdNPC.Link("Claim Prize.", 5);
                        CmdNPC.Link("Just passing by.", 255);
                        CmdNPC.Finish();
                    }
                    if (_NPCcontrol == 3)
                    {
                        CmdNPC.Say("If you are above Level 70 and try to power level 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?", 6);
                        CmdNPC.Finish();
                    }
                    if (_NPCcontrol == 4)
                    {
                        CmdNPC.Say("Your current virtue points are " + _client.Char.VirtuePoints + ", please try to gain");
                        CmdNPC.Say("more.");
                        CmdNPC.Link("I see.", 255);
                        CmdNPC.Finish();
                    }
                    if (_NPCcontrol == 5)
                    {
                        CmdNPC.Say("What prize do you prefer?");
                        CmdNPC.Link("DragonBall.", 9);
                        CmdNPC.Link("Exp.", 10);
                        CmdNPC.Link("Let me think it over", 255);
                        CmdNPC.Finish();
                    }
                    if (_NPCcontrol == 6)
                    {
                        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("amount of virtue points.");
                        CmdNPC.Link("How can i gain virtue points?", 7);
                        CmdNPC.Link("What prize can i expect?", 8);
                        CmdNPC.Finish();
                    }
                    if (_NPCcontrol == 7)
                    {
                        CmdNPC.Say("Once the newbies are on level up, the team captain can");
                        CmdNPC.Say("gain virtue points accordingly.");
                        CmdNPC.Link("I see.", 255);
                        CmdNPC.Finish();
                    }
                    if (_NPCcontrol == 8)
                    {
                        CmdNPC.Say("I shall reward you exp. of equivalent to an ExpBall for");
                        CmdNPC.Say("15,000 virtue points or a DragonBall for 10000 virtue points.");
                        CmdNPC.Link("I see.", 255);
                        CmdNPC.Finish();
                    }
                    if (_NPCcontrol == 9)
                    {
                        if (_client.Char.VirtuePoints >= 10000)
                        {
                            CmdNPC.Say("Here is you DragonBall. Please try to gain more virtue points.");
                            CmdNPC.Link("Thank you.", 255);
                            CmdNPC.Finish();

                            _client.Char.VirtuePoints -= 10000;

                            foreach (int[] inv in _client.Char.Inv_items)
                            {
                                if (inv[0] == 0)
                                {
                                    Random RND = new Random();
                                    int UID = RND.Next(1000, 16777215);
                                    inv[0] = Convert.ToInt32(1088000);
                                    inv[1] = 0;
                                    inv[2] = 0;
                                    inv[3] = 0;
                                    inv[4] = 0;
                                    inv[5] = 0;
                                    inv[6] = 0;
                                    inv[7] = 1;
                                    inv[8] = 1;
                                    inv[9] = UID;
                                    inv[10] = 0;
                                    inv[11] = 0;
                                    AddItem add = new AddItem(inv[0], inv[3], inv[4], inv[5], inv[9], 0, inv[10], inv[11], inv[7], inv[8]);
                                    _client.SendData(add.writeImpl());
                                    break;
                                }
                            }
                            _client.SendData(PacketBuilder.CharacterInfo(_client.Char));
                        }
                        else
                        {
                            CmdNPC.Say("Sorry, you do not have the required virtue points.");
                            CmdNPC.Link("I see.", 255);
                            CmdNPC.Finish();
                        }

                    }
                    if (_NPCcontrol == 10)
                    {
                        if (_client.Char.VirtuePoints >= 15000)
                        {
                            _client.Char.VirtuePoints -= 15000;
                            _client.Char.Exp += 10000000;
                            _client.SendData(PacketBuilder.CharacterInfo(_client.Char));

                            CmdNPC.Say("I've added your Exp now. Please try to gain more virtue points.");
                            CmdNPC.Link("Thank you.", 255);
                            CmdNPC.Finish();
                        }
                        else
                        {
                            CmdNPC.Say("Sorry, you do not have the required virtue points.");
                            CmdNPC.Link("I see.", 255);
                            CmdNPC.Finish();
                        }
                    }
                }
Sus
Vezi profilul utilizatorului Trimite mesaj privat
Afiseaza mesajele pentru a le previzualiza:   
Creaza un subiect nou   Raspunde la subiect    Pagina de start a forumului MuZone Forum » NPC Scripts Ora este GMT + 2 ore
Pagina 1 din 1

 
Mergi direct la:  
Nu puteti crea un subiect nou in acest forum
Nu puteti raspunde in subiectele acestui forum
Nu puteti modifica mesajele proprii din acest forum
Nu puteti sterge mesajele proprii din acest forum
Nu puteti vota in chestionarele din acest forum

Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional

Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro