21
Spacer / zapisywanie zena jako uncompiled, compiled (kiedy ?)
« dnia: 2017-01-05, 11:28 »
może ktoś określić kiedy zapisujemy świat jako compiled, a kiedy nie? chyba jest jeszcze trzecia opcja ascii (?)
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.
func void Npc_ClearInventoryLoop (var c_npc npc, var int category)
{
//PrintScreen (ConcatStrings("Czyszczenie eq: ", npc.name), yposition,yaposition,"FONT_OLD_10_WHITE.TGA",timep); //dla testu
// print(ConcatStrings("Czyszczenie eq: ", npc.name);
var int amount;
amount = Npc_GetInvItemBySlot (npc, category, 0);
// print(ConcatStrings(item.name, IntToString(amount));
if (amount>0)
{
NPC_RemoveInvItems (npc, Hlp_GetInstanceID (item), amount);
Npc_ClearInventoryLoop(npc, category);
}
else if (category < INV_CAT_MAX-1)
{
//print(ConcatStrings("Zmiana kategorii na: ", IntToString(category+1));
Npc_ClearInventoryLoop(npc, category+1);
};
};
func void Npc_ClearInventory (var c_npc npc)
{
Npc_ClearInventoryLoop(npc, 0);
};
func void Npc_MoveInventoryLoop (var c_npc npc, var int category)
{
PrintScreen (ConcatStrings("Przenoszenie eq: ", npc.name), yposition,yaposition,"FONT_OLD_10_WHITE.TGA",timep); //dla testu
// print(ConcatStrings("Czyszczenie eq: ", npc.name);
var int amount;
amount = Npc_GetInvItemBySlot (npc, category, 0);
// print(ConcatStrings(item.name, IntToString(amount));
if (amount>0)
{
Mob_CreateItems ("CHEST", Hlp_GetInstanceID (item), amount) ;
Mob_CreateItems ( "OC_CHEST_LARGE2", Hlp_GetInstanceID (item), amount) ;
NPC_RemoveInvItems (npc, Hlp_GetInstanceID (item), amount);
Npc_MoveInventoryLoop(npc, category);
}
else if (category < INV_CAT_MAX-1)
{
//print(ConcatStrings("Zmiana kategorii na: ", IntToString(category+1));
Npc_MoveInventoryLoop(npc, category+1);
};
};
02:30 Fault: 0 Q: [end of stacktrace]
[w] 02:30 Warn: 0 Q: MEM_PtrToInst: ptr is NULL. Use MEM_NullToInst if that's what you want.
[i] 02:30 Info: 2 U: PAR: Adressing an empty Instance : OCMOBINTER.STATE .... <zParser_Symbol.cpp,#365>
[f] 02:30 Fault: 0 Q: [start of stacktrace]
[f] 02:30 Fault: 0 Q: MEMINT_HANDLEERROR(2, 'MEM_PtrToInst: ptr is NULL. Use MEM_NullToInst if that's what you want.') + 62 bytes
[f] 02:30 Fault: 0 Q: MEM_WARN('MEM_PtrToInst: ptr is NULL. Use MEM_NullToInst if that's what you want.') + 21 bytes
[f] 02:30 Fault: 0 Q: MEM_PTRTOINST(39690500) + 128 bytes
[f] 02:30 Fault: 0 Q: CHANGEMENUFONTCOLOR('MENU_ITEM_SEL_MISSIONS_FAILED', -3670016) + 38 bytes
[f] 02:30 Fault: 0 Q: _CHANGEFONTCOLORLOGITEM() + 105 bytes
[f] 02:30 Fault: 0 Q: FRAMEFUNCTIONS(24) + 104 bytes
[f] 02:30 Fault: 0 Q: FOREACHHNDL(7053, FRAMEFUNCTIONS) + 263 bytes
[f] 02:30 Fault: 0 Q: [UNKNOWN] +-2061478307 bytes