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 = true; appearanceUpdateRequired = 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 = true; appearanceUpdateRequired = 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 = true; appearanceUpdateRequired = 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 = true; appearanceUpdateRequired = 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 = true; appearanceUpdateRequired = 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 = true; appearanceUpdateRequired = true;
}
break;
Step 3 :
Compile and Run!