Jump to content
  • 0

@gstorage problem with @at


Fluxion

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.01
  • Content Count:  82
  • Reputation:   7
  • Joined:  12/29/18
  • Last Seen:  

Hello to the Rathena community!

I apologize in advance if I post in the wrong place, I am not English and I have a little trouble with the language, as you can see I write to you using google translation.

 

My problem being that one of the players of my private server used the command @autotrade (or @at) having open Guildstorage ... By reconnecting the next day, he can not reopen his Gstorage at all. It tells him that he is already open and that he has to wait for it to be closed by another user to be able to open it. Except he's alone in guild. I try to look in my SQL tables but no way to find a solution to solve the problem. In short, my server considers that the Gstorage is constantly open when it is not. The player just did @at while his Gstorage was open.

 

Has anyone ever had the trouble? And if so how did you solve it? Any help puts precious.

 

Cordially, Yuno.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  446
  • Reputation:   229
  • Joined:  03/20/12
  • Last Seen:  

6 hours ago, Yuno said:

Hello to the Rathena community!

I apologize in advance if I post in the wrong place, I am not English and I have a little trouble with the language, as you can see I write to you using google translation.

 

My problem being that one of the players of my private server used the command @autotrade (or @at) having open Guildstorage ... By reconnecting the next day, he can not reopen his Gstorage at all. It tells him that he is already open and that he has to wait for it to be closed by another user to be able to open it. Except he's alone in guild. I try to look in my SQL tables but no way to find a solution to solve the problem. In short, my server considers that the Gstorage is constantly open when it is not. The player just did @at while his Gstorage was open.

 

Has anyone ever had the trouble? And if so how did you solve it? Any help puts precious.

 

Cordially, Yuno.

Tested and I can confirm to this..

This may not be a solution but more of a prevention for future incidents. Tho untested, this should work.

Go to atcommand.cpp.

Look for this :

ACMD_FUNC(autotrade) {
	nullpo_retr(-1, sd);

	if( map_getmapflag(sd->bl.m, MF_AUTOTRADE) != battle_config.autotrade_mapflag ) {
		clif_displaymessage(fd, msg_txt(sd,1179)); // Autotrade is not allowed on this map.
		return -1;
	}

	if( pc_isdead(sd) ) {
		clif_displaymessage(fd, msg_txt(sd,1180)); // You cannot autotrade when dead.
		return -1;
	}

	if( !sd->state.vending && !sd->state.buyingstore ) { //check if player is vending or buying
		clif_displaymessage(fd, msg_txt(sd,549)); // "You should have a shop open to use @autotrade."
		return -1;
	}

Place this under 

	if (sd->state.storage_flag == 1) {
		clif_displaymessage(fd, "Close your storage before using @autotrade."); 
		return -1;
	}
	
	if (sd->state.storage_flag == 2) {
		clif_displaymessage(fd, "Close your guild storage before using @autotrade."); 
		return -1;
	}
	
	if (sd->state.storage_flag == 3) {
		clif_displaymessage(fd, "Close your storage before using @autotrade."); 
		return -1;
	}

 

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.01
  • Content Count:  82
  • Reputation:   7
  • Joined:  12/29/18
  • Last Seen:  

Thank you for your quick response, I will make this source change right away.

Nobody had this problem then?

Thank's @Mabuhay Source changes worked well.

We are creating a custom command to restore my concerns "@reloadgsto" is a variable that will tell the server that the gstorage was closed

Link to comment
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.   Paste as plain text instead

  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.

×
×
  • Create New...