Pre-requisites:
http://forum.ragezone.com/f427/relea...portal-382464/ by doyos
Description: Pressto warp yourself to FM and press
again to get back to your original map.
If you pressinside markets 1-22 or Happyville it will just warp you to FM without saving origin.
Coded and Tested with REV 008b, but Im pretty sure its REV 007 compatible.
File: Player.cpp
Add:
Before:Code:case 0x77: Maps::FreeMarket(this); break; // MTS Button
* Actually it doesn't matter where you put case 0x77 since its inside Player::handleRequest, i just wanted to have it arranged *Code:case 0x89: Drops::lootItem(this ,buf+2); break;
File: Maps.h
Add:
After:Code:static void FreeMarket(Player* player);
Code:static void moveMapS(Player* player, unsigned char* packet);
File: Maps.cpp
Add at the end of file:
Save and compile.Code:void Maps::FreeMarket(Player* player){ if ((player->getMap() < 910000000 || player->getMap() >= 910010000) && (player->getMap() < 209000000 || player->getMap() >= 209010000)) player->setOrigin(); if (player->getMap() == 910000000) changeMap(player, player->getOrigin(), 0); else changeMap(player, 910000000, 0); }


to warp yourself to FM and press
![[Release] Trade Button Warps inside and outside FM](http://ragezone.com/hyper728.png)


