LucasFerraz
Systems Analyst
I made this script but it's bugged. I need help here.
Explaining:
pos1 = Player go if have this storages {49870, 49871, 49872, 49873}.
pos2 = Player go if do NOT have the storages.
Kapos1~kapos16 = Walls
When player pass in teleport, the removed walls must apears again (Only removed walls)
My script is creating lot of walls in same place
Image
Explaining:
pos1 = Player go if have this storages {49870, 49871, 49872, 49873}.
pos2 = Player go if do NOT have the storages.
Kapos1~kapos16 = Walls
When player pass in teleport, the removed walls must apears again (Only removed walls)
My script is creating lot of walls in same place
LUA:
local pos1 = {x=32961, y=32277, z=10}
local pos2 = {x=32880, y=32289, z=10}
local kapos1 = {x=32877, y=32272, z=10}
local kapos2 = {x=32878, y=32272, z=10}
local kapos3 = {x=32879, y=32272, z=10}
local kapos4 = {x=32880, y=32272, z=10}
local kapos5 = {x=32881, y=32272, z=10}
local kapos6 = {x=32877, y=32273, z=10}
local kapos7 = {x=32877, y=32274, z=10}
local kapos8 = {x=32877, y=32275, z=10}
local kapos9 = {x=32877, y=32276, z=10}
local kapos10 = {x=32878, y=32276, z=10}
local kapos11 = {x=32879, y=32276, z=10}
local kapos12 = {x=32880, y=32276, z=10}
local kapos13 = {x=32881, y=32276, z=10}
local kapos14 = {x=32881, y=32273, z=10}
local kapos15 = {x=32881, y=32274, z=10}
local kapos16 = {x=32881, y=32275, z=10}
local storages = {49870, 49871, 49872, 49873}
function onStepIn(cid, item, pos)
for i = 1,#storages do
if getPlayerStorageValue(cid, storages[i]) >= 1 then
doTeleportThing(cid, pos1)
doCreateItem(1027,1,kapos1)
doCreateItem(1026,1,kapos2)
doCreateItem(1026,1,kapos3)
doCreateItem(1026,1,kapos4)
doCreateItem(1026,1,kapos5)
doCreateItem(1025,1,kapos6)
doCreateItem(1025,1,kapos7)
doCreateItem(1025,1,kapos8)
doCreateItem(1025,1,kapos9)
doCreateItem(1026,1,kapos10)
doCreateItem(1026,1,kapos11)
doCreateItem(1026,1,kapos12)
doCreateItem(1029,1,kapos13)
doCreateItem(1025,1,kapos14)
doCreateItem(1025,1,kapos15)
doCreateItem(1025,1,kapos16)
else
doTeleportThing(cid, pos2)
end
end
return true
end
Image