Un mic sistem de auto pickup - cu config.
Este simplu, si functional!
*Poze / Video:
*Link download / Code:
Zeci de resurse Metin2 Premium - exclusive și 100% funcționale începând cu 15.99€!.
Vezi resursele Cumpără premium
Scrie clar că n ai definitflorin2metin scrie: ↑ Nu merge
char.cpp:7272:20: error: use of undeclared identifier 'AFFECT_PICKUP_ENABLE'
7272 | return FindAffect(AFFECT_PICKUP_ENABLE) != NULL;
| ^~~~~~~~~~~~~~~~~~~~
1 error generated.
gmake: *** [Makefile:103: OBJDIR/char.o] Error 1
AFFECT_QUEST_START_IDX = 1000,#ifdef AUTO_PICKUP_RENEWAL
AFFECT_AUTO_PICKUP = 666,
#endifAFF_BITS_MAX#ifdef AUTO_PICKUP_RENEWAL
AFF_PICKUP,
#endifflorin2metin scrie: ↑ Nu merge
char.cpp:7272:20: error: use of undeclared identifier 'AFFECT_PICKUP_ENABLE'
7272 | return FindAffect(AFFECT_PICKUP_ENABLE) != NULL;
| ^~~~~~~~~~~~~~~~~~~~
1 error generated.
gmake: *** [Makefile:103: OBJDIR/char.o] Error 1
#ifdef AUTO_PICKUP_RENEWAL
bool CHARACTER::IsActiveAutoPickup()
{
return FindAffect(AFFECT_AUTO_PICKUP) != NULL;
}
#endif#ifdef AUTO_PICKUP_RENEWAL
PyModule_AddIntConstant(poModule, "NEW_AFFECT_AUTO_PICKUP", CInstanceBase::NEW_AFFECT_AUTO_PICKUP);
#endif def __OnClickAutoPick(self):
net.SendChatPacket("/auto_pickup 1")
chat.AppendChat(chat.CHAT_TYPE_INFO, "Sistemul automat de colectare a articolelor a fost activat.")
self.AutoPickButtonList[0].Down()
self.AutoPickButtonList[1].SetUp()
def __OffClickAutoPick(self):
net.SendChatPacket("/auto_pickup 0")
chat.AppendChat(chat.CHAT_TYPE_INFO, "Sistemul automat de colectare a articolelor a fost dezactivat.")
self.AutoPickButtonList[0].SetUp()
self.AutoPickButtonList[1].Down()#ifdef AUTO_PICKUP_RENEWAL
if (ch->IsActiveAutoPickup())
{
ch->AutoGiveItemRenewal(item);
continue;
}
#endifUltima oară modificat 22 Mar 2026, 13:14 de către [HF]White, modificat 1 dată în total.
Motiv: adaugat code
Trebuie să fii membru pentru a răspunde
Membrii pot crea subiecte noi și pot descărca resurse Metin2 Gratuit!
Te poți înregistra sau conecta rapid utilizând contul tău de Discord, Github sau Google.
Utilizatori ce navighează pe acest forum: Enciu, mrpower8098 și 5 vizitatori