View Full Version : I choose YOU, TGO!
JackWhisper
09-09-2014, 08:44 PM
TGO, I need a quick and dirty script please!
Very simple.
1618 upkeep.
Costs 18 mana. I want to use it as long as I have more than 50 mana. Likely, that'll be absolutely fine, as I don't use mana for anything.... ever. Except the random FUCKYOUWEB beseech.
It's a 60 second duration. Can you help me out prz?
Tgo01
09-09-2014, 08:48 PM
loop{
if !Spell[1618].active? && checkmana > 50 && Spell[1618].known?
Spell[1618].cast
end
sleep 1
}
JackWhisper
09-09-2014, 09:02 PM
IT SHALL BE NAMED TGOCrusade!
DaCapn
09-09-2014, 09:03 PM
The funny thing about this kind of script is how often people lament the non-existence of one for their particular spell (or request one to be written). Take Tgo01's example or any of the myriad scripts on the repo that keep some kind of spell effect active. Change 1618 for 506, 919, 140, etc.
Anyone who can play GS can modify this code for any spell. You just need to try. Note that the request is way longer than the code itself.
JackWhisper
09-09-2014, 09:09 PM
You know what would have taken way longer?
Searching the script section for a specific upkeep that included a proper waittimer *which I didn't know 1 reflected 1 minute, as opposed to 1 second*, included a minimum mana check *which some do not, I'm sure*, and... I wanted to name it after TGO!
Androidpk
09-09-2014, 09:11 PM
The funny thing about this kind of script is how often people lament the non-existence of one for their particular spell (or request one to be written). Take Tgo01's example or any of the myriad scripts on the repo that keep some kind of spell effect active. Change 1618 for 506, 919, 140, etc.
Anyone who can play GS can modify this code for any spell. You just need to try. Note that the request is way longer than the code itself.
Sure, blame the victims :)
Tgo01
09-09-2014, 09:12 PM
Actually sleep 1 is 1 second :p
It won't actually cast the spell unless 1618 isn't active though so it doesn't hurt to check more often.
JackWhisper
09-09-2014, 09:19 PM
Damnit TGO you aren't helping!
=P
DaCapn
09-09-2014, 09:22 PM
You know what would have taken way longer?
Searching the script section for a specific upkeep that included a proper waittimer *which I didn't know 1 reflected 1 minute, as opposed to 1 second*, included a minimum mana check *which some do not, I'm sure*, and... I wanted to name it after TGO!
I suppose I was expecting that you'd see the merit of investing a very marginal amount of time to learn something that will save you an incredible amount of time and effort later.
JackWhisper
09-09-2014, 09:25 PM
.....
I would rather take that marginal amount of time and dedicate it to my friendship with Terrence. He's much more fun than learning how to code.
Saurven
09-10-2014, 08:40 PM
Spell[1618].affordable? is also an option instead of the checkmana, if you don't care how much mana you have, as long as it's enough for the spell. The above checks for a specific amount of mana before casting.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.