• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Error in globalevent

SnoopDoggy

New Member
Joined
Jun 5, 2016
Messages
6
Reaction score
1
I have a globalevent it would be to stay running effect instantly in some vocations , but in addition to not be working , does not display error in the distro
My tfs is CryingDamson v8 -8.6

Script:
local effects = {
--_C8_--
[480] = 25,
[481] = 13,
[482] = 14,
[483] = 15,
[484] = 17,
[485] = 18,
[486] = 19,
[487] = 20,
[488] = 11,
[489] = 15
}

function onThink(interval)
for _, pid in ipairs(getPlayersOnline()) do
local effect = effects[getPlayerVocation(pid)]
if(effect) then
doSendMagicEffect(getCreaturePos(pid), effect)
end
end

return true
end
 
Did you try printing the vocation that is returning?

print(getCreatureName(pid), getPlayerVocation(pid))
 
I solved the problem by moving the globalevent script to creaturescript, and now they are returning
8. Removing Solved Content:
- If you solved your problem, do not remove the content in your posts. Instead write the solution you found. This can help other users with the same problem.
- Threads with removed content are useless and are seen as spam.
 
Back
Top