Click here to buy some Tibia gold in our shop

Results 1 to 1 of 1

Thread: More variables and commands!

  1. #1
    Join Date
    Nov 2006
    Location
    Sweden
    Posts
    110

    Default More variables and commands!

    Yep, as the title says.
    More variables = more cool scripts.
    Currently we can perfom any action we want with exiva > so the only limit for more advanced scripts is that we dont have the variables we need..

    Let's do some brainstorming, this is what I can think of right now:

    • $walkable:XYZ$ - returns 1 if its possible to walk on that sqm, 0 if it's blocking.
    • $floorchange:XYZ$ -returns 1 if its a stair, ladder, hole etc.
    • $monsterPos:ID$ - either this could return the whole coordinates or its position in relation of the own character (X+1, Y+3, Z=0 etc) This could be useful for keepDistance scripts and exori if surrounded etc.
    • $monstersArund$ - this could take use of the above variable. It will simply check every creature on battlelist and return how many of them is standing around you. Could perhaps even be customized to determine how far away monsters should be counted - $monstersAround:4$ = 4sqm away.


    And as for commands I would really love to see this feature:
    exiva loadScript demons.txt
    which could even be used inside a script.
    also, it would be nice if we could allow scripts to run even while being offline.
    This way we could allow scripts to bot a few hours on different characters.
    Example, switchChar.txt
    Code:
    IfTrue ($charactername$#string=#Noobchar) Goto $nlineoflabel:loadNoob$
    IfTrue ($charactername$#string=#Mainchar) Goto $nlineoflabel:loadMain$
    gotoScriptLine 0
    :loadNoob
    exiva loadScript rats.txt
    :loadMain 
    loadScript demons.txt
    and then, in those 2 scripts we could use $played$ or $expgained$ or whatever we prefer
    rats txt could look something like:
    Code:
    setMeleeKill and all the other stuff
    move XYZ
    #if we gained 2k exp switch to the mainchar
    IfTrue ($expgained$#number>#2000) Goto $nlineoflabel:switchChar$
    gotoScriptLine 0
    :switchChar
    move XYZ safe spot.
    #check statusbit make sure we can logout.
    exiva logout
    exiva login Mainchar
    exiva loadScript switchChar.txt
    I had a lot of great ideas but lost them as soon as I started writing here.. Ill edit later
    I realized now that the switchChar.txt was very unnecessary but at least I proved my point.
    Last edited by Zmulan; 08-01-2011 at 16:13.

Posting Permissions

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