Jump to content

sprited

Inactive Member
  • Posts

    2
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by sprited

  1. 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

×
×
  • 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.