Maniucza
~Lua~ Noob
Hello I am then again: D This time I invented a script that after using our lever learn all spells usefulness
ne example of the OTS RPG small experance ..
Data/actions/scripts/allspells.lua
At the top type inkatacje (what the spells: words = "inkatacja here) all spells.
ne example of the OTS RPG small experance ..
Data/actions/scripts/allspells.lua
PHP:
function onUse(cid, item, frompos, item2, topos)
local spells = {'utevo lux', 'exura', 'exura gran'} -- You enter inkatacje You enter inkatacje all spells, which is to give
if (getPlayerStorageValue(cid,5558) == -1) then
for i=1, #spells do
doPlayerLearnSpell(cid, spells[i])
end
doSendMagicEffect(getPlayerPosition(cid),CONST_ME_MAGIC_GREEN)
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"You have learnt all spells")
else
doPlayerSendCancel(cid,"You have learnt all spells already")
end
end
At the top type inkatacje (what the spells: words = "inkatacja here) all spells.