Visual Basic Program menu

User Tag List

Results 1 to 2 of 2
  1. #1
    B14d3r11's Avatar Sergeant Major
    Reputation
    9
    Join Date
    Jan 2007
    Posts
    179
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Visual Basic Program

    I am trying to create a simple loot generation program, and I have succeeded but I know there is a neater lose intensive way to do it. But I am clearly drawing a blank.

    The code is located Filebeam - Beam up that File Scottie! (File too big to post anywhere)

    and the layout i have for it is
    Attached Thumbnails Attached Thumbnails Visual Basic Program-wasd-jpg  

    Visual Basic Program
  2. #2
    stoneharry's Avatar Moderator Harry

    Authenticator enabled
    Reputation
    1613
    Join Date
    Sep 2007
    Posts
    4,554
    Thanks G/R
    151/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    You wrote a 11,000 line procedural class? Jesus.

    I'm not looking through the code, it's huge, but I guess general tips:

    - Functionalise, make generic functions to call code that is repeated anywhere or to make things clearer
    - OOP, use objects to structure your code into different key areas and so that objects can be reused

    Originally Posted by Kyromyr
    so much repeated code xD
    Label13.Text = "Armor/Shield Bonus"
    AfMin = ((Mlvl / 12) * 1) * qmulti
    AfMax = ((Mlvl / 12) * 5) * qmulti + 1
    If AfMin <= 1 Then AfMin = 1
    If AfMax <= 1 Then AfMax = 1
    Affix3 = rn.Next(AfMin, AfMax)
    TextBox11.Text = Affix3

    this snippet in particular (with different constants, of course) seems to be repeated constantly

    he also seems to have the same block repeated ten times, once for each stat on the item (since items can have a maximum of ten different stats)
    Last edited by stoneharry; 12-06-2014 at 02:53 PM.

Similar Threads

  1. How to protect a program created with Visual Basic
    By KingAtRock in forum Programming
    Replies: 2
    Last Post: 03-21-2010, 05:57 AM
  2. Visual Basic program
    By Zenathor in forum World of Warcraft Bots and Programs
    Replies: 1
    Last Post: 01-27-2010, 06:16 PM
  3. Setting up scamming programs (Visual Basic) for $$
    By Y R U A NUB ? in forum WoW Scams Help
    Replies: 2
    Last Post: 10-02-2008, 11:18 AM
  4. [Program] Visual Basic - Gamecard Generator Scam
    By Y R U A NUB ? in forum WoW Scam Prevention
    Replies: 30
    Last Post: 09-27-2008, 06:04 PM
All times are GMT -5. The time now is 08:19 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search