副本捡东西喊喇叭给点卷(@青梅煮酒)

function processing_data(item_id, user, award_item_id, award_item_count, count)

const itemName = api_CItem_GetItemName(item_id);
if (award_item_id == 0 && count != 0) {

api_GameWorld_SendNotiPacketMessage("恭喜玩家<" +
"" + api_CUserCharacInfo_getCurCharacName(user) + "" +
">在地下城中获得了[" + itemName + "],奖励点券:☆" + count + "☆", 14);

api_recharge_cash_cera(user, count);
}

if (award_item_id != 0 && count == 0) {

api_GameWorld_SendNotiPacketMessage("恭喜玩家<" +
"" + api_CUserCharacInfo_getCurCharacName(user) + "" +
">在地下城中获得了[" + itemName + "],奖励:☆" + api_CItem_GetItemName(award_item_id) + "☆", 14);

api_CUser_AddItem(user, award_item_id, award_item_count);
}

if (award_item_id != 0 && count != 0) {

api_GameWorld_SendNotiPacketMessage("恭喜玩家<" +
"" + api_CUserCharacInfo_getCurCharacName(user) + "" +
">在地下城中获得了[" + itemName + "],奖励:☆" + api_CItem_GetItemName(award_item_id) + "☆,奖励点券:" + count, 14);

api_CUser_AddItem(user, award_item_id, award_item_count);

api_recharge_cash_cera(user, count);
}


CUser_send_itemspace(user, INVENTORY_TYPE_ITEM);

}

第二步:

if (game_event == 'Item+') {
var item_id = parseInt(group[15]);
var group_18 = parseInt(group[18]);
if (group_18 == 4) {

if (item_id == 100350577)
processing_data(100350577, user, 3257, 2500, 0);
}
}
}

补充:

* @param item_id 物品ID
* @param user 用户
* @param award_item_id 奖励物品ID
* @param award_item_count 奖励物品数量
* @param count 点卷数量
© 版权声明
THE END
喜欢就支持一下吧
点赞5 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容