Hello, Newbie856, and welcome to the RuneScape Wiki!
Thank you for taking an interest in our wiki. If you have any trouble or need help, feel free to ask questions on my talk page or any other editor's talk page. Also, you could look at a help page or you could shout out on the local forums. We hope you like it here and decide to stay!
Here are a few pages to help out new editors such as yourself:
Please sign your name on talk pages by using four tildes (~~~~) or use the "sign" button () above the edit box. This will automatically produce your name and the date. Signing your comments is important, as it lets other editors know who has posted which comments.
Again, welcome! —QuarenonTalk 17:54, 12 July 2009 (UTC)
"Nobody owns articles. This is a wiki, after all. This means words like "I," "we," or "me" should not be included in articles. " -- From our Style guide.
Err...Please try not to use the word (or letter if you prefer :P ) "I". The edit was fine, but the I was kinda annoying me. You can also check the RuneScape:Style Guide for more information. Powers38おはようヾ(´・ω・`) 11:49, September 24, 2009 (UTC)
Beats me, but I can direct you to User:Quarenon, he's a genius at stuff like that, I'm sure he can help you. Psycho Robottalk 02:40, September 25, 2009 (UTC)
Thanks for your help, I think I understand it now. Also, I know Quarenon did it, but it was too advanced for me to understand. If you need help with anything, lemme know. --
It is possible to use your hiscore data for the calculator. In fact, that is exactly what I am doing on my userpage. To have it use your current stats for the calculator, you can use:
{{User:The last username left/Sandbox/Smithing calc|curxp={{ParseHiscoreData|{{User:Newbie856/Hiscores}}|smithing|2}}}}
If you would like to set a goal for yourself, you can use:
{{User:The last username left/Sandbox/Smithing calc|curxp={{ParseHiscoreData|{{User:Newbie856/Hiscores}}|smithing|2}}|targlvl=GOAL}}
and the calculator will use your levels automatically (but only the calculator on your userpage; the one on mine will still use my hiscores). I hope this helps! - I'm a regular user and I approve this message.TLULTalk - Contribs 19:22, September 25, 2009 (UTC)
Yes, they are all important features that I am planning on adding at some point. The first one in the Runecrafting list will probably be done in the next five or ten minutes if all goes well, and maybe a half an hour to an hour if all goes... not well. I'm impressed that you managed to respond within 2 minutes of my creating the polls! I'm a regular user and I approve this message.TLULTalk - Contribs 02:55, September 26, 2009 (UTC)
There isn't an official template yet, because the calculators are indeed still in the beta stage. I only got the Smithing calc working yesterday, and I still need to add some important features to it (namely the things on the polls to which you responded so quickly). Maybe after they have been tested more thoroughly they can be made into official templates. I'm a regular user and I approve this message.TLULTalk - Contribs 03:12, September 26, 2009 (UTC)
I think it has become fairly obvious that I have a strange sense of humour. If not, see here to find the evidence :P I'm a regular user and I approve this message.TLULTalk - Contribs 22:51, September 26, 2009 (UTC)
Hmm... I sure hope the problem isn't in this page, though if the issue is in the profit, it almost certainly is. I will look into this further. I'm a regular user and I approve this message.TLULTalk - Contribs 21:40, September 28, 2009 (UTC)
The green-ness of your signatures hurt my eyes --Iiii I I I 01:01, September 30, 2009 (UTC)
I'm considering making a userbox that says "This user obviously has too much spare time, given that this user took the time to create this userbox".
As for Javascript and HTML, I consider myself to be fairly good, but the real expert is Quarenon. Feel free to ask me any questions you wish though, and I will do my best to answer them. I'm a regular user and I approve this message.TLULTalk - Contribs 00:27, October 6, 2009 (UTC)
Well, to be honest, I've never really figured out how to use CreateElement and such functions; I always used document.getElementById(objID).innerHTML to write new HTML into the document. If you want to figure out issues with CreateElement that, you should probably ask Q. I'm a regular user and I approve this message.TLULTalk - Contribs 00:51, October 6, 2009 (UTC), edited 00:54, October 6, 2009 (UTC)
1) The deleteColumn() function that you posted seems to have been cut off. So there might be a problem there, and there's also a difference between your code and the website's code in the deleteColumns() function:
var lastCol = tbl.rows[0].length - 1;
which should be:
var lastCol = tbl.rows[0].cells.length - 1;
You want the number of columns which is accessed by getting the length of the cells array.
2) I'm not sure what you want to do here. The website example puts in the column number into each cell when adding new rows. It looks like you changed it to add the row number, which is fixed between cells when adding a new row. What exactly are you trying to put into each cell?
3) Yep, using standard DOM calls it would be something like this:
// function createInput(cell, x, y)
var input = document.createElement('input');
input.setAttribute('type', 'text');
input.setAttribute('name', 'row' + x + 'col' + y);
cell.appendChild(input);
Just set x and y to be the column and row you want. This could be added into insRow easily since you have the i and lastRow variables giving the x and y positions, and use the object returned from row.insertCell(i) as your cell.
Two things though:
You may want to look into jQuery. It's a JavaScript framework that makes things like this much easier, and you can add nice visual effects when you're adding/deleting elements to the table. I used it a couple of times for removing table rows, and you can see an example of it here. The code to handle that is near the bottom of the page source.
If you can give a link to where you are testing the code that would be great, just because it would be much easier to check for any errors that way. If you can't for any reason then that's fine too
Anyways, good luck with the coding! --QuarenonTalk 07:08, October 6, 2009 (UTC)
Ah, then you might be looking for something like this:
function insRow(){
var tbl = document.getElementById('table');
// append table row
var row = tbl.insertRow(tbl.rows.length);
var lastRow = table.rows.length;
// insert table cells to the new row
for (var i=0; i<tbl.rows[0].cells.length; i++) {
var cell = row.insertCell(i);
if (i == 0) {
createCell(cell, lastRow, 'row');
} else {
var input = document.createElement('input');
input.setAttribute('type', 'text');
input.setAttribute('name', 'row' + lastRow + 'col' + i);
cell.appendChild(input);
}
}
}
function createCell(cell, text, style){
var div = document.createElement('div'); // create DIV element
var txt = document.createTextNode(text); // create text node
div.appendChild(txt); // append text node to the DIV
div.setAttribute('class', style); // set DIV class attribute
div.setAttribute('className', style); // set DIV class attribute for IE (?!)
cell.appendChild(div); // append DIV to the table cell
}
Let me know if you manage to get it to work --QuarenonTalk 15:13, October 7, 2009 (UTC)
You've almost got it, just a syntax error in there and you'll want to change the text used in the first row. Try this:
function insCol(){
var tbl = document.getElementById('table'); // table reference
// open loop for each row and append cell
for (var i=0; i<tbl.rows.length; i++) {
var cols = tbl.rows[i].cells.length;
var cell = tbl.rows[i].insertCell(cols);
if (i == 0) {
createCell(cell, cols, 'col');
} else {
var input = document.createElement('input');
input.setAttribute('type', 'text');
input.setAttribute('size', '5');
cell.appendChild(input);
}
}
}
In your if ( ... ) statements you need to use double equals, because you are trying to test a variable's value and not assigning a new value to it. --QuarenonTalk 14:57, October 8, 2009 (UTC)
Heh, I'm glad to help --QuarenonTalk 19:11, October 8, 2009 (UTC)
I shall not be defeated easily. I'm a regular user and I approve this message.TLULTalk - Contribs 00:52, October 10, 2009 (UTC)
I'm afraid that trick won't work for you. You store your userboxes on a subpage, so it doesn't equate the pagename to Newbie856 (at least, not when viewing your userbox page directly - it still works on your main userpage). You'll also notice that I am now shielded from UserOwned as well. I expect that if this continues, we will be mildly told off for spam/edit warring. Truce? I'm a regular user and I approve this message.TLULTalk - Contribs 01:49, October 10, 2009 (UTC)
I'm assuming that the template should have a parameter for which quest it is as well as the experience reward? I'm a regular user and I approve this message.TLULTalk - Contribs 01:56, October 10, 2009 (UTC)
Okay, I think I see what you're doing now, but may I recommend one thing? When you access the skill parameter with:
{{{skill}}}
You should instead use:
{{{skill|Attack}}}
to let it default to attack (or another skill of your choice). This means that if the user passes an invalid parameter for the skill, your template doesn't end up looking like a fail. Also, when you use a switch, don't put this:
| caseattack = === [[Attack]] ===
This is the correct code:
| attack = === [[Attack]] ===
Hope this helps! I'm a regular user and I approve this message.TLULTalk - Contribs 02:06, October 10, 2009 (UTC)
Adding an All option would be helpful, I expect. I don't know if you should redirect other pages to use the template yet, though. I'm a regular user and I approve this message.TLULTalk - Contribs 02:19, October 10, 2009 (UTC)
Hey, first off, sorry if this is late, I've had some trouble logging in lately, so I haven't checked until now. Okay, I see what your problem is:Using the Subst: function will automatically place all of the Template's coding onto the page, instead of just
{{Signatures:Guthix}}
. Obviously, this can and should be avoided, so there is a way to do this. Just put
{{SUBST:Nosubst|Signatures/Newbie856}}
Into the signature section of your preferences, and check the 'Custom Signature' box. However, this only works if you have a template for your signature on the Wiki in question. If you do this, it will link to the template in whatever Wiki you are on, but if one doesn't exist, it'll just make a redlink. I'm not exactly sure if there is a way to make it work on any wiki without using the old method, but I think there is. Do you have a template on the RSC Wiki? If you do, than I'm sure the code I've given you will work fine. If not, then I guess you will have to make one. --
I guess I never thought to double check the results. I fixed it, the bug was caused by the use of "defense" instead of "defence". - TehKittyCatTalkWikian-Book 21:40, December 12, 2009 (UTC)
Should be easily possible, I'll pass it on to Quarenon. - TehKittyCatTalkWikian-Book 21:46, December 12, 2009 (UTC)
Hey and thanks. I really expected it to be epic fail ) On the Blood Runs Deep article, it has these songs:
The Fallen Hero
Jaws of the Dagganoth
Maiasaura
Althogh, the guide isn't even finished so it is most likely incomlete. I'm gonna start the wikiguild straight away without proposing. We can discuss everythig there Cheers, Chicken7 >talk 02:21, December 16, 2009 (UTC)
Is this related to User:Newbie856/sandbox/Calculator_with_current_user? In which case, you'll likely have to do complex parsing on the userpage data because the userbox parameter isn't readily available to the page that wants it.
{{#vardefine:strSearch|{{User:Chicken7}}}}
{{#vardefine:strStart|{{#pos:{{#var:strSearch}}|This user plays RuneScape<br />as}}}}
{{#vardefine:strEnd|{{#pos:{{#var:strSearch}}|]|{{#var:strStart}}}}}}
{{#vardefine:sub|{{#sub:{{#var:strSearch}}|{{#var:strStart}}|{{#expr:{{#var:strEnd}}-{{#var:strStart}}}}}}}}
{{#vardefine:subStart|{{#pos:{{#var:sub}}|user1=}}}}
{{#vardefine:subEnd|{{#pos:{{#var:sub}}| |{{#var:subStart}}}}}}
{{#sub:{{#var:sub}}|{{#expr:{{#var:subStart}}+6}}|{{#expr:{{#var:subEnd}}-{{#var:subStart}}-6}}}}
Which gives:
g clas
I used User:Chicken7 as an example since this is one instance where the username on the wiki is not equal to their RS name. However, there may be more efficient ways to do this! This was just the first way I thought of.
Also, thanks! I'm working on reformatting my various userpages, I figured to start with my header --QuarenonTalk 04:42, December 20, 2009 (UTC)
Oh, in that case it's much easier with the way charm logs are organized!
That can be done by using {{Charm one stat}} for each table cell, however the table sorting may need tweaking since it will now be sorting against the lower bound of a confidence interval instead of the middlepoint. --QuarenonTalk 15:37, December 21, 2009 (UTC)
No problem. And to link to images outside of the RuneScape Wiki, just place one bracket ([ ]) instead of two brackets ([[ ]]). --Iiii I I I 20:34, December 21, 2009 (UTC)
Hello! First I want to thank you for making this image, as it has helped a good deal. Secondly, I wanted to ask if you could make one for the Varrock Diary, as it needs one. Thanks! --
Yeah, most of what Vandal Watch is supposed to do is make the recent changes easier to use with navpopups and make reverting vandalism easier. Right after I had gotten it working, they changed something in MediaWiki that broke its main goal again. You can still use it for its auto-update feature, but that only works slightly better than the built in one for recent changes anyways. Someday, I may go back and rework the project in a new way, but for now, it's just a failed idea that sits in my sandbox, getting covered in sand. I'm a regular user and I approve this message.TLULTalk - Contribs 00:57, February 24, 2010 (UTC)
Feel free to. I'm a regular user and I approve this message.TLULTalk - Contribs 01:05, February 24, 2010 (UTC)
I was wondering where the documentation for how to use WikiScript, like that used in the Combat level Calculator. I have experience with javascript and html, but would like to learn how to use the type of code used on that template.
This is actually a proposed feature that will come in the next version of the JS calculator script. It's described here as the "submitunfocus" option, which can be made to do what you describe. The bad news is that it's taking me forever to get this version of the script ready for testing --QuarenonTalk 03:12, July 26, 2010 (UTC)
Do you mean on your userpage, or on your own computer screen? If it's the second, I don't know how to either. :\ --Iiii I I I 14:24, July 28, 2010 (UTC)
Please do not remove content from or add nonsense to RuneScape Wiki pages. It is considered vandalism. If you would like to experiment, please use the sandbox. Thank you. MattTalk 09:44, August 1, 2010 (UTC)
Actually I can't tell you what page it was on...? I just remember seeing an edit by you that was 4-5 days old where you removed a huge chunk of the content. MattTalk 21:58, August 1, 2010 (UTC)
Ok. But just saying, I wouldn't have mistaken you for someone else because I would've clicked on the link to your talk page directly from the history of that article. MattTalk 22:09, August 1, 2010 (UTC)
Thanks! A 'light' wiki browser may eventually be added, you never know! Enjoy the extension updates, as I know RuneScape itself has been lacking in that department the past several days. --QuarenonTalk 04:29, August 3, 2010 (UTC)
As far as I am aware, small is not deprecated but big is. There really isn't a specific number to use since it's always different on certain computers and browsers. I would recommend using px instead of %, though. Andrewtalk 14:30, August 3, 2010 (UTC)
I don't think there's a specific while template (probably is on Wikipedia, if you wanna look for it), but I'm sure with the current setup (with the vardefines at the start working out how many of each star to use) you can manipulate {{loop}} to get the desired result. GazLloydAwesomeEvents!99s 20:22, August 11, 2010 (UTC)
Couldn't help but notice your question while watching the Recent Changes. In a {{#ifeq:}}, you can use {{!}} to insert a | without breaking the {{#ifeq:}}. It should work for tables just as | does, but I've seen a few bugs with it (could have just been poor coding on my part though). Hope this helps! I'm a regular user and I approve this message.TLULTalk - Contribs 05:35, August 24, 2010 (UTC)
Will multiple weaknesses be supported soon? 222talk 03:54, September 18, 2010 (UTC)
Thank you for the help. Me and Matt who are both working on this are grateful for anything which speeds up the task. Not uniform? Is this too big a problem to code? We could correct this as we go. Would that be helpful? 222talk 03:58, September 18, 2010 (UTC)
And also, when you work on it again, could Category:Weak to poisoned weapons be also added to the possibilities. Sorry if I am being demanding. 222talk 04:00, September 18, 2010 (UTC)
Is the code not working or just some other issue. I've purged the page a few times already. 222talk 04:04, September 18, 2010 (UTC)
That would be a major issue, because it's more important the monster is on the category page. Hopefully it's just some server updating issue. Good luck tomorrow, 222talk 04:13, September 18, 2010 (UTC)
I think having the weakness listed as a link is also preventing it from showing up, as seen on Basilisk. 222talk 04:14, September 18, 2010 (UTC)
Well, any special weapons (Dark, silver, bright, dim, fluorescent light, holey water, silver weapons) I'm leaving it blank at the moment. Any magic spells go in weak to magic attacks. 222talk 03:25, September 19, 2010 (UTC)
Oh, and you might want to know that evil is working on it as well. 222talk 03:25, September 19, 2010 (UTC)
Is it just me or is every monster page getting a swath of "{{Mainonly|}}"'s added to it? 222talk 04:11, September 19, 2010 (UTC)
Don't worry, I can't possibly do any better (it's true). If you want to stop, just tell me. The Wiki has plenty of coders. 222talk 04:15, September 19, 2010 (UTC)
Thanks for finally finding a source for that! However in the future can you please add the reference list above any "bottom of the page" templates, like the third age equipment template? Typically, the order is:
==Trivia==
*Third age looks like white armour with black on it!
==References==
{{Reflist}}
{{Third-age armour}}
I was wondering why your fix to User:Thebrains222/Projects/Sandbox1 left a massive block of "Expression error: Unexpected < operator"s on the page. The change works, but I was wondering why it left all those. 222talk 05:39, October 22, 2010 (UTC)
I noticed that you did a great job putting together the mining calculator and that your format has been copied into a runecrafting calculator on the wikiguild calculators section. I am gathering the information needed to expand the leveling calculator for all skills. I am hoping that someone with your expertise could help me expand your current calculator to include a few more columns that are listed below. That way as I gather the information I could input it into the calculator or feed it to someone that knows more about calculators and can continue improving leveling for all the skills. The goal of this skill calculator is outlined much more clearly on the wikiguild calculators page if you are curious.
When the primary skill leveling methods are on the list, this calculator could be tied to the high scores table so a person could type in their screen name to show approximately how long and how many coins it would cost (or earn) to level each skill from their current level to 99 in time, coins, and oportunity cost figuring the amount that they make per hour.
Below is a sample of how we could expand your calculator for runecrafting. I also included a sample for woodcutting to show how the results could be useful. Please let me know what you think and how I can help. Orninion132 05:21, November 17, 2010 (UTC)
I'm fine with your idea to improve the skill pages and make it more user friendly. Whatever turns out to be the most useful. I'm just not familiar enough with calculators to get it to that point. Would you mind adding the cells needed to the calcualtor that you think would be useful or otherwise pointing me in the right direction? Thanks for your help.Orninion132 23:07, November 17, 2010 (UTC)
Thanks for responding and your help. This is still in theory as I have not created it on the wiki. I created a verion in excel and found it highly useful and wanted to make something like it more accurate with real time data and useful for others using the wiki.
To answer your questions:
1. The profit/loss column tells you how many coins you would gain or lose in the process of leveling. The hours column tells you how long it would take to achieve the desired experience. When you input the amount you earn per hour it calculates how much opportunity cost was incurred to level that skill. The total cost adds the coin cost and the time cost together. Without time you can't get a fair comparison on how much each skill costs a player. For example, runecrafting may cost 0 coins and take 300 hours. If your time is worth $500k per hour runecrafting cost $150 million. Where firemaking may cost $50 million in coins and take 40 hours so it costs $70 million total. Since this calculator pulled your information from the high scores it would show each player how long they would take to achieve each 99 or their desired level and not just anyone leveling from 1 to 99.
2. I'll add borders to anything I do in the future. Do you want me to go back and edit what I pasted above. Wasn't sure that I was supposed to edit previous talking pages. Still learning the wiki. Let me know what you'd like me to do.
3. The imput I was thinking of is simpler than what you showed on my talk page. I will try to explain what I think would could work best but I'm definitely up for adjustments per your recommendations.
3a. I envision clicking on a page that has only two input fields and nothing else. One for entering your player name and the other to enter the amount you value your time per hour. When you submit this information the calculator can come up with 2 main sections which will help people understand the page.
3b. The first section is a skill summary. It has one row for each skill and the columns as shown on the table above or a few columns deleted to simplify it. People can use this page to look at all their skills and see approximately how many coins, how much time it would take, and the total cost to level to 99.
3c. The second section goes into more detail on each skill. This is what I pasted above for firemaking and runecrafting above. It has a header line for each skill and shows the common methods of leveling. Without having to do anything this calculator will show the most efficient method of leveling a skill for this player so it won't be too complicated unless someone wants to refine their method of leveling.
3.c.a: Refining your method of leveling: By default the calculator could start at your level and increase to 99 using the most efficient methods available. The calculator could select the most efficient method by analysing which value has the least total cost at or below the required level. Therefore the methods the calculator selects for a person that makes 2,000,000 per hour may be different than the method a person that makes 100,000 per hour. If this isn't possible you could set it to default on the most commonly used methods of leveling. A person could then adjust the defaults by typing something else to change the methods they plan to use to level. This would adjust the pricing and summary accordingly. I tried to show what columns I thought could be adjusted on the tables I attached previously (above).
I'm sure that you have some better ideas and I think that a great amount of information can be very useful to someone when they only need to type in their player name and how much they feel they can make per hour. When I was filling this out for the skill sections I was amazed how much informaiton was missing from the wiki training pages that this fills in and compares accordingly. Please let me know what I can do to help and what ideas you have!Orninion132 03:18, November 19, 2010 (UTC)
I used this to define each column. Perhaps that would help clarify ideas. I'm open to changes and recommendations though.
All Fields but Item 1,2 , A and B would be automatically filled in:
1. Coins the player feel comfortable earning per hour (Fill in Manually)
2. Player Name (Fill in Manually)
Skill Summary Section
Skill Category Section
A. Starting Level Using This Method (Fill in Manually)
B. Finishing Level Using This Method (Fill in Manually)
C. Method of Leveling
D. Experience Needed to Level between Levels Shown
E. XP per Hour Using this Method
F. Items Required to Level between levels shown
G. Grand Exchange Price of Items Required to be invested (F x G.E. Price)
H. Grand Exchange Price of Items to Be Sold after Using Method (F x G.E. Price of Converted Item)
I. Profit or Loss Created after Selling Converted Items (G - H)
J. Profit or Loss per Experience Point (I / B)
K. Number of Hours would it take to level between levels shown using this method (D / E)
L. Time Value in Coins (Item 1 x K)
M. Total Cost in Time and Coins (I + L)
N. Total Cost in Time and Coins Per Experience Point (M / E)
Thank you for your reply on my talk page, Ablm578 pointed out I should reply on your instead of my own talk page.
I tried that, but it doesn't seem to work for userpages, including this page.
Ablm578 suggested modifying action=edit to action=history in the URL.
--Tharkon 02:18, November 24, 2010 (UTC)
Could you please remove the red links from User:Newbie856/hp2lp.xml? there are quite much red links there, so it would help cleaning up the wantedpages. Thanks, JOEYTJE50TALK 11:08, November 25, 2010 (UTC)
I am trying to get the ball rolling to improve our calculators.I saw that you made a bunch of JS calcs, and I was wondering if you would be interested in helping make our calculators better. As I write this, we are missing 5 skill calculators. Those are relatively easy to make if we have enough people doing them. We are also setting up a page where people can suggest ideas for new calcs (RS:CI), and we can create them. Soon we can have the best, most diverse group of calculators anywhere. Take a look at Forum:April - Calculator Month for more information.