Jump to content
  • 0
Pandaaa

[Help] @bst

Question

I can use @bst B>, @bst S> and @bst T> 

 

but i cant use @bst B/T> and @bst S/T>

 

how to make @bst B/T> and S/T> work?

-	script	bst	-1,{
	OnCommand:
    if ( !getstrlen( .@atcmd_parameters$ ) ) {
	message strcharinfo(0), "Please, enter a message (usage: @bst <message>).";
	end;
    }

	if (agitcheck()){
	message strcharinfo(0),  "Unable to use this command,";
	message strcharinfo(0),  "War of Emperium is ongoing!";
	close;
	}

    $@input$ = implode(.@atcmd_parameters$," " );
    $@name$ = strcharinfo(0);
    .@symbol$ = substr( .@atcmd_parameters$, 0,1 );
    if ( .@symbol$ != "B>" && .@symbol$ != "S>" && .@symbol$ != "T>" && .@symbol$ != "B/T>" && .@symbol$ != "S/T>" ) {
	message strcharinfo(0), "Market symbol is needed when using this command.";
	message strcharinfo(0), "B> : Buying Symbol";
	message strcharinfo(0), "S> : Selling Symbol";
	message strcharinfo(0), "T> : Trading Symbol";
	message strcharinfo(0), "B/T> : Buy & Trade Symbol";
	message strcharinfo(0), "S/T> : Sell & Trade Symbol";
	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$,0xFFD700; // display to every character on the server.
	detachrid;
	.@i++;
	}
	end;
	OnInit:
    bindatcmd "bst",strnpcinfo(0)+"::OnCommand", 0, 1; // bind @bst command.
    end;
	}

 

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

 

I can use @bst B>, @bst S> and @bst T> 

 

but i cant use @bst B/T> and @bst S/T>

 

how to make @bst B/T> and S/T> work?

-	script	bst	-1,{
	OnCommand:
    if ( !getstrlen( .@atcmd_parameters$ ) ) {
	message strcharinfo(0), "Please, enter a message (usage: @bst <message>).";
	end;
    }

	if (agitcheck()){
	message strcharinfo(0),  "Unable to use this command,";
	message strcharinfo(0),  "War of Emperium is ongoing!";
	close;
	}

    $@input$ = implode(.@atcmd_parameters$," " );
    $@name$ = strcharinfo(0);
    .@symbol$ = substr( .@atcmd_parameters$, 0,1 );
    if ( .@symbol$ != "B>" && .@symbol$ != "S>" && .@symbol$ != "T>" && .@symbol$ != "B/T>" && .@symbol$ != "S/T>" ) {
	message strcharinfo(0), "Market symbol is needed when using this command.";
	message strcharinfo(0), "B> : Buying Symbol";
	message strcharinfo(0), "S> : Selling Symbol";
	message strcharinfo(0), "T> : Trading Symbol";
	message strcharinfo(0), "B/T> : Buy & Trade Symbol";
	message strcharinfo(0), "S/T> : Sell & Trade Symbol";
	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$,0xFFD700; // display to every character on the server.
	detachrid;
	.@i++;
	}
	end;
	OnInit:
    bindatcmd "bst",strnpcinfo(0)+"::OnCommand", 0, 1; // bind @bst command.
    end;
	}

 

Same. How to make it work? Anyone?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

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