[Release] Trade Button Warps inside and outside FM

Page 1 of 2 12 LastLast
Results 1 to 25 of 39
  1. #1
    Apprentice Aldo_MX is offline
    MemberRank
    Apr 2008 Join Date
    19Posts

    [Release] Trade Button Warps inside and outside FM

    Pre-requisites:
    http://forum.ragezone.com/f427/relea...portal-382464/ by doyos

    Description: Press to warp yourself to FM and press again to get back to your original map.
    If you press inside 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:
    Code:
    case 0x77: Maps::FreeMarket(this); break; // MTS Button
    Before:
    Code:
    case 0x89: Drops::lootItem(this ,buf+2); break;
    * Actually it doesn't matter where you put case 0x77 since its inside Player::handleRequest, i just wanted to have it arranged *



    File: Maps.h

    Add:
    Code:
    static void FreeMarket(Player* player);
    After:
    Code:
    static void moveMapS(Player* player, unsigned char* packet);




    File: Maps.cpp

    Add at the end of file:
    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);		
    }
    Save and compile.


  2. #2
    Valued Member CairoLight is offline
    MemberRank
    Jul 2006 Join Date
    TorontoLocation
    143Posts

    Re: [Release] Trade Button Warps inside and outside FM

    Wow, now people are using their brains. I like this idea I will try it soon :)

  3. #3
    Mocro.net Mocro is offline
    MemberRank
    Feb 2008 Join Date
    Amsterdam.Location
    891Posts

    Re: [Release] Trade Button Warps inside and outside FM

    nice gonne test

  4. #4
    Enthusiast MapleF is offline
    MemberRank
    Apr 2008 Join Date
    FinlandLocation
    35Posts

    Re: [Release] Trade Button Warps inside and outside FM

    This is very nice release bacause there is no Trading System atm. ;D Thanks for this, adding soon to my server.

  5. #5
    Account Upgraded | Title Enabled! lws8 is offline
    MemberRank
    Apr 2008 Join Date
    SingaporeLocation
    426Posts

    Re: [Release] Trade Button Warps inside and outside FM

    Is the FM room safe to enter?

  6. #6
    Account Upgraded | Title Enabled! Spyker710 is offline
    MemberRank
    Apr 2008 Join Date
    ...stalker much...Location
    460Posts

    Re: [Release] Trade Button Warps inside and outside FM

    Nice release!!

    @ lws8 - It should be, since when you click the trade button it takes you back to your original map.

    But make sure FM works in your source.

  7. #7
    Account Upgraded | Title Enabled! npmaple is offline
    MemberRank
    Apr 2008 Join Date
    Israel - a bad placeLocation
    281Posts

    Re: [Release] Trade Button Warps inside and outside FM

    nice idea
    but i might use this for something else (the button)
    btw whats the packet for the cashshop button?

  8. #8
    Account Upgraded | Title Enabled! xnBlaze is offline
    MemberRank
    Apr 2008 Join Date
    860Posts

    Re: [Release] Trade Button Warps inside and outside FM

    Quote Originally Posted by CairoLight View Post
    Wow, now people are using their brains. I like this idea I will try it soon :)
    That's one of the most retarded comments I ever heard yet.

  9. #9
    Valued Member DaddyStrikes is offline
    MemberRank
    Apr 2008 Join Date
    EstoniaLocation
    121Posts

    Re: [Release] Trade Button Warps inside and outside FM

    umm now if i (on any1 else) puts skill in Quick Slot they get TP to FM :D glitch*

  10. #10
    Infraction Banned Pulkkine is offline
    MemberRank
    May 2007 Join Date
    FinlandLocation
    34Posts

    Re: [Release] Trade Button Warps inside and outside FM

    Anyone has FM map xml with NPCs?

  11. #11
    Apprentice Aldo_MX is offline
    MemberRank
    Apr 2008 Join Date
    19Posts

    Re: [Release] Trade Button Warps inside and outside FM

    Quote Originally Posted by DaddyStrikes View Post
    umm now if i (on any1 else) puts skill in Quick Slot they get TP to FM :D glitch*
    Its because in Player.cpp its not closed the packet 75.

    File: Player.cpp
    Replace:
    Code:
    case 0x75: chaneKey(buf+2);
    With:
    Code:
    case 0x75: chaneKey(buf+2); break;

  12. #12
    Apprentice playst205 is offline
    MemberRank
    Jun 2008 Join Date
    10Posts

    Re: [Release] Trade Button Warps inside and outside FM

    Hi everyone uuum I hope people still look at this thread lol but if anyone knows my error can you help me and I already know that I need to type a code in player.cpp because this is the error

    c:\documents and settings\vigo\desktop\maplestoryserver\maplestoryserver\maps.cpp(165) : error C2039: 'setorigin' : is not a member of 'Player'
    c:\documents and settings\vigo\desktop\maplestoryserver\maplestoryserver\player.h(42) : see declaration of 'Player'
    c:\documents and settings\vigo\desktop\maplestoryserver\maplestoryserver\maps.cpp(167) : error C2039: 'getOrigin' : is not a member of 'Player'
    c:\documents and settings\vigo\desktop\maplestoryserver\maplestoryserver\player.h(42) : see declaration of 'Player'

    setOrigin and getOrigin aren't listed in player.cpp, I know that much but what I dont know is what do I have to type to get it listed and exactly where am I supposed to type it

    If anyone knows the solution to this problem please help me its all im missing to get my trade button to FM working please help!!
    Last edited by playst205; 16-06-08 at 08:06 AM. Reason: forgot to add something

  13. #13
    Apprentice playst205 is offline
    MemberRank
    Jun 2008 Join Date
    10Posts

    Re: [Release] Trade Button Warps inside and outside FM

    O and i also took out the set and get origin thing but for two things i decided not to

    1.The fact that when you teleport out, you won't be able to go back to your original map

    2.I tried and it says its illegal in error :)

  14. #14
    Account Upgraded | Title Enabled! NamePlawks is offline
    MemberRank
    Apr 2008 Join Date
    266Posts

    Re: [Release] Trade Button Warps inside and outside FM

    I think you should make maple island maps unable to get to the cash shop, if you can :o.
    Islanders can abuse this (if you have any o_o).

  15. #15
    Enthusiast weiryh is offline
    MemberRank
    Jun 2008 Join Date
    30Posts

    Re: [Release] Trade Button Warps inside and outside FM

    whr is those .cpp file located?

  16. #16
    Enthusiast imcedric is offline
    MemberRank
    Jun 2008 Join Date
    42Posts

    Re: [Release] Trade Button Warps inside and outside FM

    yep i also gt the same error playst205 gt anything i can do?

  17. #17
    Proficient Member shinigami10 is offline
    MemberRank
    May 2008 Join Date
    164Posts

    Re: [Release] Trade Button Warps inside and outside FM

    i get the same error too, now i cannot start my server... forget to backup... hehe

  18. #18
    Proficient Member shinigami10 is offline
    MemberRank
    May 2008 Join Date
    164Posts

    Re: [Release] Trade Button Warps inside and outside FM

    this is what i get
    d:\shinigami10\desktop\mine re-pack\mine re-pack\maplestoryserver\maps.cpp(165) : error C2039: 'setorigin' : is not a member of 'Player'

    d:\shinigami10\desktop\mine re-pack\mine re-pack\maplestoryserver\player.h(42) : see declaration of 'Player'
    d:\shinigami10\desktop\mine re-pack\mine re-pack\maplestoryserver\maps.cpp(167) : error C2039: 'getoringin' : is not a member of 'Player'

    d:\shinigami10\desktop\iww's re-pack\iww's re-pack\maplestoryserver\player.h(42) : see declaration of 'Player'
    Build log was saved at "file://d:\kelvin\Desktop\IWW's Re-Pack\IWW's Re-Pack\MapleStoryServer\Debug\BuildLog.htm"

    MapleStoryServer - 2 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========

  19. #19
    Member krazyaznkid4 is offline
    MemberRank
    Jun 2008 Join Date
    50Posts

    Re: [Release] Trade Button Warps inside and outside FM

    Does this work for Odin Source? Im new to this and i can't seem to find any .cpp files. I only seen .cpp files in titan source. but im using Odin source. How do i do this? =[ Help Please?

  20. #20
    Valued Member mbaa24 is offline
    MemberRank
    Jun 2008 Join Date
    USALocation
    127Posts

    Re: [Release] Trade Button Warps inside and outside FM

    This particular tutorial isn't for Odin. But does anyone have a link to a tut for Odin?

  21. #21
    Apprentice playst205 is offline
    MemberRank
    Jun 2008 Join Date
    10Posts

    Re: [Release] Trade Button Warps inside and outside FM

    Lol, I dont know if anyone looks at this anymore, but I found my old error, only because I decided to get into it, yea you follow exactly what this person told you to do but he forgot some stuff, depending on whose repack you use, if they based it on titanms then this should work

    Go to player.h and start to scroll down, when you come to parts where it says void set this void set that like hp mp exp fame all that junk, it doesnt matter where you put, just make sure you dont mix it together with another code and put it with all the void set stuff, put this code in

    void setOrigin(){
    this->origin=this->map;
    }
    int getOrigin(){
    return this->origin;
    }

    aint done yet, scroll down even more to the bottom, before the endif stuff look up some more and you will see these codes,

    int hair;
    unsigned char level;
    short job;
    short str;
    short dex;
    short intt;
    short luk;
    unsigned short hp;
    unsigned short mhp;
    unsigned short mp;
    unsigned short mmp;
    short ap;
    short sp;
    int exp;
    short fame;
    int map;
    int origin;
    char mappos;
    char type;
    int keys[90];
    int shop;
    int chair;
    int fameOffset;
    bool isHide;
    int gm;
    int combo;
    bool gholysymbol;
    bool holysymbol;

    those kinds of things, and in between them, add in


    int origin;

    And your good to go!
    I feel like i missed something, if you still get errors let me know and if this guide has left you saying WTF IS THIS GUY TALKING ABOUT!!! Let me know and ill post a picture tutorial on this, Hope this HELPS!!!!

    P.S. (You might want to listen to what Aldo_MX said, search this: case 0x75: chaneKey(buf+2); and then you can either replace it with:case 0x75: chaneKey(buf+2); break; or just add break; to the end of the first one,
    All Credits go to Aldo_MX with this tip I just mentioned,)
    Last edited by playst205; 04-07-08 at 01:15 AM. Reason: Forgot to close the barackets on the int origin

  22. #22
    Apprentice playst205 is offline
    MemberRank
    Jun 2008 Join Date
    10Posts

    Re: [Release] Trade Button Warps inside and outside FM

    Woah, I got it working and everything working but then nothing else does!!, The trade button to get there works but when you go in game nothing else works, no npc's, attacking, nothing!!, and when you exit the game, the server crashes, so i dont know if this was such a great release, sucks to me if you ask my opinion, mainly because It messes up your sever when you go in it

  23. #23

    Re: [Release] Trade Button Warps inside and outside FM

    great work now testing it

  24. #24
    Apprentice jplnms is offline
    MemberRank
    Jul 2008 Join Date
    6Posts

    Re: [Release] Trade Button Warps inside and outside FM

    ------ Operaci

  25. #25
    Apprentice jplnms is offline
    MemberRank
    Jul 2008 Join Date
    6Posts

    Re: [Release] Trade Button Warps inside and outside FM

    problem solbed:

    put this in player.h

    void setOrigin(){
    this->origin=this->map;
    }
    int getOrigin(){
    return this->origin;
    }



    ALL credits 4 ME JpLnMS



Page 1 of 2 12 LastLast

Advertisement