• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Problem with snow

ligus

New Member
Joined
Apr 26, 2010
Messages
253
Reaction score
0
Heey, I have problem with map. When I start server snow tiles are bugged:
snow.jpg


Could anyone tell me how repair it to normal snow tiles? :)
 
Hmm I'm not sure it's an issue with my script but it could be?

try this
LUA:
function transformBack(parameters)
        parameters._position.stackpos = 0
        doTransformItem(getThingfromPos(parameters._position).uid, parameters.oldItemID)
        return TRUE
end
 
function onStepOut(cid, item, position, fromPosition)
        if isPlayerGhost(cid) == TRUE then
                return TRUE
        end

	position.stackpos = 0
        local parameters = {oldItemID = item.itemid, _position = position}
	tile = getThingfromPos(position)
        addEvent(transformBack, 30000, parameters)
        doTransformItem(tile.uid, 6598)
        return TRUE
end
 
If you check in RME you will see that not all the snow on the ground got ID 670, I just took the Raw ID 670 and put it all over the place, then I took away this from the randomization.xml in Items folder
XML:
<!--<palette itemid="670" randomize="6580;6593"/>-->

- - - Updated - - -

Or just comment away this row in movements.xml
Code:
<!--<movevent type="StepIn" fromid="6580" toid="6594" event="script" value="snow.lua"/>-->
 

Similar threads

Back
Top