Jump to content

Yanji

Members
  • Posts

    23
  • Joined

  • Last visited

Posts posted by Yanji

  1. You can use the INSERT syntax to add an account to it. But I'm fairly sure what he wants to do is change an account to any GM level, which will use the UPDATE syntax.

    prontera,150,150,3<TAB>script<TAB>Sample<TAB>66,{
    mes "Please input what GM level you desire.";
    input .@a;
    mes "Are you sure you wish to change your GM level to " + .@a + "?";
    switch ( select ( "Yes:Nevermind" ) ) {
    case 1:
    mes "Your account's GM level has been changed to " + .@a + ". Please re-log.";
    close2;
    query_sql "UPDATE `login` SET `group_id` = '" + .@a + "' WHERE `account_id` = '" + getcharid(3) + "'";
    end;
    case 2:
    mes "Come talk to me if you change your mind!";
    close;
    }
    }

    That will let you input any number to change your GM level to. (Just don't put anything higher than 99)

    And it'll allow anyone to use it so you'll have to add in GM level checks, or a password into the NPC of some sort.

  2. By the way, if you make the NPC's coordinates 0, make the direction they face also 0 and the sprite ID 0, leaving only the map name as their location. Then, it will trigger the OnInit event command when you get into the map, sort of like OnPCLoadMapEvent.

  3. You need to have ` marks around each table name. Try this:

    query_sql "SELECT `char`.`char_id`,`char`.`name`,`global_reg_value`.`value` FROM `global_reg_value` LEFT JOIN `char` ON `global_reg_value`.`char_id`=`char`.`char_id` WHERE `global_reg_value`.`str`='brokeemp' ORDER BY CAST(`global_reg_value`.`value` AS UNSIGNED) DESC LIMIT 10", .@char_id, .@name$, .@count;

  4. You put '.gat' at the end of the mapname. You don't add that, just the name of the map you'd use to @warp to it ingame. Like, 'prontera', 'izlude', etc.

    prontera,150,184,5<TAB>script<TAB>Healer#h1-1::Healer<TAB>834,{

    PS: I'm pretty sure 'Assumptio' is disabled by default in WoE. You'll have to edit the SRC code to change it I believe.

  5. For the OnInit event command, you must have the NPC on your screen, otherwise it does nothing.

    Try this:

    caspen,0,0,0<TAB>script<TAB>Supporter1#supp1-1<TAB>-1,{
    OnInit:
    ​setcell "caspen",0,0,300,300,cell_basilica,1;
    end;
    }
    

    PS: I'm not sure if 'cell_basilica' even works for monsters...

  6. You don't need to set it to 0 when logging out. It's a temporary character variable so it resets to nothing once your char is logged out. No problem btw, & sorry about the 0 minute thing xD (I wrote it in a minute)

    Edit: Fixed my font/color/ & size.

×
×
  • Create New...