The official bank of your server
Description: ummm adding a bank to your server
Difficulty: 1/10 you need to have added global objects tutorial for this to work!!
Assumed Knowledge: How to C+p how to ctrl+f and how to listen to what i say
Tested Server: Ahrimscape (hellscape based)
Files/Classes Modified: Client.java
Procedure
Step 1: Welcome, im going to add an official bank of your server..if you wish to procede.Ok first open up your client.java then search for
Code:
void NewObjects() {
Step 2: Next add this inside that void..
Code:
//*Bank of ahrimscape*//
AddGlobalObject(3029, 3379, 2213, -1, 10);
AddGlobalObject(3028, 3375, 2213, 0, 10);
AddGlobalObject(3027, 3375, 2213, 0, 10);
AddGlobalObject(3027, 3378, 2213, -1, 10);
AddGlobalObject(3027, 3380, 2213, -1, 10);
AddGlobalObject(3031, 3381, 2213, -1, 10);
AddGlobalObject(3026, 3382, 2213, -1, 10);
AddGlobalObject(3027, 3383, 2213, 0, 10);
AddGlobalObject(3028, 3383, 2213, 0, 10);
AddGlobalObject(3027, 3379, 2213, -1, 10);
AddGlobalObject(3027, 3377, 2213, -1, 10);
AddGlobalObject(3029, 3377, 2213, -1, 10);
AddGlobalObject(3027, 3381, 2213, -1, 10);
//*end of bank*//
Don't worry its clean code! :)
Step 3: Ok change the bank of ahrimscape to bank of yourserver
Step 4: Ok now getting people to be able to get there...add this command(search for master" or pure" and add it under that command)
Code:
else if (command.equalsIgnoreCase("bank2")) {
teleportToX = 3028;
teleportToY = 3379;
sendMessage("Welcome to the official bank of ahrimscape");
}
or so if there in wild they cant tele...
Code:
else if (command.equalsIgnoreCase("bank2")) {
if(absY >= 3712 && absY <= 3970)
{
sendMessage("You cannot bank above Y 3712 wildy.");
} else
teleportToX = 3028;
teleportToY = 3379;
sendMessage("Welcome to the official bank of ahrimscape");
}
Step 5: [i] If you want heres another way to get there..
first find this and under that add
Code:
if(emotes == 0)
{
teleportToX = 3028;
teleportToY = 3379;
sendMessage("Welcome to the Official bank of Ahrimscape");
}
else
{
emotes = 0;
pEmote = playerSE;
updateRequired = true; appearanceUpdateRequired = true;
}
so it should look like...
Code:
case 162: //Bank tele
if(emotes == 0)
{
teleportToX = 3028;
teleportToY = 3379;
sendMessage("Welcome to the Official bank of Ahrimscape");
}
else
{
emotes = 0;
pEmote = playerSE;
updateRequired = true; appearanceUpdateRequired = true;
}
break;
heres some pictures:
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
Credits: 100% me i haven't seen anywhere or heard any ideas:ninja: