Credit me if you use any of my scripts please!
This is a "Mod Menu I was working on but never finished so if you want it to work, re-script the freeze-click mechanism
Code:
function onActionServerSide() {
switch(params[0]) {
case "drag": {
player.chat="Dragging: "@ params[1];
temp.pl = findplayer(params[1]);
temp.pl.x = params[2];
temp.pl.y = params[3];
savelog2(player.account @ "_log.txt", "Drag: Dragging " @ findplayer(params[1]).nick NL "");
break;
}
}
}
//#CLIENTSIDE
function onCreated()
{
setTimer(.05);
enablefeatures( allfeatures -4 );
}
function onKeyPressed(code, key, scancode) {
if (key == "g" || key == "G")
{
if (this.on == false)
{
this.on = true;
onOpenGUI();
}
else
{
this.on = false;
Kolo_Main_Window1.destroy();
}
}
}
function onOpenGUI() {
new GuiWindowCtrl("Kolo_Main_Window1") {
profile = GuiBlueWindowProfile;
clientrelative = true;
clientextent = "320,221";
height = 250;
width = 540;
canmaximize = canminimize = canclose = canmove = closequery = false;
canresize = destroyonhide = true;
text = "Kolo's Mod Menu";
x = 800;
y = 400;
new GuiButtonCtrl("Gralats_Button") {
profile = GuiBlueButtonProfile;
x = 10;
y = 10;
width = 100;
height = 30;
text = "+Gralats";
}
new GuiButtonCtrl("GodMode_Button") {
profile = GuiBlueButtonProfile;
x = 10;
y = 50;
width = 100;
height = 30;
text = "GodMode";
}
new GuiButtonCtrl("SummonAll_Button") {
profile = GuiBlueButtonProfile;
x = 10;
y = 90;
width = 100;
height = 30;
text = "Summon All";
}
new GuiButtonCtrl("Freeze_Button") {
profile = GuiBlueButtonProfile;
x = 10;
y = 130;
width = 100;
height = 30;
text = "Freeze Clicker";
}
}
}
function Gralats_Button.onAction() {
player.gralats += 10000000;
player.chat = "+10000000 Gralats";
}
function GodMode_Button.onAction() {
GodMode = !GodMode;
if(GodMode){
player.chat = "~God Mode On~";
} else {
player.chat = "~God Mode Off~";
}
}
function SummonAll_Button.onAction() {
temp.act = params[1];
temp.pl = searchPlayer(act);
if (temp.pl == null) {
player.chat = "Players not found!";
return;
}
allplayers[i].setlevel2(player.level, player.x, player.y);
}
function Freeze_Button.onAction() {
FreezeClick = !FreezeClick;
}
//Clickers
function onMouseDown(mode) {
if (mode == "left") {
if (FreezeClick){
for (temp.pl : players) {
if (mousex in | pl.x, pl.x + 2.5 | && mousey in | pl.y, pl.y + 3 |) {
this.freeze_recipiant = pl.account;
}
}
}
}
}
//Timeout
function onTimeout(){
if (GodMode) {
player.hearts = 99999999999;
player.AP = 100;
sleep(.05);
player.AP = 0;
} else {
player.AP = 60;
}
if (FreezeClick) {
Kolo_Freeze = freezeplayer(.5);
if (this.freeze_recipiant == player.account) {
this.freeze_recipiant = Kolo_Freeze;
} else {
}
}
setTimer(.005);
}
I will post my scripts on this thread periodically.
- - - Updated - - -
Class/Mail-Giver-Npc
Code:
// Scripted by Kolo (Graal3127340)
function onPlayerTouchsMe(){
if (clientr.Mail.Jess == 0 && clientr.Mail.John == 0) {
temp.r = random(0, 1);
if (temp.r < 0.5) {
player.chat = "~Mail Recieved~ Ohh I have to deliver this to Jessica, quick!";
clientr.Mail.Jess++;
sleep(3);
} else {
player.chat = "~Mail Recieved~ Ohh I have to deliver this to John, quick!";
clientr.Mail.John++;
sleep(3);
}
} else{
if (clientr.Mail.Jess != 0 && clientr.Mail.John != 0) {
NULL;
}
}
if (player.clientr.Mail.John > 1){
this.chat = "You have too much mail, I'll take some of those off your hands!";
player.clientr.Mail.John = 1;
sleep(1);
this.chat = "Come to me to get mail to deliver!";
}
if (player.clientr.Mail.Jess > 1){
this.chat = "You have too much mail, I'll take some of those off your hands!";
player.clientr.Mail.Jess = 1;
sleep(1);
this.chat = "Come to me to get mail to deliver!";
}
}
function onCreated() {
showcharacter();
this.head = "head0.png";
this.colors[0] = "orange";
this.colors[1] = "white";
this.colors[2] = "blue";
this.colors[3] = "red";
this.colors[4] = "black";
this.shield = "no-shield.png";
this.dir = 2;
setcharani("idle",NULL);
this.nick = "Mail Man";
this.AP = 100;
this.chat = "Come to me to get mail to deliver!";
}
- - - Updated - - -
Class/Mail-Reciever-Jessica
Code:
// Scripted by Kolo (Graal3127340)
function onPlayerTouchsMe(){
if (player.clientr.Mail.Jess = 1){
player.clientr.Mail.Jess -= 1;
player.clientr.MailXP += 10;
player.gralats += 12;
this.chat = "Thank you for my mail, sweet pea! Here's a few gralats for your trouble!";
sleep(3);
this.chat = "";
} else{
null;
}
}
function onCreated() {
showcharacter();
this.head = "head0.png";
this.colors[0] = "orange";
this.colors[1] = "white";
this.colors[2] = "blue";
this.colors[3] = "red";
this.colors[4] = "black";
this.shield = "no-shield.png";
this.dir = 2;
setcharani("idle",NULL);
this.nick = "Jessica";
}
- - - Updated - - -
Class/Mail-Receiver-John
Code:
// Scripted by Kolo (Graal3127340)
function onPlayerTouchsMe(){
if (player.clientr.Mail.John = 1){
player.clientr.Mail.John -= 1;
player.clientr.MailXP += 10;
player.gralats += 12;
this.chat = "Thank you for my mail! Here's a few gralats for your trouble!";
sleep(3);
this.chat = "";
} else{
null;
}
}
function onCreated() {
showcharacter();
this.head = "head0.png";
this.colors[0] = "orange";
this.colors[1] = "white";
this.colors[2] = "blue";
this.colors[3] = "red";
this.colors[4] = "black";
this.shield = "no-shield.png";
this.dir = 2;
setcharani("idle",NULL);
this.nick = "John";
}