Thread: Donator Status + ::yell status

Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1 Donator Status + ::yell status 
    Registered Member AcHoZeN™'s Avatar
    Join Date
    Oct 2008
    Posts
    684
    Thanks given
    0
    Thanks received
    7
    Rep Power
    47
    Purpose: To add a donator status, ::yell status, as well as donator rights to equip items.

    Difficulty: 1/10 Just copy and paste..

    Tested Server: Should work on any, haven't tested on Delta but you shouldn't have problem

    Procedure:

    Step 1: Add this to case 2 (should be your loading method)
    Code:
    } else if (token.equals("character-donator")) {
         donator = Integer.parseInt(token2);
    Step 2: Add this to your saving method
    Code:
    characterfile.newLine();
    characterfile.write("character-donator = ", 0, 20);
    characterfile.write(Integer.toString(donator), 0, Integer.toString(donator).length());
    Step 3: this part is too add a title when a donator yells. so it will look like
    [DONATOR] The Reaper: hi everybody

    Ok so search:
    Code:
    } else if (command.startsWith("yell") && command.length() > 5) {
    Underneath it add this:
    Code:
    {
    String title = "";
    switch(donator) {	
    case 1:
    title = "[DONATOR]";
    break;
    So it should look like this:
    Code:
    } else if (command.startsWith("yell") && command.length() > 5) {
    {
    String title = "";
    switch(donator)
    {	
    case 1:
    title = "[DONATOR]";
    break;
    }
    PlayerHandler.messageToAll = title + " " + playerName + ": " + command.substring(5);
    }
    Step 4: To add donator only items.
    Search:
    Code:
    public boolean wear
    Add this along with the rest.
    Code:
    int CLdonator = GetCLdonator(wearID);
    Ok now scroll just a bit and add this along with the rest:
    Code:
    if (donator - CLdonator < 0) {
                    sendMessage(
                            "You must be a Donator to equip this item.");
                    GoFalse = true;
                }
    Ok so now (we are still in step 4) search for this:
    Code:
    public int GetCLSlayer(int ItemID) {
    Add this under the last }
    Code:
    public int GetCLdonator(int ItemID) {
            if (ItemID == ####) {
                return 1;
            }
    	if (ItemID == ####) {
                return 1;
            }
    	if (ItemID == ####) {
                return 1;
            }
    For the #### fill the item id that you want only donators to be able to equip

    Alright thats it you are now done.
    Note: this tutorial can be used to add premium or membership to your server

    ill add pics shortly
    Reply With Quote  
     

  2. #2  
    Well, aren't you clever!

    Concious's Avatar
    Join Date
    Feb 2008
    Posts
    1,696
    Thanks given
    27
    Thanks received
    60
    Rep Power
    195
    This could be done ALOT easier. But I guess good job.
    Reply With Quote  
     

  3. #3  
    `MOAD
    Guest
    You could just use a boolean for the donator status instead of a variable. Also for your switch statement for the command, why are you using a switch statement when it's only one instance being called by it?
    Reply With Quote  
     

  4. #4  
    Registered Member
    Core's Avatar
    Join Date
    Sep 2007
    Posts
    4,194
    Thanks given
    11
    Thanks received
    393
    Rep Power
    1985
    Boolean is a variable... I think you mean integer.
    Reply With Quote  
     

  5. #5  
    Fuckin PRO

    Tyler's Avatar
    Join Date
    Jan 2008
    Age
    33
    Posts
    6,017
    Thanks given
    46
    Thanks received
    507
    Rep Power
    3330
    wasn't this already on delta? Besides the equipping part, but that's easy lol.
    Reply With Quote  
     

  6. #6  
    Registered Member AcHoZeN™'s Avatar
    Join Date
    Oct 2008
    Posts
    684
    Thanks given
    0
    Thanks received
    7
    Rep Power
    47
    Dunno if it was on delta i didnt specifically make it for delta
    Yeah i did the long way on purpose i didnt want a short tut
    Reply With Quote  
     

  7. #7  
    pkerscape21
    Guest
    nice but already had it
    Reply With Quote  
     

  8. #8  
    Theory Wins?
    Greyfield's Avatar
    Join Date
    Nov 2008
    Age
    32
    Posts
    1,585
    Thanks given
    61
    Thanks received
    265
    Rep Power
    310
    Quote Originally Posted by The Reaper View Post
    Dunno if it was on delta i didnt specifically make it for delta
    Yeah i did the long way on purpose i didnt want a short tut

    Whats the difference between a long and short tutorial? Just makes me believe you ripped this out of a source, seeing as how if it was shorter than it would be more appealing then this messy crap.
    Reply With Quote  
     

  9. #9  
    pimpin 3ride style

    Karly's Avatar
    Join Date
    May 2008
    Posts
    279
    Thanks given
    0
    Thanks received
    1
    Rep Power
    200
    Quote Originally Posted by 0 f1r3c4p3 0 View Post
    This could be done ALOT easier. But I guess good job.
    Yes, Kinda :O.

    Karly .
    Thanks Karly.
    Reply With Quote  
     

  10. #10  
    Registered Member bazinger's Avatar
    Join Date
    Nov 2008
    Age
    34
    Posts
    106
    Thanks given
    6
    Thanks received
    2
    Rep Power
    44
    Pretty nice dude.

    I have a script somehow that can instantly add their name to the list if they pay with daopay. Ill try n find it.
    Quote Originally Posted by pro k0er View Post
    100mb connection is ****
    Lol'd
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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
  •