Post: Typewriter Notifier
07-16-2011, 10:01 AM #1
Karoolus
I'm the W@W Menu Guy !
(adsbygoogle = window.adsbygoogle || []).push({}); i wrote this a while back & i couldn't remember if i posted it or not..
i checked to see if already posted, nothing showed so i though i'd post it now Winky Winky

What it does:

instead of using self iPrintln(...) to notify yourself that you've selected a mod, you can use this typewriter, which will show your text just the same, but it will appear one character at a time, in the lower right corner, just above your ammo.



    Notify_Mod( mod , value )
{
// prevent running this function double, it'll set the text to "" even when a new mod has been selected
self notify("new_mod");
self.TWactive = true;

self endon("new_mod");
string = "" + mod + ": " + value;
self thread typewriter( self.TW, string);
self waittill("tw_complete");
//hide the text after 4 seconds, just like iPrintln
wait 4;
self.TWactive = false;
self notify("blink");
}

typewriter( hud , string )
{
self endon("new_mod");

/////////////////////////////////
//find out how long the string is
/////////////////////////////////
more = true;
c = 0;
chars = [];
while(more)
{
temp_char = GetSubStr ( string , c , c+1 );
if(temp_char == "" || c > 40)
{
more = false;
break;
}
chars[c] = temp_char;
c++;
}
/////////////////////////////////
//now to display the character one by one
/////////////////////////////////
output = "";
for(i = 0; i < chars.size; i++)
{
tmpstr = output + chars[i];
output = tmpstr;
hud SetText(output);
wait .1;
}
self notify("tw_complete");
}

