• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Movement Lua script

jackl90

Member
Joined
Jul 25, 2017
Messages
249
Reaction score
12
For TFS 1.2

Can someone help me to create a script?

Item = 7652
If a player or monster pass over item 7652, appear the effect number 14 on item and the item will transfor on item 7978.

Thanks advance
 
Just copy the snow script and change it? That would probably be the easiest haha. that is a very simple script to create, try to look into how to create it yourself before just asking


LUA:
TILE_SNOW = 670
TILE_FOOTPRINT_I = 6594
TILE_FOOTPRINT_II = 6598

function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
    if(isPlayerGhost(cid)) then
        return true
    end

    if(item.itemid == TILE_SNOW) then
        doTransformItem(item.uid, TILE_FOOTPRINT_I)
        doDecayItem(item.uid)
    elseif(item.itemid == TILE_FOOTPRINT_I) then
        doTransformItem(item.uid, TILE_FOOTPRINT_II)
        doDecayItem(item.uid)
    else
        doTransformItem(item.uid, TILE_FOOTPRINT_I)
    end

    return true
end
 
Back
Top