bpm91
Intermediate OT User
- Joined
- May 23, 2019
- Messages
- 958
- Solutions
- 7
- Reaction score
- 135
- 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})
![1650320919570.png 1650320919570.png](https://static3.otland.net/d/attachments/58/58701-0e87569e93383a5f38356e7906c8347c.jpg)
![1650320937866.png 1650320937866.png](https://static3.otland.net/d/attachments/58/58702-7f47402a46988f76a13e1fc2a7743875.jpg)
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})
![1650320919570.png 1650320919570.png](https://static3.otland.net/d/attachments/58/58701-0e87569e93383a5f38356e7906c8347c.jpg)
![1650320937866.png 1650320937866.png](https://static3.otland.net/d/attachments/58/58702-7f47402a46988f76a13e1fc2a7743875.jpg)