Thread: Restricting Item to particular player

Results 1 to 6 of 6
  1. #1 Restricting Item to particular player 
    Registered Member
    Join Date
    Mar 2009
    Posts
    43
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    How do I restrict this item to only me on BattleScape?

    Wouldn't it be something like


    Item ID: 1379

    Sorry about this, I just haven't coded in over two years and forget almost all. So if you can please help me.

    This is all I remember......

    Code:
    if (playerName.equalsIgnoreCase("Th3SiNz"))
    Reply With Quote  
     

  2. #2  
    Donator

    Ecstasy's Avatar
    Join Date
    Sep 2008
    Age
    29
    Posts
    5,031
    Thanks given
    324
    Thanks received
    596
    Rep Power
    843
    in your item equip method add this.

    Code:
            if(itemID == 1379 && !playerName.equalsIgnoreCase("Th3SiNz")) {
                sendMessage("You can't wield this item!");
            return;

    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Mar 2009
    Posts
    43
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    I am new to BattleScape source, I am use to 317s from two years ago. Now them I am famaliar with. I would put this shit under a boolean that would call itself every 500ms
    Reply With Quote  
     

  4. #4  
    Registered Member
    Mister Maggot's Avatar
    Join Date
    Dec 2008
    Posts
    7,227
    Thanks given
    3,283
    Thanks received
    2,875
    Rep Power
    5000
    Quote Originally Posted by Th3Sinz View Post
    I am new to BattleScape source, I am use to 317s from two years ago. Now them I am famaliar with. I would put this shit under a boolean that would call itself every 500ms
    Don't lie.. You're new (ish)

    Boolean wear.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Hunter's Avatar
    Join Date
    Jun 2009
    Age
    33
    Posts
    857
    Thanks given
    3
    Thanks received
    23
    Rep Power
    216
    Packet 41, aka "case 41:", is where you should add a check like that.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Mar 2009
    Posts
    43
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    I've been on Moparscape Servers for four years. Made one 3 years ago, after a year I left. Now I've come back.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •