Traktorzysta 17 Posted July 5, 2016 Share Posted July 5, 2016 Hello i'm stuck with this (shopex.cpp): DWORD dwPrice = r_item.price; switch (shopTab.coinType) { case SHOP_COIN_TYPE_GOLD: if (it->second) // if other empire, price is triple dwPrice *= 1; if (ch->GetGold() < (int) dwPrice) { sys_log(1, "ShopEx::Buy : Not enough money : %s has %d, price %d", ch->GetName(), ch->GetGold(), dwPrice); return SHOP_SUBHEADER_GC_NOT_ENOUGH_MONEY; } break; case SHOP_COIN_TYPE_SECONDARY_COIN: { int count = ch->GetQuestFlag("ap"); if (count < dwPrice) { sys_log(1, "ShopEx::Buy : Not enough po : %s has %d, price %d", ch->GetName(), ch->GetQuestFlag("ap"), dwPrice); return SHOP_SUBHEADER_GC_NOT_ENOUGH_MONEY_EX; } } break; } Server notice me i'am not have secondary_coin. I'm sure i have "ap">dwprice Can someone help me with this? Link to comment Share on other sites More sharing options...
kodepiko 38 Posted July 5, 2016 Share Posted July 5, 2016 You need to include also quest name from where get flag "ap" for ex: ch->GetQuestFlag("achievements.ap"); achievements is QUEST name ap is flag inside this quest for ex: pc.setqf("ap", 500) 1 Link to comment Share on other sites More sharing options...
Traktorzysta 17 Posted July 6, 2016 Author Share Posted July 6, 2016 Yes of course... Thanks 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