Skrypt książki 3744 7

O temacie

Autor Agrael

Zaczęty 14.10.2009 roku

Wyświetleń 3744

Odpowiedzi 7

Agrael

Agrael

Użytkownicy
posty85
  • Użytkownicy

Agrael

Skrypt książki
2009-10-14, 20:29(Ostatnia zmiana: 2009-10-14, 20:33)
Elo chce zrobić w skryptach tak żeby po eee zjedzeniu książki wyświetlił się komunikat.Tylko nie wiem gdzie sie komunikaty te wpisać.Chce zacząć od czegoś łatwego.
 

inż. Avallach

inż. Avallach

Administrator
posty7661
Propsy5239
NagrodyV
ProfesjaProgramista
  • Administrator

inż. Avallach
Administrator

Skrypt książki
#1 2009-10-14, 20:35(Ostatnia zmiana: 2009-10-14, 20:44)
o_o  

INSTANCE jadalna_ksiazka (C_Item)
{
name = "Stara księga";

mainflag = ITEM_KAT_DOCS;
flags = ITEM_MULTI;

value = 10;

visual = "ItWr_Book_02_03.3ds";
material = MAT_LEATHER;
scemeName = "FOOD";
on_state[0] = zjadam_ksiazke;

description = name;
TEXT[1] = "Wygląda na całkiem smaczną";
TEXT[5] = NAME_Value; COUNT[5] = value;
};

func void zjadam_ksiazke()
{
PrintScreen("TU WSTAW SWÓJ GENIALNY TEKST",-1,-1,"font_old_20_white.tga",3);
};

@ down
Ha, ja byłem pierwszy!   :lol2:

@takedown
Nie jestem pewien czy można wstawiać kropki do nazw zmiennych. Na wszelki wypadek lepiej unikać tam wszelkich dziwnych znaczków.

heniu

heniu

Użytkownicy
posty143
Propsy1
  • Użytkownicy

heniu

Skrypt książki
#2 2009-10-14, 20:36(Ostatnia zmiana: 2009-10-14, 20:38)
Pod skryptem twojego fooda wklep coś takiego
INSTANCE ItFo_np.Orange (C_Item)
{
   name = "książka?";

   mainflag = ITEM_KAT_FOOD;
   flags = ITEM_MULTI;

   value = 30;

   visual = "ItFo_Apple.3DS"; 3ds książki
   material = MAT_LEATHER;
   scemeName = "FOOD";
   on_state[0] = Use_Ksiązka; :lol2:

   description   = "";

   TEXT[1] = NAME_Bonus_HP;
   COUNT[1] = 10;
   TEXT[5] = NAME_Value;
   COUNT[5] = 30;
};


 FUNC VOID Use_np.Orange()
   {

      Npc_ChangeAttribute (self, ATR_HITPOINTS, 10);

      const int np.Orange_Bonus = 0;

      if (Npc_IsPlayer (self))
      {

         np.Orange_Bonus = np.Orange_Bonus + 1;

         if (np.Orange_Bonus == 1)
         {
            PrintScreen ("O kurwa", -1, 25, _STR_FONT_ONSCREEN, 3 );
         };

      };

   };
w miejscach np orange wpisz nazwę twego np fooda w O kurwa napisz co ma się wyświetlać i zapisz o_o
 
gmpa.com.pl

feodaron.pl

Zkirtaem

Zkirtaem

Moderator
Mięso
posty2171
Propsy1689
ProfesjaGracz
  • Moderator
  • Mięso

Zkirtaem
Moderator

Skrypt książki
#3 2009-10-14, 20:36(Ostatnia zmiana: 2009-10-14, 20:37)
eee "print screen". Poszukaj w skryptach książek dających umiejętności, na przykład pozyskiwania żądeł krwiopijców. Tam w skrypcie będzie coś w stylu "print screen (20,20, "Nauczyłeś się ...itd")". Nie jestem pewien, czy dokładnie tak to się zwało.

@up. O, ktoś mnie uprzedził. I jednak zwało się printscreen.
 

Agrael

Agrael

Użytkownicy
posty85
  • Użytkownicy

Agrael

Skrypt książki
#4 2009-10-14, 20:38(Ostatnia zmiana: 2009-10-14, 20:55)
A to skrypt:

