[Tut] Buttons & Wildy Anti-Teleport!!

Results 1 to 8 of 8
  1. #1
    Laravel Core Programmer Jangan is offline
    DeveloperRank
    Jul 2007 Join Date
    Dubai, UAELocation
    2,113Posts

    [Tut] Buttons & Wildy Anti-Teleport!!

    tired and sick of noobs that teleport out of wildy by clicking the "home, or pk" button etc? well i have an easy and simple way to stop that lol!!

    Purpose : Anti Teleport Buttons!

    Difficulty : 1/10

    Assumed Knowledge : Copy/Paste

    Credits : 100% me..

    Server Base : Tested (works for all)

    Classes Modified : client.java

    Procedure
    Step 1 : Open client.java look for [Case 168] or whatever case buttons you have! this works 100% on aquascape files and replace them with this OR check step 2

    PHP Code:
     case 161//mb button
    if(emotes == 0)
    {
    if(
    absY >= 3712 && absY <= 3970)
    {
    sendMessage("You cannot tele in wildy");
    }
    else
    {
    teleportToX 3094;
    teleportToY 3963;
    }
    }
    else
    {
    emotes 0;
    pEmote playerSE;
    updateRequired trueappearanceUpdateRequired true;
    }
    break;

    case 
    164//jad button
    if(emotes == 0)
    {
    if(
    absY >= 3712 && absY <= 3970)
    {
    sendMessage("You cannot tele in wildy");
    }
    else
    {
    teleportToX 3098;
    teleportToY 3934;
    }
    }
    else
    {
    emotes 0;
    pEmote playerSE;
    updateRequired trueappearanceUpdateRequired true;
    }
    break;

    case 
    171//abby button
    if(emotes == 0)
    {
    if(
    absY >= 3712 && absY <= 3970)
    {
    sendMessage("You cannot tele in wildy");
    }
    else
    {
    teleportToX 2662;
    teleportToY 3305;
    }
    }
    else
    {
    emotes 0;
    pEmote playerSE;
    updateRequired trueappearanceUpdateRequired true;
    }
    break;

    case 
    168//bank button
    if(emotes == 0)
    {
    if(
    absY >= 3712 && absY <= 3970)
    {
    sendMessage("You cannot bank In wildy");
    }
    else
    {
    openUpBank();
    }
    }
    else
    {
    emotes 0;
    pEmote playerSE;
    updateRequired trueappearanceUpdateRequired true;
    }
    break;


    case 
    169//home button
    if(emotes == 0)
    {
    if(
    absY >= 3712 && absY <= 3970)
    {
    sendMessage("You cannot tele in wildy");
    }
    else
    {
    teleportToX 3194;
    teleportToY 3431;
    }
    }
    else
    {
    emotes 0;
    pEmote playerSE;
    updateRequired trueappearanceUpdateRequired true;
    }
    break; 


    Step 2
    :
    if you dont really wanna replace your Buttons with my made once.. you can easily! make your own buttons!!
    PHP Code:
     case #: // <--- Your Case Number
    if(emotes == 0// <--- leave that at 0
     
    {
    if(
    absY >= 3712 && absY <= 3970)  // <--- the pk zone
     
    {
    sendMessage("You cannot tele in wildy");  // <--- the message you get if your in the wildy
     
    }
    else
    {
    teleportToX 3098;  // <---  Teleport Cord X
     
    teleportToY 3934// <---  Teleport Cord Y
     
    }
    }
    else
    {
    emotes 0;
    pEmote playerSE;
    updateRequired trueappearanceUpdateRequired true;
    }
    break; 

    Step 3 :
    Compile and Run!


  2. #2
    Account Upgraded | Title Enabled! Spinny is offline
    MemberRank
    Jul 2007 Join Date
    CanadaLocation
    393Posts

    Re: [TuT] Buttons & Wildy Anti-Teleport!!

    Where Did You Find The Time To Write These 3 Threads?!

    Great Tutorials Man ! 10/10

  3. #3
    Laravel Core Programmer Jangan is offline
    DeveloperRank
    Jul 2007 Join Date
    Dubai, UAELocation
    2,113Posts

    Re: [TuT] Buttons & Wildy Anti-Teleport!!

    hehe ty ty, well im here to help the community, and its my duty to =) anyways glad to help, and im taking any private requests to actually do them if i can =)

  4. #4
    Account Upgraded | Title Enabled! Spinny is offline
    MemberRank
    Jul 2007 Join Date
    CanadaLocation
    393Posts

    Re: [TuT] Buttons & Wildy Anti-Teleport!!

    Nice, Your Tutorials Are Always Great ;)

  5. #5
    Apprentice noentje is offline
    MemberRank
    Jan 2007 Join Date
    6Posts

    Re: [TuT] Buttons & Wildy Anti-Teleport!!

    I have a question about that emote pannel, i want to change a button, but let it do a command? how to do that? please help!

  6. #6
    The light can't stop me. Steven is offline
    MemberRank
    May 2007 Join Date
    United KingdomLocation
    1,531Posts

    Re: [TuT] Buttons & Wildy Anti-Teleport!!

    Nice tut!

  7. #7
    Account Upgraded | Title Enabled! connoreaton is offline
    MemberRank
    Dec 2007 Join Date
    In your toilet on the side.... and im black!Location
    252Posts

    Re: [TuT] Buttons & Wildy Anti-Teleport!!

    jangan u have do e it again love it 9.8/10

  8. #8
    Member BamBamBam is offline
    MemberRank
    Apr 2007 Join Date
    62Posts

    Re: [TuT] Buttons & Wildy Anti-Teleport!!

    If you had a inwildy statement in you're code you could simply "if" that statement in the button case, so you will be able to apply this to every part of wilderness you might have on you're server, besides the standard wilderness up north. Cause if you have .. for example; A Pk Bot in the middle of Yanille, people would still be able to teleport from that location to other places, so you would have to go in and add on to the coordswithinarea or whatever you want to call it, my example would look something like this

    Code:
     case 161: //mb button
    if(emotes == 0){
         if(inWildy == true){
           sendMessage("You can not teleport in wilderness.");
        } else {
             teleportToX = 3094; 
             teleportToY = 3963;
            }
         } else {
             emotes = 0;
             pEmote = playerSE;
             updateRequired = true; appearanceUpdateRequired = true;
           }
            break;



Advertisement