Click here to buy some Tibia gold in our shop

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 40

Thread: TEMPLATES for script extras

  1. #1

    Default TEMPLATES for script extras

    Ok, so heres some basic templates... All you gotta do is grab your favorite wpts, put in the info I tell you to, and change whatever is in red for your desire.
    DEPOSITER FIRST
    Put this line just before your wpts

    Code:
    IfTrue ($mycap$#number<=#5000) Goto $nlineoflabel:deposit$
    This will tell the bot to skip to the line label 'DEPOSIT' when your cap is under 50, obviously change the number to whatever you please. (It's marked in red.)

    After your last hunting WPT put this line in:

    Code:
    gotoscriptline 0
    :deposit
    This is the line label 'DEPOSIT'. After this line you should either record your wpts to the NPC via the script editor on the bot, or record them separately and copy paste them.

    After the WPT's to the bank, you should put these lines in. These lines will say 'hi' 'deposit all' 'yes' 'bye', in that order, in the NPC channel... Thus depositing your gold. Do not edit the pauses out to avoid the mute function.

    Code:
    fastExiva > 96 04 $hex-tibiastr:hi$
    waitX 2
    fastExiva > 96 04 $hex-tibiastr:deposit all$
    waitX 1
    fastExiva > 96 04 $hex-tibiastr:yes$
    waitX 1
    fastExiva > 96 04 $hex-tibiastr:bye$
    waitX 3
    After this section you should either record or copy paste in your WPT's back to the cave, at the end of which you should put the following code, to tell the script to go back to line number 0 (the beginning) You can change the number 0, if your file has startup lines, to suit your needs.

    Code:
    gotoScriptLine 0

    More in the next post (Please don't post I will reserve.


    Depositing items

    Someone mentioned that they wanted to deposit items into depot, so heres a quick guide to add on to depositing:

    Just set up the cash depositer same waypoints, but way points going to depot (don't have to stand near a specific depot box, it will walk to one.

    so we have:

    Code:
    DEPOSIT CASH WPTS AND SCRIPT
    ...
    WPTS TO DEPOT
    putLootOnDepot
    WPTS BACK TO SPAWN
    Basically you put 'putLootOnDepot' in between waypoints TO the depot, and wpts BACK FROM the depot.
    Last edited by ManInTheCave; 03-03-2009 at 16:21.

  2. #2

    Default

    Now for buying items

    So, you have to get a bit of information for this section.

    Mana ID's:
    Mana Potion = 0C 01
    Strong Mana Potion = ED 00
    Great Mana Potion = EE 00

    Mana Costs
    Mana Potion = 50
    Strong Mana Potion = 80
    Great Mana Potion = 120

    First you will need the item ID's. For this script I will highlight the ID's in red, along side some other variables (optional bits) I will be using strong mana potions for this example. Obviously this works for health potions as well, not sure on Paladin items yet I will experiment and get back to you on that, but heres this for now:

    At the start of your script you will put this:

    Code:
    fastExiva _manapotionid = ED 00
    # How many manas do you have?
    fastExiva _manas = 300
    # How much does 1 potion cost? MP = 50, SMP = 80, GMP = 120
    fastExiva _idcost = 80
    This basically tells the script which mana potion you will use.

    This snippet should be just before the first WPT, edit the red number to change the amount of manas you should buy more on. This then counts the manas left, and takes your char to the 'REFILL' line if you need more.

    Code:
    IfTrue ($countitems:{$_manapotionid$}$#number<#45) Goto $nlineoflabel:refill$
    You should then put in this line after your main WPT's.

    Code:
    gotoscriptline 0
    :refill
    This shows the bot that this line is the 'REFILL' line, where the script fills up manas. After this line you should put in your WPT's to the banker, so you can deposit gold and withdraw enough for your mana potions. You will need to set up the depositer to withdraw a certain amount of gold, as you need it. This line does this for you, and withdraws it.

    Code:
    fastExiva _mana = $numericalexp:{$_manas$}-{$countitems:{$_manapotionid$}$}$
    fastExiva _manacost = $numericalexp:{$_mana$}*{$_idcost$}$
    saymessage hi
    waitX 2
    fastExiva > 96 04 $hex-tibiastr:deposit all$
    waitX 1
    fastExiva > 96 04 $hex-tibiastr:yes$
    waitx 1
    sayInTrade withdraw $_manacost$
    waitX 1
    fastExiva > 96 04 $hex-tibiastr:yes$
    waitx 1
    Now, to go buy the manas you will put next the waypoints from the banker to the mana potion shop, then the follow code.

    Code:
    saymessage hi
    waitx 2
    fastExiva > 96 04 $hex-tibiastr:vial$
    waitx 2
    fastExiva > 96 04 $hex-tibiastr:yes$
    waitx 1
    fastExiva > 96 04 $hex-tibiastr:yes$
    fastExiva > 96 04 $hex-tibiastr:yes$
    waitx 2
    fastExiva > 96 04 $hex-tibiastr:trade$
    waitx 2
    fastExiva > 07 00 7A $_manapotionid$ 00 $numbertohex2:{$numericalexp:{$_mana$}/4$}$ 00
    fastExiva > 07 00 7A $_manapotionid$ 00 $numbertohex2:{$numericalexp:{$_mana$}/4$}$ 00
    fastExiva > 07 00 7A $_manapotionid$ 00 $numbertohex2:{$numericalexp:{$_mana$}/4$}$ 00
    fastExiva > 07 00 7A $_manapotionid$ 00 $numbertohex2:{$numericalexp:{$_mana$}/4$}$ 00
    waitx 1
    That just basically buys the manas. It does leave a bit of Gold left, as it sells the vials.

    After this just enter your waypoints back to the cave (first waypoint) and put in

    Code:
    gotoScriptLine 0
    Last edited by ManInTheCave; 01-24-2009 at 02:58.

  3. #3

    Default

    Now to sell shit.

    Ok, so you wanna sell your shit. First off you'll need the item ID's again, I will use XX XX as the example just to make it easy for you.

    So, again you put this at the start of your WPT's. Change the number in red depending on how much cap you want to have left when you go to sell your items. It works it out and takes you to the 'SELL' line.

    Code:
    IfTrue ($mycap$#number<=#3000) Goto $nlineoflabel:sell$
    Then you're gonna need, again, the 'SELL' line simple, it defines where the waypoints to sell stuff start.

    Code:
    gotoscriptline 0
    :sell
    Now for your waypoints to the NPC that buys your stuff.

    Then you gotta put this line in...

    Code:
    sayMessage exiva > 96 04 $hex-tibiastr:hi$
    waitX 3
    sayMessage exiva > 96 04 $hex-tibiastr:trade$
    waitX 3
    fastExiva > 7B D6 0C 00 $numbertohex1:{$countitems:XX XX$}$
    waitX 3
    fastExiva > 7B D6 0C 00 $numbertohex1:{$countitems:XX XX$}$
    waitX 2
    sayMessage exiva > 96 04 $hex-tibiastr:bye$
    Put in as many of the following line as you like, but make sure you space them the same way, and change the XX XX to the Item ID you want to sell:

    Code:
    waitX 3
    fastExiva > 7B D6 0C 00 $numbertohex1:{$countitems:XX XX$}$
    If you then want to go deposit your G's you earned selling shit, put in the WPT's to the Banker then put in this code:

    Code:
    waitX 1
    sayMessage exiva > 96 04 $hex-tibiastr:hi$
    waitX 3
    sayMessage exiva > 96 04 $hex-tibiastr:deposit all$
    waitX 2
    sayMessage exiva > 96 04 $hex-tibiastr:yes$
    waitX 2
    sayMessage exiva > 96 04 $hex-tibiastr:balance$
    waitX 2
    sayMessage exiva > 96 04 $hex-tibiastr:bye$
    If you used this or not next you put in the WPT's back to your cave, to the first hunting WPT in the script, then the following line:

    Code:
    goToScriptLine 0
    Last edited by ManInTheCave; 01-24-2009 at 03:40.

  4. #4

    Default

    Travelling

    Do you need to travel on a boat or via talking to an NPC? Well heres how to add those bits in.

    Wherever it is in the script that you need to go on a boat, put in the following, remember to edit the DESTINATION:

    Code:
    fastExiva > 96 04 $hex-tibiastr:hi$
    waitX 2
    fastExiva > 96 04 $hex-tibiastr:DESTINATION$
    waitX 1
    fastExiva > 96 04 $hex-tibiastr:yes$
    waitX 2
    That's all for now - Anything else you need? Post here. Also post here if you think this thread should be stickied!
    Last edited by ManInTheCave; 01-24-2009 at 02:56.

  5. #5
    Join Date
    Jan 2008
    Location
    Surahammar, Sweden
    Posts
    113

    Default

    the buying manas thing was taken from my tutorial?

  6. #6
    Join Date
    Sep 2006
    Posts
    105

    Default

    50 cap would be written as 5000~

    just a little tip



    Best neobot scripts in the market, get it from the source! Cheapest tibia gold for sale and World Trade Service!


    Quote Originally Posted by Nobodys Hero View Post
    Paralyze only works on level 8's then it becomes useless :P waste of mana
    lmfao..

  7. #7

    Default

    Quote Originally Posted by Crille View Post
    the buying manas thing was taken from my tutorial?
    Nope, taken from an array of scripts that either I've made or downloaded over the years... But most of it I just typed out since it's so simple to remember.

    Quote Originally Posted by BUg View Post
    50 cap would be written as 5000~

    just a little tip
    Good point, ty for pointing this out I will change it now.


    Otherwise good?

  8. #8
    Join Date
    Aug 2008
    Location
    Canada
    Posts
    137

    Default

    Very Nice gonna add this to my script.. if i made any more >: D
    The world is for taking but all that is stopping you is yourself.

    http://v.o.g.mybrute.com/ Sign up please
    (\__/)
    (+'.'+) <(Mwahahaha!!!)
    (")_(")
    This is Bunny. Copy and paste Bunny into your signature to help him gain world domination!

  9. #9
    Join Date
    Oct 2008
    Posts
    3

    Default

    nice, i will try :P

  10. #10
    Join Date
    Dec 2007
    Posts
    7

    Default

    Thanks dude, now my scripting will be sooo evul ; d

Page 1 of 4 123 ... LastLast

Posting Permissions

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