Results 1 to 6 of 6

Thread: Kolo's Community Scripts

  1. #1
    Veteran Kolo's Avatar
    Join Date
    Feb 2015
    Location
    Ohio
    Posts
    107

    Kolo's Community Scripts

    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";
    }

  2. #2
    Player Abdullah1441's Avatar
    Join Date
    May 2015
    Location
    California
    Posts
    6,937
    What does the code do? :0

    Will it add more cat breeds to iEra? :0
    Formerly known as "AliGamer911".

  3. #3
    Veteran Kolo's Avatar
    Join Date
    Feb 2015
    Location
    Ohio
    Posts
    107
    The first one is a menu, the 2nd, 3rd, 4th ones is a mail npc system

  4. #4
    cat supremacist Lieutenant
    Join Date
    Jul 2016
    Location
    Melbourne
    Posts
    907
    Cool

  5. #5
    Not Actually Banned Yet Bulletzone's Avatar
    Join Date
    Apr 2015
    Location
    United Kingdom
    Posts
    2,849
    Ugh,

    someone decipher this and check for errors.
    "A fool thinks they know everything but a wise person knows there's something to learn from everyone"
    -
    "Great leaders don't complain about the tools they are given. They work to sharpen them"

  6. #6
    Did u write this????? So hard

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •