storage.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // Copyright (c) Athena Dev Teams - Licensed under GNU GPL
  2. // For more information, see LICENCE in the main folder
  3. #ifndef _STORAGE_H_
  4. #define _STORAGE_H_
  5. //#include "../common/mmo.h"
  6. struct s_storage;
  7. struct item;
  8. //#include "map.h"
  9. struct map_session_data;
  10. int storage_delitem(struct map_session_data* sd, int n, int amount);
  11. int storage_storageopen(struct map_session_data *sd);
  12. void storage_storageadd(struct map_session_data *sd,int index,int amount);
  13. void storage_storageget(struct map_session_data *sd,int index,int amount);
  14. void storage_storageaddfromcart(struct map_session_data *sd,int index,int amount);
  15. void storage_storagegettocart(struct map_session_data *sd,int index,int amount);
  16. void storage_storageclose(struct map_session_data *sd);
  17. void storage_sortitem(struct item* items, unsigned int size);
  18. void do_init_storage(void);
  19. void do_final_storage(void);
  20. void do_reconnect_storage(void);
  21. void storage_storage_quit(struct map_session_data *sd, int flag);
  22. struct s_storage* guild2storage(int guild_id);
  23. struct s_storage* guild2storage2(int guild_id);
  24. void storage_guild_delete(int guild_id);
  25. char storage_guild_storageopen(struct map_session_data *sd);
  26. bool storage_guild_additem(struct map_session_data *sd,struct s_storage *stor,struct item *item_data,int amount);
  27. bool storage_guild_additem2(struct s_storage* stor, struct item* item, int amount);
  28. bool storage_guild_delitem(struct map_session_data *sd,struct s_storage *stor,int n,int amount);
  29. void storage_guild_storageadd(struct map_session_data *sd,int index,int amount);
  30. void storage_guild_storageget(struct map_session_data *sd,int index,int amount);
  31. void storage_guild_storageaddfromcart(struct map_session_data *sd,int index,int amount);
  32. void storage_guild_storagegettocart(struct map_session_data *sd,int index,int amount);
  33. void storage_guild_storageclose(struct map_session_data *sd);
  34. void storage_guild_storage_quit(struct map_session_data *sd,int flag);
  35. bool storage_guild_storagesave(uint32 account_id, int guild_id, int flag);
  36. void storage_guild_storagesaved(int guild_id); //Ack from char server that guild store was saved.
  37. int compare_item(struct item *a, struct item *b);
  38. #endif /* _STORAGE_H_ */