Jump to content

Kubix

Members
  • Content Count

    150
  • Joined

  • Last visited

  • Days Won

    20

Posts posted by Kubix


  1. prt_fild08,176,346,3    script    name    50,{
    mes "input new name";
    input(@name$);
    query_sql("SELECT name FROM `char` WHERE `name` = '" + @name$ + "'", @newName$);
    
    if(@newName$ != ""){
    mes "this name is already used";
    close;
    }
    
    for(.i = 0; .i < getarraysize(.badSymbol$); .i++){
    if(compare(@name$, .badSymbol$[.i])){
    mes "you can't use name with this symbol";
    close;
    }
    }
    
    // changename
    close;
    
    OnInit:
    setarray .badSymbol$[0], "#", "@"; //add your's
    end;
    }

    idk, try this. I don't have a server for test now :<


  2. check:

     

    mes "input new name";
    input(@name$);
    query_sql("SELECT name FROM `char` WHERE `name` = '" + @name$, @newName$);
    
    if(@newName$ != ""){
       mes "this name is already used";
       close;
    }
    
    for(.i = 0; .i < getarraysize(.badSymbol$); .i++){
       if(compare(@name$, .badSymbol$[.i])){
          mes "you can't use name with this symbol";
          close;
       }
    }
    
    // changename
    close;
    
    OnInit:
    setarray .badSymbol$[0], "#", "@"; //add your's
    end;
    

    bad english :)


  3. Check when what?
    When login?
    When level up?
    When click on NPC?
     

    When login:

     

    OnPCLoginEvent:
    if(BaseLevel == 90) 
        announce "announce", bc_self;
    end;
     

     

    When levelup:

     

    OnPCBaseLvUpEvent:
    if(BaseLevel == 90)
        announce "announce", bc_self;
    end;
     

     

    When Click:

     

    npc_header {
    if(BaseLevel == 90)
    {
        announce "announce", bc_self;
    } else {
      // not 90 lvl
    }
    }
     
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.