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
|
|
Administrator |
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. |
|
thank you for your apologizes Ender... my mother (may her soul rest in peace) never stood a chance. |
|
I create vaccum when I pass gas. |
|
Ok, so it rolls a dice, how does that work? |
Administrator |
http://php.net/lcg_value |
|
Ender installed one of these in his server |
|
^ Funny jans. |