Results 1 to 9 of 9

Thread: Help Me Help The Community!

  1. #1
    Join Date
    Apr 2013
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    12 Post(s)

    Default Help Me Help The Community!

    Hey guys! So I'm really grateful to you awesome scripters who have shared their scripts with me, but now I feel like I wanna give back as well as further my knowledge...

    Narcle's Fast Fighter went down after all the updates, and I just feel so bad because it once was such an amazing script! So I tried my hand at restoring it, and mind you I know next to nothing about scripting...

    So here is my fix;
    http://villavu.com/forum/showthread....25#post1224825

    What I want to know is how I can begin more advanced scripting, like how I can re-implement the anti-ban, how I can get all the old stuff to work once again with the EoC update...

    Would you suggest I fix that script up, or rather work on my own, but take in mind I wouldn't know where to begin so fixing what was broke seems to be easiest.

    What I'd first like to do is implement some form of check that in logic terms;

    If user health =<50% then find FoodType in inventory and eat... Make sense? To try and heal...

    Also, a way to add the function for antiban, random mouse movements to check skills, etc. Also, for it to walk around to find MobType if none are present. Any help with getting me started would be much appreciated!

  2. #2
    Join Date
    Mar 2013
    Location
    Freedomville.
    Posts
    155
    Mentioned
    2 Post(s)
    Quoted
    107 Post(s)

    Default

    Quote Originally Posted by Zamalega View Post
    like how I can re-implement the anti-ban
    "Borrow" an anti-ban procedure from another script which uses the case method, and modify to your liking. Make sure to call the procedure somewhere in your script.


    Would you suggest I fix that script up, or rather work on my own, but take in mind I wouldn't know where to begin so fixing what was broke seems to be easiest.
    Read/watch some tutorials, or read through the documentation to familarize yourself. If you are too impatient, then try to interpret what someone's code is already doing. Honestly, I started by making modifications to scripts to make them better - I've since made a few to benefit myself. In other words, fix it up for yourself - and release only if the original author allows you to. If you want to use the code as a basis for action sequences for a new script, so be it.


    What I'd first like to do is implement some form of check that in logic terms;

    If user health =<50% then find FoodType in inventory and eat... Make sense? To try and heal...
    You would want to use GetMMLevels.


    Also, a way to add the function for antiban, random mouse movements to check skills, etc. Also, for it to walk around to find MobType if none are present. Any help with getting me started would be much appreciated!
    If you have the procedure for anti-ban, then you just need to call it in your mainloop. If you want random mouse movements to check skills, HoverSkill is what you want. For it to find a partcular mobtype, you can check whether the colours/uptext are present onscreen. Theres a few obj finding methods, namely DTM or TPA/ATPA object finding to detect these mobs. I had a play around with SuperUser's surface include on static items, but it should probably work with monsters too (as long as they aren't rainbow coloured).


    TL;DR: Gain experience by modifying scripts, read through documentation or development forum. If you're looking for a specific function/procedure, try google searching these forums for any discussion - you will probably find yourself on the script reference.

  3. #3
    Join Date
    Apr 2013
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    12 Post(s)

    Default

    Hey sdf! Your response is much appreciated! I tried modifying a script and hacking one into one I was trying to make from scratch, but I failed so hard...

    I think I need to start from the bare basics, to understand EVERYTHING, not just rip from others and learn like that, because while it may be affective it isn't really a way to learn.

    I couldn't even get the login to work, to just login the character...

    So what I'm asking you, and anybody else who happens to see this, could you PLEASE point me in the right direction for a complete and comprehensive noobs guide to coding?

    Or would some kind soul teach me the ropes from the very start? I am no slow learner, so if you show me once and I understand I will go on to create awesome scripts for the community and teach others in turn!

    Please someone get back to me as I'm really amped to get started! I really did try, but what with the old depreciated SMART and other non-used variables I don't wanna make something that is a hack of something old, I rather wanna start from scratch to support for the latest SMART/SIMBA/SRL versions etc.

    Thanks in advance!

    EDIT: I am a noob now! So saying something like "you could use [insert variable here] doesn't mean much to me, as I know it must be part of the global library etc, but I wouldn't know where to start... So please explain in baby steps, I will be sure to follow them all and perfect it, nothing major, just the basics and I can add from there once I understand it all.

    And the first script I wanna make is a complete auto-fighter, which will attack basically any mob that is uncommented (selected) from a list of configurable variables, and can try in all times of combat (ranged, magic, melee) but to start off with melee first till I get it, then add auto-healing, banking, etc. A global script that I will spend months to perfect, or maybe quicker the faster I get the hang of scripting.

    EDIT 2: I did find this;
    http://villavu.com/forum/showthread.php?t=58935

    However I don't wanna start learning something that is outdated, meaning using the old SMART or whatever else, that's why I'm a bit hesitant to try out the rest, but I guess it is a start... However if someone can point me out in the right direction to start off with immediately that'd be much better, like working with SMART8 etc, as if I followed http://villavu.com/forum/showthread.php?t=58935 I'm afraid my script won't work for the latest versions of what we use.
    Last edited by Zamalega; 04-18-2013 at 03:09 PM.

  4. #4
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    Coh3n's guide is still relevant, and it's definitely a good place to start.
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  5. #5
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    Walls of text and not enough time. But I just want to add it is not allowed to fix Narcle his script and repost it without his explicit permission. The scripts are opensource, but the copyright belongs to the script writer . Only direct copying from srl is allowed, as long as you keep a note it is from srl.
    Working on: Tithe Farmer

  6. #6
    Join Date
    Sep 2012
    Location
    Here.
    Posts
    2,007
    Mentioned
    88 Post(s)
    Quoted
    1014 Post(s)

    Default

    Since you're new to scripting, I would recommend putting off combat scripts for a little bit (EOC combat is much more intense than most other activities - not to mention dangerous if coded incorrectly).

    Start simple and work your way up. A good order of complexity progression I would recommend would be something along the lines of:
    1)A basic in bank script - no walking necessary (IE: stringing jewelry, enchanting, fletching, gem cutting, etc...)
    2)A basic script with static object finding that also introduces basic walking. A smelter/jewelry crafter would have very basic walking and would require you to find on screen objects(that don't move while you're trying to click them :P). A slightly more advanced script along these lines would be mining or woodcutting as while the objects are stationary, you will still have to walk to/from more variable locations and you could learn to handle that.
    3)Something that requires you click on moving objects and recognize on screen activity. A pickpocketer for example would also help you start watching your health as you continue the activity and could introduce eating function.
    4)Finally make the jump to a combat script. It would require most if not all the previously acquired knowledge as well as learning new techniques to handle the ability bar/possible looting/remaining much safer watching health during all this happening at once.

    Granted you don't need to follow that progression in any manner, those are just recommendations. But I would feel it would make your learning transition much easier to progress in that kind of manner (not to mention when you do release a fighter, then you'd have a list of prior scripts backing you up to encourage people to try it out )

    Good luck in whatever pursuits you wish to follow!

  7. #7
    Join Date
    Apr 2013
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    12 Post(s)

    Default

    Thanks for the replies guys, it's greatly appreciated, and just to know I'm not alone! But are there any other reference material that I can read besides Coh3n's one?

    Also, what should I do about the Narcle edit I did? I didn't mean to cause any harm, just fix it a bit to still be working for EoC. Should I remove it or something?

  8. #8
    Join Date
    Mar 2013
    Location
    Freedomville.
    Posts
    155
    Mentioned
    2 Post(s)
    Quoted
    107 Post(s)

    Default

    Quote Originally Posted by Zamalega View Post
    Also, what should I do about the Narcle edit I did? I didn't mean to cause any harm, just fix it a bit to still be working for EoC. Should I remove it or something?
    I think posting the specific lines you changed, and only those lines would be more suitable than posting the entire fixed script without their permission.

  9. #9
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •