Jump to content

  •  

chiba222

Member Since 04 Apr 2015
Offline Last Active Jan 24 2016 11:07 AM
-----

Posts I've Made

In Topic: Browedit 586 doesn't work on windows 8.1?

22 January 2016 - 09:32 PM

I don't think it is related to Windows8.1

I am using r586 with Windows8.1 and works fine.

 

About your dark spots, do you have any photo?

If it is big like block, change water level  to -20.

If it is very small, go Generate -> Smooth Lightmap -> 1-9(choose one you like, I prefer 7), the problem should be fixed.


In Topic: Help with this black mini squares same in old prontera and geffen

22 January 2016 - 09:23 PM

Open your Browedit, go Generate->Smooth Lightmap-> 1-9 (choose one you like), login and it should be fixed.

I prefer light map 7 is the best of outdoor map.


In Topic: About changing player's name

22 January 2016 - 09:11 PM

Thank you Kubix!

I have changed a little bit to make it works.

Full script is here.

 

 
prt_fild08,176,346,3    script    ASDSA    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;
    }
}
 
query_sql("update `char` set `name` = '"+.@name$+"' WHERE `char_id` ="+getcharid(0));
atcommand "@kick "+strcharinfo(0);
close;
 
OnInit:
setarray .badSymbol$[0], "#", "@"; //add your's
end;
}


After I changed my name, the npc cannot change my name anyone

Is keep showing "this name is already used"

Solved, if the message is keep showing, just logout a few times and the name can be changed again.

But I don't know why.


In Topic: About changing player's name

22 January 2016 - 08:27 PM

There is no error in map-server, but the name doesn't change.

I have logout and login again and check the SQL server, the name is still the old one.


In Topic: About changing player's name

22 January 2016 - 08:17 PM

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