/********************************************************************************
**********/
INSTANCE ItWr_Book_fire_01(C_Item)
{   
   name                =   "Moja pierwsza książka";
   
   mainflag             =   ITEM_KAT_FOOD;
   flags                =   ITEM_MULTI;

   value                =   30;

   visual                =   "ItFo_Apple.3ds";
   material             =   MAT_LEATHER;

   scemeName            =   "FOOD";   
   description         = "Der erste Kreis der Magie";
   
   TEXT[5]            = NAME_Value;
   COUNT[5]         = value;
   on_state[0]         =   Use_ksiazke;
};

   FUNC VOID Use_Book_Fire_01()
   {  
      var int nDocID;
      var string Text;
      Text = ConcatStrings (NAME_Manakosten,IntToString (SPL_SENDCAST_LIGHT));
      var string Text_1;
      Text_1 = ConcatStrings (NAME_Manakosten,IntToString (SPL_SENDCAST_THUNDERBOLT));
      var string Text_2;
      Text_2 = ConcatStrings (NAME_Manakosten,IntToString (SPL_SENDCAST_FIREBOLT));
      nDocID =    Doc_Create      ()           ;                        // DocManager
               Doc_SetPages   ( nDocID,  2 );                         //wieviel Pages

               Doc_SetPage    ( nDocID,  0, "Book_Mage_L.tga",    0       );
               Doc_SetPage    ( nDocID,  1, "Book_Mage_R.tga",   0      );
               
               //1.Seite
                 
                 Doc_SetFont    ( nDocID, -1, "font_15_book.tga"               );    // -1 -> all pages
                 Doc_SetMargins   ( nDocID,  0,  275, 20, 30, 20, 1         );  //  0 -> margins are in pixels
               Doc_PrintLine   ( nDocID,  0, "Erster Kreis"         );
               Doc_PrintLine   ( nDocID,  0, "---------------");
               Doc_SetFont    ( nDocID, -1, "font_10_book.TGA"               );    // -1 -> all pages
               Doc_PrintLine   ( nDocID,  0, "");
               Doc_PrintLines   ( nDocID,  0, "Als die Götter den Menschen die Fähigkeit zur Magie schenkten, schenkten sie ihnen auch das Wissen magische Runen herzustellen. Die Diener der Götter haben die ehrenvolle Aufgabe übernommen, diese Artefakte göttlicher Macht zu erschaffen und zu benutzen, wobei der Kreis des Magiers bestimmt, welche Zauber er in der Lage ist zu verstehen und anzuwenden. ");
               
            

               //2.Seite
               Doc_SetMargins   ( nDocID, -1, 30, 20, 275, 20, 1         );  //  0 -> margins are in pixels (Position des Textes von den Ränder des TGAs aus, links,oben,rechts,unten)
               Doc_PrintLine   ( nDocID,  1, "");
               Doc_PrintLine   ( nDocID,  1,  "Licht" );
               Doc_PrintLine   ( nDocID,  1, "---------------");
               Doc_PrintLines   ( nDocID,  1, "Das erste Geschenk Innos an die Menschen.Eine hell strahlende Kugel wird über dem Magier erzeugt.");
               Doc_PrintLine   ( nDocID,  1,  Text);
               Doc_PrintLine   ( nDocID,  1,  "" );
               Doc_PrintLine   ( nDocID,  1, "Eispfeil");
               Doc_PrintLine   ( nDocID,  1, "---------------");
               Doc_PrintLines   ( nDocID,  1, "Ein Geschoss aus magischer Energie.");
               Doc_PrintLine   ( nDocID,  1,  Text_1);
               Doc_PrintLine   ( nDocID,  1, "");
               Doc_PrintLine   ( nDocID,  1, "Feuerpfeil");
               Doc_PrintLine   ( nDocID,  1, "---------------");
               Doc_PrintLines   ( nDocID,  1, "Ein Geschoss aus magischem Feuer.");
               Doc_PrintLine   ( nDocID,  1,  Text_2);
               Doc_Show      ( nDocID );
   };

A to 2 skrypt z napisami i nie ma gwiazdek bo nie bylo ich

