Compiling Put OTX attackspeed on a TFS 0.4 rev 3777

Discussion in 'Support' started by Firulis, Aug 12, 2017.

  1. Firulis

    Firulis New Member

    Joined:
    Jan 3, 2017
    Messages:
    21
    Likes Received:
    0
    Best Answers:
    2
    i recently changed from a OTX 2.9 to a TFS 0.4 rev 3777 and i lost the attack speed, i didnt really lose it but with otx you don't need to utilize a bot to attack fast, and i was just wondering if it was possible to put that in a TFS 0.4 because i really think it will help the noob players in my server, thank you
     
  2. Best Answer:
    Post #7 by Firulis, Aug 13, 2017
  3. WibbenZ

    WibbenZ Support Team Support Team Premium User

    Joined:
    Oct 16, 2008
    Messages:
    5,472
    Likes Received:
    916
    Best Answers:
    148
    global860/vocations.xml at master · otservme/global860 · GitHub
    Code (Lua):
    1. attackspeed="2000"
    Thats how to change attack speed for vocations.
     
  4. Firulis

    Firulis New Member

    Joined:
    Jan 3, 2017
    Messages:
    21
    Likes Received:
    0
    Best Answers:
    2
    sorry if i wasn't clear enough but what i mean is i have an attack speed of 200, and with the OTX 2.9 the players in my ot attack fast without bot, and with TFS they have to use elfbot auto 1 attack target, so i want to make it so that it works the same as OTX but using TFS 0.4 rev 3777, that way my players don't have to use bot
     
  5. WibbenZ

    WibbenZ Support Team Support Team Premium User

    Joined:
    Oct 16, 2008
    Messages:
    5,472
    Likes Received:
    916
    Best Answers:
    148
    How did you activate it? Function, script etc
    The code I posted will change everyones (with that vocation) attack speed to w/e you set.
     
  6. Firulis

    Firulis New Member

    Joined:
    Jan 3, 2017
    Messages:
    21
    Likes Received:
    0
    Best Answers:
    2
    well it just sort of came with the Distro, as soon as i changed the distro the speed went away and im trying to bring it back, you should test it so you know what im talking about, OTX 2.9 and set attackspeed to something like 100
     
  7. WibbenZ

    WibbenZ Support Team Support Team Premium User

    Joined:
    Oct 16, 2008
    Messages:
    5,472
    Likes Received:
    916
    Best Answers:
    148
    Well no im not gonna test OTX xD
    Unless you can tell us what to look for in the source code we can't help you (unless someone has the info about it).
     
  8. Firulis

    Firulis New Member

    Joined:
    Jan 3, 2017
    Messages:
    21
    Likes Received:
    0
    Best Answers:
    2
    Best Answer
    BUDDY! I FIXED IT, i edited this in creature.h
    Code (C++):
    1. #define EVENT_CREATURECOUNT 10
    2. #define EVENT_CREATURE_THINK_INTERVAL 500
    i changed it to
    Code (C++):
    1. #define EVENT_CREATURECOUNT 1
    2. #define EVENT_CREATURE_THINK_INTERVAL 1
    and now i can attack about 5 times per second without using bot, i hope this helps someone
     
  9. Static_

    Static_ Premium User Premium User

    Joined:
    Feb 14, 2015
    Messages:
    2,955
    Likes Received:
    1,243
    Best Answers:
    170
    please DO NOT set intervl to 1
    at least make it 200 if you want to attack 5 times per second
    you're going to have 1000 creature checks firing off every second
     

Share This Page

Loading...