Show number on Attack/Movement speed....

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
infernorock
Forum Fanatic
Posts: 324
Joined: August 31st, 2008, 10:24 am
Title: ☆Fate Testarossa★
Location: Malaysia

Show number on Attack/Movement speed....

Post by infernorock »

As title, is that possible to create a trigger to make unit's movement/attack speed into numbers instead of "Slow/Fast/Very Fast"?
Or maybe extract the code from ShadowFrench's MH?

Any suggestion would be nice :P
[spoiler="Wc3 I'm using and Garena ID"]The wc3 version I'm current using:1.21,1.24b,1.24e
Garena UID-->pkyer123(BANNED for some reason LOL)
-->pkyer(Active)
-->InfernoRock(Banned for inactive...WTF!?)[/spoiler]
Small Sized Duck wrote:IF someone is talking about a map they wanted cheated 17 years ago. And you bump it, you're retarded.
naturesfury
Forum Spammer
Posts: 610
Joined: March 30th, 2009, 9:02 pm

Re: Show number on Attack/Movement speed....

Post by naturesfury »

User avatar
UndeadxAssassin
Grammar King
Posts: 2115
Joined: June 22nd, 2008, 10:11 pm
Title: Worst human for 4eva
Location: Mostly USEast

Re: Show number on Attack/Movement speed....

Post by UndeadxAssassin »

Extract that into your wc3 directory. It will automatically inject itself into WC3 and change the move speeds from "Very Slow, Slow, etc..." to the corresponding numerical equivalence. It also does the same for attack speed (instead of VSlow, Slow, etc.., it shows numberical values) and also shows hp regen and mp regen below the Intelligence stat if on a hero.

DISCLAIMER: I do not own, nor did I make this program, and I also forgot the name of the person who made it >_>. As with any injector, you will run the risk of being banned and blah blah blah. I will not be held responsible nor will the maker of this program. Use at your own risk.

Tested + works for latest patch only (1.26a). It will not work on any other patches or GGC.

EDIT: I should also answer the topic by saying there is not a trigger that can do this in JASS (that I know of.)
You do not have the required permissions to view the files attached to this post.
(20:53:52) Bartimaeus: Thank you, Jen.
(20:53:56) Bartimaeus: Truly, you are wise.


(23:44:12) Bartimaeus: I was in pubic school until middle school...


Learn how to extract and read RAW Codes here!

Need help? Click here and ask your question!
GeorgeMots
Crusader
Posts: 4236
Joined: January 27th, 2007, 4:46 pm
Location: Greece, Veria

Re: Show number on Attack/Movement speed....

Post by GeorgeMots »

Where did you find this?

