Lbtg
Intermediate OT User
- Joined
- Nov 22, 2008
- Messages
- 2,323
- Reaction score
- 136
So the idea is, i need to to use an item so it would send magic effect and player would get message, but wtf is wrong with the ending of the script cause i get error :
data/actions/scripts/other/nails.lua:6: 'end' expected (to close 'function' at line 1) near '<eof>'
Rep for helper! ^_^ :thumbup:
data/actions/scripts/other/nails.lua:6: 'end' expected (to close 'function' at line 1) near '<eof>'
Rep for helper! ^_^ :thumbup:
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(fromPosition.x ~= CONTAINER_POSITION) then
doSendMagicEffect(fromPosition, 3)
doPlayerSendTextMessage(cid,22,"visit Nail Expert")
return TRUE
end