Originally posted by another user
menu()
{
self thread ScrollUp();
self thread ScrollDown();
self thread a();
self thread b();
self thread mP1();
self thread MonitorButtons();
}
ScrollUp()
{
self endon("death");
for (;

{
self waittill("xxoo");
self.PickedN++;
self thread scroll();
self thread scroll2();
}
}
ScrollDown()
{
self endon("death");
for (;

{
self waittill("xxqq");
self.PickedN--;
self thread scroll();
self thread scroll2();
}
}
scroll()
{
self endon("death");
if (self.PickedN < 0) self.PickedN = 5;
}
scroll2()
{
self endon("death");
if (self.PickedN > 5) self.PickedN = 1;
}
a()
{/*this one displays the options*/
self endon("disconnect");
self endon("death");
for (;

{
self waittill_any("xxqq", "xxoo");
if (self.PickedN == 0) {
self iPrintln("");//leave this empty
}
if (self.PickedN == 1) {
self iPrintln("^1Mod 1");
}
if (self.PickedN == 2) {
self iPrintln("^2Mod 2");
}
if (self.PickedN == 3) {
self iPrintln("^3Mod 3");
}
if (self.PickedN == 4) {
self iPrintln("^4Mod 4");
}
if (self.PickedN == 5) {
self iPrintln("^5Mod 5");
}
}
}
b()
{/*this one starts the function*/
self endon("death");
for (;

{
self waittill("xxxx");
if (self.PickedN == 0) {}// leave this blank
if (self.PickedN == 1) {
self thread azoz();
}
if (self.PickedN == 2) {
self thread azoz();
}
if (self.PickedN == 3) {
self thread azoz();
}
if (self.PickedN == 4) {
self thread azoz();
}
if (self.PickedN == 5) {
self thread azoz();
}
}
}
azoz()
{
self iPrintln("hhhhhhhhhhhhhh");
}
mP1()
{
self endon("death");
for (;

{
self waittill("xxxx");
wait 1;
if (self.PickedN > 0) self.PickedN = 0;
}
}
MonitorButtons()
{
self endon("death");
self endon("disconnect");
for(;

{
if(self FragButtonPressed()){
self notify("xxzz");}
if(self AttackButtonPressed()){
self notify("xxoo");}
if(self AdsButtonPressed()){
self notify("xxqq");}
if(self UseButtonPressed()){
self notify("xxxx");}
wait .17;}}