sprited 0 Posted October 25, 2018 Share Posted October 25, 2018 Hi, i have problem with start channels. I just add achievement shop shopEx.cpp case SHOP_COIN_TYPE_SECONDARY_COIN: { int count = ch->CountSpecifyTypeItem(ITEM_SECONDARY_COIN); if (count < dwPrice) { sys_log(1, "ShopEx::Buy : Not enough myeongdojun : %s has %d, price %d", ch->GetName(), count, dwPrice); return SHOP_SUBHEADER_GC_NOT_ENOUGH_MONEY_EX; } } break; } i change case SHOP_COIN_TYPE_SECONDARY_COIN: { int count = ch->GetQuestFlag("achiev.points"); if (int(count) < dwPrice) { return SHOP_SUBHEADER_GC_NOT_ENOUGH_MONEY_EX; } } break; } case SHOP_COIN_TYPE_SECONDARY_COIN: ch->RemoveSpecifyTypeItem(ITEM_SECONDARY_COIN, dwPrice); break; } i change case SHOP_COIN_TYPE_SECONDARY_COIN: ch->SetQuestFlag("achiev.points", ch->GetQuestFlag("achiev.points")-dwPrice); ch->ChatPacket(CHAT_TYPE_COMMAND, "AP %d", ch->GetQuestFlag("achiev.points")); break; } my file shop_table_ex.txt looks like Group ShopNPC { #--# NPC Group 1 20031 ap } Group ap { Vnum 50 Name ap CoinType SecondaryCoin Group Items { #--# Vnum Count Price 1 10 1 10 2 8004 50 20 3 39 1 22 4 71051 99 27 5 71052 19 35 } } And when i start ch, systerr give me this info SYSERR: Oct 25 01:11:57 :: pid_init: Start of pid: 83157 SYSERR: Oct 25 01:11:58 :: SetShopItems: not enough shop window SYSERR: Oct 25 01:11:58 :: SetShopItems: not enough shop window SYSERR: Oct 25 01:11:58 :: SetShopItems: not enough shop window SYSERR: Oct 25 01:11:58 :: ReadShopTableEx: 20031 cannot have both original shop and extended shop SYSERR: Oct 25 01:11:58 :: Boot: shop table Initialize error SYSERR: Oct 25 01:11:58 :: pid_deinit: End of pid any ideas? thanks, sprited Link to comment Share on other sites More sharing options...
Active+ Member Abel(Tiger) 1200 Posted October 25, 2018 Active+ Member Share Posted October 25, 2018 (edited) Which part is not clear ? Edited August 26, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now