Mu Lung Dojo - Animation/Warp

Results 1 to 6 of 6
  1. #1
    Member C_plus_plus is offline
    MemberRank
    Nov 2009 Join Date
    79Posts

    Mu Lung Dojo - Animation/Warp

    I want to give proper credits here first before starting off.
    Koolk - TitanMS
    LaiLaiNoob - Dojo Packet
    Orabcd - Level Distinction / Additional Coding
    C_plus_plus - Basic Coding
    ==================================================

    Packetcreator.cpp
    Add
    PHP Code:
    PacketWriterPacketCreator::environmentChange(string envint mode) {
        
    pw.writeShort(BOSS_ENV);
        
    pw.write(mode);
        
    pw.writeString(env);
        return &
    pw;
    }

    PacketWriterPacketCreator::dojoWarpUp() {
        
    pw.writeShort(DOJO_WARP_UP);
        
    pw.write(0);
        
    pw.write(6);
        return &
    pw;

    Packetcreator.h
    Add
    PHP Code:
    static const short BOSS_ENV 0x7E;
    static const 
    short DOJO_WARP_UP 0xBD
    After
    PHP Code:
    static const short SPOUSE_CHAT 0x7C
    Add
    PHP Code:
    PacketWriterdojoWarpUp();
    PacketWriterenvironmentChange(string envint mode); 
    After
    PHP Code:
    PacketWriterinstructionBubble(string msgshort widthshort height); 
    ==================================================

    That sets the basic packets and headers for the Animation and WarpUp
    -===---=== dojoWarpUp ===---===-
    Player.cpp
    Add
    PHP Code:
    void Player::dojoWarpUp() {
        
    send(PacketCreator().dojoWarpUp());

    At the very bottom.

    Player.h


    Add
    PHP Code:
    void dojoWarpUp(); 
    Under
    PHP Code:
    void sendNpc(int npcidPlayer *player); 
    AngelScriptEngine.cpp
    Add
    PHP Code:
    pScriptEngine->RegisterObjectMethod("Player","void dojoWarpUp()",
            
    asMETHOD(PlayerdojoWarpUp), asCALL_THISCALL); assert(>= 0); 
    Under
    PHP Code:
    pScriptEngine->RegisterObjectMethod("Player","void setTrainingPoints(int)",
            
    asMETHOD(PlayersetTrainingPoints), asCALL_THISCALL); assert(>= 0); 
    Dojang_up.as
    PHP Code:
    void portal_main(PlayerplayerPortalportal){
    if(
    player.getMap().getMobsCount() == 0) { //--- or u can do getMobsCount() > 1
    player.dojoWarpUp();
    } else {
    player.showMessage("There are still some monsters remaining.");
    }

    -===---=== dojoAnimation===---===-

    Player.cpp
    Add
    PHP Code:
    void Player::dojoAnimation(){
        
    int map this->getMap()->getID();
        if(
    MAJOR_TYPE(map) == 92502){
            
    int level = (map/100)%100;
            
    int end map%10;
            if(
    level == 0){
                if(
    end == 2){
                    
    this->send(PacketCreator().environmentChange("Dojang/clear"4));
                    
    this->send(PacketCreator().environmentChange("dojang/end/clear"3));
                }
                else
                    return;
            }
            else if(((
    level*10)/6)%10 == 0)//rest levels
                
    return;
            else{
                
    this->send(PacketCreator().environmentChange("Dojang/start"4));
                
    this->send(PacketCreator().environmentChange("dojang/start/stage"3));
                
    this->send(PacketCreator().environmentChange("dojang/start/number/"+Tools::intToString(level), 3));
            }
        }

    After
    PHP Code:
    void Player::dojoWarpUp() {
        
    send(PacketCreator().dojoWarpUp());

    Player.h
    Add
    PHP Code:
    void dojoAnimation(); 
    Under
    PHP Code:
    void dojoWarpUp(); 
    AngelScriptEngine.cpp
    Add
    PHP Code:
    pScriptEngine->RegisterObjectMethod("Player","void dojoAnimation()",
            
    asMETHOD(PlayerdojoAnimation), asCALL_THISCALL); assert(>= 0); 
    Under
    PHP Code:
    pScriptEngine->RegisterObjectMethod("Player","void dojoWarpUp()",
            
    asMETHOD(PlayerdojoWarpUp), asCALL_THISCALL); assert(>= 0); 
    Thanks for viewing. =]


    -===---=== Additional ===---===-
    How to use dojoAnimation and dojoWarpUp

    From my experience, dojoWarpUp works only in Dojo maps, so if you just keep my dojang_up.as, it'll warp you up.
    If you want to use it elsewhere, add this to a Portal or NPC.
    PHP Code:
    player.dojoWarpUp(); 
    DojoAnimation WILL NOT WORK elsewhere other than Dojo Maps!!!


    this was released by me in KDev LONG ago...
    And I don't really care if you guys don't know what to do with this.

    And your a fucking retard if don't know where this goes because I spoonfed you.


  2. #2
    Account Upgraded | Title Enabled! Cappe is offline
    MemberRank
    Aug 2008 Join Date
    330Posts

    Re: Mu Lung Dojo - Animation/Warp

    Nice Release
    - Again then xD

  3. #3
    Member C_plus_plus is offline
    MemberRank
    Nov 2009 Join Date
    79Posts

    Re: Mu Lung Dojo - Animation/Warp

    was on KD

  4. #4
    Account Upgraded | Title Enabled! Cappe is offline
    MemberRank
    Aug 2008 Join Date
    330Posts

    Re: Mu Lung Dojo - Animation/Warp

    Sorry =P
    Didn't read the last text
    Edited my post xD

  5. #5
    return null; mertjuh is offline
    MemberRank
    Dec 2008 Join Date
    The NetherlandsLocation
    1,269Posts

    Re: Mu Lung Dojo - Animation/Warp

    noes its c++ :[
    nice release anyways

  6. #6
    Member fancydays is offline
    MemberRank
    Jun 2008 Join Date
    85Posts

    Re: Mu Lung Dojo - Animation/Warp

    .....
    Last edited by fancydays; 18-02-13 at 04:30 AM.



Advertisement