InitTW()
{
self.TW = createFontString( "default", 1.3, self );
self.TW setPoint( "BOTTOM RIGHT", "BOTTOM RIGHT", -12, -86 );
hud = self.TW;
for(;Winky Winky
{
while(!self.TWactive)
{
hud SetText(" I");
wait .4;
hud SetText(" ");
wait .4;
}
self waittill("blink");
}
}
(adsbygoogle = window.adsbygoogle || []).push({});

The following 7 users say thank you to Karoolus for this useful post:

alpatch649, CodingNation, iReset Nigga, Skyl1n3, TheFallen, Vampytwistッ, xxshredgnarxx
07-16-2011, 10:04 AM #2
iReset Nigga
2Fresshh!!
Originally posted by Karoolus View Post
i wrote this a while back & i couldn't remember if i posted it or not..
i checked to see if already posted, nothing showed so i though i'd post it now Winky Winky

    Notify_Mod( mod , value )
{
if(!IsDefined(self.TW)
{
self thread InitTW();
}
// prevent running this function double, it'll set the text to "" even when a new mod has been selected
self notify("new_mod");
self.TWactive = true;

self endon("new_mod");
string = "" + mod + ": " + value);
self thread typewriter( self.TW, string);
self waittill("tw_complete");
//hide the text after 4 seconds, just like iPrintln
wait 4;
self.TWactive = false;
}

typewriter( hud , string )
{
self endon("new_mod");

/////////////////////////////////
//find out how long the string is
/////////////////////////////////
more = true;
c = 1;
chars = [];
while(more)
{
temp_char = GetSubStr ( string , c , c );
if(temp_char = "" || c > 40)
{
more = false;
break;
}
chars[c] = temp_char;
c++;
}
/////////////////////////////////
//now to display the character one by one
/////////////////////////////////
output = "";
for(i = 1; i < chars.size; i++)
{
tmpstr = output + chars[i];
output = tmpstr;
hud SetText(output);
wait .2;
}
self notify("tw_complete");
}

InitTW()
{
self.TW = createFontString( "default", 1.3, self );
self.TW setPoint( "BOTTOM RIGHT", "BOTTOM RIGHT", -5, -35 );
hud = self.TW;
for(;Winky Winky
{
while(!TWactive)
{
hud SetText(" I");
wait .4;
hud SetText(" ");
wait .4;
}
wait 1;
}
}


untested, but it should work
if there's any errors, let me know Winky Winky


so what does this thing do?
07-16-2011, 10:17 AM #3
Karoolus
I'm the W@W Menu Guy !
Originally posted by PsNxDrEaMs View Post
so what does this thing do?


lol, i'm sorry, i'll update the OP Winky Winky
07-16-2011, 10:23 AM #4
iReset Nigga
2Fresshh!!
Originally posted by Karoolus View Post
lol, i'm sorry, i'll update the OP Winky Winky


oh wow this will be sick to use oh and BTW i can record now so if u need a recorder let me no Cool Man (aka Tustin) and could we use this for things like on player spawn text stuff like this example: Welcome To My CL or something like that
07-16-2011, 10:58 AM #5
Karoolus
I'm the W@W Menu Guy !
added video !
07-16-2011, 09:02 PM #6
Blackstorm
Veni. Vidi. Vici.
Haha, that looks cool. Smile

---------- Post added at 03:02 PM ---------- Previous post was at 03:00 PM ----------

It's a little unstable to use regularly though.
07-16-2011, 09:17 PM #7
Karoolus
I'm the W@W Menu Guy !
Originally posted by Blackstorm View Post
Haha, that looks cool. Smile

---------- Post added at 03:02 PM ---------- Previous post was at 03:00 PM ----------

It's a little unstable to use regularly though.


yeah it should end the function everytime a new string is passed, but it doesn't.. :s
weird weird :p
07-16-2011, 10:04 PM #8
xxshredgnarxx
Treasure hunter
Originally posted by Karoolus View Post
i wrote this a while back & i couldn't remember if i posted it or not..
i checked to see if already posted, nothing showed so i though i'd post it now Winky Winky

What it does:

instead of using self iPrintln(...) to notify yourself that you've selected a mod, you can use this typewriter, which will show your text just the same, but it will appear one character at a time, in the lower right corner, just above your ammo.



    Notify_Mod( mod , value )
{
// prevent running this function double, it'll set the text to "" even when a new mod has been selected
self notify("new_mod");
self.TWactive = true;

self endon("new_mod");
string = "" + mod + ": " + value;
self thread typewriter( self.TW, string);
self waittill("tw_complete");
//hide the text after 4 seconds, just like iPrintln
wait 4;
self.TWactive = false;
self notify("blink");
}

typewriter( hud , string )
{
self endon("new_mod");

/////////////////////////////////
//find out how long the string is
/////////////////////////////////
more = true;
c = 0;
chars = [];
while(more)
{
temp_char = GetSubStr ( string , c , c+1 );
if(temp_char == "" || c > 40)
{
more = false;
break;
}
chars[c] = temp_char;
c++;
}
/////////////////////////////////
//now to display the character one by one
/////////////////////////////////
output = "";
for(i = 0; i < chars.size; i++)
{
tmpstr = output + chars[i];
output = tmpstr;
hud SetText(output);
wait .1;
}
self notify("tw_complete");
}

InitTW()
{
self.TW = createFontString( "default", 1.3, self );
self.TW setPoint( "BOTTOM RIGHT", "BOTTOM RIGHT", -12, -86 );
hud = self.TW;
for(;Winky Winky
{
while(!self.TWactive)
{
hud SetText(" I");
wait .4;
hud SetText(" ");
wait .4;
}
self waittill("blink");
}
}



sick!!!! nice karoolus
07-17-2011, 01:19 PM #9
Karoolus
I'm the W@W Menu Guy !
Originally posted by xxshredgnarxx View Post
sick!!!! nice karoolus


nothing sick about it :p
look at how short that code is Winky Winky
07-17-2011, 04:48 PM #10
xxshredgnarxx
Treasure hunter
Originally posted by Karoolus View Post
nothing sick about it :p
look at how short that code is Winky Winky


yeah but what it does is amazing haha

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo