-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
global"GetItemGuid" Should be treated differently #140
Comments
By modifying roll: GetItemGuid Can changing the capitalization of method names or other methods solve the problem? I'm not sure how to solve this problem more reasonably |
It correctly executes the global one for me. |
OS: Win11 22621.1778
I accidentally discovered this example: RegisterItemEvent(6948, 2, function (event, player, item, target)
local lGuid = item:GetGUIDLow()
print("lGuid=",lGuid)
local hGuid = GetItemGUID(lGuid)
print("hGuid=",hGuid)
local mlguid = item:GetGUID()
print("mlguid=",mlguid)
-----------The correct approach
--local guid = item:GetGUID()
--print("guid=",guid)
--local items = player:GetItemByGUID( guid )
--print("items",items:GetEntry())
end) |
I don't know why, every time I use 'code' preview, it always doesn't match my expectations |
There are currently 2 types of 'GetItemGuid'
Roll
Global
When using global GetItemGuid (lowGuid), it defaults to executing roll first
These two types should be treated differently
The text was updated successfully, but these errors were encountered: