GM Denniz
Website- Designer- Mapper
Hope You Like This Script
Comment if you like
1 STEP. Go To data/npc/
Create 1 File master wizard.xml
Line 8 : <parameter key="keyword_reply1" value="I can teach you, " Arcane Strike " <<<< SPELL NAME, THIS SPELL FROM SWEV SERVER
2 STEP. Go now in data\npc\scripts and add druid spells.lua
Comment if you like
1 STEP. Go To data/npc/
Create 1 File master wizard.xml
Lua:
<npc name="Master Wizard" script="data/npc/scripts/druid spells.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100"/>
<look type="134" head="57" body="59" legs="40" feet="76" corpse="2212"/>
<parameters>
<parameter key="message_greet" value="Hello |PLAYERNAME|, What are you looking for?" />
<parameter key="module_keywords" value="1" />
<parameter key="keywords" value="spells" />
<parameter key="keyword_reply1" value="I can teach you, Arcane Strike " />
<parameter key="module_shop" value="1"/>
<parameter key="shop_buyable" value="magic sulphur,5904,100000"/>
</parameters>
</npc>
Line 8 : <parameter key="keyword_reply1" value="I can teach you, " Arcane Strike " <<<< SPELL NAME, THIS SPELL FROM SWEV SERVER
2 STEP. Go now in data\npc\scripts and add druid spells.lua
Lua:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink() end
function creatureSayCallback(cid, type, msg)
if(npcHandler.focus ~= cid) then
return false
end
if msgcontains(msg,'spells') then
if getPlayerVocation(cid) == 5 or getPlayerVocation(cid) == 6 or getPlayerVocation(cid) == 7 or getPlayerVocation(cid) == 8 then
selfSay('For which level would you like to learn spells?')
else
selfSay('Sorry, I only speak to promoted players.')
end
end
return true
end
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
local node = keywordHandler:addKeyword({'arcane strike'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Would you like to learn Arcane Strike?'})
node:addChildKeyword({'yes'}, StdModule.learnSpell, {npcHandler = npcHandler, premium = true, spellName = 'arcane strike', vocation = '2', price = 12000000, level = 445})
node:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Cant you handle the power of the spell?', reset = true})
npcHandler:addModule(FocusModule:new())