Post: How would should I edit this script?
06-12-2016, 07:28 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I have an edited source version of zombieland that I do very beginner level edits to, and this code has a time interval of 20 seconds and I don't know how to change it to 10 seconds. Where should I look to edit the time? Please reply! Sorry if this is nooby. Thanks for you help. Smile

invisible(time)
{
if (self.money >= level.itemPrice["Zombie"]["General"]["Invisible"])
{
if (!isDefined(self.isInvisible))
{
self endon("disconnect");
self endon("endInvisible");

self.invisibleTime = time;
self.money -= level.itemPrice["Zombie"]["General"]["Invisible"];
self iPrintln("You Are Now ^2Invisible ^7For " + time + " Seconds");
for (;Winky Winky
{
if (self.invisibleTime != 0)
{
self.isInvisible = true;
self hide();
wait 1;
self.invisibleTime -= 1;
}
else
{
self show();
self iPrintln("You Are ^1No Longer ^7Invisible");
self.isInvisible = undefined;
self notify("endInvisible");
}
wait 0.01;
}
}
else
self SendError("AlreadyInvisible");
}
else
self SendError("MoreMoney");
}
Last edited by Thomas Gaming ; 06-12-2016 at 07:32 AM.
06-12-2016, 09:03 AM #2
HiddenHour
I defeated!
Originally posted by Thomas
I have an edited source version of zombieland that I do very beginner level edits to, and this code has a time interval of 20 seconds and I don't know how to change it to 10 seconds. Where should I look to edit the time? Please reply! Sorry if this is nooby. Thanks for you help. Smile

invisible(time)
{
if (self.money >= level.itemPrice["Zombie"]["General"]["Invisible"])
{
if (!isDefined(self.isInvisible))
{
self endon("disconnect");
self endon("endInvisible");

self.invisibleTime = time;
self.money -= level.itemPrice["Zombie"]["General"]["Invisible"];
self iPrintln("You Are Now ^2Invisible ^7For " + time + " Seconds");
for (;Winky Winky
{
if (self.invisibleTime != 0)
{
self.isInvisible = true;
self hide();
wait 1;
self.invisibleTime -= 1;
}
else
{
self show();
self iPrintln("You Are ^1No Longer ^7Invisible");
self.isInvisible = undefined;
self notify("endInvisible");
}
wait 0.01;
}
}
else
self SendError("AlreadyInvisible");
}
else
self SendError("MoreMoney");
}


Please use code tags. The way that you would set the time is from the argument time which is found here invisible(time)

When you call the function in the shop menu, you do it like this- ::invisible, 20);

If you want to make it 10 instead of 20, just do it like this- ::invisible, 10);

The following user thanked HiddenHour for this useful post:

Thomas Gaming
06-12-2016, 11:47 AM #3
Thanks so much, I'm so retarted! LOL
06-12-2016, 11:54 AM #4
HiddenHour
I defeated!
Originally posted by Thomas
Thanks so much, I'm so retarted! LOL


No problem. Do me a favor and click that little button that say's "Give thehiddenhour an internet" Ninja
Last edited by HiddenHour ; 06-12-2016 at 11:59 AM.
06-12-2016, 01:11 PM #5
Originally posted by TheHiddenHour View Post
No problem. Do me a favor and click that little button that say's "Give thehiddenhour an internet" Ninja


I gave you an internet, whatever that means.

Originally posted by Thomas
Thanks so much, I'm so retarted! LOL


Question answered, closed.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo