root/src/map/storage.h @ 10

Revision 1, 2.4 kB (checked in by jinshiro, 17 years ago)
Line 
1// Copyright (c) Athena Dev Teams - Licensed under GNU GPL
2// For more information, see LICENCE in the main folder
3
4#ifndef _STORAGE_H_
5#define _STORAGE_H_
6
7//#include "../common/mmo.h"
8struct storage;
9struct guild_storage;
10struct item;
11//#include "map.h"
12struct map_session_data;
13
14int storage_storageopen(struct map_session_data *sd);
15int storage_storageadd(struct map_session_data *sd,int index,int amount);
16int storage_storageget(struct map_session_data *sd,int index,int amount);
17int storage_storageaddfromcart(struct map_session_data *sd,int index,int amount);
18int storage_storagegettocart(struct map_session_data *sd,int index,int amount);
19int storage_storageclose(struct map_session_data *sd);
20int do_init_storage(void);
21void do_final_storage(void);
22void do_reconnect_storage(void);
23struct storage* account2storage(int account_id);
24struct storage* account2storage2(int account_id);
25int storage_storage_quit(struct map_session_data *sd, int flag);
26int storage_storage_save(int account_id, int final);
27int storage_storage_saved(int account_id); //Ack from char server that guild store was saved.
28void storage_storage_dirty(struct map_session_data *sd);
29
30struct guild_storage* guild2storage(int guild_id);
31int guild_storage_delete(int guild_id);
32int storage_guild_storageopen(struct map_session_data *sd);
33int guild_storage_additem(struct map_session_data *sd,struct guild_storage *stor,struct item *item_data,int amount);
34int guild_storage_delitem(struct map_session_data *sd,struct guild_storage *stor,int n,int amount);
35int storage_guild_storageadd(struct map_session_data *sd,int index,int amount);
36int storage_guild_storageget(struct map_session_data *sd,int index,int amount);
37int storage_guild_storageaddfromcart(struct map_session_data *sd,int index,int amount);
38int storage_guild_storagegettocart(struct map_session_data *sd,int index,int amount);
39int storage_guild_storageclose(struct map_session_data *sd);
40int storage_guild_storage_quit(struct map_session_data *sd,int flag);
41int storage_guild_storagesave(int account_id, int guild_id, int flag);
42int storage_guild_storagesaved(int guild_id); //Ack from char server that guild store was saved.
43
44int storage_comp_item(const void *_i1, const void *_i2);
45//int storage_comp_item(const struct item* i1, const struct item* i2);
46void storage_sortitem(struct storage* stor);
47void storage_gsortitem(struct guild_storage* gstor);
48
49#endif /* _STORAGE_H_ */
Note: See TracBrowser for help on using the browser.