Public feed #887095

Unnamed

public c v1 · immutable
Raw Edit
·published 2008-02-01 03:11 UTC
rendered paste body
int atcommand_storage(const int fd, struct map_session_data* sd, const char* command, const char* message){	nullpo_retr(-1, sd);		if (sd->npc_id || sd->vender_id || sd->state.trading || sd->state.storage_flag)		return -1;	if (sd->state.storage_flag != 1)  	{		//Open storage.		switch (storage_storageopen(sd))		{			case 2: //Success				clif_displaymessage(fd, "Storage opened.");				return 0;			case 1: //Failure				clif_displaymessage(fd, "You can't open the storage currently.");				return -1;		}	}	else	{		clif_displaymessage(fd, "Storage is already opened.");	}		return 0;}