(Shop Bug) too powerful, can't use

Started by The Crazy Animal, March 08, 2008, 10:12:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ok there is a little bug in the shops that effects the list display for who can use stuff... I can't remember who spotted it the first time but I didn't see it in here.

This portion the bug is in tests to determain wich post stock message to give per item.

Which then display on the list is currently like this by this:

visored greathelm             1          130 gold crowns (You can't use)

or

scroll of cure paralysis      1         1800 gold crowns (Too powerful)

the current test works something like this:
If min item level > then player level = too powerful
then it moves on to test if they can actually use it...

We need to almost reverse this test
So it tests if they can use it and display the (You Can't Use) and at the same time tests for the min level for the (Too powerful) message.

If the results are too powerful and can't use display (You Can't Use)..
If the results are too powerful and can use display (Too powerful)..

Hope that makes sense V

I'd do it more like:

if can't use
     display "You can't use"
else if too high level
     display "Too powerful"
else
     you can buy dis!

O0
If we can hit that bulls-eye, the rest of the dominoes will fall like a house of cards.? Check-mate!