Remove MAGIC WALL and WILD GROWTH when step in

Maico Muleks

New Member
Joined
Jul 22, 2016
Messages
21
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
983
Reaction score
87
Location
Spain
Im using the script of the Traps changing the second ítem to decay And works perfect
 

Nemphis

Excellent OT User
Joined
Jun 22, 2009
Messages
325
Reaction score
114
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
983
Reaction score
87
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_

Active Member
Joined
Feb 6, 2016
Messages
389
Reaction score
67
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