Results 1 to 5 of 5

Thread: a few questions about actions

  1. #1
    iBot User 280201's Avatar
    Join Date
    Oct 2012
    Posts
    40
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    11 Post(s)
    Reputation
    17
    Rep Power
    5

    a few questions about actions

    i got a few questions




    thanks
    Last edited by 280201; 03-01-2015 at 07:51 PM.
    Im not a professional scripter, I just make my own scripts for my chars (Mage and Knight) and then I release it after using.
    If you want an exclusive script you can talk to me, but its quite restrict because I'm just starting again (low level chars). If it's easy I can do it for you for free, if not, we can talk.

    All my scripts are based in other's actions. I didnt know how to sell items, then I looked into ppl scripts and learned. Thats my method.
    Untill now I owe thanks to: @Eli @Drakke @BlaBlaBla @Isaacbf for teaching me in direct and indirect ways.
    HUD's that I've used till now: @BlaBlaBla and @Eli


    Latest scripts / Últimos scripts


    † Scripts coming soon †

    [MS] Edron Earth Elemental 33+ (exp) = [100%- Just wait me to leave that spot]
    [EK] Svargrond Barbarians North Camp (profitable) = [100%- Just wait me to leave that spot]
    [EK] Svargrond Barbarians South Camp (profitable) = 0%
    • And more...

  2. #2
    iScripter Eli's Avatar
    Join Date
    Mar 2012
    Posts
    3,764
    Mentioned
    492 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    955 Post(s)
    Reputation
    586
    Rep Power
    10
    islocation(optional int range) range is in sqms so islocation() it's exectly same point as action and islocation(7) is seven sqms left, right, north or south from action coordinates.

    "END" no idea how to explain, end is simple end of action lol xD please visit www.lua.org to get more info

  3. #3
    Moderator Drakke's Avatar
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,898
    Mentioned
    216 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    390 Post(s)
    Reputation
    366
    Rep Power
    10
    @280201

    Quote Originally Posted by Eli View Post
    "END" no idea how to explain, end is simple end of action lol xD please visit www.lua.org to get more info
    End is used to terminate an if/while/for structures such as
    if ... then ... end
    while ... do ... end
    for ... do ... end

    While until is used to terminate a repeat structure such as
    repeat ... until x == 0

    So end is needed for every "if" or other structure.
    To just write:
    addtext('asd', 10, 60) --To just add a random text

    in a hud wont require an end since it doesnt have a structure of any kind, this how ever would need one:
    if name == 'Ibot' then
    addtext('asd', 10, 60) --To add a random text if name is ibot or whatever
    end


    Hope this clearify some things about "end"

  4. #4
    Moderator Drakke's Avatar
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,898
    Mentioned
    216 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    390 Post(s)
    Reputation
    366
    Rep Power
    10
    @280201

    And to sell items

    sellitems('lump of dirt', 100) -- Will try to sell 100
    Sellitemsupto('lump of dirt', 100) -- Will try to sell all visible up to 100
    --[ 100 is limit(I think) so need to use a while structure to make it repeat if more ]--

  5. #5
    iBot User 280201's Avatar
    Join Date
    Oct 2012
    Posts
    40
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    11 Post(s)
    Reputation
    17
    Rep Power
    5
    thanks u both. best scripters ive seen.
    Im not a professional scripter, I just make my own scripts for my chars (Mage and Knight) and then I release it after using.
    If you want an exclusive script you can talk to me, but its quite restrict because I'm just starting again (low level chars). If it's easy I can do it for you for free, if not, we can talk.

    All my scripts are based in other's actions. I didnt know how to sell items, then I looked into ppl scripts and learned. Thats my method.
    Untill now I owe thanks to: @Eli @Drakke @BlaBlaBla @Isaacbf for teaching me in direct and indirect ways.
    HUD's that I've used till now: @BlaBlaBla and @Eli


    Latest scripts / Últimos scripts


    † Scripts coming soon †

    [MS] Edron Earth Elemental 33+ (exp) = [100%- Just wait me to leave that spot]
    [EK] Svargrond Barbarians North Camp (profitable) = [100%- Just wait me to leave that spot]
    [EK] Svargrond Barbarians South Camp (profitable) = 0%
    • And more...

Posting Permissions

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