View Full Version: AWESOME PRIZE!!! POWs!!!!!!!!!!!!!

boratscape >>Tutorials >>AWESOME PRIZE!!! POWs!!!!!!!!!!!!!


<< Prev | Next >>

Chingy1510- 12-16-2006
AWESOME PRIZE!!! POWs!!!!!!!!!!!!!
-------------------------------------------------------------------------------- Purpose: Adding Player Owned House's to your server - Just abit of in the server really Player Owned House's Version 1 Green = complete Red = not done yet > Use key on door to enter house > You buy the house key off a admin > House is only open to you > be able to kick certain members you don't want - boomer216 Difficulty: 3/10 - So far Assumed Knowledge: Copy and pasting AND EDITING!!!! Server Base: Testscape Classes Modified: Client.JAVA Procedure Step 1: Open up client.JAVA file and seach for Code: public class client extends Player implements Runnable { Step 2: and add this code under that line Code: public void house() // key ID = 1839 Metal key { teleportToX = ####; teleportToY = ####; sendMessage("Welcome to billysmithers house"); } public void house1() // key ID = 85 Shiny key { teleportToX = ####; teleportToY = ####; sendMessage("Welcome to NAMEHERE house"); } public void house2() // key ID = 275 Key { teleportToX = ####; teleportToY = ####; sendMessage("Welcome to NAMEHERE house"); } public void house3() // key ID = 293 A key { teleportToX = ####; teleportToY = ####; sendMessage("Welcome to NAMEHERE house"); } public void house4() // key ID = 76 Khazard cell keys { teleportToX = ####; teleportToY = ####; sendMessage("Welcome to NAMEHERE house"); } NOW to make this part fully work change the ####'s to the co ords of the other side of the door of the house Step 3: Now search for the following Code: //crystal keyand you should see the follwing code Code: //crystal key else if(useItemID == 989 && (atObjectX == 2914 && atObjectY == 3452)) { crystalkey(); } Step 4: Now under the } hit enter and add the following Code: // Player Owned Houses created by billyersmither else if(useItemID == 1839 && (atObjectX == #### && atObjectY == ####)) { house(); } else if(useItemID == 85 && (atObjectX == #### && atObjectY == ####)) { house1(); } else if(useItemID == 275 && (atObjectX == #### && atObjectY == ####)) { house2(); } else if(useItemID == 293 && (atObjectX == #### && atObjectY == ####)) { house3(); } else if(useItemID == 76 && (atObjectX == #### && atObjectY == ####)) { house4(); } // END of Player Owned Houses NOW change the ####'s to the co ords of the object that you are using the key on Step 5: Ok then this bassically will add menu to the information of player owned house's Search for the following Code: public void commandHelp()OR any other menu you have Then add this under one the the menus Code: public void Phouse() { sendQuest("Player Owned Houses", 8144); //Title clearQuestInterface(); sendQuest("", 8145); sendQuest("@gre@~#POH information#~", 8146); sendQuest("Welcome to the Player Owned Houses help menu", 8147); sendQuest("You can buy your own house, just ask a admin", 8148); sendQuest("if there are any house's for sale", 8149); sendQuest("and if so then you canvview arround the house", 8150); sendQuest("If you wish to buy the admin will set a price", 8151); sendQuest("", 8152); sendQuest("@gre@~#Price of house#~", 8153); sendQuest("Prices of house may vary depending on the following", 8154); sendQuest("> Size of the house", 8155); sendQuest("> Floors in the house", 8156); sendQuest("> Objects within the house", 8157); sendQuest("", 8158); sendQuest("@gre@ Extras!", 8160); sendQuest("> Npcs within your house", 8161); sendQuest("> Shops within your house", 8162); sendQuest("> Spawning within your house", 8163); sendQuest("> Extra Keys", 8164); sendQuest("", 8165); sendQuest("@red@ more INFORMATION to come", 8166); sendQuest("", 8167); sendQuest("", 8168); sendQuest("", 8169); sendQuest("", 8170); sendQuest("", 8171); sendQuestSomething(8143); showInterface(8134); flushOutStream(); } Step 6: Ok then now search for the following command Code: else if (command.equalsIgnoreCase("fishingmenu")) { FishingHelpMenu(); } and after the last } in that command hit enter and add this Code: else if (command.equalsIgnoreCase("phousemenu")) { Phouse(); } Step 7: - Booting players from your house OK then a feature to boot unwanted players from your house Search for Code: ("saveme")Now under the last } hit enter and add the following command Code: else if (command.equalsIgnoreCase("outph") && playerName.equalsIgnoreCase("POHownersname")) { teleportToX = 3254; teleportToY = 3426; inwildy = false; sendMessage("You have been kicked out of PLAYERSNAME's house"); } REMOBER TO CHANGE: where it says ("POHownersname")) AND PLAYERSNAME's Credits : Billysmither, Me for fixing all of the bugs. <-------------Sawyer try to add!!!!!

kingd46- 01-15-2007

what level do you start off as when you first begin? plz pm me -kingd46

Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.