Goku97
Member
- Joined
- May 23, 2016
- Messages
- 123
- Solutions
- 2
- Reaction score
- 6
Hi Otland
I have a problem with a script that I'm trying to make also am a newbie with Lua so please go easy on me.
Basically what I'm trying to do is to give a lightning effect on the character / outfit.
The Forgotten Server: 0.3.6
Globalevents.xml:
Script:
Console Error:
Can anyone help or tell me what I'm doing wrong ?
Thank you in advance for help.
Regards Goku97
I have a problem with a script that I'm trying to make also am a newbie with Lua so please go easy on me.
Basically what I'm trying to do is to give a lightning effect on the character / outfit.
The Forgotten Server: 0.3.6
Globalevents.xml:
Code:
<globalevent name="effects" interval="1.0" event="script" value="effects.lua"/>
Script:
Lua:
local config =
{
effect1 = 1
}
function onThink(interval)
if (getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 4 or getPlayerVocation(cid) == 5) then
doSendMagicEffect(getPlayerPosition(cid, config.effect1))
end
return true
end
Console Error:
Code:
[15/11/2017 16:20:40] [Error - GlobalEvent Interface]
[15/11/2017 16:20:40] data/globalevents/scripts/effects.lua:onThink
[15/11/2017 16:20:40] Description:
[15/11/2017 16:20:40] (internalGetPlayerInfo) Player not found when requesting player info #6
Can anyone help or tell me what I'm doing wrong ?
Thank you in advance for help.
Regards Goku97