Valentine90 Posted November 9, 2012 Author Share Posted November 9, 2012 **Sorry my english**In trade you can exchange an amount of money 0\. At the bank you can deposit or withdraw an amount of money 0\. No error in the client or server, but it would not be a very good thing to let that happen.**Open Server****1 -** In **modHandleData**, within```Sub HandleTradeItem```**2 -** Look for:``` ' make sure they have the amount they offerIf amount < 0 Or amount > GetPlayerInvItemValue(index, invSlot) ThenExit SubEnd If```**3 -** Below add:``` If Item(itemNum).Type = ITEM_TYPE_CURRENCY ThenIf amount < 1 Then Exit SubEnd If```**4 -** In **modPlayer**, within```Sub GiveBankItem```**5 -** Look for:``` If amount < 0 Or amount > GetPlayerInvItemValue(index, invSlot) ThenExit SubEnd If```**6 -** Below add:``` If Item(GetPlayerInvItemNum(index, invSlot)).Type = ITEM_TYPE_CURRENCY ThenIf amount < 1 Then Exit SubEnd If```**7 -** Also in **modPlayer**, within```Sub TakeBankItem```**8 -** Look for:``` If amount < 0 Or amount > GetPlayerBankItemValue(index, BankSlot) ThenExit SubEnd If```**9 -** Below add:``` If Item(GetPlayerBankItemNum(index, BankSlot)).Type = ITEM_TYPE_CURRENCY ThenIf amount < 1 Then Exit SubEnd If```**Credits:**Valentine Link to comment Share on other sites More sharing options...
Valentine90 Posted November 11, 2012 Author Share Posted November 11, 2012 I expanded the tutorial covering the bank also stopping you from deposit or withdraw an amount of money 0.Any member of staff could change the topic title to:> [Bug Fix] Fixing Errors on Trade and Bank Link to comment Share on other sites More sharing options...
Growlith1223 Posted November 11, 2012 Share Posted November 11, 2012 you can change it urself by using the full editor, i learned that out yesterday xD Link to comment Share on other sites More sharing options...
Alerd Posted November 11, 2012 Share Posted November 11, 2012 Thanx ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png) 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