ralke
(҂ ͠❛ ෴ ͡❛)ᕤ
- Joined
- Dec 17, 2011
- Messages
- 1,713
- Solutions
- 31
- Reaction score
- 965
- Location
- Santiago - Chile
- GitHub
- ralke23
- Twitch
- ralke23
Hi again! I've found this very old script to transform the lava tiles of poi into walkable ground.
But it is not working as it should
This is what should happen, minute 4:15

And this is what the script I attached to the thread does

Is far from working, this is a 50/50 request and support thread, hope someone can help me with it
Thanks in advance, regards!
LUA:
--- Script by J.Dre and small edit by Knight God
local t = {
{x = 1310, y = 811, z = 11, stackpos = 0}, ------1
{x = 1310, y = 812, z = 11, stackpos = 0}, ------2
{x = 1310, y = 813, z = 11, stackpos = 0}, ----10
{x = 1311, y = 811, z = 11, stackpos = 0},
{x = 1311, y = 812, z = 11, stackpos = 0},
{x = 1311, y = 813, z = 11, stackpos = 0}, ---- 11
{x = 1312, y = 808, z = 11, stackpos = 0},
{x = 1312, y = 809, z = 11, stackpos = 0},
{x = 1312, y = 810, z = 11, stackpos = 0},
{x = 1312, y = 811, z = 11, stackpos = 0},
{x = 1312, y = 812, z = 11, stackpos = 0}, -------- 12
{x = 1313, y = 808, z = 11, stackpos = 0},
{x = 1313, y = 809, z = 11, stackpos = 0},
{x = 1313, y = 810, z = 11, stackpos = 0},
{x = 1313, y = 811, z = 11, stackpos = 0},
{x = 1313, y = 812, z = 11, stackpos = 0},
{x = 1314, y = 807, z = 11, stackpos = 0},
{x = 1314, y = 808, z = 11, stackpos = 0},
{x = 1314, y = 809, z = 11, stackpos = 0},
{x = 1314, y = 810, z = 11, stackpos = 0},
{x = 1314, y = 811, z = 11, stackpos = 0},
{x = 1314, y = 812, z = 11, stackpos = 0},
{x = 1314, y = 813, z = 11, stackpos = 0},
{x = 1315, y = 807, z = 11, stackpos = 0},
{x = 1315, y = 808, z = 11, stackpos = 0},
{x = 1315, y = 809, z = 11, stackpos = 0},
{x = 1315, y = 810, z = 11, stackpos = 0},
{x = 1315, y = 811, z = 11, stackpos = 0},
{x = 1315, y = 812, z = 11, stackpos = 0},
{x = 1315, y = 813, z = 11, stackpos = 0},
{x = 1316, y = 807, z = 11, stackpos = 0},
{x = 1316, y = 808, z = 11, stackpos = 0},
{x = 1316, y = 809, z = 11, stackpos = 0},
{x = 1316, y = 810, z = 11, stackpos = 0},
{x = 1316, y = 811, z = 11, stackpos = 0},
{x = 1316, y = 812, z = 11, stackpos = 0},
{x = 1317, y = 807, z = 11, stackpos = 0},
{x = 1317, y = 808, z = 11, stackpos = 0},
{x = 1317, y = 809, z = 11, stackpos = 0},
{x = 1318, y = 807, z = 11, stackpos = 0},
{x = 1318, y = 808, z = 11, stackpos = 0},
{x = 1318, y = 809, z = 11, stackpos = 0},
{x = 1319, y = 807, z = 11, stackpos = 0},
{x = 1319, y = 808, z = 11, stackpos = 0}, ------- 44
{x = 1319, y = 809, z = 11, stackpos = 0}
}
local effect = {
[1] = {pos = {1310,811,11}, effect = {67}},
[2] = {pos = {1310,812,11}, effect = {67}},
[3] = {pos = {1310,813,11}, effect = {67}},
[4] = {pos = {1311,811,11}, effect = {67}},
[5] = {pos = {1311,812,11}, effect = {67}},
[6] = {pos = {1311,813,11}, effect = {67}},
[7] = {pos = {1312,808,11}, effect = {67}},
[8] = {pos = {1312,809,11}, effect = {67}},
[9] = {pos = {1312,810,11}, effect = {67}},
[10] = {pos = {1312,811,11}, effect = {67}},
[11] = {pos = {1312,812,11}, effect = {67}},
[12] = {pos = {1313,808,11}, effect = {67}},
[13] = {pos = {1313,809,11}, effect = {67}},
[14] = {pos = {1313,810,11}, effect = {67}},
[15] = {pos = {1313,811,11}, effect = {67}},
[16] = {pos = {1313,812,11}, effect = {67}},
[17] = {pos = {1314,807,11}, effect = {67}},
[18] = {pos = {1314,808,11}, effect = {67}},
[19] = {pos = {1314,809,11}, effect = {67}},
[20] = {pos = {1314,810,11}, effect = {67}},
[21] = {pos = {1314,811,11}, effect = {67}},
[22] = {pos = {1314,812,11}, effect = {67}},
[23] = {pos = {1314,813,11}, effect = {67}},
[24] = {pos = {1315,807,11}, effect = {67}},
[25] = {pos = {1315,808,11}, effect = {67}},
[26] = {pos = {1315,809,11}, effect = {67}},
[27] = {pos = {1315,810,11}, effect = {67}},
[28] = {pos = {1315,811,11}, effect = {67}},
[29] = {pos = {1315,812,11}, effect = {67}},
[30] = {pos = {1315,813,11}, effect = {67}},
[31] = {pos = {1316,807,11}, effect = {67}},
[32] = {pos = {1316,808,11}, effect = {67}},
[33] = {pos = {1316,809,11}, effect = {67}},
[34] = {pos = {1316,810,11}, effect = {67}},
[35] = {pos = {1316,811,11}, effect = {67}},
[36] = {pos = {1316,812,11}, effect = {67}},
[37] = {pos = {1317,807,11}, effect = {67}},
[38] = {pos = {1317,808,11}, effect = {67}},
[39] = {pos = {1317,809,11}, effect = {67}},
[40] = {pos = {1318,807,11}, effect = {67}},
[41] = {pos = {1318,808,11}, effect = {67}},
[42] = {pos = {1318,809,11}, effect = {67}},
[43] = {pos = {1319,807,11}, effect = {67}},
[44] = {pos = {1319,808,11}, effect = {67}},
[45] = {pos = {1319,809,11}, effect = {67}}
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(itemEx.uid == 1022 and itemEx.itemid == 1304) then
for i = 1, #t do
doCreateItem(5815, 1, t[i])
end
doTransformItem(itemEx.uid, 2256)
doSendMagicEffect(toPosition, CONST_ME_SMOKE)
end
for _, area in pairs(effect) do
doSendMagicEffect({x=area.pos[1],y=area.pos[2],z=area.pos[3]},area.effect[1])
end
return true
end
But it is not working as it should

This is what should happen, minute 4:15

And this is what the script I attached to the thread does

Is far from working, this is a 50/50 request and support thread, hope someone can help me with it

Thanks in advance, regards!