1 - In some of your pages Ender, you have prototype.js being used twice. Like the battle page and showroom.
<script src='prototype.js'></script>
<script src='battle.js'></script>
<script src='prototype.js'></script>
Not sure if that is on purpose or not
2 - Do you have every item in one database?
Going through the showroom script, it says dagger id 1, but then quilted armor id 364. With weapons having "block":0 and shields have "mindmg": 0.
haha
3 - For the rarity formula and showing random items in the database, how do you do that?
Something like
----------
var i = 0;
while(i<50) { // show 50 items
var rand = Math.rand() * 3;
for(items) { if(rand < items["chance"]) { //show } }
}
----------
-Alan
questions
2011-01-30 21:09:20
[13 years, 301 days ago] |
|
Administrator 2011-01-31 01:48:15
[13 years, 301 days ago] |
1. Good catch Alan, thanks a lot. Before the moving sidebar was added, I only loaded the Prototype library on pages that needed it. The sidebar code is on every page now though and it uses Prototype, so when that was added, the manual loads became redundant and I forgot to remove them. This is fixed now. |
2011-01-31 03:34:28
[13 years, 301 days ago] |
thank you for your apologizes Ender... my mother (may her soul rest in peace) never stood a chance. |
2011-01-31 12:10:09
[13 years, 300 days ago] |
I create vaccum when I pass gas. |
2011-01-31 18:39:38
[13 years, 300 days ago] |
Ok, so it rolls a dice, how does that work? |
Administrator 2011-02-01 00:36:34
[13 years, 300 days ago] |
http://php.net/lcg_value |
2011-02-01 06:10:42
[13 years, 299 days ago] |
Ender installed one of these in his server |
2011-02-01 15:54:13
[13 years, 299 days ago] |
^ Funny jans. |