Hello there!
I am learning more on how to code custom stuff to Tibia, and recently I've been trying to do some experiments but none of them worked so far. Could you help me understand why?
I have created a file named test_script.lua inside my data/scripts/custom folder. The script is straightforward: When somebody equips anything, it will print "It works?".
However, despite the server successfully loading the script "Because when I removed the end for example to see if some error would pop up, it said that the script file had errors, so it might be loading it" It does not do anything.
I am learning more on how to code custom stuff to Tibia, and recently I've been trying to do some experiments but none of them worked so far. Could you help me understand why?
I have created a file named test_script.lua inside my data/scripts/custom folder. The script is straightforward: When somebody equips anything, it will print "It works?".
However, despite the server successfully loading the script "Because when I removed the end for example to see if some error would pop up, it said that the script file had errors, so it might be loading it" It does not do anything.
LUA:
function onEquip(cid, item, slot)
print("Testing!")
return TRUE
end