Files
2026-06-01 12:46:52 +02:00

68 lines
1.6 KiB
Lua

function On_Buy( item_id , item_handle )
--cprint("log")
--cprint("item_id = " .. item_id)
--cprint("item_handle = " .. item_handle)
--cprint("item name = " .. get_item_name(item_handle))
--Check Item noel
item_tab_id = {
800001009,800001013,800001004,800001017,
800001000,800001007,800001014,800001010,
800001012,800001016,800001008,800001003,
800001002,800001006,800001011,800001015,
800001030,800001031,800001018,800001020,800001023,800001027,800001029,
800001019,800001021,800001022,800001024,800001025,800001026,800001028,
}
if is_in_table( item_tab_id , item_id ) == true then
id_noel_2022( item_id , item_handle )
end
if item_id == 800001035 then
identify_item(item_handle , 3108 ) --3108 = Basic Skin pet
end
end
function id_noel_2022( item_id , item_handle )
rdm_option = {3103,3100,3102,3101,3104,3106}
item_tab_id = {}
--body = 3103
item_tab_id[3103] = {800001009,800001013,800001004,800001017}
--casque = 3100
item_tab_id[3100] = {800001000,800001007,800001014,800001010,800001043}
--gant 3102
item_tab_id[3102] = {800001012,800001016,800001008,800001003}
--bottes 3101
item_tab_id[3101] = {800001002,800001006,800001011,800001015}
--1main = 3104
item_tab_id[3104] = {800001030,800001031,800001018,800001020,800001023,800001027,800001029}
--2main = 3106
item_tab_id[3106] = {800001019,800001021,800001022,800001024,800001025,800001026,800001028}
for i = 1 , table.getn(rdm_option) do
temp_table = item_tab_id[ rdm_option[i] ]
if is_in_table( temp_table , item_id ) == true then
identify_item(item_handle , rdm_option[i] ) --501 = stat cashop
end
end
end