Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Release]TitanMS player commands

Status
Not open for further replies.
Newbie Spellweaver
Joined
Apr 12, 2008
Messages
40
Reaction score
0
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.
 
Initiate Mage
Joined
Jan 21, 2009
Messages
1
Reaction score
0
nice finally some1 who made this
all people of server were askin for it
thnx man
 
Newbie Spellweaver
Joined
Jan 7, 2009
Messages
21
Reaction score
0
I made this for Titan2.0 and released on Valhalla like 2 months ago o_O
 
Status
Not open for further replies.
Back
Top