INSTANCE ItWr_Bloodfly_01(C_Item)
{   
   name                =   "Moja pierwsza książka z napisami xD";
   
   mainflag             =   ITEM_KAT_FOOD;
   flags                =   ITEM_MULTI;

   value                =   30;

   visual                =   "ItFo_Apple.3ds";
   material             =   MAT_LEATHER;

   scemeName            =   "FOOD";   
   description         = "Die Blutfliegen";
   
   TEXT[5]            = NAME_Value;
   COUNT[5]         = value;
   on_state[0]            =   UseItWr_Bloodfly_01;
};

   FUNC VOID UseItWr_Bloodfly_01()
   {  
      var int nDocID;
      
      nDocID =    Doc_Create      ()           ;                        // DocManager
               Doc_SetPages   ( nDocID,  2 );                         //wieviel Pages

               Doc_SetPage    ( nDocID,  0, "Book_Brown_L.tga",    0       );
               Doc_SetPage    ( nDocID,  1, "Book_Brown_R.tga",   0      );
               
               //1.Seite
                 
                 Doc_SetFont    ( nDocID, -1, "font_15_book.tga"               );    // -1 -> all pages
                Doc_SetMargins   ( nDocID,  0,  275, 20, 30, 20, 1         );  //  0 -> margins are in pixels
                Doc_PrintLine   ( nDocID,  0, "Blutfliegen");
                 Doc_PrintLine   ( nDocID,  0, "");
               Doc_PrintLine   ( nDocID,  0, " "         );
               Doc_SetFont    ( nDocID, -1, "font_10_book.TGA"               );    // -1 -> all pages
               Doc_PrintLine   ( nDocID,  0, "Über die Fliegen");
               Doc_PrintLine   ( nDocID,  0, "");
               Doc_PrintLines   ( nDocID,  0, "Dort aber , wo das Erdreich feucht und die Luft schwül ist, werden die Fliegen angelockt vom rinnenden Schweiß aller Kreaturen.Mit ihrem Stachel töten sie ihre Opfer und laben sich an ihrem Blut. ");
               Doc_PrintLine   ( nDocID,  0, "");
               

               //2.Seite
               Doc_SetMargins   ( nDocID, -1, 30, 20, 275, 20, 1         );  //  0 -> margins are in pixels (Position des Textes von den Ränder des TGAs aus, links,oben,rechts,unten)
               Doc_PrintLine   ( nDocID,  1, "");
               Doc_PrintLine   ( nDocID,  1, "");
               Doc_PrintLine   ( nDocID,  1, "");
               Doc_PrintLine   ( nDocID,  1, "");
               Doc_PrintLines   ( nDocID,  1, "Den Stachel zu entnehmen ist eine Kunst die von vielen Sumpfjägern beherrscht wird.Schneide tief in den Unterleib, um den Stachel herum mit gezackten Schnitten und entferne vorsichtig den Stachel mitsamt dem umgebenen Gewebe.Lasse ihn ausbluten und streife das ungeniessbare Fleisch ab.");   
               Doc_PrintLine   ( nDocID,  1, "");
               Doc_PrintLine   ( nDocID,  1, "");
               Doc_Show      ( nDocID );
               
               if Knows_GetBFSting ==  FALSE
               {
               Knows_GetBFSting = TRUE;
               Log_CreateTopic (GE_AnimalTrophies,LOG_NOTE);
               B_LogEntry (GE_AnimalTrophies,"Wissen über Stachel entfernen - Blutfliegen");   
               PrintScreen   ("O kurwa psy ja pierdole-policja", -1,25,"STR_FONT_ONSCREEN, ",2);
               };
   };
 

heniu

heniu

Użytkownicy
posty143
Propsy1
  • Użytkownicy
to nie jest książka to jest Apple
 
gmpa.com.pl

feodaron.pl

inż. Avallach

inż. Avallach

Administrator
posty7661
Propsy5239
NagrodyV
ProfesjaProgramista
  • Administrator
Ty chcesz  mieć książkę którą da się i czytać i zżerać? Jak wystarczy ci samo zjadanie to zwyczajnie skopiuj zaproponowany przeze mnie skrypt, jest już gotowy do działania w przeciwieństwie do tego napisanego przez Takedowna.

Agrael

Agrael

Użytkownicy
posty85
  • Użytkownicy

Agrael

Skrypt książki
#7 2009-10-14, 20:56(Ostatnia zmiana: 2009-10-14, 21:05)
Ej mam skrypt działający ale tam jest po niemiecku i nie pisze ten napis co chciałem miec:( sprawdzałem skrypt w mudball a w normalnym jest usuwanie zadlów krwiopijców
 


0 użytkowników i 1 Gość przegląda ten wątek.
0 użytkowników
Do góry