[Release]TitanMS player commands

Results 1 to 5 of 5
  1. #1
    Valued Member cosmeo3000 is offline
    MemberRank
    Apr 2008 Join Date
    126Posts

    [Release]TitanMS player commands

    Another very easy update that koolk didn't have the time to add or didn't feel it was necessary.

    Add:
    Code:
        else if(msg.substr(0, 1) == "@"){
            string command = msg.substr(1, msg.find(" ")-1);
            if(command == "str"){
                int add = strval(msg.substr(msg.find(" ")));
                if(add <= player->getAP())
                {
                    player->addSTR(add);
                    player->addAP(-add);
                }
            }
            else if(command == "dex"){
                int add = strval(msg.substr(msg.find(" ")));
                if(add <= player->getAP())
                {
                    player->addDEX(add);
                    player->addAP(-add);
                }
            }
            else if(command == "int"){
                int add = strval(msg.substr(msg.find(" ")));
                if(add <= player->getAP())
                {
                    player->addINT(add);
                    player->addAP(-add);
                }
            }
            else if(command == "luk"){
                int add = strval(msg.substr(msg.find(" ")));
                if(add <= player->getAP())
                {
                    player->addLUK(add);
                    player->addAP(-add);
                }
            }
        }
    After:
    Code:
    else if(command == "horntail"){
                    player->getMap()->getMobs()->spawnMob(8810000, player->getPosition().x, player->getPosition().y, -1, false);
                    player->getMap()->getMobs()->spawnMob(8810001, player->getPosition().x, player->getPosition().y, -1, false);
                    player->getMap()->getMobs()->spawnMob(8810002, player->getPosition().x, player->getPosition().y, -1, false);
                    player->getMap()->getMobs()->spawnMob(8810003, player->getPosition().x, player->getPosition().y, -1, false);
                    player->getMap()->getMobs()->spawnMob(8810004, player->getPosition().x, player->getPosition().y, -1, false);
                    player->getMap()->getMobs()->spawnMob(8810005, player->getPosition().x, player->getPosition().y, -1, false);
                    player->getMap()->getMobs()->spawnMob(8810006, player->getPosition().x, player->getPosition().y, -1, false);
                    player->getMap()->getMobs()->spawnMob(8810007, player->getPosition().x, player->getPosition().y, -1, false);
                    player->getMap()->getMobs()->spawnMob(8810008, player->getPosition().x, player->getPosition().y, -1, false);
                
            }
        }
    This will allow anyone to use @ and then commands. To add new ones, you just add it after the 2nd closing bracket and use it like the gm commands.


  2. #2
    Novice xRysver is offline
    MemberRank
    Jan 2009 Join Date
    1Posts

    Re: [Release]TitanMS player commands

    nice finally some1 who made this
    all people of server were askin for it
    thnx man

  3. #3
    wackyracer#1337 wackyracer is offline
    MemberRank
    Jun 2008 Join Date
    1,524Posts

    Re: [Release]TitanMS player commands

    Quote Originally Posted by xRysver View Post
    nice finally some1 who made this
    all people of server were askin for it
    thnx man
    Don't bump old threads! This isn't for the new TitanMS! This for the old one! Titan 2.0 and old Titan DO NOT MIX AT ALL.

  4. #4
    Enthusiast [Dev]Fatal is offline
    MemberRank
    Dec 2008 Join Date
    39Posts

    Re: [Release]TitanMS player commands

    Actually... they can fit O.o

  5. #5
    Enthusiast mrkrishanz is offline
    MemberRank
    Jan 2009 Join Date
    27Posts

    Re: [Release]TitanMS player commands

    I made this for Titan2.0 and released on Valhalla like 2 months ago o.O



Advertisement