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
Mike 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:13    Titlul subiectului: Mike NPC Raspunde cu citat (quote)

Cod:

// Written by Qonquer May 3rd 2006
// NPC ID: 30164 (Mike)
// Location: Map 1000 Desert City 486,618

/*
   This is not the actual NPC for Mike, it is
   just an example Script that I was asked to
   provide on the forum for reference purposes
*/

String[] dlg=null;
switch(option)
{
   case -1:
   {
      String[] tm={
         "AVATAR 1",
         "TEXT If you bring me 1 Emerald, 2 Natural Gems and 100,000 silver I will give you 5 Meteors",
         "OPTION0 I have the things!",
         "OPTION1 Where do I get an Emerald?",
         "OPTION-1 I see, thank you."
      };
      dlg=tm;
      break;
   }
   case 0:
   {
      int gems=count(700001)+count(700011)+count(700021)+count(700031)+count(700041)+count(700051)+count(700061)+count(700071);
      if(gems<2 || count(1080001)<1 || money()<100000)
      {
         String[] tm={
            "AVATAR 1",
            "TEXT You do not have all the things I asked for",
            "OPTION-1 Sorry"
         };
         dlg=tm;
         break;
      }
      if(invSize()>=39)
      {
         String[] tm={
            "AVATAR 1",
            "TEXT You do not have enough room in your inventory",
            "OPTION-1 Oops Silly Me"
         };
         dlg=tm;
         break;
      }
      int u=0;
      u+=delitem(700001,2);
      if(u<2) u+=delitem(700011,2-u);
      if(u<2) u+=delitem(700021,2-u);
      if(u<2) u+=delitem(700031,2-u);
      if(u<2) u+=delitem(700041,2-u);
      if(u<2) u+=delitem(700051,2-u);
      if(u<2) u+=delitem(700061,2-u);
      if(u<2) u+=delitem(700071,2-u);
      delitem(1080001,1);
      addmoney(-100000);
      for(int i=0; i<5; i++)
         atcommand("@item 1088001");
      String[] tm={
         "AVATAR 1",
         "TEXT Thank you, here are your Meteors. Enjoy!",
         "OPTION-1 Bye"
      };
      dlg=tm;
      break;
   }
   case 1:
   {
      String[] tm={
         "AVATAR 1",
         "TEXT The Hill Monsters around the abandoned village near Desert City may drop an Emerald",
         "OPTION-1 OK Thanks"
      };
      dlg=tm;
      break;
   }
}
if(dlg!=null)
   dialog(dlg);

script by Qonquer
_________________
Mike NPC Mike NPC
Sus
Vezi profilul utilizatorului Trimite mesaj privat Trimite un mesaj
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