Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Item Equip Requirements Fix ( * 2 Bug)
#1
This is a very simple bug fix that I noticed while I was working on my repair system. Basically, what it does is, let's say you don't have enough strength to use an item, it tels you you need double the actual requirements. Let's say you need 30 strength to use a weapon, it tells you that you need 60!

Now this is a very simple bug! In your packet "useitem" on the server side, look for :

Code:
Call PlayerMsg(Index, "Your defense is to low to wear this armor!  Required DEF (" & n * 2 & ")", BrightRed)

And change that to :

Code:
Call PlayerMsg(Index, "Your defense is to low to wear this armor!  Required DEF (" & n & ")", BrightRed)

And then, look for :

Code:
Call PlayerMsg(Index, "Your strength is to low to hold this weapon!  Required STR (" & n * 2 & ")", BrightRed)

And change that to :

Code:
Call PlayerMsg(Index, "Your strength is to low to hold this weapon!  Required STR (" & n & ")", BrightRed)

And then, look for :

Code:
Call PlayerMsg(Index, "Your speed coordination is to low to wear this helmet!  Required SPEED (" & n * 2 & ")", BrightRed)

And change it to :

Code:
Call PlayerMsg(Index, "Your speed coordination is to low to wear this helmet!  Required SPEED (" & n  & ")", BrightRed)


There you go, all fixed for a silly bug Smile
Reply
#2
Weird, how could I not have noticed this one. Well done.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)