200 lines
No EOL
7.5 KiB
D
200 lines
No EOL
7.5 KiB
D
//**********************************************************************************
|
|
// Baupläne Schmieden
|
|
//**********************************************************************************
|
|
|
|
var int schmiedePlan[100];
|
|
|
|
// ********************************************************************************************************************** //
|
|
|
|
INSTANCE ItBp_1H_Degen (C_Item)
|
|
{
|
|
name = "Bauplan";
|
|
|
|
mainflag = ITEM_KAT_DOCS;
|
|
flags = ITEM_MISSION;
|
|
|
|
value = 50;
|
|
|
|
visual = "ItWr_Scroll_01.3DS"; //VARIATIONEN: ItWr_Scroll_01.3DS, ItWr_Scroll_02.3DS
|
|
material = MAT_LEATHER;
|
|
on_state[0] = UseItBpDegen;
|
|
scemeName = "MAP";
|
|
description = "Bauplan: Degen";
|
|
TEXT[2] = "Ein Bauplan für einen Degen";
|
|
TEXT[3] = NAME_Damage; COUNT[2] = Damage_VLKSchwert;
|
|
TEXT[4] = NAME_Dex_needed; COUNT[3] = Condition_VLKSchwert;
|
|
TEXT[5] = NAME_Value; COUNT[5] = value;
|
|
};
|
|
func void UseItBpDegen ()
|
|
{
|
|
var int nDocID;
|
|
|
|
nDocID = Doc_Create () ; // DocManager
|
|
Doc_SetPages ( nDocID, 1 ); //wieviel Pages
|
|
Doc_SetPage ( nDocID, 0, "letters.TGA" , 0 );
|
|
Doc_SetFont ( nDocID, 0, FONT_BookHeadline ); // -1 -> all pages
|
|
Doc_SetMargins ( nDocID, -1, 50, 50, 50, 50, 1 ); // 0 -> margins are in pixels
|
|
Doc_PrintLine ( nDocID, 0, "Bauplan: Degen" );
|
|
Doc_SetFont ( nDocID, 0, FONT_Book ); // -1 -> all pages
|
|
Doc_PrintLine ( nDocID, 0, "" );
|
|
Doc_PrintLines ( nDocID, 0, "Benätigtes Material:" );
|
|
Doc_PrintLine ( nDocID, 0, "");
|
|
Doc_PrintLines ( nDocID, 0, "1x Rohstahl (Eisen)");
|
|
Doc_PrintLines ( nDocID, 0, "");
|
|
Doc_PrintLines ( nDocID, 0, "Eine leichte, aber doch wirkungsvolle Waffe.");
|
|
|
|
Doc_Show ( nDocID );
|
|
if (learnedSmith && schmiedePlan[2] == 0) {
|
|
schmiedePlan[2] = 1;
|
|
PrintS("Neuer Bauplan: Degen");
|
|
} else if (!learnedSmith) {
|
|
PrintS("Ein schäner Bauplan! Leider kann ich damit nichts anfangen!");
|
|
};
|
|
};
|
|
|
|
// ********************************************************************************************************************** //
|
|
|
|
INSTANCE ItBp_2H_BauAxe (C_Item)
|
|
{
|
|
name = "Bauplan";
|
|
|
|
mainflag = ITEM_KAT_DOCS;
|
|
flags = ITEM_MISSION;
|
|
|
|
value = 50;
|
|
|
|
visual = "ItWr_Scroll_01.3DS"; //VARIATIONEN: ItWr_Scroll_01.3DS, ItWr_Scroll_02.3DS
|
|
material = MAT_LEATHER;
|
|
on_state[0] = UseItBp2HBauAxe;
|
|
scemeName = "MAP";
|
|
description = "Bauplan: Holfzälleraxt";
|
|
TEXT[2] = "Ein Bauplan für eine Holzfälleraxt";
|
|
TEXT[3] = NAME_Damage; COUNT[2] = Damage_Bau2hAxt;
|
|
TEXT[4] = NAME_Str_needed; COUNT[3] = Condition_Bau2hAxt;
|
|
TEXT[5] = NAME_Value; COUNT[5] = value;
|
|
};
|
|
func void UseItBp2HBauAxe ()
|
|
{
|
|
var int nDocID;
|
|
|
|
nDocID = Doc_Create () ; // DocManager
|
|
Doc_SetPages ( nDocID, 1 ); //wieviel Pages
|
|
Doc_SetPage ( nDocID, 0, "letters.TGA" , 0 );
|
|
Doc_SetFont ( nDocID, 0, FONT_BookHeadline ); // -1 -> all pages
|
|
Doc_SetMargins ( nDocID, -1, 50, 50, 50, 50, 1 ); // 0 -> margins are in pixels
|
|
Doc_PrintLine ( nDocID, 0, "Bauplan: Holzfälleraxt" );
|
|
Doc_SetFont ( nDocID, 0, FONT_Book ); // -1 -> all pages
|
|
Doc_PrintLine ( nDocID, 0, "" );
|
|
Doc_PrintLines ( nDocID, 0, "Benätigtes Material:" );
|
|
Doc_PrintLine ( nDocID, 0, "");
|
|
Doc_PrintLines ( nDocID, 0, "1x Rohstahl (Eisen)");
|
|
Doc_PrintLines ( nDocID, 0, "1x schwerer Ast");
|
|
Doc_PrintLines ( nDocID, 0, "");
|
|
Doc_PrintLines ( nDocID, 0, "Eine Axt, perfekt um Bäume zu fällen. Oder auch Gegner...");
|
|
|
|
Doc_Show ( nDocID );
|
|
if (learnedSmith && schmiedePlan[3] == 0) {
|
|
schmiedePlan[3] = 1;
|
|
PrintS("Neuer Bauplan: Holzfälleraxt");
|
|
} else if (!learnedSmith) {
|
|
PrintS("Ein schäner Bauplan! Leider kann ich damit nichts anfangen!");
|
|
};
|
|
};
|
|
|
|
// ********************************************************************************************************************** //
|
|
|
|
INSTANCE ItBp_2H_AxeL01 (C_Item)
|
|
{
|
|
name = "Bauplan";
|
|
|
|
mainflag = ITEM_KAT_DOCS;
|
|
flags = ITEM_MISSION;
|
|
|
|
value = 50;
|
|
|
|
visual = "ItWr_Scroll_01.3DS"; //VARIATIONEN: ItWr_Scroll_01.3DS, ItWr_Scroll_02.3DS
|
|
material = MAT_LEATHER;
|
|
on_state[0] = UseItBp2HAxeL01;
|
|
scemeName = "MAP";
|
|
description = "Bauplan: Spitzhacke";
|
|
TEXT[2] = "Ein Bauplan für eine Spitzhacke";
|
|
TEXT[3] = NAME_Damage; COUNT[2] = Damage_Spitzhacke;
|
|
TEXT[4] = NAME_Str_needed; COUNT[3] = Condition_Spitzhacke;
|
|
TEXT[5] = NAME_Value; COUNT[5] = value;
|
|
};
|
|
func void UseItBp2HAxeL01 ()
|
|
{
|
|
var int nDocID;
|
|
|
|
nDocID = Doc_Create () ; // DocManager
|
|
Doc_SetPages ( nDocID, 1 ); //wieviel Pages
|
|
Doc_SetPage ( nDocID, 0, "letters.TGA" , 0 );
|
|
Doc_SetFont ( nDocID, 0, FONT_BookHeadline ); // -1 -> all pages
|
|
Doc_SetMargins ( nDocID, -1, 50, 50, 50, 50, 1 ); // 0 -> margins are in pixels
|
|
Doc_PrintLine ( nDocID, 0, "Bauplan: Spitzhacke" );
|
|
Doc_SetFont ( nDocID, 0, FONT_Book ); // -1 -> all pages
|
|
Doc_PrintLine ( nDocID, 0, "" );
|
|
Doc_PrintLines ( nDocID, 0, "Benätigtes Material:" );
|
|
Doc_PrintLine ( nDocID, 0, "");
|
|
Doc_PrintLines ( nDocID, 0, "1x Rohstahl (Eisen)");
|
|
Doc_PrintLines ( nDocID, 0, "1x schwerer Ast");
|
|
Doc_PrintLines ( nDocID, 0, "");
|
|
Doc_PrintLines ( nDocID, 0, "Eine spitzhacke. Des Bergarbeiters liebstes Werkzeug.");
|
|
|
|
Doc_Show ( nDocID );
|
|
if (learnedSmith && schmiedePlan[4] == 0) {
|
|
schmiedePlan[4] = 1;
|
|
PrintS("Neuer Bauplan: Spitzhacke");
|
|
} else if (!learnedSmith) {
|
|
PrintS("Ein schäner Bauplan! Leider kann ich damit nichts anfangen!");
|
|
};
|
|
};
|
|
|
|
// ********************************************************************************************************************** //
|
|
|
|
INSTANCE ItBp_1H_Mil (C_Item)
|
|
{
|
|
name = "Bauplan";
|
|
|
|
mainflag = ITEM_KAT_DOCS;
|
|
flags = ITEM_MISSION;
|
|
|
|
value = 50;
|
|
|
|
visual = "ItWr_Scroll_01.3DS"; //VARIATIONEN: ItWr_Scroll_01.3DS, ItWr_Scroll_02.3DS
|
|
material = MAT_LEATHER;
|
|
on_state[0] = UseItBp1HMil;
|
|
scemeName = "MAP";
|
|
description = "Bauplan: Milizschwert";
|
|
TEXT[2] = "Ein Bauplan für ein Milizschwert";
|
|
TEXT[3] = NAME_Damage; COUNT[2] = Damage_MilSchwert;
|
|
TEXT[4] = NAME_Str_needed; COUNT[3] = Condition_MilSchwert;
|
|
TEXT[5] = NAME_Value; COUNT[5] = value;
|
|
};
|
|
func void UseItBp1HMil ()
|
|
{
|
|
var int nDocID;
|
|
|
|
nDocID = Doc_Create () ; // DocManager
|
|
Doc_SetPages ( nDocID, 1 ); //wieviel Pages
|
|
Doc_SetPage ( nDocID, 0, "letters.TGA" , 0 );
|
|
Doc_SetFont ( nDocID, 0, FONT_BookHeadline ); // -1 -> all pages
|
|
Doc_SetMargins ( nDocID, -1, 50, 50, 50, 50, 1 ); // 0 -> margins are in pixels
|
|
Doc_PrintLine ( nDocID, 0, "Bauplan: Spitzhacke" );
|
|
Doc_SetFont ( nDocID, 0, FONT_Book ); // -1 -> all pages
|
|
Doc_PrintLine ( nDocID, 0, "" );
|
|
Doc_PrintLines ( nDocID, 0, "Benätigtes Material:" );
|
|
Doc_PrintLine ( nDocID, 0, "");
|
|
Doc_PrintLines ( nDocID, 0, "2x Rohstahl (Eisen)");
|
|
//Doc_PrintLines ( nDocID, 0, "1x schwerer Ast");
|
|
Doc_PrintLines ( nDocID, 0, "");
|
|
Doc_PrintLines ( nDocID, 0, "Ein solides Schwert. Von einem geübten Kämpfer getragen, wird es zur tädlichen Waffe.");
|
|
|
|
Doc_Show ( nDocID );
|
|
if (learnedSmith && schmiedePlan[5] == 0) {
|
|
schmiedePlan[5] = 1;
|
|
PrintS("Neuer Bauplan: Milizschwert");
|
|
} else if (!learnedSmith) {
|
|
PrintS("Ein schäner Bauplan! Leider kann ich damit nichts anfangen!");
|
|
};
|
|
}; |