Post by Darth Maul on Sept 20, 2016 6:58:46 GMT
Original Request can be found here: elfbotscripts.com/thread/664/combine-push-mwall-script
Alternatively you can try these, they will push the player everytime there is no mwall. E.g if no mwall to the west of player, push him east and mwall the sqm you pushed him from.
Push player North and mwall South:
Push player East and mwall West:
Push player South and mwall North:
Push player West and mwall East:
Just don't forget to change PUSHDELAY.
Try this, it will push player east and mwall west everytime you press the hotkey. (Let me know if you need/want push/mwall for north etc)
moveitemonground [$target.posx] [$target.posy] [$target.posz] [$target.posx+1] [$target.posy] [$target.posz] | wait PUSHDELAY | useongroundxyz 3180 [$target.posx-1] [$target.posy] [$target.posz]
Alternatively you can try these, they will push the player everytime there is no mwall. E.g if no mwall to the west of player, push him east and mwall the sqm you pushed him from.
Push player North and mwall South:
auto 200 set $mwn $topitem.[$target.posx].[$target.posy+1].[$target.posz] | if [$mwn != 2128] {moveitemonground [$target.posx] [$target.posy] [$target.posz] [$target.posx] [$target.posy-1] [$target.posz] | wait PUSHDELAY | useongroundxyz 3180 [$target.posx] [$target.posy+1] [$target.posz]}
Push player East and mwall West:
auto 200 set $mwe $topitem.[$target.posx-1].[$target.posy].[$target.posz] | if [$mwe != 2128] {moveitemonground [$target.posx] [$target.posy] [$target.posz] [$target.posx+1] [$target.posy] [$target.posz] | wait PUSHDELAY | useongroundxyz 3180 [$target.posx-1] [$target.posy] [$target.posz]}
Push player South and mwall North:
auto 200 set $mws $topitem.[$target.posx].[$target.posy-1].[$target.posz] | if [$mws != 2128] {moveitemonground [$target.posx] [$target.posy] [$target.posz] [$target.posx] [$target.posy+1] [$target.posz] | wait PUSHDELAY | useongroundxyz 3180 [$target.posx] [$target.posy-1] [$target.posz]}
Push player West and mwall East:
auto 200 set $mww $topitem.[$target.posx+1].[$target.posy].[$target.posz] | if [$mww != 2128] {moveitemonground [$target.posx] [$target.posy] [$target.posz] [$target.posx-1] [$target.posy] [$target.posz] | wait PUSHDELAY | useongroundxyz 3180 [$target.posx+1] [$target.posy] [$target.posz]}
Just don't forget to change PUSHDELAY.