Command - Jail

Page 1 of 2 12 LastLast
Results 1 to 25 of 31
  1. #1
    Proficient Member superraz777 is offline
    MemberRank
    Jan 2008 Join Date
    AustraliaLocation
    163Posts

    Command - Jail

    Credits to Superraz for the creation of the script!

    1.Go to players.cpp

    2. Find all the commands

    3. Add the code under one of the commands

    4. This will send them onto the Mu-Lung boat ride

    5. To use this command, type... "!jail <playername>"


    Code:
    
    else if(strcmp(command, "jail") == 0){
    char *name = strtok_s(NULL, " ",&next_token);
    if (strlen(name) > 0)
    for (hash_map <int, Player*>::iterator iter = Players::players.begin(); iter != Players::players.end(); iter++)
    if (strcmp(iter->second->getName(), name) == 0)
    Maps::changeMap(iter->second , 200090300, 0);
    
    }
    


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

    Re: [Command] Jail

    lol@mu lung boat ride, good idea though.

  3. #3
    Enthusiast phuuster is offline
    MemberRank
    Apr 2008 Join Date
    40Posts

    Re: [Command] Jail

    Wooahhh i have the exact same script too! coincidence?

  4. #4
    Member Chez is offline
    MemberRank
    Apr 2007 Join Date
    53Posts

    Re: [Command] Jail

    Thank you very much!

  5. #5
    Don't you mean Bizzarro! Ambrosiax is offline
    MemberRank
    Apr 2008 Join Date
    1,334Posts

    Re: [Command] Jail

    Quote Originally Posted by xnBlaze View Post
    lol@mu lung boat ride, good idea though.
    Same LMAO

  6. #6
    Proficient Member superraz777 is offline
    MemberRank
    Jan 2008 Join Date
    AustraliaLocation
    163Posts

    Re: [Command] Jail

    Well i assure you its 100% made by me, and your welcome, you can change the map-id if you want a different map for the jail, there are just some people annoying, and since i havent got !dc, or !ban to work i came up with this

  7. #7
    Enthusiast phuuster is offline
    MemberRank
    Apr 2008 Join Date
    40Posts

    Re: [Command] Jail

    btw its "else if" not "elseif"

  8. #8
    Proficient Member superraz777 is offline
    MemberRank
    Jan 2008 Join Date
    AustraliaLocation
    163Posts

    Re: [Command] Jail

    Ok the site just put the words together, also if anyone has a request on a command tell me and ill try to get it to work and post it

  9. #9
    Apprentice funperson123 is offline
    MemberRank
    Apr 2008 Join Date
    14Posts

    Re: [Command] Jail

    Quote Originally Posted by superraz777 View Post
    Ok the site just put the words together, also if anyone has a request on a command tell me and ill try to get it to work and post it
    How about a !dc command that kicks someone off the server.

    Like, !dc <charname>

  10. #10
    Account Upgraded | Title Enabled! BukLaoKid is offline
    MemberRank
    Apr 2008 Join Date
    yo muddaaaaahs'Location
    252Posts

    Re: [Command] Jail

    Lmao, Are you even possible to unjail people?

  11. #11
    Proficient Member gogodr is offline
    MemberRank
    Apr 2008 Join Date
    161Posts

    Re: [Command] Jail

    yes with !warp
    I'll try it with ellinias ship , there is an npc
    it will be like
    npc->addtext("Think on what you did...

  12. #12
    Account Upgraded | Title Enabled! BukLaoKid is offline
    MemberRank
    Apr 2008 Join Date
    yo muddaaaaahs'Location
    252Posts

    Re: [Command] Jail

    Ahh, Thanks :] now i can do it to my friends xD

  13. #13
    Proficient Member DUfire is offline
    MemberRank
    Dec 2006 Join Date
    175Posts

    Re: [Command] Jail

    LOL!
    To unjail, get the warp commands, I suppose.
    Sounds like fun! :D

  14. #14
    Member 1q1q is offline
    MemberRank
    Apr 2008 Join Date
    97Posts

    Re: [Command] Jail

    But do the warp commands work?
    When I try to use them, they don't work. ;o

  15. #15
    Proficient Member gogodr is offline
    MemberRank
    Apr 2008 Join Date
    161Posts

    Re: [Command] Jail

    they work for me

  16. #16
    Account Upgraded | Title Enabled! theonendonly is offline
    MemberRank
    Apr 2008 Join Date
    411Posts

    Re: [Command] Jail

    lawl i was just thinking about this because i thought of ragnarok .

  17. #17
    Enthusiast 094290006 is offline
    MemberRank
    Apr 2008 Join Date
    26Posts

    Re: [Command] Jail

    And for the people who are lazy... here is the jailundo script T-T

    else if(strcmp(command, "jailundo") == 0){ char *name = strtok_s(NULL, " ",&next_token);
    if (strlen(name) > 0)
    for (hash_map <int, Player*>::iterator iter = Players::players.begin(); iter != Players::players.end(); iter++)
    if (strcmp(iter->second->getName(), name) == 0)
    Maps::changeMap(iter->second , 100000000, 0);

    }

    takes you to henesys >.>

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

    Re: [Command] Jail

    Quote Originally Posted by theonendonly View Post
    lawl i was just thinking about this because i thought of ragnarok .
    xD yep

  19. #19
    Account Upgraded | Title Enabled! Sengi is offline
    MemberRank
    Apr 2008 Join Date
    Behind You xDLocation
    272Posts

    Re: [Command] Jail

    thx man works !

  20. #20
    Apprentice SXGuy is offline
    MemberRank
    Apr 2007 Join Date
    11Posts

    Re: [Command] Jail

    [quote=gogodr;3278197]yes with !warp
    I'll try it with ellinias ship , there is an npc
    it will be like
    npc->addtext("Think on what you did...

  21. #21
    Proficient Member NotHere is offline
    MemberRank
    Apr 2008 Join Date
    170Posts

    Re: [Command] Jail

    Quote Originally Posted by SXGuy View Post
    Er, i see no point to this script AT ALL.

    If your going to use !warn to "unjail" someeone, then why not just use
    !warp [Name] 200090300 //Jail! Mu Lang boat ride

    SEE?
    What I see no point in is in your STUPID post. GTFO pl0X!

    Thanks for the script brother great work.

  22. #22
    Proficient Member gogodr is offline
    MemberRank
    Apr 2008 Join Date
    161Posts

    Re: [Command] Jail

    Quote Originally Posted by SXGuy View Post
    Er, i see no point to this script AT ALL.

    If your going to use !warn to "unjail" someeone, then why not just use
    !warp [Name] 200090300 //Jail! Mu Lang boat ride

    SEE?
    because common people doesnt want to memorize all the maps IDs

  23. #23
    Member rotem11 is offline
    MemberRank
    Jul 2007 Join Date
    55Posts

    Re: [Command] Jail

    cool, thanks !!

  24. #24
    Member dogiedog is offline
    MemberRank
    Dec 2007 Join Date
    75Posts

    Re: [Command] Jail

    Hi,

    It works great, but:
    Can someone give me a script, like this, but then that i can put the map too?

    Like:

    !jail <playername> <map>
    !jail dogiedog 100000000

  25. #25
    Novice superonion is offline
    MemberRank
    Apr 2008 Join Date
    1Posts

    Re: [Command] Jail

    I get Jailed people transported to Papulatus' Lair.



Page 1 of 2 12 LastLast

Advertisement