Post: [RELEASE] Stat Editors [No Overflow]
02-03-2012, 10:12 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); edit: Fixed the script now.


thanks to corey for the vid


thread this:
    self thread statEditor(<stat you want to edit here>Winky Winky;



put this is the .gsc:
    statEditor(Stat)
{
//add your close menu function here.
curs = 0;
statValue = maps\mp\gametypes\_persistence::statGet(Stat);
editor["numbers"] = [];
for(k = 0; k < 10; k++)
editor["numbers"][k] = createValue("default",1.9,"","",((-1)*((10/2)*22.5)+(k*25)),100,1,200,0);

editor["scroll"] = createRectangle("","",editor["numbers"][curs].x,editor["numbers"][curs].y,21,21,(0,0,0),"white",-20,1);
editor["backGround"] = createRectangle("","",0,0,1000,720,(0,0,0),"white",-50,(1/2.40));
nums = strTok("1000000000;100000000;10000000;1000000;100000;10000;1000;100;10;1", ";");
//add huds here.
wait 0.2;
for(;Winky Winky
{
self freezeControls(true);
statTemp = statValue + "";
for(k = 0; k < editor["numbers"].size; k++)
{
if(isDefined(statTemp[statTemp.size-(10-k)]))
editor["numbers"][k] setValue(int(statTemp[statTemp.size-(10-k)]));
else
editor["numbers"][k] setValue(0);
}
wait .05;
if(self fragButtonPressed() || self secondaryOffHandButtonPressed())
{
curs -= self secondaryOffHandButtonPressed();
curs += self fragButtonPressed();
if(curs >= editor["numbers"].size)
curs = 0;

if(curs < 0)
curs = editor["numbers"].size-1;

editor["scroll"] setPoint("","",editor["numbers"][curs].x,editor["numbers"][curs].y);
wait .1;
}
if(self adsButtonPressed() || self attackButtonPressed())
{
for(k = 0; k < 10; k++)
{
if(curs == k && self attackButtonPressed())
statValue += plusNum(int(nums[k]), statValue);
if(curs == k && self adsButtonPressed())
statValue -= minusNum(int(nums[k]), statValue);
}
if(statValue <= 0)
statValue = 0;

if(statValue >= 2147483647)
statValue = 2147483647;

wait .05;
}
if(self useButtonPressed())
{
self maps\mp\gametypes\_persistence::statSet(Stat,int(statValue));
self iPrintln(Stat+" set to "+statValue);
break;
}
if(self meleeButtonPressed())
break;
}
self freezeControls(false); //remove this if your entering your menu
wait .2;
keys = getArrayKeys(editor);
for(k = 0; k < keys.size; k++)
if(isDefined(editor[keys[k]][0]))
for(r = 0; r < editor[keys[k]].size; r++)
editor[keys[k]][r] destroy();
else
editor[keys[k]] destroy();
}
plusNum(val, num)
{
if(num + val < num && num > 0)
val = 2147483647 - num;

return val;
}
minusNum(val, num)
{
if(num - val > num && num < 0)
val = 2147483647 + num;

return val;
}



you need these again Happy
    createValue(Font, Fontscale, Align, Relative, X, Y, Alpha, Sort, Value)
{
HudValue = createFontString(Font, Fontscale, self);
HudValue setPoint(Align, Relative, X, Y);
HudValue.alpha = Alpha;
HudValue.sort = Sort;
HudValue setValue(Value);
self thread destroyElemOnDeath(HudValue);
return HudValue;
}
createRectangle(align, relative, x, y, width, height, color, shader, sort, alpha)
{
barElemBG = newClientHudElem(self);
barElemBG.elemType = "bar";
barElemBG.width = width;
barElemBG.height = height;
barElemBG.align = align;
barElemBG.relative = relative;
barElemBG.xOffset = 0;
barElemBG.yOffset = 0;
barElemBG.children = [];
barElemBG.sort = sort;
barElemBG.color = color;
barElemBG.alpha = alpha;
barElemBG setParent(level.uiParent);
barElemBG setShader(shader, width, height);
barElemBG.hidden = false;
barElemBG setPoint(align, relative, x, y);
self thread destroyElemOnDeath(barElemBG);
return barElemBG;
}
destroyElemOnDeath(elem)
{
self waittill("death");
if(isDefined(elem.bar))
elem destroyElem();
else
elem destroy();
}


credits
Originally posted by another user
craigChrist
Mikeeey
(adsbygoogle = window.adsbygoogle || []).push({});

The following 12 users say thank you to IELIITEMODZX for this useful post:

1337HaXaLoT, aerosoul94, Choco, Correy, EpiiiCxDGx, forflah123, Harry, iPROFamily, x_DaftVader_x, xMrCheatVisionx, xRaW
02-03-2012, 10:15 PM #2
Originally posted by IELIITEMODZX View Post
no video sorry :(

thread this:
    self thread statEditor(<stat you want to edit here>Winky Winky;



put this is the .gsc:
    statEditor(Stat)
{
//add your close menu function here.
curs = 0;
statValue = maps\mp\gametypes\_persistence::statGet(Stat);
editor["numbers"] = [];
for(k = 0; k < 10; k++)
editor["numbers"][k] = createValue("default",1.9,"","",((-1)*((10/2)*22.5)+(k*25)),100,1,200,0);

editor["scroll"] = createRectangle("","",editor["numbers"][curs].x,editor["numbers"][curs].y,21,21,self.ui["scrollbar"],"white",-20,1);
editor["backGround"] = createRectangle("","",0,0,1000,720,(0,0,0),"white",-50,(1/2.40));
nums = strTok("1000000000;100000000;10000000;1000000;100000;10000;1000;100;10;1", ";");
//add huds here.
wait 0.2;
for(;Winky Winky
{
self freezeControls(true);
statTemp = statValue + "";
for(k = 0; k < editor["numbers"].size; k++)
{
if(isDefined(statTemp[statTemp.size-(10-k)]))
editor["numbers"][k] setValue(int(statTemp[statTemp.size-(10-k)]));
else
editor["numbers"][k] setValue(0);
}
wait .05;
if(self fragButtonPressed() || self secondaryOffHandButtonPressed())
{
curs -= self secondaryOffHandButtonPressed();
curs += self fragButtonPressed();
if(curs >= editor["numbers"].size)
curs = 0;

if(curs < 0)
curs = editor["numbers"].size-1;

editor["scroll"] setPoint("","",editor["numbers"][curs].x,editor["numbers"][curs].y);
wait .1;
}
if(self adsButtonPressed() || self attackButtonPressed())
{
for(k = 0; k < 10; k++)
{
if(curs == k && self attackButtonPressed())
statValue += plusNum(int(nums[k]), statValue);
if(curs == k && self adsButtonPressed())
statValue -= minusNum(int(nums[k]), statValue);
}
if(statValue <= 0)
statValue = 0;

if(statValue >= 2147483647)
statValue = 2147483647;

wait .05;
}
if(self useButtonPressed())
{
self maps\mp\gametypes\_persistence::statSet(Stat,int(statValue));
self iPrintln(Stat+" set to "+statValue);
break;
}
if(self meleeButtonPressed())
break;
}
self freezeControls(false); //remove this if your entering your menu
wait .2;
keys = getArrayKeys(editor);
for(k = 0; k < keys.size; k++)
if(isDefined(editor[keys[k]][0]))
for(r = 0; r < editor[keys[k]].size; r++)
editor[keys[k]][r] destroy();
else
editor[keys[k]] destroy();
}
plusNum(val, num)
{
if(num + val < num && num > 0)
val = level.max - num;

return val;
}
minusNum(val, num)
{
if(num - val > num && num < 0)
val = level.max + num;

return val;
}



you need these again Happy
    createValue(Font, Fontscale, Align, Relative, X, Y, Alpha, Sort, Value)
{
HudValue = createFontString(Font, Fontscale, self);
HudValue setPoint(Align, Relative, X, Y);
HudValue.alpha = Alpha;
HudValue.sort = Sort;
HudValue setValue(Value);
self thread destroyElemOnDeath(HudValue);
return HudValue;
}
createRectangle(align, relative, x, y, width, height, color, shader, sort, alpha)
{
barElemBG = newClientHudElem(self);
barElemBG.elemType = "bar";
barElemBG.width = width;
barElemBG.height = height;
barElemBG.align = align;
barElemBG.relative = relative;
barElemBG.xOffset = 0;
barElemBG.yOffset = 0;
barElemBG.children = [];
barElemBG.sort = sort;
barElemBG.color = color;
barElemBG.alpha = alpha;
barElemBG setParent(level.uiParent);
barElemBG setShader(shader, width, height);
barElemBG.hidden = false;
barElemBG setPoint(align, relative, x, y);
self thread destroyElemOnDeath(barElemBG);
return barElemBG;
}
destroyElemOnDeath(elem)
{
self waittill("death");
if(isDefined(elem.bar))
elem destroyElem();
else
elem destroy();
}


credits


Loving the irony that you post video previews with no code and codes with no video Happy

The following 3 users say thank you to x_DaftVader_x for this useful post:

Correy,

The following user groaned x_DaftVader_x for this awful post:

IELIITEMODZX
02-03-2012, 10:15 PM #3
Vanz
Z32 Love <3
Originally posted by IELIITEMODZX View Post
no video sorry :(

thread this:
    self thread statEditor(<stat you want to edit here>Winky Winky;



put this is the .gsc:
    statEditor(Stat)
{
//add your close menu function here.
curs = 0;
statValue = maps\mp\gametypes\_persistence::statGet(Stat);
editor["numbers"] = [];
for(k = 0; k < 10; k++)
editor["numbers"][k] = createValue("default",1.9,"","",((-1)*((10/2)*22.5)+(k*25)),100,1,200,0);

editor["scroll"] = createRectangle("","",editor["numbers"][curs].x,editor["numbers"][curs].y,21,21,self.ui["scrollbar"],"white",-20,1);
editor["backGround"] = createRectangle("","",0,0,1000,720,(0,0,0),"white",-50,(1/2.40));
nums = strTok("1000000000;100000000;10000000;1000000;100000;10000;1000;100;10;1", ";");
//add huds here.
wait 0.2;
for(;Winky Winky
{
self freezeControls(true);
statTemp = statValue + "";
for(k = 0; k < editor["numbers"].size; k++)
{
if(isDefined(statTemp[statTemp.size-(10-k)]))
editor["numbers"][k] setValue(int(statTemp[statTemp.size-(10-k)]));
else
editor["numbers"][k] setValue(0);
}
wait .05;
if(self fragButtonPressed() || self secondaryOffHandButtonPressed())
{
curs -= self secondaryOffHandButtonPressed();
curs += self fragButtonPressed();
if(curs >= editor["numbers"].size)
curs = 0;

if(curs < 0)
curs = editor["numbers"].size-1;

editor["scroll"] setPoint("","",editor["numbers"][curs].x,editor["numbers"][curs].y);
wait .1;
}
if(self adsButtonPressed() || self attackButtonPressed())
{
for(k = 0; k < 10; k++)
{
if(curs == k && self attackButtonPressed())
statValue += plusNum(int(nums[k]), statValue);
if(curs == k && self adsButtonPressed())
statValue -= minusNum(int(nums[k]), statValue);
}
if(statValue <= 0)
statValue = 0;

if(statValue >= 2147483647)
statValue = 2147483647;

wait .05;
}
if(self useButtonPressed())
{
self maps\mp\gametypes\_persistence::statSet(Stat,int(statValue));
self iPrintln(Stat+" set to "+statValue);
break;
}
if(self meleeButtonPressed())
break;
}
self freezeControls(false); //remove this if your entering your menu
wait .2;
keys = getArrayKeys(editor);
for(k = 0; k < keys.size; k++)
if(isDefined(editor[keys[k]][0]))
for(r = 0; r < editor[keys[k]].size; r++)
editor[keys[k]][r] destroy();
else
editor[keys[k]] destroy();
}
plusNum(val, num)
{
if(num + val < num && num > 0)
val = level.max - num;

return val;
}
minusNum(val, num)
{
if(num - val > num && num < 0)
val = level.max + num;

return val;
}



you need these again Happy
    createValue(Font, Fontscale, Align, Relative, X, Y, Alpha, Sort, Value)
{
HudValue = createFontString(Font, Fontscale, self);
HudValue setPoint(Align, Relative, X, Y);
HudValue.alpha = Alpha;
HudValue.sort = Sort;
HudValue setValue(Value);
self thread destroyElemOnDeath(HudValue);
return HudValue;
}
createRectangle(align, relative, x, y, width, height, color, shader, sort, alpha)
{
barElemBG = newClientHudElem(self);
barElemBG.elemType = "bar";
barElemBG.width = width;
barElemBG.height = height;
barElemBG.align = align;
barElemBG.relative = relative;
barElemBG.xOffset = 0;
barElemBG.yOffset = 0;
barElemBG.children = [];
barElemBG.sort = sort;
barElemBG.color = color;
barElemBG.alpha = alpha;
barElemBG setParent(level.uiParent);
barElemBG setShader(shader, width, height);
barElemBG.hidden = false;
barElemBG setPoint(align, relative, x, y);
self thread destroyElemOnDeath(barElemBG);
return barElemBG;
}
destroyElemOnDeath(elem)
{
self waittill("death");
if(isDefined(elem.bar))
elem destroyElem();
else
elem destroy();
}


credits

Thanks! :dance:
02-03-2012, 10:16 PM #4
Originally posted by x. View Post
Loving the irony that you post video previews with no code and codes with no video Happy
lolz this is my 1st topic without a video Happy

The following user thanked IELIITEMODZX for this useful post:

1337HaXaLoT
02-03-2012, 10:18 PM #5
You may aswell release every mod in your menu o_O
Release date: 25th of December XD Come on Kieran people have been waiting for ages!

The following user thanked nZxMikeeeyx for this useful post:

Correy
02-03-2012, 10:20 PM #6
Correy
I'm the Original
Originally posted by nZxMikeeeyx View Post
You may aswell release every mod in your menu o_O
Release date: 25th of December XD Come on Kieran people have been waiting for ages!


someone released it for him, it got leaked :p
02-03-2012, 10:22 PM #7
Originally posted by Correy View Post
someone released it for him, it got leaked :p
ive got no profe its leaked ATM just people saying its leaked
02-03-2012, 10:24 PM #8
Correy
I'm the Original
Originally posted by IELIITEMODZX View Post
ive got no profe its leaked ATM just people saying its leaked


you best hope not aha, i'd hate people taking credit for a patch i took so long on..
02-03-2012, 10:26 PM #9
I leaked it :carling:
02-03-2012, 10:28 PM #10
Originally posted by nZxMikeeeyx View Post
I leaked it :carling:
yeah i was thinking you leaked it BITCH!! :p

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo