Language skill macro (slave/master)

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

DriveCrash
decaying skeleton
decaying skeleton
Posts: 5
Joined: Thu Oct 28, 2004 11:00 pm

Language skill macro (slave/master)

Post by DriveCrash » Fri Dec 31, 2004 10:38 pm

I'm trying to write a master / slave macro for teaching/learning languages.

My goals are simple.
- teach all langauges
- start with language 1 and move through languages by recieveing tell from student **NEXT** or something like that
- have student program watch language skills, moveing through list as they max out. Sending tell to teacher requesting specific languages needed.

This is **JUST** the slave program.. This could be done by this program or by a player by just typeing /tell ------- **NEXT** and then another tell with the name of the language or something. Not really sure yet. anyway, any advice would be great!

My codeing skills are weak at best. I could use some pointers if you see a better way to code something. thx
#chat group
#chat chat
#chat tell


Sub Main
/call RaiseSkill "Barbarian" "2"
/call RaiseSkill "Erudian" "3"
/call RaiseSkill "Elvish" "4"
/call RaiseSkill "Dark Elvish" "5"
/call RaiseSkill "Dwarvish" "6"
/call RaiseSkill "Troll" "7"
/call RaiseSkill "Ogre" "8"
/call RaiseSkill "Gnomish" "9"
/call RaiseSkill "Halfling" "10"
/call RaiseSkill "Thieves Cant" "11"
/call RaiseSkill "Old Erudian" "12"
/call RaiseSkill "Elder Elvish" "13"
/call RaiseSkill "Froglok" "14"
/call RaiseSkill "Goblin" "15"
/call RaiseSkill "Gnoll" "16"
/call RaiseSkill "Combine Tongue" "17"
/call RaiseSkill "Elder Teir`Dal" "18"
/call RaiseSkill "Lizardman" "19"
/call RaiseSkill "Orcish" "20"
/call RaiseSkill "Faerie" "21"
/call RaiseSkill "Dragon" "22"
/call RaiseSkill "Elder Dragon" "23"
/call RaiseSkill "Dark Speech" "24"
/call RaiseSkill "Vah Shir" "25"
/endmacro
/return

Sub RaiseSkill(SkillName,Lnum)

/echo current skill in ${SkillName} is ${Me.LanguageSkill[${SkillName}]}

/if (${Me.LanguageSkill[${SkillName}]}>= 100) {
/goto :skip
}
|/tell TEACHER ${SkillName}, ${Me.LanguageSkill[${SkillName}]}
/delay 1s
:checkit
/delay 15s
/if (${Me.LanguageSkill[${SkillName}]}<99) {
/goto :checkit
}

| -- Moves to next call to start teacher program on next needed language --
/echo ${SkillName} is now finished
/tell TEACHER **NEXT**
:skip
/return
It does work, and sends the tell. however I still need to be able to call the master through the /macro learn --- variable, and umm yeah i think thats it. I"ve been working on the teaching code, but i'm not there yet.

-DC
Last edited by DriveCrash on Sun Jan 02, 2005 8:09 am, edited 1 time in total.

User avatar
Cr4zyb4rd
Plugins Czar
Posts: 1449
Joined: Tue Jul 20, 2004 11:46 am

Post by Cr4zyb4rd » Sat Jan 01, 2005 1:19 am

RTFM. Search for language. Tricky tricky stuff.