[DiscordArchive] A cordial greeting to all. I am learning to program in Lua and this is my first script and I conside
[DiscordArchive] A cordial greeting to all. I am learning to program in Lua and this is my first script and I conside
![[Image: image.png?ex=690c067f&is=690ab4ff&hm=11e...5a23e5a2a&]](https://cdn.discordapp.com/attachments/448835144564867094/1214578900236247060/image.png?ex=690c067f&is=690ab4ff&hm=11ea347e2b23b94458f187a387f258a34aba1d9b4c2c95082527bc05a23e5a2a&)
Archived author: Danep • Posted: 2024-03-05T14:22:55.677000+00:00
Original source
A cordial greeting to all. I am learning to program in Lua and this is my first script and I consider it to be very basic, the worldserver does not tell me that the script is wrong but for some reason the script does not work for me, could anyone advise me that it is wrong?
![[Image: image.png?ex=690c067f&is=690ab4ff&hm=11e...5a23e5a2a&]](https://cdn.discordapp.com/attachments/448835144564867094/1214578900236247060/image.png?ex=690c067f&is=690ab4ff&hm=11ea347e2b23b94458f187a387f258a34aba1d9b4c2c95082527bc05a23e5a2a&)
![[Image: image.png?ex=690c0795&is=690ab615&hm=3a5...49b5d3530&]](https://cdn.discordapp.com/attachments/448835144564867094/1214580067301326848/image.png?ex=690c0795&is=690ab615&hm=3a5a12389b0c6bc8921f5927ddfe534eec1a7ec33e64e1b23eb4d4449b5d3530&)
Archived author: Danep • Posted: 2024-03-05T14:27:33.915000+00:00
Original source
![[Image: image.png?ex=690c0795&is=690ab615&hm=3a5...49b5d3530&]](https://cdn.discordapp.com/attachments/448835144564867094/1214580067301326848/image.png?ex=690c0795&is=690ab615&hm=3a5a12389b0c6bc8921f5927ddfe534eec1a7ec33e64e1b23eb4d4449b5d3530&)
Archived author: Honey • Posted: 2024-03-05T14:27:35.790000+00:00
Original source
`item` wont be = 35.
It is an object with multiple properties. I assume you want to check if the item has the entry 35. So you need to check for
```Lua
if item:GetEntry() == 35``` instead.
![[Image: image.png?ex=690c0823&is=690ab6a3&hm=6b2...327e49791&]](https://cdn.discordapp.com/attachments/448835144564867094/1214580660623118386/image.png?ex=690c0823&is=690ab6a3&hm=6b271aa396452cbb1fbc7e3ac71dce5a3ac147a19868fd36354161e327e49791&)
Archived author: Danep • Posted: 2024-03-05T14:29:55.372000+00:00
Original source
I don't understand why it doesn't work, it should be something very simple.
![[Image: image.png?ex=690c0823&is=690ab6a3&hm=6b2...327e49791&]](https://cdn.discordapp.com/attachments/448835144564867094/1214580660623118386/image.png?ex=690c0823&is=690ab6a3&hm=6b271aa396452cbb1fbc7e3ac71dce5a3ac147a19868fd36354161e327e49791&)
![[Image: image.png?ex=690c0831&is=690ab6b1&hm=95b...71b868276&]](https://cdn.discordapp.com/attachments/448835144564867094/1214580720090087556/image.png?ex=690c0831&is=690ab6b1&hm=95bb525b8c5970b9a02293c893c39d575516dbbe8af8a87959582fe71b868276&)
Archived author: Danep • Posted: 2024-03-05T14:30:09.551000+00:00
Original source
![[Image: image.png?ex=690c0831&is=690ab6b1&hm=95b...71b868276&]](https://cdn.discordapp.com/attachments/448835144564867094/1214580720090087556/image.png?ex=690c0831&is=690ab6b1&hm=95bb525b8c5970b9a02293c893c39d575516dbbe8af8a87959582fe71b868276&)
Archived author: Foe • Posted: 2024-03-05T14:33:14.876000+00:00
Original source
No such method
Archived author: Foe • Posted: 2024-03-05T14:33:21.427000+00:00
Original source
Use SendGlobalMessage
Archived author: Foe • Posted: 2024-03-05T14:33:33.552000+00:00
Original source
SendWorldMessage***
Archived author: Roboto • Posted: 2024-03-05T14:33:40.385000+00:00
Original source
`SendGlobalSysMessage` is a [`ChatHandler`](<https://www.azerothcore.org/pages/eluna/ChatHandler/index.html>) function, not a global function
Also you probably wanted to do `player:AddAura` instead of `Unit:`
Archived author: Danep • Posted: 2024-03-05T14:35:08.861000+00:00
Original source
woo