• 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!

It's possible to make working script with every moveable items?

hellboy

Intermediate OT User
Joined
Apr 6, 2008
Messages
549
Solutions
6
Reaction score
124
Location
player:getTown()
Engine: TFS 0.3.6pl1
I tried make somethink like this:

1.
PHP:
<movevent type="AddItem" tileitem="1" event="script" value="RPG/test.lua"/>

2.
PHP:
<movevent type="AddItem" itemid="" tileitem="1" event="script" value="RPG/test.lua"/>


Lua part:
LUA:
function onAddItem(moveitem, tileitem, position, cid)
    print("It's work!")
    return true
end

No bugs in console when engine load movements and when I put something on any tile.

Any idea? It's possible to make this script (of course in lua/xml part)?
 
Last edited:
Ye you can do it by fromid="1" toid="10000" or smth.

But it is more stable if you would edit the sources..
 
Back
Top