bpm91
Advanced OT User
- Joined
- May 23, 2019
- Messages
- 1,046
- Solutions
- 7
- Reaction score
- 180
- Location
- Brazil
- YouTube
- caruniawikibr
hello, I made a test in the spells.xml folder when placing the magic according to magic level, so it would go from lvl to maglv. but in the npc when putting the acronym maglv, it says that I can't learn magic.
Exm:
<instant name="Light" words="utevo lux" needlearn="1" exhaustion="2000" maglv="0" mana="20" selftarget="1" aggressive="0" script="support/light.lua"/>
local node1 = keywordHandler:addKeyword({'light'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Would you like to learn light for free?'})
node1:addChildKeyword({'yes'}, StdModule.learnSpell, {npcHandler = npcHandler, premium = false, spellName = 'light',vocation = {2, 6} , price = 0, maglv = 0})
node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Cant you handle the power of the spell?', reset = true})


Exm:
<instant name="Light" words="utevo lux" needlearn="1" exhaustion="2000" maglv="0" mana="20" selftarget="1" aggressive="0" script="support/light.lua"/>
local node1 = keywordHandler:addKeyword({'light'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Would you like to learn light for free?'})
node1:addChildKeyword({'yes'}, StdModule.learnSpell, {npcHandler = npcHandler, premium = false, spellName = 'light',vocation = {2, 6} , price = 0, maglv = 0})
node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Cant you handle the power of the spell?', reset = true})

