Hello everyone,
I'm creating a spell teacher npc. When I say "spell" I want him to list all the spells I'm able to learn from him. For that, I need the NPC to say 2 lines of texts (as shown below). But it's not working. He only says the second line.
Can anyone help please? Thanks.
_______________________________________________________________________
elseif msgcontains(msg, 'spell') or msgcontains(msg, 'Spell') then
if getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 6 then
npcHandler:say("... I teach... 'Find Person', 'Light', 'Create Food', 'Light Healing', 'Ligh Magic Missile', 'Antidote', 'Intense Healing', 'Poison Field', 'Great Light', 'Fire Field', 'Heavy Magic Missile', 'Magic Shield', 'Intense Healing Rune', 'Fireball' and..",1)
npcHandler:say("'Energy Field', 'Destroy Field', 'Ultimate healing', 'Great Fireball', 'Firebomb', 'Creature Illusion', 'Convince Creature', 'Ultimate Healing Rune', 'Chameleon', 'Poison Wall', 'Explosion', 'Fire Wall', 'Invisible', 'Summon Creature' and 'Energy Wall'.", 5)
smiley_talk_state = 0
else
npcHandler:say("I'm sorry but I can only teach druids..", 5)
smiley_talk_state = 0
end
end
return 1
end
_______________________________________________________________________
I'm creating a spell teacher npc. When I say "spell" I want him to list all the spells I'm able to learn from him. For that, I need the NPC to say 2 lines of texts (as shown below). But it's not working. He only says the second line.
Can anyone help please? Thanks.
_______________________________________________________________________
elseif msgcontains(msg, 'spell') or msgcontains(msg, 'Spell') then
if getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 6 then
npcHandler:say("... I teach... 'Find Person', 'Light', 'Create Food', 'Light Healing', 'Ligh Magic Missile', 'Antidote', 'Intense Healing', 'Poison Field', 'Great Light', 'Fire Field', 'Heavy Magic Missile', 'Magic Shield', 'Intense Healing Rune', 'Fireball' and..",1)
npcHandler:say("'Energy Field', 'Destroy Field', 'Ultimate healing', 'Great Fireball', 'Firebomb', 'Creature Illusion', 'Convince Creature', 'Ultimate Healing Rune', 'Chameleon', 'Poison Wall', 'Explosion', 'Fire Wall', 'Invisible', 'Summon Creature' and 'Energy Wall'.", 5)
smiley_talk_state = 0
else
npcHandler:say("I'm sorry but I can only teach druids..", 5)
smiley_talk_state = 0
end
end
return 1
end
_______________________________________________________________________