Jump to content

Greek

Members
  • Content Count

    19
  • Joined

  • Last visited

Posts posted by Greek


  1. hahaha, I'm all over the place /huh

     

    As for your last post:

    Last line:    

    return 0;

    change to:

    return true;

    bro Xgear i still got problem,

    why other staff is same in broadcast?

    like this

     

    9aVm3Pq.png

     

    Geek GM Lvl is 4

    and Marj GM Lvl is 3

     

        else if(pc->get_group_level(sd) == 3){

      sprintf(atcmd_output, "[script Manager] %s : %s", sd->status.name, message);

       intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1,0x01DF01, 0x190, 12, 0, 0);

      }

           else if(pc->get_group_level(sd) == 4){

           sprintf(atcmd_output, "[Event Manager] %s : %s", sd->status.name, message);

       intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1,0xFF66FF, 0x190, 12, 0, 0);

     

    Help again :mellow:


  2. I just compile it and i got this error
    Here's the script.

    /*==========================================
     * @sann by Donatien - Lain Ragnarok Online
     * Custom Staff Announce Command for rAthena
     * Rev. 17134
     *------------------------------------------*/
    ACMD_FUNC(sann)
    {
     nullpo_retr(-1,  sd);
     memset(atcmd_output, '0', sizeof(atcmd_output));

     if(!message  ||  !*message)  {
         clif->message(fd, "Please, enter a message (usage: @sann <message>).");
         return false;
       }
      if(pc->get_group_level(sd) == 1){
       sprintf(atcmd_output, "[super User] %s : %s", sd->status.name, message);
       intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1, 0xFF9900, 0x190, 12, 0, 0);
      }
      if(pc->get_group_level(sd) == 2){
       sprintf(atcmd_output, "[super User] %s : %s", sd->status.name, message);
       intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1, 0xFF9900, 0x190, 12, 0, 0);
      }
      if(pc->get_group_level(sd) == 3){
      sprintf(atcmd_output, "[GM] %s : %s", sd->status.name, message);
       intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1,0x01DF01, 0x190, 12, 0, 0);
      }
      if(pc->get_group_level(sd) == 4){
      sprintf(atcmd_output, "[GM] %s : %s", sd->status.name, message);
       intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1,0x01DF01, 0x190, 12, 0, 0);
      }
      if(pc->get_group_level(sd) == 10){
      sprintf(atcmd_output, "[GM] %s : %s", sd->status.name, message);
       intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1,0x01DF01, 0x190, 12, 0, 0);
      }
    else if(pc->get_group_level(sd) == 99){
    sprintf(atcmd_output, "[Admin] %s : %s", sd->status.name, message);
       intif_broadcast2(atcmd_output, strlen(atcmd_output) + 1,0x99CCFF, 0x190, 12, 0, 0);
    }
     return 0;
    }



    Here's the error i got after i compile it.

    e7mUWZr.png


    jbi.png



    Hope you help me again :)


  3. Here's the script

     

      if( !pc_get_group_level(sd) && DIFF_TICK(iTimer->gettick();,sd->canlog_tick) < 5000 ) {
       clif_displaymessage(fd,"@warp cannot be issued since you were into battle recently");
       return false;
     }
     if (pc->setpos(sd, mapindex, x, y, CLR_TELEPORT) != 0) {
       clif->message(fd, msg_txt(1)); // Map not found.
       return false;



    And then i got this error when i compile

    srcatcommandc.png

     


  4. @Zopokx here's my script.


    src/map/atcommand.c

      clif_displaymessage(fd, msg_txt(248));
         return -1;
       }
    +  if( !pc_get_group_level(sd) && DIFF_TICK(gettick(),sd->canlog_tick) < 5000 ) {
    +    clif_displaymessage(fd,"@warp cannot be issued since you were into battle recently");
    +    return -1;
    +  }
       if (pc_setpos(sd, mapindex, x, y, CLR_TELEPORT) != 0) {
         clif_displaymessage(fd, msg_txt(1)); // Map not found.
         return -1;



      return 0;
       }
     
    +  if( !pc_get_group_level(sd) && DIFF_TICK(gettick(),sd->canlog_tick) < 5000 ) {
    +    clif_displaymessage(fd,"@go cannot be issued since you were into battle recently");
    +    return -1;
    +  }
    +  
       memset(map_name, '0', sizeof(map_name));
       memset(atcmd_output, '0', sizeof(atcmd_output));



    src/map/pc.c

      pet_target_check(sd,src,1);
     
       sd->canlog_tick = gettick();
    +  if( src->type == BL_PC )
    +    ((TBL_PC*)src)->canlog_tick = gettick();
     }
     
     int pc_dead(struct map_session_data *sd,struct block_list *src)



    Please help me to fix the script

×
×
  • Create New...

Important Information

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