• 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
Best answers
0
Reaction score
1
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.
 

Mariuskens

Sword Art Online 2D-MMORPG
Joined
Nov 21, 2008
Messages
999
Best answers
0
Reaction score
88
Location
Spain
Im using the script of the Traps changing the second ítem to decay And works perfect
 

Nemphis

Advanced OT User
Joined
Jun 22, 2009
Messages
484
Best answers
0
Reaction score
190
Location
Sweden
So if someone puts a mw in PvP your opponent can remove it by walking on it?
 

Mariuskens

Sword Art Online 2D-MMORPG
Joined
Nov 21, 2008
Messages
999
Best answers
0
Reaction score
88
Location
Spain
if you have pvp expert you can use two types of mw (yellow color to walkon to destroy or blue to block all)
 

_M4G0_

Well-Known Member
Joined
Feb 6, 2016
Messages
429
Best answers
13
Reaction score
70
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;
                    }
 
Top