Hello how can i make doplayer say, or addevent and say in talktype_orange_1 in tfs 1.2?
Ok all know without addevent any ideas? Here is my code,
Ok all know without addevent any ideas? Here is my code,
HTML:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, 77)
combat:setArea(createCombatArea(FALA_G_P))
function onGetFormulaValues(player, skill, attack, factor)
local min = (player:getLevel() / 5) + (skill * attack * 0.03) + 7
local max = (player:getLevel() / 5) + (skill * attack * 0.05) + 11
return -min, -max
end
combat:setCallback(CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")
function player_look(cid)
if getPlayerLookDir(cid) == 1 then --right
//do combat1
elseif getPlayerLookDir(cid) == 2 then --down
//do combat2
elseif getPlayerLookDir(cid) == 3 then --left
//do combat3
elseif getPlayerLookDir(cid) == 0 then --up
//do combat4
end
end
function mow_1(cid)
doPlayerSendTextMessage(cid,TALKTYPE_ORANGE_1, 'test')
doPlayerSendTextMessage(cid,TALKTYPE_ORANGE_1, 'test2')
//how add function player_look here?
end
function onCastSpell(creature, variant)
//how add function mow_1 here?
return TRUE
end
</code>
Last edited: