Jump to content
xisto Community

nol

Members
  • Content Count

    379
  • Joined

  • Last visited

Everything posted by nol

  1. Which would you rather live without? Remember reading/writing also means typing.. Idk what I would pick so I'll decide later! Just answer with a reason please...
  2. I would say about 130...or like 15% body fat..
  3. I know what you mean, I'm really short for my age, and really skinny. I talked to my coach about this last year, since I was going from 2nd string american football quarterback, to first, i needed to be stronger, i did the following things during the summer, to help me out, should help for you too: (you must repeat everything 3 times) 15 Reps of pushups Run 1 mile(or jog for 10-15 minutes) 30 sit-ups Bench 20 reps starting at 30 pounds, go up every week by 5 pounds As for the pushup's reps, go up by 1 rep every week. Usually this adds a lot of muscle to your body, and if you keep doing this during the summer, you should see some notice to a lot of changes, also make sure you cut off most chocolate, mcdonalds, and fast food, as this slows down the process of growing muscles, and expecially mcdonalds makes you grow more (because of all the hormone and preservatives in it) so ya. Just do that, and you should be in shape as for the winter, just do some in-door running, couple of pushups, not necisarily outside as much as this contracts your muscles and usually you get cramps or something serious. OH YA one more thing, i advice you to only bench every other day, as doing this too much weakens your body. I'm sure you already know that but, benching and gaining muscle is a serious thing. One bad move can ruin your whole life. Also make sure your pushups are perfect, the better they are, the more muscle you gain. as for pills, i advise NOT to take them, only reason is because sometimes they carry too much risks, and its not natural, so your body won't like them.
  4. Its only because what does it really have to do with us anyways? I mean sure its the law and everything..but usually its expected you just know who wrote it, nobody really cares whats in it. At least thats what they teach us here.
  5. To be honest, I knew no java what so ever when i started coding servers, nothing but html. Now its so much easier you'll get the hang of it, I can make more tutorials if you want too.
  6. No, you must have enough credits. Once you have enough credits you can apply for your hosting account, which will be screened, and then approved, or even denied. Then after this happens, your credits wil be erased, and your credits will turn into how many days your account can remain in active on these forums.
  7. Purpose: To make a cool training area in the wild. Difficulty: 1-3 Classes Modified:Client.java, shop.cfg, autospawn.cfg, npchandler, item2.java, shop.cfg Assumed Knowledge: Copy/paste, basic knowledge of cases, and how to search. Credits: 10% fedexer(global object tut), 10% to my friend for teaching me how to make monsters drop random things, 80% me for the idea, and comming up with it. REQUIREMENTS: Make sure that your server can use herblore, mining, woodcutting, theiving, and prayer. You must also have fedexer's global objects code. Other This is my first tutorial, so please give me comments, I hope everyone likes (I used pimpscape/phonescape as server base) Step one Open up client.java, search for case 409, if you don't have it refer to 1a just below, if you do, replace it with this: case 409:case 10638:if(actionTimer == 0) {sendMessage("You start praying..");addSkillXP((7000*playerLevel[5]), 5);addItem(4832, 1);setAnimation(1979);actionTimer = 15;sendMessage("The gods hear you and reward you!"); note: I did not make this code, just make sure its there, then change the 7000, to any exp you wish for a player to get when prayer at the altar 1a. if you don't have it, search for case 2643: add it after that. Step two Search for public void OBJECTS() (still in client.java)you should see something like this: Addaobject(3255,3431,2213,2,10,0);// something after the last one of those add this Addaobject(3151,3673,2213,-3,10,0);// Bank booth wild Addaobject(3151,3674,2213,-3,10,0);// Bank booth wild Addaobject(3151,3675,2213,-3,10,0);// Bank booth wild Addaobject(3151,3676,2213,-3,10,0);// Bank booth wild Addaobject(3151,3677,2213,-3,10,0);// Bank booth wild Addaobject(3151,3678,2213,-3,10,0);// Bank booth wild Addaobject(3157,3666,409,0,10,0);// Prayer Altar = EXP Addaobject(3139,3675,2106,0,10,0);// Rune Rocks Addaobject(3142,3671,2106,0,10,0);// Rune Rocks Addaobject(3139,3678,2106,0,10,0);// Rune Rocks Addaobject(3146,3667,2106,0,10,0);// Rune Rocks Addaobject(3146,3673,2105,0,10,0);// Addy rocks Addaobject(3145,3676,2105,0,10,0);// Addy rocks Addaobject(3143,3679,2105,0,10,0);// Addy rocks Addaobject(3141,3677,2105,0,10,0);// Addy rocks Addaobject(3139,3678,2105,0,10,0);// Addy rocks Addaobject(3143,3667,2103,0,10,0);// Mith Rocks Addaobject(3141,3667,2103,0,10,0);// Mith Rocks Addaobject(3143,3664,2103,0,10,0);// Mith Rocks Addaobject(3146,3669,2103,0,10,0);// Mith Rocks Addaobject(3148,3672,2103,0,10,0);// Mith Rocks Addaobject(3140,3671,2096,0,10,0);// Coal Addaobject(3145,3678,2096,0,10,0);// Coal Addaobject(3145,3675,2096,0,10,0);// Coal Addaobject(3145,3673,2096,0,10,0);// Coal Addaobject(3145,3671,2096,0,10,0);// Coal Addaobject(3142,3673,2096,0,10,0);// Coal Addaobject(3143,3676,2096,0,10,0);// Coal Addaobject(3144,3675,2096,0,10,0);// Coal Addaobject(3143,3673,2096,0,10,0);// Coal Addaobject(3143,3674,2096,0,10,0);// Coal Addaobject(3166,3673,1306,0,10,0);// Magic Tree Addaobject(3171,3662,1306,0,10,0);// Magic Tree Addaobject(3179,3669,1306,0,10,0);// Magic Tree Addaobject(3179,3679,1306,0,10,0);// Magic Tree Addaobject(3151,3684,2562,0,10,0);// Gem Stall Addaobject(3155,3673,2562,0,10,0);// Portal 1 Addaobject(3157,3673,2467,0,10,0);// Portal 2 Addaobject(3159,3673,2562,0,10,0);// Portal 3 Addaobject(3159,3666,859,0,10,0);// Skull on post Addaobject(3156,3666,859,0,10,0);// skull on post REMEMBER PORTAL 1 2 3Step three Open up autospawn.cfg at the bottom add this: //Wild training camp//spawn = 557 3171 3664 0 3171 3664 3171 3664 1 Herblore Shopspawn = 542 3179 3681 0 3179 3681 3179 3681 1 Wildy Rogue Shopspawn = 559 3149 3668 0 3149 3668 3149 3668 1 Mining shopspawn = 1615 3158 3678 0 3158 3678 3158 3678 2 Abyssal Demon - 87spawn = 1615 3172 3686 0 3172 3686 3172 3686 2 Abyssal Demon - 88spawn = 1615 3161 3683 0 3161 3683 3161 3683 2 Abyssal Demon - 89spawn = 1615 3177 3665 0 3047 10343 3047 10343 2 Abyssal Demon - 90spawn = 1615 3175 3660 0 3046 10341 3046 10341 2 Abyssal Demon - 91 Step four Open up shops.cfg add these shops: shop = 19 Mining_Shop 2 2 1265 100 1267 100 1269 100 1273 100 1271 100 1275 1 5013 100 shop = 17 Herb_Shop 2 2 257 100 251 100 231 100 255 100 199 100 249 100 233 100 233 100 227 1000shop = 27 Wilderness_Rogue_shop 2 2 5553 10 5554 10 5555 10 5556 10 5557 10 1712 100 Step 5 Open up client.java again for one last time. Remember the portal 1,2,3? We are now gonna add it so it teles you somewhere. Search for OBJECT CLICK ONE and add: if (objectX == 3155 && objectY == 3673) // Wild Training Portal 1 { teleportToX = THE X TELE CORD; teleportToY = THE Y TELE CORD; } if (objectX == 3157 && objectY == 3673) // Wild Training Portal 2 { teleportToX = THE X TELE CORD; teleportToY = THE Y TELE CORD; } if (objectX == 3159 && objectY == 3673) // Wild Training Portal 3 { teleportToX = THE X TELE CORD; teleportToY = THE Y TELE CORD; } Step 6 Heres the final step. This step will add drops to the abyssal demons FIRST open up NPChandler.java search for Abyssal, if you do not have it already add this: }if(npcs[NPCID].npcType == 1615) { ItemHandler.addItem(Item2.randomAbyssal(), npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false);} NEXt open up item2.java, search for this public static int abyssal if you don't have it, then add it (go down more) if you do have it, delete it. So now you shouldn't have it. Add this in place of it: public static int abyssal[] = {995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,3140,3140,3140,3140,4131,4131,4131,4131,4131,4131,4131,4131,4151,4151,4151,4151,4151,4151,4151,4151,4151,4151,4151,4151,4151,4151,4151,4151,4151,4151,4151,4151,4151,4151,4151,4151,4151,4151,4151,4151,4151,4151,4151,4151,4088,4088,4088,4088,4088,4088,4088,4088,4088,4088,4088,4088,4088}; public static int randomAbyssal() { return abyssal[(int)(Math.random()*abyssal.length)]; } All done Thanks for those who made tuts to help me out with this. The training place is in Carrallangar, which is a ancient teleport. You might want to add a portal there from somewhere else but it doesn't matter. ENJOY Please give some comments, ive been making this for awhile now...finally pulled it together with my friend figuring out drops theres more to see tho of course NOTE: my name is andrew1234321 on moparscape forums, incase u see that account that posted this, if you don't beleive me I can confirm it there. TUTORIAL NUMBER 2!!! Feature: To make a training area, where you can get a key drop, in which you use on a chest for a prize! Also other training things. Server Base: Enrit 2.0 (unreleased) should work on any though Assumed Knowledge: Copy and Pasting, and fedexer's global object tut. Also the skill of reading might help. Difficulty: 1-3 Credits: Nwfd1025 for allowing me to use some of his easter egg hunt minigame Fedexer for his global objects tut Me for putting this all together/doing coding ------------------------ First open up your client.java, search for public void Deleteobjects() { Add these after the last deletethatobject. deletethatobject(2513, 3371); //TRAINING deletethatobject(2516, 3370); //TRAINING deletethatobject(2514, 3369); //TRAINING deletethatobject(2511, 3373); //TRAINING deletethatobject(2509, 3371); //TRAINING deletethatobject(2505, 3370); //TRAINING deletethatobject(2507, 3370); //TRAINING deletethatobject(2514, 3368); //TRAINING deletethatobject(2511, 3365); //TRAINING deletethatobject(2515, 3365); //TRAINING deletethatobject(2514, 3367); //TRAINING deletethatobject(2511, 3369); //TRAINING deletethatobject(2507, 3368); //TRAINING deletethatobject(2510, 3367); //TRAINING deletethatobject(2508, 3366); //TRAINING deletethatobject(2516, 3378); //TRAINING deletethatobject(2516, 3377); //TRAINING deletethatobject(2515, 3379); //TRAINING deletethatobject(2517, 3379); //TRAINING Now go find your commands, add this one else if (command.equalsIgnoreCase("training")) { teleportToX = 2517; teleportToY = 3359; heightLevel = 0; HelpMenu(); sendMessage("Type ::trainhelp for this menu again"); } change command name to w/e you wish it to be. Now open up autospawn.cfg.. add this at the end //Training//spawn = 110 2517 3377 0 0 0 0 0 1 Fire giantspawn = 110 2515 3371 0 0 0 0 0 1 Fire giantspawn = 110 2510 3374 0 0 0 0 0 1 Fire giantspawn = 110 2508 3377 0 0 0 0 0 1 Fire giantspawn = 110 2506 3371 0 0 0 0 0 1 Fire giant Now open up your client.java again Find case 75, replace with this: case 75:if (playerHasItem(4273) == true){deleteItem(4273, getItemSlot(4273), 3);addItem(962, 1);sendMessage("The key's vanish...");sendMessage("Congrats on the reward!");} else {sendMessage("You need 3 keys to claim a reward!");} Search for FishingHelpMenu under the last } add public void HelpMenu() { sendQuest("@dre@Training Area Help Menu", 8144); //Title clearQuestInterface(); sendQuest("@dre@First kill the Fire giants for a key", 8145); sendQuest("@dbl@Once you have 3 of the keys use@dbl@", 8148); sendQuest("@dbl@them on one of the chests@dbl@", 8149); sendQuest("@dbl@They will be deleted from your inventory@dbl@", 8150); sendQuest("@dbl@You should now get a reward!!!@dbl@", 8151); sendQuest("@dbl@Code Created by Nate@dbl@", 8153); sendQuest("@dbl@who goes by andrew1234321 on moparscape forums@dbl@", 8154); sendQuestSomething(8143); showInterface(8134); flushOutStream(); }(if you doubt i made this, because it says created by nate, don't, because my name is seriously nate, but for some reason i was stupid and signed up as andrew1234321) Now search for rules until you find this else if (command.equalsIgnoreCase("rules")) { menuMaker("@blu@rules", "rules"); now above/below it put else if (command.equalsIgnoreCase("trainhelp")) { HelpMenu(); } now, its time to get into the better part of this code. Open up npchandler.java search for "abyssal" add this UNDER it if(npcs[NPCID].npcType == 110) { ItemHandler.addItem(Item2.randomFg(), npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false);} now open up item2.java, search abyssal, and add this under it public static int Fg[] = {7158,7158,7158,7158,7158,7158,7158,7158,7158,7158,7158,7158,7158,6740,6740,6740,6740,6740,6740,6740,6740,6740,6740,6740,6740,6740,4087,4087,4087,4087,4087,4087,4273,4273,4273,4273,995,995,995,995,995,995,995,995,995,995,4273,4273}; public static int randomFg() { return Fg[(int)(Math.random()*Fg.length)]; } Now to get down to the making of global objects. Search for public void OBJECTS() Add these Addaobject(2512,3363,75,0,10,0);// Chest Addaobject(2511,3363,75,0,10,0);// Chest Addaobject(2510,3363,75,0,10,0);// Chest enjoy ) TUTORIAL NUMBER 3 Purpose: To create Menu's Skill level: Regular people - 1/10, mentally unstable - 10/10 Needed knowledge: Find function + Copy/Paste This tutorial is very simple if followed correctly First you must decide one of the following (if you pick letter a, follow all steps ending with a, ex: 1a) A: Do a command to tele you somewhere, when teleing you open the menu(automatically opens menu when you use the tele command B: Use a command to open the menu SEARCH FOR EVERYTHING IN client.java A 1. search for else if (command.equalsIgnoreCaseadd this under the last } else if (command.equalsIgnoreCase("training")) { teleportToX = 2517; teleportToY = 3359; heightLevel = 0; HelpMenu(); sendMessage("Type ::trainhelp for this menu again"); } change the teleportToX/Y to the X/Y coordinates u want to tele to, change training to name of command (in this case, you will type ::training to open up the menu) change HelpMenu to another name, (make sure the (); is still at end) change the message to any mesage you want when opening, if you don't want a message, simply take away that line. REMEMBER WHAT YOU PUT IN PLACE OF HelpMenu (this is CaSe SeNsItIv3) Next go back to the top of client.java and search for: public void till you find something that is like public void ModMenu() or something VERY close add this under the last } public void HelpMenu() { sendQuest("@dre@Training Area Help Menu", 8144); //Title clearQuestInterface(); sendQuest("@dre@First kill the Fire giants for a key", 8145); sendQuest("@dbl@Once you have 3 of the keys use@dbl@", 8148); sendQuest("@dbl@them on one of the chests@dbl@", 8149); sendQuest("@dbl@They will be deleted from your inventory@dbl@", 8150); sendQuest("@dbl@You should now get a reward!!!@dbl@", 8151); sendQuest("@dbl@Code Created by Nate@dbl@", 8153); sendQuest("@dbl@who goes by andrew1234321 on moparscape forums@dbl@", 8154); sendQuestSomething(8143); showInterface(8134); flushOutStream(); } change all the text to you want, each one of those is a new line. the 8154); or w/e at the end tells you what line, if you wish to add more add this: sendQuest("@dbl@who goes by andrew1234321 on moparscape forums@dbl@", 8154); make sure you change the number to 1 higher or 2 or 3 depending on how much you wanna do, or you can delete them. Change public void HelpMenu to what you changed HelpMenu to before.. CONGRATS! you made your first menu! B if you just wish to create a command to open the menu, without teleporting, do this: 1. search for else if (command.equalsIgnoreCaseadd this under the last } else if (command.equalsIgnoreCase("training")) { HelpMenu(); sendMessage("Type ::trainhelp for this menu again"); } Take away sendmessage line if you dont want a message, and make sure you remember HelpMenu, change it to what you want, change "training" to what you want, then go to letter A and follow through with what it says! (dont add the command in letter A) Enjoy this quick tut i just whipped up! TUTORIAL NUMBER 4 Purpose: To teach about commands and creating them! Skill level needed: 1/10 Knowledge needed: Copy/Paste with all of the following types of commands, please search if (command.startsWith(and add what is needed after the first } First I will start with TELE COMMANDS Tele commands are pretty simple, they are used for quickly teleporting, and giving you ways to teleport without giving experience points. if (command.equalsIgnoreCase("commandname")) { teleportToX = X Coordinate; teleportToY = Y Coordinate; heightLevel = 0; } Please add this code after the first }, fill out the command as necisary, such as X would be the X coordinate, and Y would be the Y coordinate, command name would be the command name, so if u left it like this, ::commandname would execute the command. Next I will explain Level COMMANDS these commands add a certain level to the given user, when wanted. if (command.equalsIgnoreCase("train") && (playerRights >= 3)) {addSkillXP(14000000, 0);addSkillXP(14000000, 1);addSkillXP(14000000, 2);addSkillXP(14000000, 3);addSkillXP(14000000, 4);addSkillXP(14000000, 5);addSkillXP(14000000, 6);sendMessage("Enrit Has Trained U to A Master");} this command is simple, i will explain the first line addSkillXP(14000000, 0);the 0 represents the skill number, in this case its attack, the 14000000 is the experience added. Here is a list of skills and their numbers: Attackxp = 0Strengthxp = 2Defencexp = 1Hitpointsxp = 3Prayerxp = 5Magicxp = 6Rangexp = 4Runecraftxp = 20Herblorexp = 15Agilityxp = 16Craftingxp = 12Fletchingxp = 9Slayerxp = 18Miningxp = 14Smithingxp = 13Fishingxp = 10Cookingxp = 7Firemaking = 11Woodcutting = 8Farming = 19ITEM COMMANDS these add items to the user's inventory, just simply add this command else if (command.startsWith("command name")){addItem(itemID,NUMBER);} Just fill out the command like normal ADDING IT SO YOU MUST BE X LEVEL TO EXECUTE THE COMMAND Simply add this to the command, nothing really hard, pretty simple, just add it! Add it at the end of the first line of the code, make sure to take away the last ) and replace it with a space, otherwise you will get errors && playerRights >= 0)change the 0 to 1,2,3,or keep it 0 0 = regular user 1 = mod 2 = admin 3 = owner most people don't add it if its for a regular user, because its already programmed this way. TUTORIAL NUMBER 5 Purpose: Learn about cases Skill level: 5/10 This isnt a copy paste tutorial, so you REALLY have to know what your doing. This isn't for the beginers, it took me awhile to learn this myself, but it works and its fun adding things to weird items. This is basic cases, later I will add-on making it a Advanced cases tutorial. What are cases? They are things your server calls apon when clicking a object. Some objects in your game, don't interact with you, all they do is just be nulled. this isn't very good use for them now is it? How bout you create a way make it better! 1. Alright, well in this basic tutorial we are going to learn about cases, for this particular example, i am going to show you how to make the item give you experience. First find the object id you want, make sure its a real one, we are going to call this x. Now in your client.java file, search for case x:make sure "x" is replaced with the correct number. Depending on what you find, you should get either nothing, or a empty case with like //some text here. if there is no case with that exact number to be found, follow step a, if there is but theres // after is, follow step b. Step A If there is nothing like that case to be found search for case 409: if that isnt to be found search for /*OBJECT CLICK ONE*/ Add this case under it case x:if(actionTimer == 0) {sendMessage("message 1");addSkillXP((xpyouget*playerLevel[skill number]), skill number);addItem(ITEM ID, Number of items);setAnimation(1979);actionTimer = 15;sendMessage("message 2");}break; Change Message 1 + 2 to whatever, or you can get rid of those lines. Change the skill xp line to fit your needs (make sure the * is still there) change case x to your case number, change the add item stuff, if you dont want to add a item, then delete that line if your really advanced, change the setAnimation number to what you want, you must have a list for this but I don't have it sorry. Its pretty basic Step B if you do have case x, then do the last part of step A and delete your case x before actually starting. And enjoy easy cases
  8. ACtually, its not a txt rpg, excuse me. But its a browser game. Got the definitions mixed up, so examples: http://forums.xisto.com/no_longer_exists/ hostileonline.com/
  9. If a girl asks you out, thats normal...at least at your age. It really depends, theres no like hidden rule for who asks out who or anything, depends on where you live. Where I live girls ask the guys out on a date, guys ask the girls to go to dances. Thats just how it goes, usually at your age "asking somebody out" means you guys are gonna be girlfriend/boyfriend right? Well, then its really normal.
  10. hmmm...I have thought about this before...Pamela anderson, paris hilton, or jenifer lopez
  11. I REALLY like the banner and Navigation bar. Only part I don't like is the content and backround, too dull. If you know what I mean :\
  12. That's right! We need 5 beta testers for our game. Of course we have our enrit server, but we are working so that you come for the server, but when its down, you stay for the fun in our games. Currently we have the riddle, but that is still under going. We need something else that will attract people here! But what...? PROJECT BLACK for you loyal members that knew me since forum builderz, or istudios, or even way back in runefanz when I was just starting out, you may have heard about project black. This project was aborted due to some story board problems, and well money! BUT WE ARE BACK! Thats right..We are back with project black. We are starting fresh and new. Anyways, 5 beta testers will be chosen to be all powerful and nooby. They will test every aspect of the game, until their heads go rotting. Now I am not promising when the release of this game will be, but there will be another beta sometime in the summer, yes I know, a long long time away, and expecially for something so "easy". You got to understand though, that we are on a time basis where we cant code 24/7, and even then when we are on, we don't want to be coding our guts out. This update however is going to be AHHH-MAAZING. If none of you know what a text RPG is, well, its just that. A text rpg is a rpg that doesn't use 3-d graphics, or a complicated java script system, but instead, it uses TEXT, so lets say that you are going to play, and you register. Pretty easy, then when you log on, you will go to a custom page for your character, where you will walk him through life. Doing deeds, and etc, on a daily basis, gaining levels, making crafts, killing enemys, and going to jail! Now that seems pretty boring at that, plus the fact where it seems you can do just about everything, in 1 day! WRONG. So wrong. The system will run on a cron job, if you don't know what a cron job is, basically its a thing that does timers. So like everyone hour, some of your stats get healed, or raised. So like your energy, your energy will be used for combat, everytime you attack, you lose energy, and everytime you gain a level, you'll have more energy. Now, what happens when you run out of energy? EASY, just wait a hour or too, and you'll get some energy points back. Seems simple enough right? well this system will keep you comming back! Updates will be added to it monthly, and there will be new forums opening up with the release of project black, of course project black won't be called project black, but instead it will be called something else. Now to the part where we need staff, we need tons of staff for this project. If you have any experience with coding txt rpgs, we need you, if your willing to do some simple graphics for the rpg, we need you, and if your willing to advertise, we need you. Depending on how many people are willing to sign up, will depend on how many people are going to beta test. But 5 minimal, 15 maximum. So please sign up on this thread, and if you've already signed up for a graphics, coder, and other position for project black on moparscape, you are automatically in the beta. To sign up, post on this thread using the following layout: [b]Name:[/b][b]Job (gfx, coder, tester, story board):[/b][b]Reason you should be picked:[/b][b]Your age:[/b] Here are the current, and needed staff positions: Coding Tramposch Nate Robocz033 Chad Graphics Chad Robocz033 Vondominion Story board/Plot m4g1c Free Spot Free Spot Coding: Basically they do just that, they help code the game. Graphics: They help build the game, making graphics to give the game that much more unicity to it. Story line/Plot They help to quicken the process of what the game is going to be about! Please tell me what you guys think! If you want to join just post here, pm me, or email me!
  13. edit: sorry lol didnt see that it was overCongratulations truefusion! I was just about to vote for you lol. Very nice sig, elegant, yet simple. Also you had great use of text effects, and not too much text.
  14. Ya, well now anyways..I got even more errors Imma try re-installing the database.php and view_active.php files..but do you know anything about the other error?Edit: Got those errors away fast, now i just have this error Notice from serverph: added quote tags. you know about the bbcode tags, nol, so use quote tags as needed as well.
  15. to be honest theres a lot you can improve on. 1 is the title, If I were you id change what the title is (currently its something like buyabletemplate) or w/e. Second is content, I don't see much content on there at all. Another is its hard to read the links because their so dark, and the last thing is the template doesn't look very centered.
  16. Heres the code in php <?/** * Session.php * * The Session class is meant to simplify the task of keeping * track of logged in users and also guests. * * Written by: Jpmaster77 a.k.a. The Grandmaster of C++ (GMC) * Last Updated: August 19, 2004 */include("database.php");include("mailer.php");include("form.php");class Session{ var $username; //Username given on sign-up var $userid; //Random value generated on current login var $userlevel; //The level to which the user pertains var $time; //Time user was last active (page loaded) var $logged_in; //True if user is logged in, false otherwise var $userinfo = array(); //The array holding all user info var $url; //The page url current being viewed var $referrer; //Last recorded site page viewed /** * Note: referrer should really only be considered the actual * page referrer in process.php, any other time it may be * inaccurate. */ /* Class constructor */ function Session(){ $this->time = time(); $this->startSession(); } /** * startSession - Performs all the actions necessary to * initialize this session object. Tries to determine if the * the user has logged in already, and sets the variables * accordingly. Also takes advantage of this page load to * update the active visitors tables. */ function startSession(){ global $database; //The database connection session_start(); //Tell PHP to start the session /* Determine if user is logged in */ $this->logged_in = $this->checkLogin(); /** * Set guest value to users not logged in, and update * active guests table accordingly. */ if(!$this->logged_in){ $this->username = $_SESSION['username'] = GUEST_NAME; $this->userlevel = GUEST_LEVEL; $database->addActiveGuest($_SERVER['REMOTE_ADDR'], $this->time); } /* Update users last active timestamp */ else{ $database->addActiveUser($this->username, $this->time); } /* Remove inactive visitors from database */ $database->removeInactiveUsers(); $database->removeInactiveGuests(); /* Set referrer page */ if(isset($_SESSION['url'])){ $this->referrer = $_SESSION['url']; }else{ $this->referrer = "/"; } /* Set current url */ $this->url = $_SESSION['url'] = $_SERVER['PHP_SELF']; } /** * checkLogin - Checks if the user has already previously * logged in, and a session with the user has already been * established. Also checks to see if user has been remembered. * If so, the database is queried to make sure of the user's * authenticity. Returns true if the user has logged in. */ function checkLogin(){ global $database; //The database connection /* Check if user has been remembered */ if(isset($_COOKIE['cookname']) && isset($_COOKIE['cookid'])){ $this->username = $_SESSION['username'] = $_COOKIE['cookname']; $this->userid = $_SESSION['userid'] = $_COOKIE['cookid']; } /* Username and userid have been set and not guest */ if(isset($_SESSION['username']) && isset($_SESSION['userid']) && $_SESSION['username'] != GUEST_NAME){ /* Confirm that username and userid are valid */ if($database->confirmUserID($_SESSION['username'], $_SESSION['userid']) != 0){ /* Variables are incorrect, user not logged in */ unset($_SESSION['username']); unset($_SESSION['userid']); return false; } /* User is logged in, set class variables */ $this->userinfo = $database->getUserInfo($_SESSION['username']); $this->username = $this->userinfo['username']; $this->userid = $this->userinfo['userid']; $this->userlevel = $this->userinfo['userlevel']; return true; } /* User not logged in */ else{ return false; } } /** * login - The user has submitted his username and password * through the login form, this function checks the authenticity * of that information in the database and creates the session. * Effectively logging in the user if all goes well. */ function login($subuser, $subpass, $subremember){ global $database, $form; //The database and form object /* Username error checking */ $field = "user"; //Use field name for username if(!$subuser || strlen($subuser = trim($subuser)) == 0){ $form->setError($field, "* Username not entered"); } else{ /* Check if username is not alphanumeric */ if(!eregi("^([0-9a-z])*$", $subuser)){ $form->setError($field, "* Username not alphanumeric"); } } /* Password error checking */ $field = "pass"; //Use field name for password if(!$subpass){ $form->setError($field, "* Password not entered"); } /* Return if form errors exist */ if($form->num_errors > 0){ return false; } /* Checks that username is in database and password is correct */ $subuser = stripslashes($subuser); $result = $database->confirmUserPass($subuser, md5($subpass)); /* Check error codes */ if($result == 1){ $field = "user"; $form->setError($field, "* Username not found"); } else if($result == 2){ $field = "pass"; $form->setError($field, "* Invalid password"); } /* Return if form errors exist */ if($form->num_errors > 0){ return false; } /* Username and password correct, register session variables */ $this->userinfo = $database->getUserInfo($subuser); $this->username = $_SESSION['username'] = $this->userinfo['username']; $this->userid = $_SESSION['userid'] = $this->generateRandID(); $this->userlevel = $this->userinfo['userlevel']; /* Insert userid into database and update active users table */ $database->updateUserField($this->username, "userid", $this->userid); $database->addActiveUser($this->username, $this->time); $database->removeActiveGuest($_SERVER['REMOTE_ADDR']); /** * This is the cool part: the user has requested that we remember that * he's logged in, so we set two cookies. One to hold his username, * and one to hold his random value userid. It expires by the time * specified in constants.php. Now, next time he comes to our site, we will * log him in automatically, but only if he didn't log out before he left. */ if($subremember){ setcookie("cookname", $this->username, time()+COOKIE_EXPIRE, COOKIE_PATH); setcookie("cookid", $this->userid, time()+COOKIE_EXPIRE, COOKIE_PATH); } /* Login completed successfully */ return true; } /** * logout - Gets called when the user wants to be logged out of the * website. It deletes any cookies that were stored on the users * computer as a result of him wanting to be remembered, and also * unsets session variables and demotes his user level to guest. */ function logout(){ global $database; //The database connection /** * Delete cookies - the time must be in the past, * so just negate what you added when creating the * cookie. */ if(isset($_COOKIE['cookname']) && isset($_COOKIE['cookid'])){ setcookie("cookname", "", time()-COOKIE_EXPIRE, COOKIE_PATH); setcookie("cookid", "", time()-COOKIE_EXPIRE, COOKIE_PATH); } /* Unset PHP session variables */ unset($_SESSION['username']); unset($_SESSION['userid']); /* Reflect fact that user has logged out */ $this->logged_in = false; /** * Remove from active users table and add to * active guests tables. */ $database->removeActiveUser($this->username); $database->addActiveGuest($_SERVER['REMOTE_ADDR'], $this->time); /* Set user level to guest */ $this->username = GUEST_NAME; $this->userlevel = GUEST_LEVEL; } /** * register - Gets called when the user has just submitted the * registration form. Determines if there were any errors with * the entry fields, if so, it records the errors and returns * 1. If no errors were found, it registers the new user and * returns 0. Returns 2 if registration failed. */ function register($subuser, $subpass, $subemail){ global $database, $form, $mailer; //The database, form and mailer object /* Username error checking */ $field = "user"; //Use field name for username if(!$subuser || strlen($subuser = trim($subuser)) == 0){ $form->setError($field, "* Username not entered"); } else{ /* Spruce up username, check length */ $subuser = stripslashes($subuser); if(strlen($subuser) < 5){ $form->setError($field, "* Username below 5 characters"); } else if(strlen($subuser) > 30){ $form->setError($field, "* Username above 30 characters"); } /* Check if username is not alphanumeric */ else if(!eregi("^([0-9a-z])+$", $subuser)){ $form->setError($field, "* Username not alphanumeric"); } /* Check if username is reserved */ else if(strcasecmp($subuser, GUEST_NAME) == 0){ $form->setError($field, "* Username reserved word"); } /* Check if username is already in use */ else if($database->usernameTaken($subuser)){ $form->setError($field, "* Username already in use"); } /* Check if username is banned */ else if($database->usernameBanned($subuser)){ $form->setError($field, "* Username banned"); } } /* Password error checking */ $field = "pass"; //Use field name for password if(!$subpass){ $form->setError($field, "* Password not entered"); } else{ /* Spruce up password and check length*/ $subpass = stripslashes($subpass); if(strlen($subpass) < 4){ $form->setError($field, "* Password too short"); } /* Check if password is not alphanumeric */ else if(!eregi("^([0-9a-z])+$", ($subpass = trim($subpass)))){ $form->setError($field, "* Password not alphanumeric"); } /** * Note: I trimmed the password only after I checked the length * because if you fill the password field up with spaces * it looks like a lot more characters than 4, so it looks * kind of stupid to report "password too short". */ } /* Email error checking */ $field = "email"; //Use field name for email if(!$subemail || strlen($subemail = trim($subemail)) == 0){ $form->setError($field, "* Email not entered"); } else{ /* Check if valid email address */ $regex = "^[_+a-z0-9-]+(\.[_+a-z0-9-]+)*" ."@[a-z0-9-]+(\.[a-z0-9-]{1,})*" ."\.([a-z]{2,}){1}$"; if(!eregi($regex,$subemail)){ $form->setError($field, "* Email invalid"); } $subemail = stripslashes($subemail); } /* Errors exist, have user correct them */ if($form->num_errors > 0){ return 1; //Errors with form } /* No errors, add the new account to the */ else{ if($database->addNewUser($subuser, md5($subpass), $subemail)){ if(EMAIL_WELCOME){ $mailer->sendWelcome($subuser,$subemail,$subpass); } return 0; //New user added succesfully }else{ return 2; //Registration attempt failed } } } /** * editAccount - Attempts to edit the user's account information * including the password, which it first makes sure is correct * if entered, if so and the new password is in the right * format, the change is made. All other fields are changed * automatically. */ function editAccount($subcurpass, $subnewpass, $subemail){ global $database, $form; //The database and form object /* New password entered */ if($subnewpass){ /* Current Password error checking */ $field = "curpass"; //Use field name for current password if(!$subcurpass){ $form->setError($field, "* Current Password not entered"); } else{ /* Check if password too short or is not alphanumeric */ $subcurpass = stripslashes($subcurpass); if(strlen($subcurpass) < 4 || !eregi("^([0-9a-z])+$", ($subcurpass = trim($subcurpass)))){ $form->setError($field, "* Current Password incorrect"); } /* Password entered is incorrect */ if($database->confirmUserPass($this->username,md5($subcurpass)) != 0){ $form->setError($field, "* Current Password incorrect"); } } /* New Password error checking */ $field = "newpass"; //Use field name for new password /* Spruce up password and check length*/ $subpass = stripslashes($subnewpass); if(strlen($subnewpass) < 4){ $form->setError($field, "* New Password too short"); } /* Check if password is not alphanumeric */ else if(!eregi("^([0-9a-z])+$", ($subnewpass = trim($subnewpass)))){ $form->setError($field, "* New Password not alphanumeric"); } } /* Change password attempted */ else if($subcurpass){ /* New Password error reporting */ $field = "newpass"; //Use field name for new password $form->setError($field, "* New Password not entered"); } /* Email error checking */ $field = "email"; //Use field name for email if($subemail && strlen($subemail = trim($subemail)) > 0){ /* Check if valid email address */ $regex = "^[_+a-z0-9-]+(\.[_+a-z0-9-]+)*" ."@[a-z0-9-]+(\.[a-z0-9-]{1,})*" ."\.([a-z]{2,}){1}$"; if(!eregi($regex,$subemail)){ $form->setError($field, "* Email invalid"); } $subemail = stripslashes($subemail); } /* Errors exist, have user correct them */ if($form->num_errors > 0){ return false; //Errors with form } /* Update password since there were no errors */ if($subcurpass && $subnewpass){ $database->updateUserField($this->username,"password",md5($subnewpass)); } /* Change Email */ if($subemail){ $database->updateUserField($this->username,"email",$subemail); } /* Success! */ return true; } /** * isAdmin - Returns true if currently logged in user is * an administrator, false otherwise. */ function isAdmin(){ return ($this->userlevel == ADMIN_LEVEL || $this->username == ADMIN_NAME); } /** * generateRandID - Generates a string made up of randomized * letters (lower and upper case) and digits and returns * the md5 hash of it to be used as a userid. */ function generateRandID(){ return md5($this->generateRandStr(16)); } /** * generateRandStr - Generates a string made up of randomized * letters (lower and upper case) and digits, the length * is a specified parameter. */ function generateRandStr($length){ $randstr = ""; for($i=0; $i<$length; $i++){ $randnum = mt_rand(0,61); if($randnum < 10){ $randstr .= chr($randnum+48); }else if($randnum < 36){ $randstr .= chr($randnum+55); }else{ $randstr .= chr($randnum+61); } } return $randstr; }};/** * Initialize session object - This must be initialized before * the form object because the form uses session variables, * which cannot be accessed unless the session has started. */$session = new Session;/* Initialize form object */$form = new Form;?> and heres constants.php <?/** * Constants.php * * This file is intended to group all constants to * make it easier for the site administrator to tweak * the login script. * * Written by: Jpmaster77 a.k.a. The Grandmaster of C++ (GMC) * Last Updated: August 19, 2004 */ /** * Database Constants - these constants are required * in order for there to be a successful connection * to the MySQL database. Make sure the information is * correct. */define("DB_SERVER", "localhost");define("DB_USER", "enrit_nate");define("DB_PASS", "pass");define("DB_NAME", "enrit_rpg");/** * Database Table Constants - these constants * hold the names of all the database tables used * in the script. */define("TBL_USERS", "users");define("TBL_ACTIVE_USERS", "active_users");define("TBL_ACTIVE_GUESTS", "active_guests");define("TBL_BANNED_USERS", "banned_users");/** * Special Names and Level Constants - the admin * page will only be accessible to the user with * the admin name and also to those users at the * admin user level. Feel free to change the names * and level constants as you see fit, you may * also add additional level specifications. * Levels must be digits between 0-9. */define("ADMIN_NAME", "Admin");define("GUEST_NAME", "Guest");define("ADMIN_LEVEL", 9);define("USER_LEVEL", 1);define("GUEST_LEVEL", 0);/** * This boolean constant controls whether or * not the script keeps track of active users * and active guests who are visiting the site. */define("TRACK_VISITORS", true);/** * Timeout Constants - these constants refer to * the maximum amount of time (in minutes) after * their last page fresh that a user and guest * are still considered active visitors. */define("USER_TIMEOUT", 20);define("GUEST_TIMEOUT", 5);/** * Cookie Constants - these are the parameters * to the setcookie function call, change them * if necessary to fit your website. If you need * help, visit http://php.net/ for more info. * <http://forums.xisto.com/no_longer_exists/; */define("COOKIE_EXPIRE", 60*60*24*100); //100 days by defaultdefine("COOKIE_PATH", "/"); //Available in whole domain/** * Email Constants - these specify what goes in * the from field in the emails that the script * sends to users, and whether to send a * welcome email to newly registered users. */define("EMAIL_FROM_NAME", "Nate");define("EMAIL_FROM_ADDR", "support@enrit.trap17.com");define("EMAIL_WELCOME", false);/** * This constant forces all users to have * lowercase usernames, capital letters are * converted automatically. */define("ALL_LOWERCASE", false);?> Notice from serverph: replaced code tags with codebox tags... taking too long to scroll the page.
  17. You can't tell somebody their thinking was totally wrong, unless its some exact answer like in math or something, and even then there is tons of exceptions. So no his thinking wasn't wrong, its just his opinion. Anyways I think he is not innocent, no way he could be! Theres no reason for killing tons of women and children, but still, he didn't deserve what he got. Expecially the only exception to hanging in a long time? He never deserved that, and he never deserved his video all of msn. But he did deserve to be locked away forever in prison, I agree this war is very stupid and childish, but this has lasted for TOO long! I can remember when it started, but it was so long ago it was hard to remember. If you ask me the US should just let things happen in other countrys, and stop making us involved with every little thing and turn it into something that lasts more then 5 years! Originally it should have only been like go in, and out, and we are done..now its just getting old, and its pointless, if their not going to change now, they never will! The only thing that makes me say I want them to stay in iraq, is the fact that its already been so long, and if we leave now, all those people that died, and all that time lost will be our fault for leaving and not sticking with our original plan!
  18. I'm sorry I must be missing something, I don't see any difference between the two? it may be because of the browsers but idk.
  19. Ok well i picked out a new log in script.. http://forums.xisto.com/no_longer_exists/ And now I get errors, like i had before I guess, but I still get errors. I installed everything properly, and idk why I get these errors.. on login screen: and on registering screen: Heres the place.. http://forums.xisto.com/no_longer_exists/ PLEASE HELP!!!!! If i can get this log-in and register system up, its just one more thing done for doing the TEXT rpg im working on! This is probably gonna be one of the harder things, so PLEASE HELP!
  20. nol

    Bar Sinks

    Depends on what kind of bar you have, if you have the type that theres like all the drinks, in a corner, put in a bar sink...
  21. You could say a lot of things like this..You could say why not take out all the gold while your at it? But there will always be the same ammount of water that was here 10 trillion+ years ago. Its called the water cycle, it will never leave our earth, it can't.
  22. to be honest, just do mybb...plus theres a great guide on it too. https://mybb.com/ https://community.mybb.com/showthread.php?tid=6361 its really good, i would definatly use mybb, I could help you with that too. But it seems easier and better
  23. Alright well now, when i try logging in it says "You couldn't be logged in!" even though I KNOW that the password is right and everything...and i already registered..
  24. lmao, or you could just download the files, and see which one your missing in the admin folder lol...And to do it on cpanel, just click on the file yuo need to change, and click all the boxes...but ik you don't do that with all, idk which ones. But it should say in the tutorail.
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.