RuneScape Wiki
Advertisement
Archive
This page or section is an archive.
Please do not edit the contents of this page. Direct any additional comments to the current project page or contact an administrator for aid if no talk page exists.

Trouble with #expr :(

I have this:

{{#expr:{{GEP|Plain pizza}}-({{GEP|Cheese}}+{{GEP|Pizza base}}+{{GEP|Tomato}})/143 round 0}}

It is supposed to get the price of a plain pizza (702) minus the prices of Cheese (204), Pizza base (276) and tomato (728) together, then divide that by 143 and remove all the digits after the decimal point. So can anyone see anything wrong with that code? Cause it returns 694 which is obviously incorrect.

  1. REDIRECT User:-Matt/sig 11:43, September 9, 2010 (UTC)
I forgot to say that just adding/minusing without dividing gives -506.
Is this better? You forgot two parenthesis.
{{#expr:({{GEP|Plain pizza}}-({{GEP|Cheese}}+{{GEP|Pizza base}}+{{GEP|Tomato}}))/143 round 0}}
-4 222 talk 11:47, September 9, 2010 (UTC)
Are parenthesis these () ? Why would I need 2?
  1. REDIRECT User:-Matt/sig 11:49, September 9, 2010 (UTC)
Edit conflict They were missing here (bolded): {{#expr:({{GEP|Plain pizza}}-({{GEP|Cheese}}+{{GEP|Pizza base}}+{{GEP|Tomato}}))/143 round 0}} 222 talk 11:54, September 9, 2010 (UTC)
You need them because otherwise the arithmetic would work like this: Cheese+Pizza base+Tomato divided by 143 and then the plain pizza algorithm would be worked out last. i.e.
  1. Cheese+Pizza base+Tomato
  2. "The above" divided by 143
  3. Then finally Plain pizza - "the above"

222 talk 11:54, September 9, 2010 (UTC)

Okay, thanks for getting that working. Now I can get back to writing my first GEMW calculator... =D
  1. REDIRECT User:-Matt/sig 11:59, September 9, 2010 (UTC)
(edit conflict)So what's wrong with this?
{{#expr:{{GEP|Plain pizza}}-({{GEP|Cheese}}+{{GEP|Pizza base}}+{{GEP|Tomato}})}}
{{Coins|Amount={{#expr:{{GEP|Meat pizza}}-({{GEP|Cheese}}+{{GEP|Pizza base}}+{{GEP|Tomato}}+{{GEP|Cooked beef}})}}}}
  1. REDIRECT User:-Matt/sig 12:28, September 9, 2010 (UTC)
Wut? What's happening to it? 222 talk 12:25, September 9, 2010 (UTC)
Which gives Lua error: .
  1. REDIRECT User:-Matt/sig 12:28, September 9, 2010 (UTC)
Sorry I had the wrong code.
  1. REDIRECT User:-Matt/sig 12:28, September 9, 2010 (UTC)
I'm not sure why, but it appears
{{GEP|Cooked beef}}
is causing the expression error. 222 talk 12:33, September 9, 2010 (UTC)
Oh, I realised. It's Cooked meat, not cooked beef you genius! See: −1,208222 talk 12:36, September 9, 2010 (UTC)
*facepalm*
  1. REDIRECT User:-Matt/sig 12:46, September 9, 2010 (UTC)
Nubcake... 222 talk 06:31, September 10, 2010 (UTC)

If the price of the item is over 1000, you MUST do {{GEP|item|n}}. If you don't add the n, it will display the price with a comma, which will not work in expr parsers. http://i631.photobucket.com/albums/uu33/Psycho_Robot/Sigs%20and%20Avatars/kitty.pngPsycho Robot talkSilver bar 03:10, September 11, 2010 (UTC)

Now who's the nubcake, looking at Template:GEP, there is no unnamed parameter 2, and that "|n" does nothing!!! Nothing!!! Full Slayer Helmet! Evil1888 Talk A's L Dragon Platebody! 03:25, September 11, 2010 (UTC)
Lol, fail. 222 talk 05:11, September 11, 2010 (UTC)

Notification of changes to RuneScape:Off-site/RuneHead

Is there a way a bot or something could leave me a message on my talk page any time RuneScape:Off-site/RuneHead is changed? That will allow me to keep up with updating the name changes as people post them.--Degenret01 12:25, September 3, 2010 (UTC)

Can't you just follow the page? 222 talk 00:43, September 4, 2010 (UTC)
I sure can. And it doesn't do me a bit of good since I look at followed pages once am month maybe. We may get a change once a week, or maybe once a month. I want a way to stay on top of it without wasting time.--Degenret01 20:07, September 6, 2010 (UTC)
I get emails sent to me from Wikia whenever a followed page is edited. 222 talk 07:28, September 7, 2010 (UTC)
I check my email every 3-5 weeks. --Degenret01 07:42, September 7, 2010 (UTC)
... 222 talk 09:14, September 7, 2010 (UTC)
Would a change of habit be easier than creating a bot script? 222 talk 08:31, September 9, 2010 (UTC)
You could try setting up a mail filter that forwards important emails to your mobile phone. I've done that for such things before. User:Kytti khat/sig 14:34, September 9, 2010 (UTC)
Change of habit would be nigh impossible. How hard is a script?--Degenret01 08:39, September 9, 2010 (UTC)
Do you actually use your watchlist? If not you can unfollow everything, follow just the RuneHead page (and a select few pages that you never check on your own) and then use Quarenon's watchlist notifier. It puts a message on the top of the page whenever a page on your watchlist is changed. Its not useful if you have dozens of pages on it, but if you only have a few important ones like I do, its really useful. You can find it listed here. http://i631.photobucket.com/albums/uu33/Psycho_Robot/Sigs%20and%20Avatars/kitty.pngPsycho Robot talkSilver bar 08:47, September 9, 2010 (UTC)
That script is really useful. But the only down-side is that it leaves a message regardless if it's new or not. 222 talk 10:19, September 9, 2010 (UTC)
No, if you go to your watchlist and click the link of the changed page, the message will disappear. Full Slayer Helmet! Evil1888 Talk A's L Dragon Platebody! 10:33, September 9, 2010 (UTC)
Yes, actually. I know it happens; every new page I go to will still display a message regardless of whether it is new or not. 222 talk 10:37, September 9, 2010 (UTC)
Well, I just did what I said and the message is gone... we seem to be at an impasse... *stares down 222* Full Slayer Helmet! Evil1888 Talk A's L Dragon Platebody! 11:02, September 9, 2010 (UTC)
It happened again! *Draws revolver...* 222 talk 11:07, September 9, 2010 (UTC)
Your edit put it back, but now it's gone. My way works! *Takes out RPG...* Full Slayer Helmet! Evil1888 Talk A's L Dragon Platebody! 11:31, September 9, 2010 (UTC)
No, I can't see it now. *All your base belong to us* 222 talk 11:34, September 9, 2010 (UTC)

Change on purge

Can anyone see why this doesn't work? It doesn't change when you purge\re-fresh.
9 8

<choose><option>1</option><option>3</option><option>5</option><option>7</option><option>9</option></choose> <choose><option>2</option><option>4</option><option>6</option><option>8</option><option>10</option></choose>


  1. REDIRECT User:-Matt/sig 05:36, September 18, 2010 (UTC)
It does work! I don't know what the magic number of purges is but I spammed it 10 times! 222 talk 05:38, September 18, 2010 (UTC)
Oh so it does. But the second one is lagging...?
  1. REDIRECT User:-Matt/sig 05:40, September 18, 2010 (UTC)
OHHHHHH SO IT'S MEANT TO DO THAT!!!! Never mind...
  1. REDIRECT User:-Matt/sig 05:42, September 18, 2010 (UTC)
^noobs these days... 222 talk 05:44, September 18, 2010 (UTC)

Signature sorting

How big a deal is the sorting of signature pages in Category:Signatures? For example, the following pages are sorted as "Sig" rather than as their respective usernames.

User:C Teng/sig
User:Coaster4321/Sig
User:Ajraddatz/sig
User:Bryanqwert/sig
User:Ssswizmig/Sig
User:Dave Lopo/Sig
User:Wargodnavkri/Sig
User:Haloolah123/Sig
User:Kuma3/sig

I noticed the error in my own signature and updated Runescape:Signatures so other people don't make the same mistake. Then I noticed that other people had already made similar errors like the ones above. Then I noticed still other people seem to have made other errors. So, as I asked to begin, how big a deal is it? It could be a lot of bookkeeping work; plus it could be a bit intrusive. Suggestions? --User:Saftzie/Signature 14:26, September 6, 2010 (UTC)

Just Not that big, categories are just nice for finding stuff, just go to the pages and replace {{SUBPAGENAME}} with {{BASEPAGENAME}}. Easy as that. Full Slayer Helmet! Evil1888 Talk A's L Dragon Platebody! 00:53, September 7, 2010 (UTC)
I haven't carefully audited all 1000 or so. The ones above were a partial list. I did a few others, too, of what were easiest to find. Hopefully no one feels like toes got squashed. --User:Saftzie/Signature 01:31, September 7, 2010 (UTC)
Oh crud... meant to say "Not that big", Idk where "just" came from Blush. But fixing them is still nice. Full Slayer Helmet! Evil1888 Talk A's L Dragon Platebody! 05:55, September 7, 2010 (UTC)
No problem. I only picked the lowest-hanging fruit. I noticed you did some of the ones above. Interestingly, working from a snapshot of the category page, I noticed a few people fixed their own before I got to them, too. Anyway, I don't intend to touch any others. --User:Saftzie/Signature 12:14, September 7, 2010 (UTC)

Is this completed yet? 222 talk 03:40, September 19, 2010 (UTC)

Bot

If I wanted to make a fully-automated bot account, will I have to make a new AWB bot account? And what would it be called? 222 talk 06:24, September 25, 2010 (UTC)

Uh... You would have to go though a YG discussion on the tasks that the bot would perform and when but I don't think you would need to make another account other than BrainBot. Full Slayer Helmet! Evil1888 Talk A's L Dragon Platebody! 06:35, September 25, 2010 (UTC)
Ok, good to get the facts straight. Thanks, 222 talk 07:49, September 25, 2010 (UTC)

Multiple accounts + Req AWB bot flag

Hey there, I've been temporarly locked out of my main account, User:Matthew2602, and have been using my bot account, User:M2602Bot. Though it occured to me this morning, "Hey, don't we have a policy on having two accounts?". So do we? And am I allowed to use this account?

Also, my AWB recently got activated. If you want to edit rapidly with AWB, you have to get a second account, and request bot flag for it here. Now because I have nothin to do cause I got locked out of my main account, I thought I could work on stuff in AWB with my bot. I'd have to get it flagged. So my question is, can I request bot flag at RuneScape:AutoWikiBrowser/Requests while I'm in my bot account? M2602Bot 22:45, September 25, 2010 (UTC)

"locked out of my main account" Why? Full Slayer Helmet! Evil1888 Talk A's L Dragon Platebody! 22:57, September 25, 2010 (UTC)
Contact Wikia and ask them to send a randomly generated password to the email address of your main account, assuming you can still access that.
  1. REDIRECT User:C886553/sig 23:11, September 25, 2010 (UTC)
I read 222's talk and saw, have you tried to connect using the regular log in and using your account name and facebook account's password? BTW I will never use facebook so I don't know how it works. Full Slayer Helmet! Evil1888 Talk A's L Dragon Platebody! 23:12, September 25, 2010 (UTC)
I have already contacted wikia. Though I can reset my password later today. Answer my question please. M2602Bot 23:14, September 25, 2010 (UTC)
If there is a policy saying you can have a AWB Account why would you not be able to use your AWB account? SardominSign Me! 23:18, September 25, 2010 (UTC)
I meant like, using it outside of AWB. M2602Bot 23:20, September 25, 2010 (UTC)
Oh about the questions, until you have been identified as User:Matthew2602's bot account you are treated as a normal user and since you have not been id'd as his/your/whatever bot account by Matthew2602 you can go about the day and edit like any other user who is <24 hours old. But if you vandalise, we will kill you Evil. Full Slayer Helmet! Evil1888 Talk A's L Dragon Platebody! 23:22, September 25, 2010 (UTC)
DUDE MATTHEW2602 WOULD NEVER VANDALISE RSW on purpose. So is that a no then? M2602Bot 23:24, September 25, 2010 (UTC)
Ajr deleted this comment:It's a yes, you can just edit as if you were on User:Matthew2602. As for awb'ing, it would be best to wait until you can get on your main. Full Slayer Helmet! Evil1888 Talk A's L Dragon Platebody! 23:26, September 25, 2010 (UTC)
I'd say keep the AWB account for AWB.
  1. REDIRECT User:C886553/sig 23:28, September 25, 2010 (UTC)
You deleted my comment, you nub! Full Slayer Helmet! Evil1888 Talk A's L Dragon Platebody! 23:30, September 25, 2010 (UTC)
Yay for wikia glitches :D
  1. REDIRECT User:C886553/sig 23:31, September 25, 2010 (UTC)
Ahh stupid wikia. Okay cool, thanks peeps. =D M2602Bot 23:32, September 25, 2010 (UTC)
To answer your question about "not allowing two accounts", see RS:SP. If multiple accounts are used to unfairly influence discussions, then it's a permban for both of them (well, at least that's what I would do). However, I think in your situation RS:UCS applies. Also note that on RS:RFAWB, I purposely added the note that one forfeits his rights to participate in discussions on the bot account to the agreement, though I don't think you've signed it yet. Otherwise, I'd say that multiple accounts are allowed only if they're used for purposes determined valid by consensus, namely bots and AWB. All other non-main accounts should be permblocked. --LiquidTalk 23:43, September 25, 2010 (UTC)
Okay. I haven't signed it yet cause they said above I should wait till I get my main back. M2602Bot 23:46, September 25, 2010 (UTC)
WAIT ARE YOU SAYING I SHOULD BE PERMBLOCKED? M2602Bot 23:47, September 25, 2010 (UTC)
However, I think in your situation RS:UCS applies.
 
— Me, third sentence of previous paragraph.
Use common sense. --LiquidTalk 23:50, September 25, 2010 (UTC)
Yeah I saw that, but what you were saying was confusing me; I thought you kept changing your opinion. M2602Bot 23:51, September 25, 2010 (UTC)
Advertisement