Hello,
I don't know make spells in talkaction.
I need Learn!!
Light.LUA:
Talkactions.XML:
I need Learn some spells in talkaction.
I don't know make spells in talkaction.
I need Learn!!
Light.LUA:
PHP:
local mana = -20
local lightLevel = ??
local lightColor = ??
local time = ??
local playerMsg = Lux
function onSay(cid, words, param)
if getPlayerAccess(cid) ~= 0 then
doPlayerAddMana(cid, mana)
doSetCreatureLight(cid, lightLevel, lightColor, time)
doCreatureSay(cid, playerMsg, 16)
end
end
Talkactions.XML:
PHP:
<talkaction words="lux" script="spells/light.lua" />
I need Learn some spells in talkaction.
Last edited: