Jump to content

Channels doesn't start achievement shop metin2


Recommended Posts

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

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 113

      Ulthar SF V2 (TMP4 Base)

    2. 2

      Feeding game source to LLM

    3. 0

      Target Information System

    4. 2

      Feeding game source to LLM

    5. 2

      anti exp explanation pls

    6. 2

      Feeding game source to LLM

    7. 2

      anti exp explanation pls

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.