@bst Stand for = Buy Sell and Trade

ThyroDree

New member
Messages
556
Points
0
Location
Philippines
Github
bosxkate23
Emulator
this is the command for buy and Sell or trade

example: 

i want to buy 1 Kiel Card 

@bst B> Kiel D-01 Card = PM Me Offer

the broadcast Shows like this

[Market] Admin : B> Kiel D-01 Card = PM Me Offer 
28tkrk7.jpg


 
i tried to add this on rathena svn but error x.x

http://upaste.me/f7881058492d6f76b

i this rathena

http://rathena.org/b.../90929-rscript/

i cant find the src/custom/atcommand.inc and src/custom/atcommand_def.inc because im using a 16797 rathena svn [/size]

and help can you help me [/size]add this src by not updating my svn because i changed alot of src on my rathena svn .[/size]

OPPSS. already solve
default_smile.png
that for help AnnieRuru

can u help me i cant add a delay

i got this error when i put delay

[Error]: delete_timer error : function mismatch 00427F30(connect_check_clear) != 00402E7D(pc_endautobonus)

http://rathena.org/board/pastebin/1cvelflk4v6k/txt/

and follow this

open your pc.h file[/size]

make sure the int bst_delay; is inside the struct map_session_data[/size]

Code:
struct map_session_data {....int bst_delay;};
 
Last edited by a moderator:
inside map_session_data function at pc.h

add

int bst_delay;..

what's so difficult =/

even Blue Jem on that topic also got it working fine in eathena

 
Last edited by a moderator:
since you said rAthena,

so I guess your server supported *bindatcmd

just load this script, no need source modification

Code:
-	script	bst_atcommand	-1,{OnInit:	bindatcmd "bst",strnpcinfo(0)+"::OnCommand";	end;OnCommand:	if ( !getstrlen(.@atcmd_parameters$) ) {		message strcharinfo(0), "Please, enter a message (usage: @bst <message>).";		end;	}	if ( @bst_delay + 60 > gettimetick(2) ) {		message strcharinfo(0), "There is a 60 seconds delay of using this command again";		end;	}	@bst_delay = gettimetick(2);	announce "[Market] "+ strcharinfo(0) +" : "+ implode( .@atcmd_parameters$," " ), bc_all, 0x9999FF;	end;}
 
since you said rAthena,

so I guess your server supported *bindatcmd

just load this script, no need source modification

- script bst_atcommand -1,{OnInit: bindatcmd "bst",strnpcinfo(0)+"::OnCommand"; end;OnCommand: if ( !getstrlen(.@atcmd_parameters$) ) { message strcharinfo(0), "Please, enter a message (usage: @bst <message>)."; end; } if ( @bst_delay + 60 > gettimetick(2) ) { message strcharinfo(0), "There is a 60 seconds delay of using this command again"; end; } @bst_delay = gettimetick(2); announce "[Market] "+ strcharinfo(0) +" : "+ implode( .@atcmd_parameters$," " ), bc_all, 0x9999FF; end;}
thanks but how to can i add the command will detect if the player don't put B> / T> / S> the command will not be broadcast. example  @bst Hello. ( the commands will say " Market Symbol is Needed when using this command " B>,T> , S> , B/T> , or S/T>". )

 
Code:
-	script	bst_atcommand	-1,{OnInit:	bindatcmd "bst",strnpcinfo(0)+"::OnCommand";	end;OnCommand:	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;	}	@bst_delay = gettimetick(2);	announce "[Market] "+ strcharinfo(0) +" : "+ implode( .@atcmd_parameters$," " ), bc_all, 0x9999FF;	end;}
 
- script bst_atcommand -1,{OnInit: bindatcmd "bst",strnpcinfo(0)+"::OnCommand"; end;OnCommand: 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; } @bst_delay = gettimetick(2); announce "[Market] "+ strcharinfo(0) +" : "+ implode( .@atcmd_parameters$," " ), bc_all, 0x9999FF; end;}
Thanks! I will try this later

 
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:

x6jt38.jpg


 
Code:
-    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;}
 
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

rathena users quite easy, they have addrid

- script bst_atcommand -1,{OnInit: bindatcmd "bst",strnpcinfo(0)+"::OnCommand"; end;OnCommand: if ( !.@atcmd_numparameters ) { 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; } @bst_delay = gettimetick(2); .name$ = strcharinfo(0); .message$ = implode( .@atcmd_parameters$," " ); addrid 0; dispbottom "[Market] "+ .name$ +" : "+ .message$; end;}EDIT: why the code broken...ok that [Market] makes this cannot be post on the board

it's being read as bbcode

hercules user might want to try my getmemberaid

http://upaste.me/86b8111195ced159a

 
Last edited by a moderator:
-  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

 
Last edited by a moderator:
-  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
 
Last edited by a moderator:
Back
Top