@@ -807,13 +807,26 @@ namespace LuaCreature
807
807
}
808
808
#endif
809
809
810
+ /* *
811
+ * Returns the loot mode for the [Creature].
812
+ *
813
+ * <pre>
814
+ * LOOT_MODE_DEFAULT = 1,
815
+ * LOOT_MODE_HARD_MODE_1 = 2,
816
+ * LOOT_MODE_HARD_MODE_2 = 4,
817
+ * LOOT_MODE_HARD_MODE_3 = 8,
818
+ * LOOT_MODE_HARD_MODE_4 = 16,
819
+ * LOOT_MODE_JUNK_FISH = 32768
820
+ * </pre>
821
+ *
822
+ * @return uint16 lootMode
823
+ */
810
824
int GetLootMode (Eluna* E, Creature* creature)
811
825
{
812
826
E->Push (creature->GetLootMode ());
813
827
return 1 ;
814
828
}
815
829
816
-
817
830
/* *
818
831
* Returns the guid of the [Creature] that is used as the ID in the database
819
832
*
@@ -864,6 +877,20 @@ namespace LuaCreature
864
877
return 0 ;
865
878
}
866
879
880
+ /* *
881
+ * Sets the loot mode for the [Creature].
882
+ *
883
+ * <pre>
884
+ * LOOT_MODE_DEFAULT = 1,
885
+ * LOOT_MODE_HARD_MODE_1 = 2,
886
+ * LOOT_MODE_HARD_MODE_2 = 4,
887
+ * LOOT_MODE_HARD_MODE_3 = 8,
888
+ * LOOT_MODE_HARD_MODE_4 = 16,
889
+ * LOOT_MODE_JUNK_FISH = 32768
890
+ * </pre>
891
+ *
892
+ * @param uint16 lootMode
893
+ */
867
894
int SetLootMode (Eluna* E, Creature* creature)
868
895
{
869
896
uint16 lootMode = Eluna::CHECKVAL<uint16>(E->L , 2 );
0 commit comments