PDA

View Full Version : Skinnig Ice Cubes in BP



Lajked
11-23-2015, 10:46 PM
Like in Thread i need script to Skin Ice Cubes in Bp to get Ice mammoth.
any one can help me ?

HjugO
11-24-2015, 09:57 PM
Like in Thread i need script to Skin Ice Cubes in Bp to get Ice mammoth.
any one can help me ?


CONFIG = {
PRIMARY = 5908,
SECONDARY = 7441
}

Module.New("USING ITEM ON OTHER ITEM.", function(moduleObject)
local PRIMARY, SECONDARY, SPOTS = nil, nil, {}
for i = 0, 15 do
if not table.contains({"The", "Demonic", "Dead", "Slain", "Dissolved", "Remains", "Elemental"}, string.match(Container.New(i):Name(), "%a+")) then
for SPOT = Container.New(i):ItemCount() - 1, 0, -1 do
local tmp = Container.New(i):GetItemData(SPOT)
if (tmp.id == CONFIG.PRIMARY) then
PRIMARY = Container.New(i)
SPOTS[1] = SPOT
elseif (tmp.id == CONFIG.SECONDARY) then
SECONDARY = Container.New(i)
SPOTS[2] = SPOT
end
end
end
end
if (PRIMARY ~= nil and SECONDARY ~= nil) then
PRIMARY:UseItemWithContainerItem(SPOTS[1], SECONDARY:Index(), SPOTS[2])
end
moduleObject:Delay(1000)
end)
Dunno if works, coz not tested.

Lajked
11-24-2015, 11:05 PM
This Script doing well but different cubes has different IDs

Ice Cube ID - 7441
1st Cube ID - 7442
2nd Cube ID - 7444
3rd Cube ID - 7445

If you have luck and 3rd try dont destroy Ice you will get Ice Mammoth

Can you rework this script ?

Stusse
11-24-2015, 11:26 PM
Better sell those for 250gp ea, full profit.

/Stusse

HjugO
11-25-2015, 01:10 AM
This Script doing well but different cubes has different IDs

Ice Cube ID - 7441
1st Cube ID - 7442
2nd Cube ID - 7444
3rd Cube ID - 7445

If you have luck and 3rd try dont destroy Ice you will get Ice Mammoth

Can you rework this script ?


CONFIG = {
PRIMARY = 5908,
SECONDARY = {7441, 7442, 7444, 7445}
}

Module.New("USING ITEM ON OTHER ITEM.", function(moduleObject)
local PRIMARY, SECONDARY, SPOTS = nil, nil, {}
for i = 0, 15 do
local cont = Container.New(i)
if not table.contains({"The", "Demonic", "Dead", "Slain", "Dissolved", "Remains", "Elemental"}, string.match(cont:Name(), "%a+")) then
for SPOT = cont:ItemCount() - 1, 0, -1 do
local tmp = cont:GetItemData(SPOT)
if (tmp.id == CONFIG.PRIMARY) then
PRIMARY = cont
SPOTS[1] = SPOT
elseif (table.contains(CONFIG.SECONDARY, tmp.id)) then
SECONDARY = cont
SPOTS[2] = SPOT
end
end
end
end
if (PRIMARY ~= nil and SECONDARY ~= nil) then
PRIMARY:UseItemWithContainerItem(SPOTS[1], SECONDARY:Index(), SPOTS[2])
end
moduleObject:Delay(1000)
end)

Lajked
11-30-2015, 03:56 PM
CONFIG = {
PRIMARY = 5908,
SECONDARY = {7441, 7442, 7444, 7445}
}

Module.New("USING ITEM ON OTHER ITEM.", function(moduleObject)
local PRIMARY, SECONDARY, SPOTS = nil, nil, {}
for i = 0, 15 do
local cont = Container.New(i)
if not table.contains({"The", "Demonic", "Dead", "Slain", "Dissolved", "Remains", "Elemental"}, string.match(cont:Name(), "%a+")) then
for SPOT = cont:ItemCount() - 1, 0, -1 do
local tmp = cont:GetItemData(SPOT)
if (tmp.id == CONFIG.PRIMARY) then
PRIMARY = cont
SPOTS[1] = SPOT
elseif (table.contains(CONFIG.SECONDARY, tmp.id)) then
SECONDARY = cont
SPOTS[2] = SPOT
end
end
end
end
if (PRIMARY ~= nil and SECONDARY ~= nil) then
PRIMARY:UseItemWithContainerItem(SPOTS[1], SECONDARY:Index(), SPOTS[2])
end
moduleObject:Delay(1000)
end)

Men you are best thanks a lot :):):):):)