Jump to content

ThyroDree

Members
  • Content Count

    556
  • Joined

  • Last visited

Posts posted by ThyroDree


  1.  

    Something like this

     

    <?php foreach ($serverStatus as $privServerName => $gameServers): ?><table id="server_status">	<?php foreach ($gameServers as $serverName => $gameServer): ?>	<tr>		<th class="server"><?php echo htmlspecialchars($serverName) ?></th>		<td class="status"><?php echo $this->serverUpDown($gameServer['loginServerUp']) ?></td>		<td class="status"><?php echo $this->serverUpDown($gameServer['charServerUp']) ?></td>		<td class="status"><?php echo $this->serverUpDown($gameServer['mapServerUp']) ?></td>		<td class="status"><?php echo $gameServer['playersOnline'] ?></td>	</tr>	<?php endforeach ?></table>

    how can i connect this to my server?


  2. also found this posted by annieruru for Rathena Emulator by the way i am using Rathena Emulator 

    i will replace my dispbottom on script.c?

     

     

    BUILDIN_FUNC(dispbottom) {
    TBL_PC *sd;
    if ( script_hasdata(st,4) ) {
    if ( data_isstring( script_getdata(st,4) ) )
    sd = map_nick2sd( script_getstr(st,4) );
    else
    sd = map_id2sd( script_getnum(st,4) );
    } else
    sd = script_rid2sd(st);
    if ( sd ) {
    const char* msg = script_getstr(st,2);
    unsigned short msg_len = strlen( msg ) +1;
    unsigned int colorcode;
    if ( script_hasdata(st,3) )
    colorcode = script_getnum(st,3);
    else
    colorcode = 0xbbffbb;
    WFIFOHEAD( sd->fd, msg_len + 12 );
    WFIFOW(sd->fd,0) = 0x2C1;
    WFIFOW(sd->fd,2) = msg_len + 12;
    WFIFOL(sd->fd,4) = 0;
    WFIFOL(sd->fd,8) = colorcode;
    safestrncpy((char*)WFIFOP(sd->fd,12), msg, msg_len);
    WFIFOSET( sd->fd, msg_len + 12 );
    }
    return 0;
    }

     

    BUILDIN_DEF(dispbottom,"s??"),

     

     

     

     

    prontera,162,180,5 script kjsdfhksdjf 100,{
    dispbottom "test color";
    dispbottom "test color", 0xff0000;
    dispbottom "test color", 0x0000ff;
    dispbottom "test color", 0xffffff;
    dispbottom "test color", 0xff00ff;
    end;
    }

    post-4102-0-51649400-1389537183_thumb.jpg 


  3. i got a problem adding those line of dispbottom2 of Dastgir

     

    i don't know where to add

    here check it

     

    In Clif.C:

    Place this at end of file:

     

     

     

    // Modification of clif_messagecolor to send colored messages to players to chat log only (doesn't display overhead)
    // 02c1 <packet len>.W <id>.L <color>.L <message>.?B
    // [by Dastgir]
    int clif_colormes_e(struct map_session_data * sd,unsigned long color1, const char* msg) {
    unsigned short msg_len = strlen(msg) + 1;
    WFIFOHEAD(sd->fd,msg_len + 12);
    WFIFOW(sd->fd,0) = 0x2C1;
    WFIFOW(sd->fd,2) = msg_len + 12;
    WFIFOL(sd->fd,4) = 0;
    WFIFOL(sd->fd,8) = (color1&0x0000FF) << 16 | (color1&0x00FF00) | (color1&0xFF0000) >> 16; // RGB -> BGR
    safestrncpy((char*)WFIFOP(sd->fd,12), msg, msg_len);
    clif_send(WFIFOP(sd->fd,0), WFIFOW(sd->fd,2), &sd->bl, SELF);


    return 0;
    }

     

     

    In Clif.H

    Place this at the end:

     

     

     

     

    int clif_colormes_e(struct map_session_data * sd,unsigned long color1, const char* msg); //[by Dastgir]
     

     

     

    So the Format you will use

    dispbottom2("0x00FF00","MESSAGE");

    OR

    dispbottom2 "0x00FF00","MESSAGE";

    REPLACE 0x00FF00 to any colour code.


  4.  

    its working at the same time its throwing error

    implode command must have at least 1 index in the array or the server throws error

     

    Oh I get it now.. this would be the solution for that.. ^^

     

    -    script    test#444    -1,{OnCommand:    if ( !getstrlen( .@atcmd_parameters$ ) ) {	    message strcharinfo(0), "Please, enter a message (usage: @bst <message>).";	    end;    }    $@input$ = implode(.@atcmd_parameters$," " );    $@name$ = strcharinfo(0);    .@symbol$ = substr( .@atcmd_parameters$, 0,1 );    if ( .@symbol$ != "B>" && .@symbol$ != "S>" && .@symbol$ != "T>" ) {	    message strcharinfo(0), "Market Symbol is Needed when using this command ( B> S> T> )";	    end;    }    if ( bst_delay + 60 > gettimetick(2) ) {	    message strcharinfo(0), "There is a 60 seconds delay of using this command again";	    end;    }	    query_sql ("SELECT `char`.`account_id` FROM `char` JOIN `login` ON `char`.`account_id` = `login`.`account_id` WHERE `char`.`online` = 1", .@account_id);	    bst_delay = gettimetick(2); // delay	    while ( .@i < getarraysize(.@account_id) ) {		    if ( attachrid( .@account_id[.@i] ) )			    dispbottom "[Market]" + $@name$ + " : " + $@input$; // display to every character on the server.			    detachrid;			    .@i++;	    }	    end;OnInit:    bindatcmd "bst",strnpcinfo(0)+"::OnCommand", 0, 1; // bind @bst command.    end;}

    but AnnieRuru just used this to the old bst script to make color on chat 

     

        announce "[Market] "+ strcharinfo(0) +" : "+ implode( .@atcmd_parameters$," " ), bc_all, 0x9999FF;

    end;

    }

    can u just add this ?


  5.  

     

    -    script    test#444    -1,{OnCommand:    $@input$ = implode(.@atcmd_parameters$," " );    $@name$ = strcharinfo(0);    if ( !getstrlen( .@atcmd_parameters$ ) ) {        message strcharinfo(0), "Please, enter a message (usage: @bst <message>).";        end;    }    .@symbol$ = substr( .@atcmd_parameters$, 0,1 );    if ( .@symbol$ != "B>" && .@symbol$ != "S>" && .@symbol$ != "T>" ) {        message strcharinfo(0), "Market Symbol is Needed when using this command ( B> S> T> )";        end;    }    if ( bst_delay + 60 > gettimetick(2) ) {        message strcharinfo(0), "There is a 60 seconds delay of using this command again";        end;    }        query_sql ("SELECT `char`.`account_id` FROM `char` JOIN `login` ON `char`.`account_id` = `login`.`account_id` WHERE `char`.`online` = 1", .@account_id);        bst_delay = gettimetick(2); // delay	    while ( .@i < getarraysize(.@account_id) ) {		    if ( attachrid( .@account_id[.@i] ) )			    dispbottom "[" + $@name$ + "]: " + $@input$; // display to every character on the server.                detachrid;                .@i++;	    }        end;OnInit:    bindatcmd "bst",strnpcinfo(0)+"::OnCommand", 0, 1; // bind @bst command.    end;}

    if i already tried this and working but when a type @bst B>Tao Gunka pa Message said

     

     

    [Player]: B>Tao Gunka

     

    i want to be like this

     

    [Market] Player : B>Tao Gunka

     

     

    i also can you teach me how can i change the color of the broadcast on chat box?

    i want to change it to Orange Color


  6.  

    -    script    test#444    -1,{OnCommand:    $@input$ = implode(.@atcmd_parameters$," " );    $@name$ = strcharinfo(0);    if ( !getstrlen( .@atcmd_parameters$ ) ) {        message strcharinfo(0), "Please, enter a message (usage: @bst <message>).";        end;    }    .@symbol$ = substr( .@atcmd_parameters$, 0,1 );    if ( .@symbol$ != "B>" && .@symbol$ != "S>" && .@symbol$ != "T>" ) {        message strcharinfo(0), "Market Symbol is Needed when using this command ( B> S> T> )";        end;    }    if ( bst_delay + 60 > gettimetick(2) ) {        message strcharinfo(0), "There is a 60 seconds delay of using this command again";        end;    }        query_sql ("SELECT `char`.`account_id` FROM `char` JOIN `login` ON `char`.`account_id` = `login`.`account_id` WHERE `char`.`online` = 1", .@account_id);        bst_delay = gettimetick(2); // delay	    while ( .@i < getarraysize(.@account_id) ) {		    if ( attachrid( .@account_id[.@i] ) )			    dispbottom "[" + $@name$ + "]: " + $@input$; // display to every character on the server.                detachrid;                .@i++;	    }        end;OnInit:    bindatcmd "bst",strnpcinfo(0)+"::OnCommand", 0, 1; // bind @bst command.    end;}

    SORRY DOUBLE POST


  7.  

    prontera,150,150,0    script    Sample    100,{    #replaceyourcustompoint =+ 5; // gives +5 points.. replace this to whatever you want. eg: #custompoints or #yourropoints.    dispbottom "You now have " + #replaceyourcustompoint+ " own points."; // show how many points you have.    end;}

    is this permanent points? :(


  8.  

    CUSTOM_POINTS += 5; //You can Change CUSTOM_POINTS to any variable you want, and you can use this variable anywhere in other npc to check if player has certain amount of points or not,etc.

     

    what is this? ^^^


  9.  

    yeah that's it almost like that,

     

     

    just add it after the quest completion part.. so it will give that points..

     

    something almost like this

     

     

     

        mes "Well done you have started the quest of got me 5 apples";    mes "Thank you";set queststarted,0;    delitem 512,5;set #OWNPOINTS, #OWNPOINTS + 5;    dispbottom "You now have " +#OWNPOINTS+ " own points. by completing the collect 5 apples quest.";close; 

    if i add #OWNPOINTS what is the name of the Points? Own Points? how about i want to make it YourRO Points


  10. anyone can share to me a script/src that if the Guild have items in Guild Storage and the Guild master tries to delete the guild with items in guild storage after the guild will be delete Message will pop out says "This Guild still have items on Guild Storage..Are you sure? you want to disband this guild?"

     

     

    is this doable? 

     

    Thank You


  11. is this possible to make?

     

    a script that

    will only Put the All Castle Own by GM Guild 

     

    Example:

    Admin have a guild [ Ragnarok Staffs ] and you will just talk to npc to be the All WoE Castle Own my [ Ragnarok Staffs ] Guild

    this npc will only talk for lvl 99 GM's.

     

     

    Reason why i request this script?

    because i am tired warping and warping just to break all the Castle Emperiums. x.x

×
×
  • Create New...

Important Information

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