@@ -73,7 +73,7 @@ namespace LuaGlobalFunctions
73
73
/* *
74
74
* Returns emulator's supported expansion.
75
75
*
76
- * Expansion is 0 for pre-TBC, 1 for TBC, 2 for WotLK, 3 for Cataclysm, 9 for Dragonflight .
76
+ * Expansion is 0 for pre-TBC, 1 for TBC, 2 for WotLK, 3 for Cataclysm, 9 for Retail .
77
77
*
78
78
* @return int32 expansion
79
79
*/
@@ -1830,7 +1830,7 @@ namespace LuaGlobalFunctions
1830
1830
uint32 incrtime = E->CHECKVAL <uint32>(4 );
1831
1831
uint32 extendedcost = E->CHECKVAL <uint32>(5 );
1832
1832
1833
- #if ELUNA_EXPANSION >= CATA
1833
+ #if ELUNA_EXPANSION >= EXP_CATA
1834
1834
VendorItem vItem;
1835
1835
vItem.item = item;
1836
1836
vItem.maxcount = maxcount;
@@ -1863,7 +1863,7 @@ namespace LuaGlobalFunctions
1863
1863
if (!eObjectMgr->GetCreatureTemplate (entry))
1864
1864
return luaL_argerror (E->L , 1 , " valid CreatureEntry expected" );
1865
1865
1866
- #if ELUNA_EXPANSION >= CATA
1866
+ #if ELUNA_EXPANSION >= EXP_CATA
1867
1867
eObjectMgr->RemoveVendorItem (entry, item, 1 );
1868
1868
#else
1869
1869
eObjectMgr->RemoveVendorItem (entry, item);
@@ -1887,7 +1887,7 @@ namespace LuaGlobalFunctions
1887
1887
1888
1888
auto const itemlist = items->m_items ;
1889
1889
for (auto itr = itemlist.begin (); itr != itemlist.end (); ++itr)
1890
- #if ELUNA_EXPANSION >= CATA
1890
+ #if ELUNA_EXPANSION >= EXP_CATA
1891
1891
eObjectMgr->RemoveVendorItem (entry, itr->item , 1 );
1892
1892
#else
1893
1893
eObjectMgr->RemoveVendorItem (entry, itr->item );
@@ -2295,7 +2295,6 @@ namespace LuaGlobalFunctions
2295
2295
return 1 ;
2296
2296
}
2297
2297
#endif
2298
-
2299
2298
/* *
2300
2299
* Returns `true` if Eluna is in compatibility mode, `false` if in multistate.
2301
2300
*
@@ -3161,33 +3160,33 @@ namespace LuaGlobalFunctions
3161
3160
{ " GetGuildByName" , &LuaGlobalFunctions::GetGuildByName },
3162
3161
{ " GetGuildByLeaderGUID" , &LuaGlobalFunctions::GetGuildByLeaderGUID },
3163
3162
{ " GetPlayerCount" , &LuaGlobalFunctions::GetPlayerCount },
3164
- { " GetGUIDLow" , &LuaGlobalFunctions::GetGUIDLow },
3165
- { " GetGUIDType" , &LuaGlobalFunctions::GetGUIDType },
3166
- { " GetGUIDEntry" , &LuaGlobalFunctions::GetGUIDEntry },
3167
3163
#if ELUNA_EXPANSION < EXP_RETAIL
3168
3164
{ " GetPlayerGUID" , &LuaGlobalFunctions::GetPlayerGUID },
3169
3165
{ " GetItemGUID" , &LuaGlobalFunctions::GetItemGUID },
3170
3166
{ " GetObjectGUID" , &LuaGlobalFunctions::GetObjectGUID },
3171
3167
{ " GetUnitGUID" , &LuaGlobalFunctions::GetUnitGUID },
3168
+ { " GetGUIDLow" , &LuaGlobalFunctions::GetGUIDLow },
3169
+ { " GetGUIDType" , &LuaGlobalFunctions::GetGUIDType },
3170
+ { " GetGUIDEntry" , &LuaGlobalFunctions::GetGUIDEntry },
3172
3171
{ " GetAreaName" , &LuaGlobalFunctions::GetAreaName },
3172
+ { " GetItemLink" , &LuaGlobalFunctions::GetItemLink },
3173
3173
#else
3174
3174
{ " GetPlayerGUID" , METHOD_REG_NONE },
3175
3175
{ " GetItemGUID" , METHOD_REG_NONE },
3176
3176
{ " GetObjectGUID" , METHOD_REG_NONE },
3177
3177
{ " GetUnitGUID" , METHOD_REG_NONE },
3178
+ { " GetGUIDLow" , METHOD_REG_NONE },
3179
+ { " GetGUIDType" , METHOD_REG_NONE },
3180
+ { " GetGUIDEntry" , METHOD_REG_NONE },
3178
3181
{ " GetAreaName" , METHOD_REG_NONE },
3182
+ { " GetItemLink" , METHOD_REG_NONE },
3179
3183
#endif
3180
3184
{ " bit_not" , &LuaGlobalFunctions::bit_not },
3181
3185
{ " bit_xor" , &LuaGlobalFunctions::bit_xor },
3182
3186
{ " bit_rshift" , &LuaGlobalFunctions::bit_rshift },
3183
3187
{ " bit_lshift" , &LuaGlobalFunctions::bit_lshift },
3184
3188
{ " bit_or" , &LuaGlobalFunctions::bit_or },
3185
3189
{ " bit_and" , &LuaGlobalFunctions::bit_and },
3186
- #if ELUNA_EXPANSION < EXP_RETAIL
3187
- { " GetItemLink" , &LuaGlobalFunctions::GetItemLink },
3188
- #else
3189
- { " GetItemLink" , METHOD_REG_NONE },
3190
- #endif
3191
3190
{ " GetMapById" , &LuaGlobalFunctions::GetMapById, METHOD_REG_WORLD }, // World state method only in multistate
3192
3191
{ " GetCurrTime" , &LuaGlobalFunctions::GetCurrTime },
3193
3192
{ " GetTimeDiff" , &LuaGlobalFunctions::GetTimeDiff },
@@ -3223,23 +3222,20 @@ namespace LuaGlobalFunctions
3223
3222
#if ELUNA_EXPANSION < EXP_RETAIL
3224
3223
{ " PerformIngameSpawn" , &LuaGlobalFunctions::PerformIngameSpawn },
3225
3224
{ " CreatePacket" , &LuaGlobalFunctions::CreatePacket },
3225
+ { " SendMail" , &LuaGlobalFunctions::SendMail },
3226
+ { " AddTaxiPath" , &LuaGlobalFunctions::AddTaxiPath },
3226
3227
#else
3227
3228
{ " PerformIngameSpawn" , METHOD_REG_NONE },
3228
3229
{ " CreatePacket" , METHOD_REG_NONE },
3230
+ { " SendMail" , METHOD_REG_NONE },
3231
+ { " AddTaxiPath" , METHOD_REG_NONE },
3229
3232
#endif
3230
3233
{ " AddVendorItem" , &LuaGlobalFunctions::AddVendorItem },
3231
3234
{ " VendorRemoveItem" , &LuaGlobalFunctions::VendorRemoveItem },
3232
3235
{ " VendorRemoveAllItems" , &LuaGlobalFunctions::VendorRemoveAllItems },
3233
3236
{ " Kick" , &LuaGlobalFunctions::Kick },
3234
3237
{ " Ban" , &LuaGlobalFunctions::Ban },
3235
3238
{ " SaveAllPlayers" , &LuaGlobalFunctions::SaveAllPlayers },
3236
- #if ELUNA_EXPANSION < EXP_RETAIL
3237
- { " SendMail" , &LuaGlobalFunctions::SendMail },
3238
- { " AddTaxiPath" , &LuaGlobalFunctions::AddTaxiPath },
3239
- #else
3240
- { " SendMail" , METHOD_REG_NONE },
3241
- { " AddTaxiPath" , METHOD_REG_NONE },
3242
- #endif
3243
3239
{ " CreateInt64" , &LuaGlobalFunctions::CreateLongLong },
3244
3240
{ " CreateUint64" , &LuaGlobalFunctions::CreateULongLong },
3245
3241
{ " StartGameEvent" , &LuaGlobalFunctions::StartGameEvent },
0 commit comments