Noa Posted January 16, 2010 Author Share Posted January 16, 2010 **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 More sharing options...
Lam3r Posted January 17, 2010 Share Posted January 17, 2010 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 ThenCanDo() = FalseEnd 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 More sharing options...
demon xxx x Posted January 17, 2010 Share Posted January 17, 2010 Why not just have numbers only ..Simple Code, not entirely sure what it'd be in VB.. lol.But, have the textbox where the players type in the number they wanna buy to read only number 0-9.. Link to comment Share on other sites More sharing options...
Lam3r Posted January 17, 2010 Share Posted January 17, 2010 Yeah like only digits 0-9 are allowed, no other characters that could work too, or my method, whichever is easier for the programmer ;-d Link to comment Share on other sites More sharing options...
Kimimaru Posted January 17, 2010 Share Posted January 17, 2010 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 More sharing options...
Lam3r Posted January 17, 2010 Share Posted January 17, 2010 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 More sharing options...
Ruins of Hell Posted January 17, 2010 Share Posted January 17, 2010 This is already in the next release. Ballie (I think) reported this bug a while back. Link to comment Share on other sites More sharing options...
unknown Posted January 18, 2010 Share Posted January 18, 2010 Make sure to change the server side of things to, or else it's not really fixed (someone can packet edit). Link to comment Share on other sites More sharing options...
SagonSoulsOnline Posted April 3, 2010 Share Posted April 3, 2010 yeah it does need to be fixed next release and also (off topic) Sticky floor does too xD yeee :azn: Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now