00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00023 #ifndef __TREASUREGEN_H
00024 #define __TREASUREGEN_H
00025
00026 #include <algorithm>
00027
00028 #include "Object.h"
00029 #include "cItemModels.h"
00030 #include "Avatar.h"
00031 #include "Client.h"
00032
00033 class TreasureGen
00034 {
00035 public:
00036 DWORD mob_lvl;
00037 int t_lvl;
00038 float workmanship;
00039 int value;
00040 int burden;
00041
00042 void GenerateCorpseTreasure(cCorpse *Corpse, cMonster *Mob, cClient *pcClient);
00043 void GenerateChestTreasure(cChest *Chest, cClient *pcClient);
00044
00054 void CreateAmmo (cClient *who, DWORD ItemModelID);
00055 void CreateArmor (cClient *who, DWORD ItemModelID);
00056 void CreateBook (cClient *who, DWORD ItemModelID, DWORD GUID);
00057 void CreateClothes (cClient *who, DWORD ItemModelID);
00058 void CreateFoci (cClient *who, DWORD ItemModelID);
00059 void CreateFood (cClient *who, DWORD ItemModelID, DWORD GUID);
00060 void CreateGem (cClient *who, DWORD ItemModelID, DWORD GUID);
00061 void CreateHealingKit (cClient *who, DWORD ItemModelID);
00062 void CreateJewelry (cClient *who, DWORD ItemModelID);
00063 void CreateLockpicks (cClient *who, DWORD ItemModelID);
00064 void CreateManastone (cClient *who, DWORD ItemModelID);
00065 void CreateMisc (cClient *who, DWORD ItemModelID);
00066 void CreatePack (cClient *who, DWORD ItemModelID);
00067 void CreatePlants (cClient *who, DWORD ItemModelID);
00068
00069 void CreatePyreals (cClient *who, DWORD ItemModelID, DWORD Value, WORD Stack);
00070 void CreateSalvage (cClient *who, DWORD ItemModelID);
00071 void CreateScrolls (cClient *who, DWORD ItemModelID);
00072 void CreateShield (cClient *who, DWORD ItemModelID);
00073 void CreateSpellComponents (cClient *who, DWORD ItemModelID, DWORD GUID);
00074 void CreateTradeNotes (cClient *who, DWORD ItemModelID);
00075 void CreateTradeSkillMats (cClient *who, DWORD ItemModelID);
00076 void CreateWand (cClient *who, DWORD ItemModelID, DWORD GUID);
00077 void CreateWeapon (cClient *who, DWORD ItemModelID, DWORD GUID, DWORD fEquipped);
00079
00089 void CreateAmmo (cLocation Loc, DWORD ItemModelID);
00090 void CreateArmor (cLocation Loc, DWORD ItemModelID);
00091 void CreateBook (cLocation Loc, DWORD ItemModelID);
00092 void CreateClothes (cLocation Loc, DWORD ItemModelID);
00093 void CreateFoci (cLocation Loc, DWORD ItemModelID);
00094 void CreateFood (cLocation Loc, DWORD ItemModelID);
00095 void CreateGem (cLocation Loc, DWORD ItemModelID);
00096 void CreateHealingKit (cLocation Loc, DWORD ItemModelID);
00097 void CreateJewelry (cLocation Loc, DWORD ItemModelID);
00098 void CreateLockpicks (cLocation Loc, DWORD ItemModelID);
00099 void CreateManastone (cLocation Loc, DWORD ItemModelID);
00100 void CreateMisc (cLocation Loc, DWORD ItemModelID);
00101 void CreatePack (cLocation Loc, DWORD ItemModelID);
00102 void CreatePlants (cLocation Loc, DWORD ItemModelID);
00103
00104 void CreatePyreals (cLocation Loc, DWORD ItemModelID, DWORD Value, WORD Stack);
00105 void CreateSalvage (cLocation Loc, DWORD ItemModelID);
00106 void CreateScrolls (cLocation Loc, DWORD ItemModelID);
00107 void CreateShield (cLocation Loc, DWORD ItemModelID);
00108 void CreateSpellComponents (cLocation Loc, DWORD ItemModelID);
00109 void CreateTradeNotes (cLocation Loc, DWORD ItemModelID);
00110 void CreateTradeSkillMats (cLocation Loc, DWORD ItemModelID);
00111 void CreateWand (cLocation Loc, DWORD ItemModelID);
00112 void CreateWeapon (cLocation Loc, DWORD ItemModelID);
00114
00124 void CreateAmmo (cNPC *pcObj, DWORD ItemModelID);
00125 void CreateArmor (cNPC *pcObj, DWORD ItemModelID);
00126 void CreateBook (cNPC *pcObj, DWORD ItemModelID);
00127 void CreateClothes (cNPC *pcObj, DWORD ItemModelID);
00128 void CreateFoci (cNPC *pcObj, DWORD ItemModelID);
00129 void CreateFood (cNPC *pcObj, DWORD ItemModelID);
00130 void CreateGem (cNPC *pcObj, DWORD ItemModelID);
00131 void CreateHealingKit (cNPC *pcObj, DWORD ItemModelID);
00132 void CreateJewelry (cNPC *pcObj, DWORD ItemModelID);
00133 void CreateLockpicks (cNPC *pcObj, DWORD ItemModelID);
00134 void CreateManastone (cNPC *pcObj, DWORD ItemModelID);
00135 void CreateMisc (cNPC *pcObj, DWORD ItemModelID);
00136 void CreatePack (cNPC *pcObj, DWORD ItemModelID);
00137 void CreatePlants (cNPC *pcObj, DWORD ItemModelID);
00138 void CreatePyreals (cNPC *pcObj, DWORD ItemModelID, DWORD Value, WORD Stack);
00139 void CreateSalvage (cNPC *pcObj, DWORD ItemModelID);
00140 void CreateScrolls (cNPC *pcObj, DWORD ItemModelID);
00141 void CreateShield (cNPC *pcObj, DWORD ItemModelID);
00142 void CreateSpellComponents (cNPC *pcObj, DWORD ItemModelID);
00143 void CreateTradeNotes (cNPC *pcObj, DWORD ItemModelID);
00144 void CreateTradeSkillMats (cNPC *pcObj, DWORD ItemModelID);
00145 void CreateWand (cNPC *pcObj, DWORD ItemModelID);
00146 void CreateWeapon (cNPC *pcObj, DWORD ItemModelID);
00148
00158 void CreateAmmo (cCorpse *pcObj, DWORD ItemModelID);
00159 void CreateArmor (cCorpse *pcObj, DWORD ItemModelID);
00160 void CreateBook (cCorpse *pcObj, DWORD ItemModelID);
00161 void CreateClothes (cCorpse *pcObj, DWORD ItemModelID);
00162 void CreateFoci (cCorpse *pcObj, DWORD ItemModelID);
00163 void CreateFood (cCorpse *pcObj, DWORD ItemModelID);
00164 void CreateGem (cCorpse *pcObj, DWORD ItemModelID);
00165 void CreateHealingKit (cCorpse *pcObj, DWORD ItemModelID);
00166 void CreateJewelry (cCorpse *pcObj, DWORD ItemModelID);
00167 void CreateLockpicks (cCorpse *pcObj, DWORD ItemModelID);
00168 void CreateManastone (cCorpse *pcObj, DWORD ItemModelID);
00169 void CreateMisc (cCorpse *pcObj, DWORD ItemModelID);
00170 void CreatePack (cCorpse *pcObj, DWORD ItemModelID);
00171 void CreatePlants (cCorpse *pcObj, DWORD ItemModelID);
00172 void CreatePyreals (cCorpse *pcObj, DWORD ItemModelID, DWORD Value, WORD Stack);
00173 void CreateSalvage (cCorpse *pcObj, DWORD ItemModelID);
00174 void CreateScrolls (cCorpse *pcObj, DWORD ItemModelID);
00175 void CreateShield (cCorpse *pcObj, DWORD ItemModelID);
00176 void CreateSpellComponents (cCorpse *pcObj, DWORD ItemModelID);
00177 void CreateTradeNotes (cCorpse *pcObj, DWORD ItemModelID);
00178 void CreateTradeSkillMats (cCorpse *pcObj, DWORD ItemModelID);
00179 void CreateWand (cCorpse *pcObj, DWORD ItemModelID);
00180 void CreateWeapon (cCorpse *pcObj, DWORD ItemModelID);
00182 };
00183
00184 #endif