Signup Now
Page 9 of 18 FirstFirst ... 7891011 ... LastLast
Results 81 to 90 of 180

Thread: Spells Attacker

  1. #81
    Moderator RoxZin xD's Avatar
    Join Date
    Dec 2013
    Location
    Rio de Janeiro
    Posts
    4,911
    Reputation
    109
    Rep Power
    34
    Try removing the false on maround() and see if it works the way you're expecting. I can't test here (f-acc ftw) but I believe this is the problem.



    Troubled Animals Quest [100+]
    ALL
    Feyrist Animals Surface [160+]
    RP
    Feyrist Silencers Underground X1 [180+]
    RP | EK
    Feyrist Silencers Underground X2 [200+]
    RP | EK
    Feyrist Silencers Surface [210+]
    RP | EK
    Rathleton Sewers [240+]
    RP
    Glooth Fairy [350+]
    ED/MS
    Hardcore Draken Walls [400+]
    EK

  2. #82
    Wind Powered
    Join Date
    Dec 2013
    Location
    dvscripts.com
    Posts
    7,098
    Reputation
    433
    Rep Power
    42
    will check tomorrow because going out now ;P And waiting for Leonardo reply
    Regards

  3. #83
    Moderator Leonardo's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    758
    Reputation
    77
    Rep Power
    25
    @RoxZin xD

    It shouldn't work as you said, maround(1, false, "Rat") should return rat amount around 1 sqm on the same floor. And removing this from the function will fuck the script because utito tempo don't have a area of effect like the other spells entries, this is a workaround I did to use that spell.
    @Dworak

    Try this, if it still doesn't work, you must do a different hotkey to cast utito.

    local Spells = {
    {Name = "exori gran", Amount = 3, Monsters = {"Spitter","Crawler","Waspoid","Insectoid Worker"}},
    {Name = "exori gran", Amount = 2, Monsters = {"Kollos","Spidris"}},
    {Name = "exori", Amount = 2, Monsters = {"Spitter","Crawler","Waspoid","Insectoid Worker"}},
    {Name = "exori", Amount = 1, Monsters = {"Kollos","Spidris"}},
    {Name = "exori min", Amount = 2, Monsters = {"Kollos", "Spidris","Spitter","Crawler","Waspoid","Insectoid Worker"}},
    {Name = "exori ico", Hppc = 5},
    {Name = "exori hur", Hppc = 5},
    {Name = "utito tempo", Amount = 2, Monsters = {"Kollos", "Spidris"}},
    {Name = "utito tempo", Amount = 5, Monsters = {"Kollos", "Spidris","Spitter","Crawler","Waspoid","Insectoid Worker"}},
    }

  4. #84
    Moderator RoxZin xD's Avatar
    Join Date
    Dec 2013
    Location
    Rio de Janeiro
    Posts
    4,911
    Reputation
    109
    Rep Power
    34
    Quote Originally Posted by Leonardo View Post
    @RoxZin xD

    It shouldn't work as you said, maround(1, false, "Rat") should return rat amount around 1 sqm on the same floor. And removing this from the function will fuck the script because utito tempo don't have a area of effect like the other spells entries, this is a workaround I did to use that spell.
    If you change maround(1, false, "Rat") to maround(1, "Rat") it will work the way you want, which is considering a few monsters and not all of them. While making maround(1, false, "rat", "cave rat") that means maround(1, unpack(all monsters that exist on Tibia)), hope you understand what I mean.



    Troubled Animals Quest [100+]
    ALL
    Feyrist Animals Surface [160+]
    RP
    Feyrist Silencers Underground X1 [180+]
    RP | EK
    Feyrist Silencers Underground X2 [200+]
    RP | EK
    Feyrist Silencers Surface [210+]
    RP | EK
    Rathleton Sewers [240+]
    RP
    Glooth Fairy [350+]
    ED/MS
    Hardcore Draken Walls [400+]
    EK

  5. #85
    Moderator Leonardo's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    758
    Reputation
    77
    Rep Power
    25
    Quote Originally Posted by RoxZin xD View Post
    If you change maround(1, false, "Rat") to maround(1, "Rat") it will work the way you want, which is considering a few monsters and not all of them. While making maround(1, false, "rat", "cave rat") that means maround(1, unpack(all monsters that exist on Tibia)), hope you understand what I mean.
    It's not how you're saying I tested it myself. The function itself will put false if no boolean arguments are given. Passing true will return monsters on the floor -1, 0, +1 as far as I know.

  6. #86
    Moderator RoxZin xD's Avatar
    Join Date
    Dec 2013
    Location
    Rio de Janeiro
    Posts
    4,911
    Reputation
    109
    Rep Power
    34
    Quote Originally Posted by Leonardo View Post
    It's not how you're saying I tested it myself. The function itself will put false if no boolean arguments are given. Passing true will return monsters on the floor -1, 0, +1 as far as I know.
    Well, I tested it myself and it only worked on 1.2.9 the way I'm telling you, if you put a boolean value it will ignore everything, even on documentation it doesn't say it got multifloor value, hence why Lucas told me to use maroundfloor() lol



    Troubled Animals Quest [100+]
    ALL
    Feyrist Animals Surface [160+]
    RP
    Feyrist Silencers Underground X1 [180+]
    RP | EK
    Feyrist Silencers Underground X2 [200+]
    RP | EK
    Feyrist Silencers Surface [210+]
    RP | EK
    Rathleton Sewers [240+]
    RP
    Glooth Fairy [350+]
    ED/MS
    Hardcore Draken Walls [400+]
    EK

  7. #87
    Moderator Leonardo's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    758
    Reputation
    77
    Rep Power
    25
    Quote Originally Posted by RoxZin xD View Post
    Well, I tested it myself and it only worked on 1.2.9 the way I'm telling you, if you put a boolean value it will ignore everything, even on documentation it doesn't say it got multifloor value, hence why Lucas told me to use maroundfloor() lol
    You can test it by yourself and check the console. In this example should consider all monsters right ? But the output is always 0.

    auto(1000) print(maround(1, false, "Rat"))

  8. #88
    Free User thenick's Avatar
    Join Date
    Dec 2013
    Posts
    72
    Reputation
    10
    Rep Power
    24
    Was testing the area spell as a mage at grim reapers, it only cast Waves if i turn around manually.

  9. #89
    Moderator Leonardo's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    758
    Reputation
    77
    Rep Power
    25
    Quote Originally Posted by thenick View Post
    Was testing the area spell as a mage at grim reapers, it only cast Waves if i turn around manually.
    I'm sure it's working. Send your script please.

  10. #90
    Free User thenick's Avatar
    Join Date
    Dec 2013
    Posts
    72
    Reputation
    10
    Rep Power
    24
    Quote Originally Posted by Leonardo View Post
    I'm sure it's working. Send your script please.
    for some reason NeedDirection was returning false.. So i changed the variable value for true and it is working
    http://i.imgur.com/uIL8VeK.png
    Buying an account!
    Formogar Mines Cults X1 [90+]
    EK
    Talahu Quara Tunnels [110+]
    EK
    Zao Hidden Lizards [135+]
    RP
    Deeplings South [180+]
    ED | MS
    Fire Dragon Dojo [200+]
    EK
    Sunken Quaras [200+]
    ED | MS
    Drefia Grim Reapers [285+]
    RP
    Hardcore Deeplings [290+]
    ED | MS

 

 

Posting Permissions

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