1
Czas Zapłaty / Czas Zapłaty - premiera!
« dnia: 2014-02-13, 10:01 »
Jak tam prace nad patchem? github coś ucichło ostatnio , dalej trwają prace?
Ta sekcja pozwala Ci zobaczyć wszystkie wiadomości wysłane przez tego użytkownika. Zwróć uwagę, że możesz widzieć tylko wiadomości wysłane w działach do których masz aktualnie dostęp.
tab = "";
func void DIA_Questob_ST_Wybor1_1_1()
{
a = ConcatStrings(a, "A");
};
func void DIA_Questob_ST_Wybor3_1()
{
a = ConcatStrings(a, "B");
};
func void DIA_Questob_ST_Wybor3_4 ()
{
a = ConcatStrings(a, "C");
};
func void DIA_Questob_ST_Wybor3_5 ()
{
a = ConcatStrings(a, "D");
};
func void DIA_Questob_ST_Wybor1_1_2()
{
Info_ClearChoices (DIA_Questob_ST);
};
FUNC VOID UseCzystaKsiega()
{
tab = ConcatStrings(tab, a);
var int nDocID;
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_PrintLine ( nDocID, 0, "");
Doc_PrintLine ( nDocID, 0, "");
Doc_SetMargins ( nDocID, 0, 275, 20, 30, 20, 1 ); // 0 -> margins are in pixels
Doc_PrintLine ( nDocID, 0, " " );
Doc_SetFont ( nDocID, -1, "font_10_book.TGA" ); // -1 -> all pages
Doc_PrintLine ( nDocID, 0, "");
Doc_PrintLine ( nDocID, 0, "");
Doc_PrintLines ( nDocID, 0, tab);
Doc_PrintLines ( 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, "");
Doc_PrintLine ( nDocID, 1, "");
Doc_PrintLine ( nDocID, 1, "");
Doc_PrintLine ( nDocID, 1, "");
Doc_Show ( nDocID );
};
Doc_PrintLines ( nDocID, 1, tab); // Doc_PrintLines ( nDocID, 0, tab)
Doc_PrintLines ( nDocID, 0, "");
//2.Seite
Doc_SetMargins ( nDocID, -1, 30, 20, 275, 20, 1
func void EVT_UpdateStatus_FocusName() {
const int zCView__SetFontColor = 7339392; //0x7A9910
var int col;
var int att;
var oCNpc her; her = Hlp_GetNpc(hero);
if(Hlp_Is_oCNpc(her.focus_vob)) {
var oCNpc oth; oth = MEM_PtrToInst(her.focus_vob);
att = oth.attitude;
if(att == ATT_FRIENDLY) {
col = RGBA(0,255,0,255); //Grün
}
else if(att == ATT_ANGRY) {
col = RGBA(255,180,0,255); //Orange
}
else if(att == ATT_HOSTILE) {
col = RGBA(255,0,0,255); //Rot
}
else if(att == ATT_NEUTRAL) {
col = RGBA(255,255,255,255); //Weiß
};
}
else {
col = RGBA(255,255,255,255); //Weiß
};
var int ptr; ptr = MEM_Alloc(4);
MEM_WriteInt(ptr, col);
CALL_IntParam(ptr);
CALL__thiscall(MEM_ReadInt(screen_offset), zCView__SetFontColor);
MEM_Free(ptr);
};
I wywołuje ją z Ticktoka
func void FocusColor() {
var oCNpc her; her = Hlp_GetNpc (hero);
var int ptr;
var oCMobLockable Zamek; Zamek = MEM_PtrToInst (her.focus_vob);
var int col;
var int Is;
const int zCView__SetFontColor = 7339392; //0x6FFD80
PrintScreen (inttostring(is), 25,50,"FONT_OLD_20_WHITE.TGA",1);
if (!her.focus_vob) {
if (is == 1)
{
is = 0;
PrintScreen (inttostring(ptr), 50,50,"FONT_OLD_20_WHITE.TGA",1);
col = RGBA(255,255,255,255); //Weiß
ptr = MEM_Alloc(4);
MEM_WriteInt(ptr, col);
CALL_IntParam(ptr);
CALL__thiscall(MEM_ReadInt(screen_offset), zCView__SetFontColor);
MEM_Free(ptr);
};
} else {
if (Hlp_Is_oCMobLockable(her.focus_vob))
{
if (Zamek.bitfield & oCMobLockable_bitfield_locked)
{
col = RGBA(255,180,0,255); //Orange
} else {
col = RGBA(255,255,255,255); //Weiß
};
Is = 1;
ptr = MEM_Alloc(4);
MEM_WriteInt(ptr, col);
CALL_IntParam(ptr);
CALL__thiscall(MEM_ReadInt(screen_offset), zCView__SetFontColor);
MEM_Free(ptr);
};
};
};
func void ChestRename() {
var oCMob Mob;
var oCMobContainer Skrzynia;
var oCNpc her; her = Hlp_GetNpc(pc_hero);
var string newName; newName = "Pusta Skrzynia";
var int NameSymbIndex;
var string OldName; OldName = "Skrzynia";
if(her.focus_vob)
{
if(MEM_ReadInt(her.focus_vob)==oCMobContainer_vtbl)
{
MEM_AssignContentInst (Mob,her.focus_vob);
MEM_AssignContentInst (Skrzynia,her.focus_vob);
if (MEM_ReadInt(MEM_InstToPtr(Skrzynia)+604) == 0)
{
MEM_ReinitParser();
NameSymbIndex = MEM_FindParserSymbol("CHESTRENAME.NEWNAME"); // NAME OF THE VARIABLE!
Mob.focusNameIndex = NameSymbIndex;
} else {
MEM_ReinitParser();
NameSymbIndex = MEM_FindParserSymbol("CHESTRENAME.OLDNAME"); // NAME OF THE VARIABLE!
Mob.focusNameIndex = NameSymbIndex;
};
};
};
};