Command

Discussion in 'Archives' started by Rankster, Feb 19, 2008.

Command
  1. Unread #1 - Feb 19, 2008 at 11:00 PM
  2. Rankster
    Joined:
    May 6, 2007
    Posts:
    83
    Referrals:
    0
    Sythe Gold:
    0

    Rankster Member

    Command

    was wondering how i make a ::bank command and a ::coordson/::coordsoff command, its been bugging me when i wanted to add objects but didnt no the coords, help is much appreciated
     
  3. Unread #2 - Feb 21, 2008 at 8:34 PM
  4. Samarkov
    Joined:
    Feb 21, 2008
    Posts:
    147
    Referrals:
    0
    Sythe Gold:
    0

    Samarkov Active Member

    Command

    Code:
    if (command.equalsIgnoreCase("bank") && playerRights >= 0)
             {openUpBank()
    }
    Put this in commands Section!
    That should work, I'm not totally sure though, I'm using CZAR source on mine, but if this code is universal then it should work.

    Here is the coordson/off code it will send it to an area below the server name (if it is in the same place as most)
    If coords are in wrong spot add or subtract 2 to the 6576 until it is fixed.

    Put this in the commands section!
    Code:
    if(command.equalsIgnoreCase("coordson") && playerRights >=0)
    {
    sendFrame126("X:"+absX+" Y:"+absY, 6576)
    }else
    if(command.equalsIgnoreCase("coordsoff") && playerRights >=0)
    {Sendframe126(" ",6576)
    }
    Enjoy!
     
  5. Unread #3 - Feb 22, 2008 at 5:41 PM
  6. Rankster
    Joined:
    May 6, 2007
    Posts:
    83
    Referrals:
    0
    Sythe Gold:
    0

    Rankster Member

    Command

    tyvm but i got 3 errors wen i put it into the command.java, any idea of were i should put it?
     
  7. Unread #4 - Feb 22, 2008 at 5:57 PM
  8. Samarkov
    Joined:
    Feb 21, 2008
    Posts:
    147
    Referrals:
    0
    Sythe Gold:
    0

    Samarkov Active Member

    Command

    in the commands section. Which one didn't work?
     
  9. Unread #5 - Feb 23, 2008 at 2:03 AM
  10. Rankster
    Joined:
    May 6, 2007
    Posts:
    83
    Referrals:
    0
    Sythe Gold:
    0

    Rankster Member

    Command

    both of em, i got it compiled with 3 errors then i ran server but the commands did not work.. i have no clue what happened =[
     
  11. Unread #6 - Feb 23, 2008 at 6:59 AM
  12. $4nt4 b!ch
    Referrals:
    0

    $4nt4 b!ch Guest

    Command

  13. Unread #7 - Feb 23, 2008 at 1:35 PM
  14. Rankster
    Joined:
    May 6, 2007
    Posts:
    83
    Referrals:
    0
    Sythe Gold:
    0

    Rankster Member

    Command

    i got command makers, the only thing is i dont no where to add the commands at, cuz were ever i add them i get errors...
     
  15. Unread #8 - Feb 23, 2008 at 2:28 PM
  16. Samarkov
    Joined:
    Feb 21, 2008
    Posts:
    147
    Referrals:
    0
    Sythe Gold:
    0

    Samarkov Active Member

    Command

    add it in the section where all of your text commands are. Make sure it isnt in the way of any.

    Put it after something that looks like this }
     
  17. Unread #9 - Feb 24, 2008 at 11:59 AM
  18. Rankster
    Joined:
    May 6, 2007
    Posts:
    83
    Referrals:
    0
    Sythe Gold:
    0

    Rankster Member

    Command

    alright tyvm!
     
< Buying a skiller... | sexy and violent Pixel Sigs and Avatars >

Users viewing this thread
1 guest


 
 
Adblock breaks this site