Results 1 to 10 of 40

Thread: To learn how to script.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #19
    Veteran Striker's Avatar
    Join Date
    Jul 2013
    Location
    Britian
    Posts
    283
    well, I understand now what "break;" does, I don't understand what not make them like a line like so:
    PHP Code:
    function onActionServerSide(plthis.lucky) {
      for (
    pl players) {
        if (
    pl.level == "era_lucky-grab.nw") {
          
    pl.setlevel2("era_luck-grab.nw"3030);
          
    triggerclient("gui"namepl)
        }  
          if (
    this.lucky == true)
           
    pl.setlevel2("era_lucky-grab.nw"3040); 
         } 
            
    pl.setlevel2("era_start.nw"3030);
      }
    }
    function 
    onCreated() {
      for (
    this.num 0this.num 5this.num--) {
      }
    }

    //#CLIENTSIDE
    function onPlayerChats() {
      
    this.staff "Events Team";
      if (
    player.guild in this.staff && player.chat == "down") {
        
    triggerserver("gui"nameNULL);
      }
    }
    function 
    onActionClientSide(pl) {
      
    this.lucky "Yay I'm luck!";
      if (
    player.guild in this.staff && player.chat == ":timer") {
        
    player.chat "kicking in: " this.num;
        if (
    player.this.staff.chat == "0")
          
    sleep(3);
          if (
    pl.level == "era_lucky-grab.nw" && player.chat == "Yay I'm lucky!")
            
    triggerserver("gui"nameplthis.lucky)
          }
            if (
    player.chat != this.lucky) {
              
    triggerserver("gui"nameNULL)
          }
        }
      }

    Last edited by Striker; 07-16-2013 at 02:18 PM. Reason: added extras
    Striker*
    -Have any question, concerns or problems?
    Message me on forums, click on the link if you need help: http://era-go.com/forum/member.php?410-Striker
    Need help on iEra P.M my nick name is Striker*
    -Need further help? My email is:[email protected]
    ENjOY PLAYING IERA!!!!!
    -Gani Artist

Posting Permissions

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