Can u give me full action script?onUse
item:transform(3942)
Ok working - can you make sound like "gulp"?dont forget to register it in actions.xmlCode:function onUse(player, item, fromPosition, target, toPosition, isHotkey) item:transform(3942) return true end
sry but don't know which one gonna work - can you make this talk for me?
sry but don't know which one gonna work - can you make this talk for me?
I have error - attempt to call method "say" a ni value - using tfs 1.2local exhaust = Condition(CONDITION_EXHAUST_HEAL)
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
item:transform(3942)
player:addCondition(exhaust)
target:say("Aaaah...", TALKTYPE_MONSTER_SAY)
return true
end
local exhaust = Condition(CONDITION_EXHAUST_HEAL)
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
item:transform(3942)
local t = isPlayer(target) and target or player
t:say("Aaaah...", TALKTYPE_MONSTER_SAY)
return true
end