-
Notifications
You must be signed in to change notification settings - Fork 3
/
rpg_furniture.inc
56 lines (43 loc) · 1.18 KB
/
rpg_furniture.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#if defined _rpg_furniture_included_
#endinput
#endif
#define _rpg_furniture_included_
/*
@Param1 -> int entity
@Param2 -> char buffs[64] (buffer)
return true on success false if not
*/
native bool furniture_getBuffs(int entity, char buffer[64]);
/*
@Param1 -> int entity
@Param2 -> char flags[8] (buffer)
return true on success false if not
*/
native bool furniture_getFlags(int entity, char buffer[8]);
/*
@Param1 -> int entity
return int durability // -1 if failed
*/
native int furniture_getDurability(int entity);
/*
@Param1 -> int entity
@Param2 -> int amount
return int durability // -1 if failed
*/
native int furniture_setDurability(int entity, int amount);
/*
@Param1 -> char zone[128]
return -
*/
native void furniture_removeAllFurnitureFromApartment(char zone[128]);
/*
Forward when a Player interacts with a furniture Item
@Param1 -> int entity
@Param2 -> int client
@Param3 -> char name[64]
@Param4 -> char lfBuf[64]
@Param5 -> char flags[8]
@Param6 -> char ownerId[20]
@Param7 -> int durability
*/
forward void furniture_OnFurnitureInteract(int entity, int client, char name[64], char lfBuf[64], char flags[8], char ownerId[20], int durability);