Edit: Tested, works perfectly with tftl and other bunch of stuff loaded.
http://slowbro.org/
`·.,¸,.·*¯`·.,¸,.·*¯[;::;(。◕‿‿­­​­­­­­◕。)
Image
Image
Image

Spoiler:
(03:36:55) xkiska: im too much of a dumbass to understand this
owner123
Super Moderator
Posts: 1943
Joined: February 3rd, 2009, 11:28 pm

Re: Show number on Attack/Movement speed....

Post by owner123 »

It's possible to make a trigger that does this, measuring the time between two triggers using the events "A unit takes damage" and "A unit attacks a unit". It would require a lot of work though.
User avatar
infernorock
Forum Fanatic
Posts: 324
Joined: August 31st, 2008, 10:24 am
Title: ☆Fate Testarossa★
Location: Malaysia

Re: Show number on Attack/Movement speed....

Post by infernorock »

Cool! Thank you UndeadxAssassin for the files and George for testing it :D
Thank you too owner123 for the information.
Don't worry, I'm use it for local :P
[spoiler="Wc3 I'm using and Garena ID"]The wc3 version I'm current using:1.21,1.24b,1.24e
Garena UID-->pkyer123(BANNED for some reason LOL)
-->pkyer(Active)
-->InfernoRock(Banned for inactive...WTF!?)[/spoiler]
Small Sized Duck wrote:IF someone is talking about a map they wanted cheated 17 years ago. And you bump it, you're retarded.
User avatar
UndeadxAssassin
Grammar King
Posts: 2115
Joined: June 22nd, 2008, 10:11 pm
Title: Worst human for 4eva
Location: Mostly USEast

Re: Show number on Attack/Movement speed....

Post by UndeadxAssassin »

I did say I tested it in my post...>_>
(20:53:52) Bartimaeus: Thank you, Jen.
(20:53:56) Bartimaeus: Truly, you are wise.


(23:44:12) Bartimaeus: I was in pubic school until middle school...


Learn how to extract and read RAW Codes here!

Need help? Click here and ask your question!
GeorgeMots
Crusader
Posts: 4236
Joined: January 27th, 2007, 4:46 pm
Location: Greece, Veria

Re: Show number on Attack/Movement speed....

Post by GeorgeMots »

UndeadxAssassin wrote:I did say I tested it in my post...>_>


You didnt if it worked with tftl.
http://slowbro.org/
`·.,¸,.·*¯`·.,¸,.·*¯[;::;(。◕‿‿­­​­­­­­◕。)
Image
Image
Image

Spoiler:
(03:36:55) xkiska: im too much of a dumbass to understand this
User avatar
haxorico
Super Moderator
Posts: 3190
Joined: February 24th, 2009, 1:31 pm
Location: JEW LAND

Re: Show number on Attack/Movement speed....

Post by haxorico »

You could do it in jass, it it will be abit tricky.
If there is any-part of the code you don't understand let me know.

Note: You do need to add some modifications as this is just the main struct, you need to input some stuff like the agility bonus, and the hero names + Base Attack Speed.
I didn't test it I just ran it through my head while writing it and it may not work. Let me know how it goes.
all you gotta do after input is done is to write -ats # at game. when # is the bonus attack speed you got (I don't think there is a way to findout how much you got by any other way)
Spoiler:

Code: Select all

globals
constant real ATTACK_SPEED_BONUS=0.01
trigger ATTACK_SPEED_CALCULATOR=CreateTrigger()
endglobals

function DefineHero takes unit u returns real
if GetHeroProperName(u)=="Input Hero Name #1 Here" then
return 0.7//this is the default attack-speed - Most of dota heroes have 0.70, you can check them at playdota site.
elseif GetHeroProperName(u)=="Input Hero Name #2 Here" then
return 0.69//or any other value
elseif GetHeroProperName(u)=="Input Hero Name #3 Here" then
return 0.71//as you can see it just repeats... so add as many heroes as you want.
endif
return 0.0
endfunction

function CalculateAttackSpeed takes unit u, integer atspb returns real
local real r=DefineHero(u)
local integer agi=GetHeroAgi(u,true)
if r>0 then
return ((1+(atspb/100)+(agi/100)) / r)
endif                             
return 0.0
endfunction

function AttackSpeedCalculate_Main takes nothing returns nothing
local unit u
local group g=CreateGroup()
local real r
call GroupEnumUnitsSelected(g,GetTriggerPlayer(),null)
loop 
set u=FirstOfGroup(g)
exitwhen u==null
set r=CalculateAttackSpeed(u,S2I(SubString(GetEventPlayerChatString(),4,StringLength(GetEventPlayerChatString()))))
if r>0 then
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,R2S(r))
return
endif
endloop
endfunction

function main takes nothing returns nothing
local integer i=0
loop
exitwhen i>=11
call TriggerRegisterPlayerChatEvent(ATTACK_SPEED_CALCULATOR,Player(i),"-ats",false)
set i=i+1
endloop
call TriggerAddAction(ATTACK_SPEED_CALCULATOR,function AttackSpeedCalculate_Main)
endfunction
Image
Spoiler:
(02:24:09)

Code: Select all

ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).

Code: Select all


(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac:


Code: Select all

(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.

Code: Select all

(15:42:51) Lanaya: can i suck , . . .

Code: Select all

(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code: Select all

GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code: Select all

(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).


Code: Select all

(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?