したらばTOP ■掲示板に戻る■ 全部 1-100 最新50 | メール | |

戦国IXA ツールスレPart49

80名無しさん:2024/03/16(土) 22:00:48 ID:gP.Mv2OE
(続き)
$.ajax({
type: 'post',
url: '/union/dojo_learn_confirm.php',
data: obj_1,
beforeSend: xrwStatusText,
}).then(function(html) {
if (!$(html).find('img[alt="習得実行"]').attr('alt')) {
Info.ng('習得確認画面に遷移できませんでした[不明なエラー]');
Info.title('異常終了');
sleep(1).then(() => location.reload(false));
return false;
}
var user_point = parseInt($(html).find('span.money_b').text().trim().replace(/,|万/g, '')),
user_coin = parseInt($(html).find('span.money_c').text().trim().replace(/,|万/g, '')),
point = $(html).find('input[name="RadioGroup1"]:checked').attr('data-point'),
probability_type = $(html).find('input[name="RadioGroup1"]:checked').val();
if (user_point < point) {
Info.ng('銅銭がたりません');
Info.title('異常終了');
sleep(1).then(() => location.reload(false));
return false;
}
$.ajax({
type: 'post',
url: '/union/dojo_learn_execute.php',
data: {
lineup_id: 4,
learn_skill_id,
base_cid: data.card_id,
target_sort,
probability_type,
point,
user_point,
user_coin,
item_confirm_text: '',
},
beforeSend: xrwStatusText,
}).then(function(html) {
var result = $(html).find('img[alt^="習得"]').attr('alt');
if (result) {
Info.log(result + '!');
Info.log($(html).find('p.new_union_result_para').text().replace(/\n|\s|。/g, ''));
Info.title('終了');
}
else {
Info.ng('スキルを習得できませんでした[不明なエラー]');
Info.title('異常終了');
}
sleep(1).then(() => location.reload(false));
});
});
});
});
});
});
//道場スキル追加(常設のみ)ここまで

// 削除
$('#delete_synthesis_skill').on('click', function() {


新着レスの表示


名前: E-mail(省略可)

※書き込む際の注意事項はこちら

※画像アップローダーはこちら

(画像を表示できるのは「画像リンクのサムネイル表示」がオンの掲示板に限ります)

掲示板管理者へ連絡 無料レンタル掲示板