-
Content Count
556 -
Joined
-
Last visited
Posts posted by ThyroDree
-
-
-
can you give me examples? please?
-
i am using a Thor Patcher how can i add the patcher shows how many Online in my Server and Checks the Login,Char, and Map Server if Online or Offline
-
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;
} -
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.
-
i just want to change the color of the message in the Chat Box and... i don't want the message to be like broadcast i just want it to broadcast on Chat Box Only but with Customized Color.
and sadly dispbottom cant be in a customized color..
>
read this
what this means?
@editNot working.
-
i just want to change the color of the message in the Chat Box and... i don't want the message to be like broadcast i just want it to broadcast on Chat Box Only but with Customized Color.
-
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 ?
-
- 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
-
- 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
-
Okay! Thank You How can i use this point on shop ? like Currency shop
-
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?
-
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? ^^^
-
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
-
Up for this i got a problem
the problem is after @bst B> Tao Gunka = PM ME
B>Tao Gunka = PM ME is Broadcasting i just want it to broadcast on Chat Box Only
here:
-
how about like this??
prontera,150,150,0 script Sample 100,{
set #OWNPOINTS, #OWNPOINTS + 5;
dispbottom "You now have " +#OWNPOINTS+ " own points.";
end;
} -
but if a player finish the quest Player will Receive 5 Custom Points
how to make it on quest ? ( not on pvping/killing way)
-
aw but i need a permanent like CashPoint
-
is it possible to make your own points in ragnarok?
if yes can anyone tell me how to do it?
thanks
-
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
-
this is the correct script
http://upaste.me/8f1311087bf401916
lol, I also found a bug by writing this script
is this working properly?
-
-
-
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
Patcher Need Help
in Graphics Support
Posted
how can i connect this to my server?