Page 1 of 1
Simple language macro
Posted: Thu Apr 29, 2004 9:12 pm
by bob_the_builder
Simple language macro wil cycle all availbe languages you know. Stops when you target yourself.
Code: Select all
| Lang_Tar.mac
|
| /macro lang_tar
| Cycles through all your availible languages
| Target yourself to end
|
| Written by shuttle
| Converted by bob_the_builder
|
#event LangHelp "Type /language help for a list#*#"
Sub Main
:SetDeclares
/declare LangNum outer
/declare MinLangNum outer
/declare MaxLangNum
:SetVars
/varset MinLangNum 2
/varset MaxLangNum 25
:MainLoop
/if (${Target.ID}) /goto :end
:GroupChat
/g This is a simple language macro
/g You are now learning a new language
/g Yeah !!!!! a new language Yeah !!!!
:IncreaseLanguage
/lang ${LangNum}
/varcalc LangNum ${LangNum}+1
/if (${LangNum}>${MaxLangNum}) /varset LangNum ${MinLangNum}
/doevents
/goto :MainLoop
:end
/endmacro
Sub event_LangHelp
/varset LangNum ${MinLangNum}
/return
Bob
Posted: Thu Apr 29, 2004 9:44 pm
by newb-n-training
fun one
can you get this to work tho? not the macro's issue but when I run it the languages aren't being spoken -- the text is in common.
I had to change the :Group section to simply be "Keypress hot2" (a hotkey I set up with "/g you love learning languages" on every line.
is there some method in EQ to alter this so the macro method works?
Posted: Fri May 14, 2004 6:05 am
by ChrisCim
Got it to work using the /g Message here, /keypress hot1 method, otherwise macro doesn't work as is. But with hotkey it works pretty well. Boxed a couple of my chars and they both learned all the languages pretty fast.
Tested
Posted: Sat May 15, 2004 1:04 am
by Shock
I love the macro and have modded it some to focus a few reps on a language before it advances as EQ is set up to allow you to train others to 1 skill level above your current ability level(thus 2 untrained toons could leapfrog that 1 point to max skill in minimum time), but still can't get the language advancement to register with eqclient for some reason.
It displays the advance:
"Current language is Troll (7)." etc.
But it does not broadcast IN troll, or whatever language it claims to have changed to, to the other group members, it continues in the language that was originally selected in the UI drop down or by manual entry via the /lang # command before or during macro operation.
It seems odd that the /lang # advancement routine seems to process the integer to the next number, but the client doesn't change output language to the group even after it displays the change?
Any ideas?
I'll post my code after I get this to work properly.
Tested
Posted: Fri Jun 04, 2004 5:16 pm
by SukMage
I have found that there is not enough delay to roll to the next language maybe? If I /end the macro and wait a few secs it will be in the last language selected my the macro. Maybe if a delay is added after the change it would work.
Posted: Mon Jun 14, 2004 4:08 pm
by Synergy
Very nice macro ...although I agree with the previous posts, unless you add /keypress hot1, it doesn't change through languages properly. Even with that it works, but it ends up disconnecting me. How would I go about slowing it down?
Posted: Mon Jun 14, 2004 5:48 pm
by BlackTooth
The reason it disconnects you is because it sends so many messages in a short period of time that the server or your connection has to dump you... To slow this down you could change
this....
Code: Select all
:GroupChat
/g This is a simple language macro
/g You are now learning a new language
/g Yeah !!!!! a new language Yeah !!!!
to this....
Code: Select all
:GroupChat
/g This is a simple language macro
/g You are now learning a new language
/g Yeah !!!!! a new language Yeah !!!!
[color=red] /delay 1s[/color]
that would put a one second delay between each loop
or you could put a counter on it so that it would run till just before your server would dump you
My language loop
Posted: Mon Jun 14, 2004 5:57 pm
by BlackTooth
This is one that i developed. Only thing is you have to switch the languages manually. I use this thing all the time.
Oh and if you use this the dialogue on your screen ends a couple seconds before it does on the rest of the grps screens so dont panic
Code: Select all
| LangLoop.mac
| Developed by BlackTooth
|
|
| If you have two people running this macro
| You dont need them to be good at all in the language
| Just set them both on the same language and they
| Will increase each others skill in the language
| From 0 to 100 takes a few minutes
| More peeps you have spamming the faster she goes
| If you are already a master in the language then
| it will only take bout 50 seconds to teach someone to 100
Sub Main
/echo Language Macro Starting
:SetDeclares
/declare Counter int
/declare TimerVal int
/declare Buffer int
:Setvars
/varset Counter 0
| Edit the following value to suit the needs of your server connection
| If you are 2-boxing and wanna go from 1 to 100 on your own then set
| TimerVal to about 1500 or so and add a /delay 1s after the last /gsay statement
| For me, a TimerVal of 150 brings the person to Master (100) in language
/varset TimerVal 150
/for Counter 0 to ${TimerVal}{
/gsay "You are learning a brand new language, Feel Special eh?"
/gsay "Well you shouldnt because you are not learning it fast enough!"
/gsay "Do you have any idea how much my mouth is gonna hurt after this?!"
/gsay "Study Study Study Hard"
/gsay "Practice makes stinkin perfect"
/gsay "Well it better make perfect or I am gonna sue"
/gsay "You are learning a brand new language, Feel Special eh?"
/gsay "Well you shouldnt because you are not learning it fast enough!"
/gsay "Do you have any idea how much my mouth is gonna hurt after this?!"
/gsay "Study Study Study Hard"
/gsay "Practice makes stinkin perfect"
/gsay "Well it better make perfect or I am gonna sue"
| This is to be used for long sessions, i.e. 2 boxing a lang up
| /delay 1s
| These are optional to /echo but I find it helpful to monitor the status
/echo Counter: ${Counter}
/echo TimerVal: ${TimerVal}
/if (${Counter} >= ${TimerVal}) /endmacro
/next Counter
}
/return
Posted: Sat Jul 03, 2004 5:27 am
by WhiteWolf
ok....something is...buggy with these now lol.
tried both of the macros in this thread out, and on my screen the language is set right (in the first, it cycles all my languages, in the former i set my language and it isn't changed.), but on the other end, it's all coming out in common tongue.
odd thing is, if i type anything manually, it's in the set language.
anyone have any ideas on this?
Posted: Sat Jul 03, 2004 6:50 am
by aChallenged1
WW, language used is based on the language setting of the window of focus. Were you focused on the window you changed language in?
That said, my question is can the first one be made to check language skill level and ignore those already mastered?
Posted: Sat Jul 03, 2004 7:08 am
by WhiteWolf
actaully i changed the language in all my windows to Vah Shir (the language i was trying to teach), and my ui is set to have the primary chet window as "always chat here"
unless the map having focus counts, heh.
Posted: Mon Jul 19, 2004 1:38 pm
by aChallenged1
Ran this today and checked logs and it is working.
Only issue is that it says 25 languages, but you can only learn a total of 23 (including common) from your GM. Don't know what the 2 are that I can't find. In mine, because of this I changed it to 23 for maxlang.
The 2 missing are Dark Speech (which dark races have automatically) and Thieves Cant which must be learned from a rogue, bard, or someone else who already has it.
Posted: Mon Jul 19, 2004 3:17 pm
by aChallenged1
Ok I understand what WW was talking about now. I've been messing with the Lang_targ.mac and it "appears" to be working fine from the bot side of things. It is not actually changing the language that is spewed out to the group. I know this for fact from testing and playing with this all morning and afternoon.
Posted: Tue Jul 20, 2004 1:14 pm
by aChallenged1
Found a work-around for this.
Comment out or remove totally the
/gs lines and add
/keypress 1
Then make a hotkey and place it in position 1 of the hotkey bank.
Hotkey should look something like...
Code: Select all
/gs Text here 1
/gs Text here 2
/gs Text here 3
/gs Text here 4
/gs Text here 5
Make sure to have your main chat window the focus window for anything you type and be sure not to accidentally change it. If you have the wrong window as focus it won't work properly.