Hi there,
I am curious if you can actually write 2 functions in one line because it could save me huge amount of work.
My current code is:
I was trying to add or function (not sure if this is the correct way) and it did not work
What the code does?
When character log outs it changes the outfit if vocation = 1
But because when someone dies it doesn't work I was trying to fix that, unfortunately with no luck
(it's the logout.lua in creaturescripts folder)
I am curious if you can actually write 2 functions in one line because it could save me huge amount of work.
My current code is:
Code:
function onLogout(cid)
if (getPlayerVocation(cid) == 1) then
doCreatureChangeOutfit(cid, {lookType=549})
return 1
end
I was trying to add or function (not sure if this is the correct way) and it did not work
Code:
function onLogout(cid) or not function onDeath(cid)
if (getPlayerVocation(cid) == 1) then
doCreatureChangeOutfit(cid, {lookType=549})
return 1
end
What the code does?
When character log outs it changes the outfit if vocation = 1
But because when someone dies it doesn't work I was trying to fix that, unfortunately with no luck
(it's the logout.lua in creaturescripts folder)