Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

BUG - Cloning items HELP ME


Noa
 Share

Recommended Posts

**The players on my server can clone your items by placing the value "-1" when they sell something that currency and the same happens when they are negotiating or bank.

How do I block the INPUT BOX not to let the player put negative numbers?

HELP ME.**
[![](http://img696.imageshack.us/img696/8628/forumzeon.jpg)](http://www.noaa.com.br/zeon//)
Ainda está lendo o banner? Não espere, entra la!  /  Still reading the banner? Do not wait, enter it!
Link to comment
Share on other sites

Very simple source edit. Although I don't know the exact modules you'll need to change (someone familiar with the Eclipse source please help me out), but the code will be something like this:

```
If Value <= 0 Then
CanDo() = False
End If
```
Now don't try to enter that anywhere cuz it won't work, but basically that's what will happen. I just need someone familiar with the source to implement it for ya.
Link to comment
Share on other sites

Find this in **Sub InvItems** on **frmBank**:

```
If IsNumeric(GoldAmount) Then
                Call SendData("bankwithdraw" & SEP_CHAR & lstBank.ListIndex + 1 & SEP_CHAR & GoldAmount & END_CHAR)
            End If
```
Change it to this:

```
If IsNumeric(GoldAmount) Then
              If GoldAmount > 0 Then
                Call SendData("bankwithdraw" & SEP_CHAR & lstBank.ListIndex + 1 & SEP_CHAR & GoldAmount & END_CHAR)
              Else
                Call MsgBox("You must withdraw at least 1 of an item!")
              End If
            End If
```
Do the same basic thing in the other places you need to do it in. You may need to adjust it in different Subs.
Link to comment
Share on other sites

Haha he used my method!
K ty for the backup Kimmi ;)

Honestly that fix needs to be added to next release, cuz that's a huge problem if it hasn't been solved (idk what version or engine he's using.)

Does that answer your question/solve your problem Noa?
Link to comment
Share on other sites

  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...