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

TFS 1.X+ Block / remove browse field.

OTcreator

Well-Known Member
Joined
Feb 14, 2022
Messages
509
Solutions
1
Reaction score
59
Hi,
FIRST QUESTION:
It is possible to remove / block using browse field on tfs 1.4.2 for all ID ?
(Etc: If player use option browse field - "Sorry, not possible.")

SECOND QUESTION:
Is it possible to block with a script the ability of players/monsters to throw items, fieldow on items that have AID/UID ?
 
yes and yes
Ok - in items.cpp i can add this:

C++:
bool Item::canThrowObject(const Position& position, const Item* item) const {
    if (item->actionId > 0 || item->uniqueId > 0) {
        return false;
    }

    return Item::canThrowObject(position, item);
}

I have no green idea how to do such a thing outside of C++.
Is it possible to create such a lock in lua?
 
Back
Top