Jump to content

zmref

Members
  • Posts

    299
  • Joined

  • Last visited

Posts posted by zmref

  1. Hi Can I request a refiner NPC where it does the following:

    - refines using elunium & oridecon (player can choose to "Safe refine" (e.g. the safe upgrade of garment is +4)

    - refines using enriched elunium & enriched oridecon (player can choose to "Safe refine" (e.g. the safe upgrade of garment is +4)

     

    - player can input desired number from 1-10 then the NPC will verify if that's his/her last decision. then the npc will refine the item.

     

     

  2. You would like to add one more loading screen. Then try it once more.

     

    Or you should check your clientinfo.xml it should look like this if you want to limit your loading screens to 4 images only.

     

    <loading>

    <image>loading00.jpg</image>

    <image>loading01.jpg</image>

    <image>loading02.jpg</image>

    <image>loading03.jpg</image>

    </loading>

     

    /no1

    mine was like that

  3. I just thought of another way: trunk/conf/battle/monster.conf

    // Respawn rate of monsters on a map. 50 would make mobs respawn twice as fast (half delay time) (Note 2)
    //Note: This does not affects mobs with inmediate respawn (most normal mobs)
    mob_spawn_delay: 100
    plant_spawn_delay: 100
    boss_spawn_delay: 100
    
    You could change boss_spawn_delay to 0, but this would affect all boss monsters (monsters with the MD_BOSS mode).

    this is great! genius thanks sir

  4. // http://rathena.org/board/topic/78486-breaker-rankings-npc/
    // NPC that:
    // - displays top 10 emperium breaker (Rank, Char Name, Guild Name, Breaker Points)
    // - when a player was the last to break the emp after the WoE he will get 1 point
    // - selection which enables the player to trade their points into TCG (item id: 7227)
    // but their break points are still displayed
    // RESET STATS
    negel,172,231,5    script    Emp Breaker Ladder    857,{
        switch(select("View Emp Break Ladder:Redeem points for TCG:More Info")) {
        case 1:
            query_sql "SELECT `char`.`name`, guild.`name`, CAST(`value` AS UNSIGNED) " +
             "FROM global_reg_value " +
             "LEFT JOIN `char` ON global_reg_value.char_id=`char`.char_id " +
             "LEFT JOIN `guild` ON `char`.guild_id=guild.guild_id " +
             "WHERE global_reg_value.`str`='breaker_points' " +
             "ORDER BY CAST(`value` AS UNSIGNED) DESC LIMIT 10",
             .@name$, .@guild$, .@points;
            mes "[Top 10 Emp Breakers]";
            mes "Rank, Name, Guild (break points)";
            for (set .@i,0; .@i<getarraysize(.@name$); set .@i,.@i+1) {
                mes (.@i+1) +". ^0000FF"+ .@name$[.@i] +"^000000, "+ .@guild$[.@i] +" ("+ .@points[.@i] +((.@points[.@i]==1)?" pt":" pts")+")";
            }
            break;
        case 2:
            mes "[Emp Break Ladder]";
            mes "Total Emp Breaks: " + breaker_points;
            mes "Available Points: " + (breaker_points - breaker_tcg);
            
            if (breaker_points == 0) {
                mes "You have not broke the emp yet!";
            } else if (breaker_points <= breaker_tcg) {
                mes "You've already exchanged all your points for TCG.";
                mes "Come back after you break the emp again!";
            } else {
                set .@reward, breaker_points - breaker_tcg;
                if (select("Redeem points for "+.@reward+" TCG:Cancel") == 2) {
                    mes "Come back if you change your mind.";
                } else if (checkweight(7227, .@reward) == 0) {
                    mes "You are overweight or carrying too many items.";
                } else {
                    getitem 7227, .@reward;
                    set breaker_tcg, breaker_tcg + .@reward;
                    mes "Here are your "+.@reward+" TCG!";
                }
            }
            break;
        case 3:
            mes "[Emp Break Ladder]";
            mes "Each time you break the emp, you earn 1 point.";
            mes "Then, talk to me to redeem your point(s) for TCG.";
            break;
        }
        close;
    }
     

     

     

    please make me a reset select menu based on this query or correct me

    DELETE FROM global_reg_value WHERE `str`='breaker_points';

     

  5. you can refer this ...and edit your @main

    @go_delay_when_hit

     

    not working

     

     

    We are still in the @go function

    • scroll down until you find this inside the function:nullpo_retr(-1, sd);
    • then add below:
    if(DIFF_TICK(sd->warpgodelay_tick,tick)>0) { //This is for computing the delay if the cooldown or delay is not yet finish restrict using @go clif_displaymessage(fd,"There is a 5 seconds delay in using @go command"); return 0; }
     

     

    here's mine

    *===================================
    * Main chat [LuzZza]
    * Usage: @main <on|off|message>
    *-----------------------------------*/
    ACMD_FUNC(main)
    {
    unsigned int tick = gettick(); //@main
    if( message[0] ) {
    
    if(strcmpi(message, "on") == 0) {
    if(!sd->state.mainchat) {
    sd->state.mainchat = 1;
    clif_displaymessage(fd, msg_txt(380)); // Main chat has been activated.
    } else {
    clif_displaymessage(fd, msg_txt(381)); // Main chat already activated.
    }
    } else if(strcmpi(message, "off") == 0) {
    if(sd->state.mainchat) {
    sd->state.mainchat = 0;
    clif_displaymessage(fd, msg_txt(382)); // Main chat has been disabled.
    } else {
    clif_displaymessage(fd, msg_txt(383)); // Main chat already disabled.
    }
    } else {
    if(!sd->state.mainchat) {
    sd->state.mainchat = 1;
    clif_displaymessage(fd, msg_txt(380)); // Main chat has been activated.
    }
    if (sd->sc.data[SC_NOCHAT] && sd->sc.data[SC_NOCHAT]->val1&MANNER_NOCHAT) {
    clif_displaymessage(fd, msg_txt(387));
    return -1;
    }
    

    if(DIFF_TICK(sd->maindelay_tick,tick)>0) { //This is for computing the delay if the cooldown or delay is not yet finish restrict using @main clif_displaymessage(fd,"There is a 30 seconds delay in using @main command"); return 0; }

    // send the message using inter-server system intif_main_message( sd, message ); } } else { if(sd->state.mainchat) clif_displaymessage(fd, msg_txt(384)); // Main chat currently enabled. Usage: @main <on|off>, @main <message>. else clif_displaymessage(fd, msg_txt(385)); // Main chat currently disabled. Usage: @main <on|off>, @main <message>. } return 0; }

     

     

     

    there's no nullpo_retr(-1, sd);

    so that's why I put the command somewhere

     

    please correct me.

     

×
×
  • Create New...