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
David NPC
Subiectul anterior :: Subiectul urmator  
Autor Mesaj
Astaroth
Admin
<b><font color=red>Admin</font></b>
Astaroth

Data inscrierii: 04/Oct/2006
Mesaje: 2640
Localitate: MuZone World!

MesajTrimis: 05/05/2007 22:28    Titlul subiectului: David NPC Raspunde cu citat (quote)

Cod:

//NPC ID 30106 (The dude near PK arena.)
//Coords, x = 444, y = 290
//Dont blame me for grammatical errors, dialoque is taken straight from co xD
//

String[] dlg=null;
switch(option)
{
   case -1:
   {
      String[] tm={
                  "AVATAR 10",
                  "TEXT My five brothers and I guard the arena in turn. We take plăcere in watching the PK tournament and improving our skills.",
                  "OPTION0 Thats great!",
                  "OPTION-1 Just passing by"
               };
               dlg=tm;
               break;
            }
            case 0:
            {
               String[] tm={
                  "AVATAR 10",
                  "TEXT My brothers and I want to watch the PK tournament, but we are too busy to get some tickets from pheasants. Can you help us?",
                  "OPTION1 Sure",
                  "OPTION-1 Sorry, I am too busy."
               };
               dlg=tm;
               break;
            }
            case 1:
            {
               String[] tm={
                  "AVATAR 10",
                  "TEXT Thanks a lot. if you give me 6 tickets, I shall pay you 6000 silvers. Are you ready to give your tickets to me?",
                  "OPTION2 Yeah, here you go.",
                  "OPTION-1 Sorry, I need them too."
               };
               dlg=tm;
               break;
            }
            case 2:
            {
               int tickets=count(710001);
               if(tickets < 6)
               {
                  String[] tm={
                     "AVATAR 10",
                     "TEXT You do not have 6 PK tickets.",
                     "OPTION-1 Sorry, I'll try to get them."
                  };
                  dlg=tm;
                  break;
               }
               else
               {
                  delitem(7100001, 6);
                  atcommand("@gold 6000");
                  String[] tm={
                     "AVATAR 10",
                     "TEXT There you go, 6000 silvers like I promised.",
                     "OPTION-1 Thanks."
                  };
                  dlg=tm;
                  break;
               }
            }
}
if(dlg!=null)
   dialog(dlg);

script by tinu
_________________
David NPC David NPC
Sus
Vezi profilul utilizatorului Trimite mesaj privat Trimite un mesaj
Scottdavey
Member
<b>Member</b>
Scottdavey

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

MesajTrimis: 06/05/2007 13:45    Titlul subiectului: hey Raspunde cu citat (quote)

Where do i put this and where do i get the source and db for it to work
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