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

Remove MAGIC WALL and WILD GROWTH when step in

Maico Muleks

New Member
Joined
Jul 22, 2016
Messages
24
Reaction score
2
Good night,
I need one script for when one player try to walk trough mw and wg this disapear and player got position.

Sorry for my bad english.
 
So if someone puts a mw in PvP your opponent can remove it by walking on it?
 
if you have pvp expert you can use two types of mw (yellow color to walkon to destroy or blue to block all)
 
yes, but my server is non pvp
combat.cpp
search for
Lua:
void Combat::combatTileEffects(
and
Lua:
if (g_game.getWorldType() == WORLD_TYPE_NO_PVP || tile->hasFlag(TILESTATE_NOPVPZONE)) {
below
Lua:
                        itemId = ITEM_ENERGYFIELD_NOPVP;
and above
Lua:
                } else if (itemId == ITEM_FIREFIELD_PVP_FULL || itemId == ITEM_POISONFIELD_PVP || itemId == ITEM_ENERGYFIELD_PVP) {
add
Lua:
                    } else if (itemId == ITEM_MAGICWALL) {
                        itemId = ITEM_WILDGROWTH_SAFE;
                    } else if (itemId == ITEM_WILDGROWTH) {
                        itemId = ITEM_WILDGROWTH_SAFE;
                    }
 
Back
Top