• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Help whit addon npc ? :)

Teddy

SweStream.se
Joined
Oct 2, 2008
Messages
3,797
Reaction score
10
Location
Sweden 172
Hello , Can You Help me whit this addon npc ? :)
When I say Hi / hello / hiho its only say How Rude ! or he dont answer .. ?

The Script loladdon.lua
Code:
 keywordHandler = KeywordHandler:new()
 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

-- Storage IDs --
citizen     = 22001 
hunter        = 22003    
mage        = 22005    
knight        = 22007    
nobleman    = 22009    
summoner    = 22011    
warrior        = 22013    
barbarian    = 22015    
druid        = 22017    
wizard        = 22019    
oriental    = 22021    
pirate        = 22023    
assassin    = 22025    
beggar        = 22027    
shaman        = 22029    
norseman    = 22031    
nightmare    = 22033    
jester        = 22035    
brotherhood    = 22037


newaddon    = 'Here you are, enjoy your brand new addon!'
noitems        = 'You do not have all the required items.'
noitems2    = 'You do not have all the required items or you do not have the first addon, which by the way, is a requirement for this addon.'
already        = 'It seems you already have this addon, don\'t you try to mock me son!'
    
-- CITIZEN START --
function CitizenFirst(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,citizen)
    if addon == -1 then
        if getPlayerItemCount(cid,5878) >= 100 then
        if doPlayerRemoveItem(cid,5878,100) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 128, 1)
            doPlayerAddOutfit(cid, 136, 1)
            setPlayerStorageValue(cid,citizen,1)
        end
        else
            selfSay(noitems)
        end
    else
        selfSay(already)
    end
    end

end

function CitizenSecond(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,citizen+1)
    if addon == -1 then
        if getPlayerItemCount(cid,5890) >= 100 and getPlayerItemCount(cid,5902) >= 50 and getPlayerItemCount(cid,2480) >= 1 then
        if doPlayerRemoveItem(cid,5890,100) and doPlayerRemoveItem(cid,5902,50) and doPlayerRemoveItem(cid,2480,1) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 128, 2)
            doPlayerAddOutfit(cid, 136, 2)
            setPlayerStorageValue(cid,citizen+1,1)
        end
        else
            selfSay(noitems)
        end
    else
        selfSay(already)
    end
    end

end
-- CITIZEN END --

-- HUNTER START --
function HunterFirst(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,hunter)
    if addon == -1 then
        if getPlayerItemCount(cid,5947) >= 1 and getPlayerItemCount(cid,5876) >= 100 and getPlayerItemCount(cid,5948) >= 100 and getPlayerItemCount(cid,5891) >= 5 and getPlayerItemCount(cid,5887) >= 1 and getPlayerItemCount(cid,5888) >= 1 and getPlayerItemCount(cid,5889) >= 1 then
        if doPlayerRemoveItem(cid,5947,1) and doPlayerRemoveItem(cid,5876,100) and doPlayerRemoveItem(cid,5948,100) and doPlayerRemoveItem(cid,5891,5) and doPlayerRemoveItem(cid,5887,1) and doPlayerRemoveItem(cid,5888,1) and doPlayerRemoveItem(cid,5889,1) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 129, 1)
            doPlayerAddOutfit(cid, 137, 2)
            setPlayerStorageValue(cid,hunter,1)
        end
        else
            selfSay(noitems)
        end
    else
        selfSay(already)
    end
    end

end

function HunterSecond(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,hunter+1)
    if addon == -1 then
        if getPlayerItemCount(cid,5875) >= 1 then
        if doPlayerRemoveItem(cid,5875,1) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 129, 2)
            doPlayerAddOutfit(cid, 137, 1)
            setPlayerStorageValue(cid,hunter+1,1)
        end
        else
            selfSay(noitems)
        end
    else
        selfSay(already)
    end
    end

end
-- HUNTER END --

-- MAGE START --
function MageFirst(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,mage)
    if addon == -1 then
        if getPlayerSex(cid) == 0 then
        if getPlayerItemCount(cid,5958) >= 1 then
        if doPlayerRemoveItem(cid,5958,1) then
            selfSay(newaddon)
                 
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 141, 1)
            doPlayerAddOutfit(cid, 130, 1)
            setPlayerStorageValue(cid,mage,1)
        end
        else
            selfSay(noitems)
        end
        elseif getPlayerSex(cid) == 1 then
        if getPlayerItemCount(cid,2181) >= 1 and getPlayerItemCount(cid,2182) >= 1 and getPlayerItemCount(cid,2183) >= 1 and getPlayerItemCount(cid,2185) >= 1 and getPlayerItemCount(cid,2186) >= 1 and getPlayerItemCount(cid,2187) >= 1 and getPlayerItemCount(cid,2188) >= 1 and getPlayerItemCount(cid,2189) >= 1 and getPlayerItemCount(cid,2190) >= 1 and getPlayerItemCount(cid,2191) >= 1 and getPlayerItemCount(cid,5904) >= 10 and getPlayerItemCount(cid,2193) >= 20 and getPlayerItemCount(cid,5809) >= 1 then
        if doPlayerRemoveItem(cid,2181,1) and doPlayerRemoveItem(cid,2182,1) and doPlayerRemoveItem(cid,2183,1) and doPlayerRemoveItem(cid,2185,1) and doPlayerRemoveItem(cid,2186,1) and doPlayerRemoveItem(cid,2187,1) and doPlayerRemoveItem(cid,2188,1) and doPlayerRemoveItem(cid,2189,1) and doPlayerRemoveItem(cid,2190,1) and doPlayerRemoveItem(cid,2191,1) and doPlayerRemoveItem(cid,5904,10) and doPlayerRemoveItem(cid,2193,20) and doPlayerRemoveItem(cid,5809,1) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 130, 1)
            doPlayerAddOutfit(cid, 141, 1)
            setPlayerStorageValue(cid,mage,1)
        end
        else
            selfSay(noitems)
        end
        end
    else
        selfSay(already)
    end
    end

end

function MageSecond(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,mage+1)
    if addon == -1 then
        if getPlayerSex(cid) == 0 then
        if getPlayerItemCount(cid,5894) >= 70 and getPlayerItemCount(cid,5911) >= 20 and getPlayerItemCount(cid,5883) >= 40 and getPlayerItemCount(cid,5922) >= 35 and getPlayerItemCount(cid,5886) >= 10 and getPlayerItemCount(cid,5881) >= 60 and getPlayerItemCount(cid,5882) >= 40 and getPlayerItemCount(cid,5904) >= 15 and getPlayerItemCount(cid,5905) >= 30 then
        if doPlayerRemoveItem(cid,5894,70) and doPlayerRemoveItem(cid,5911,20) and doPlayerRemoveItem(cid,5883,40) and doPlayerRemoveItem(cid,5922,35) and doPlayerRemoveItem(cid,5886,10) and doPlayerRemoveItem(cid,5881,60) and doPlayerRemoveItem(cid,5882,40) and doPlayerRemoveItem(cid,5904,15) and doPlayerRemoveItem(cid,5905,30) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 141, 2)
            doPlayerAddOutfit(cid, 130, 2)
            setPlayerStorageValue(cid,mage+1,1)
        end
        else
            selfSay(noitems)
        end
        elseif getPlayerSex(cid) == 1 then
        if getPlayerItemCount(cid,5903) >= 1 then
        if doPlayerRemoveItem(cid,5903,1) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 130, 2)
            doPlayerAddOutfit(cid, 141, 2)
            setPlayerStorageValue(cid,mage+1,1)
        end
        else
            selfSay(noitems)
        end
        end
    else
        selfSay(already)
    end
    end

end
-- MAGE END --

-- KNIGHT START --
function KnightFirst(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,knight)
    if addon == -1 then
        if getPlayerItemCount(cid,5892) >= 1 and getPlayerItemCount(cid,5880) >= 100 then
        if doPlayerRemoveItem(cid,5892,1) and doPlayerRemoveItem(cid,5880,100) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 131, 1)
            doPlayerAddOutfit(cid, 139, 1)
            setPlayerStorageValue(cid,knight,1)
        end
        else
            selfSay(noitems)
        end
    else
        selfSay(already)
    end
    end

end

function KnightSecond(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,knight+1)
    if addon == -1 then
        if getPlayerItemCount(cid,5893) >= 100 and getPlayerItemCount(cid,5924) >= 1 and getPlayerItemCount(cid,5885) >= 1 and getPlayerItemCount(cid,5887) >= 1 then
        if doPlayerRemoveItem(cid,5893,100) and doPlayerRemoveItem(cid,5924,1) and doPlayerRemoveItem(cid,5885,1) and doPlayerRemoveItem(cid,5887,1) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 131, 2)
            doPlayerAddOutfit(cid, 139, 2)
            setPlayerStorageValue(cid,knight+1,1)
        end
        else
            selfSay(noitems)
        end
    else
        selfSay(already)
    end
    end

end
-- KNIGHT END --

-- NOBLEMAN START --
function NoblemanFirst(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end
    
    local player_gold     = getPlayerItemCount(cid,2148)
    local player_plat     = getPlayerItemCount(cid,2152)*100
    local player_crys     = getPlayerItemCount(cid,2160)*10000
    local player_money     = player_gold + player_plat + player_crys

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,nobleman)
    if addon == -1 then
        if player_money >= 150000 then
        if doPlayerRemoveMoney(cid,150000) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 132, 1)
            doPlayerAddOutfit(cid, 140, 1)
            setPlayerStorageValue(cid,nobleman,1)
        end
        else
            selfSay(noitems)
        end
    else
        selfSay(already)
    end
    end

end

function NoblemanSecond(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end
    
    local player_gold     = getPlayerItemCount(cid,2148)
    local player_plat     = getPlayerItemCount(cid,2152)*100
    local player_crys     = getPlayerItemCount(cid,2160)*10000
    local player_money     = player_gold + player_plat + player_crys

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,nobleman+1)
    if addon == -1 then
        if player_money >= 150000 then
        if doPlayerRemoveMoney(cid,150000) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 132, 2)
            doPlayerAddOutfit(cid, 140, 2)
            setPlayerStorageValue(cid,nobleman+1,1)
        end
        else
            selfSay(noitems)
        end
    else
        selfSay(already)
    end
    end

end
-- NOBLEMAN END --

-- SUMMONER START --
function SummonerFirst(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,summoner)
    if addon == -1 then
        if getPlayerSex(cid) == 1 then
        if getPlayerItemCount(cid,5958) >= 1 then
        if doPlayerRemoveItem(cid,5958,1) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 133, 1)
            doPlayerAddOutfit(cid, 138, 1)
            setPlayerStorageValue(cid,summoner,1)
        end
        else
            selfSay(noitems)
        end
        elseif getPlayerSex(cid) == 0 then
        if getPlayerItemCount(cid,2181) >= 1 and getPlayerItemCount(cid,2182) >= 1 and getPlayerItemCount(cid,2183) >= 1 and getPlayerItemCount(cid,2185) >= 1 and getPlayerItemCount(cid,2186) >= 1 and getPlayerItemCount(cid,2187) >= 1 and getPlayerItemCount(cid,2188) >= 1 and getPlayerItemCount(cid,2189) >= 1 and getPlayerItemCount(cid,2190) >= 1 and getPlayerItemCount(cid,2191) >= 1 and getPlayerItemCount(cid,5904) >= 10 and getPlayerItemCount(cid,2193) >= 20 and getPlayerItemCount(cid,5809) >= 1 then
        if doPlayerRemoveItem(cid,2181,1) and doPlayerRemoveItem(cid,2182,1) and doPlayerRemoveItem(cid,2183,1) and doPlayerRemoveItem(cid,2185,1) and doPlayerRemoveItem(cid,2186,1) and doPlayerRemoveItem(cid,2187,1) and doPlayerRemoveItem(cid,2188,1) and doPlayerRemoveItem(cid,2189,1) and doPlayerRemoveItem(cid,2190,1) and doPlayerRemoveItem(cid,2191,1) and doPlayerRemoveItem(cid,5904,10) and doPlayerRemoveItem(cid,2193,20) and doPlayerRemoveItem(cid,5809,1) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 133, 1)
            doPlayerAddOutfit(cid, 138, 1)
            setPlayerStorageValue(cid,summoner,1)
        end
        else
            selfSay(noitems)
        end
        end
    else
        selfSay(already)
    end
    end

end

function SummonerSecond(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,summoner+1)
    if addon == -1 then
        if getPlayerSex(cid) == 1 then
        if getPlayerItemCount(cid,5894) >= 70 and getPlayerItemCount(cid,5911) >= 20 and getPlayerItemCount(cid,5883) >= 40 and getPlayerItemCount(cid,5922) >= 35 and getPlayerItemCount(cid,5886) >= 10 and getPlayerItemCount(cid,5881) >= 60 and getPlayerItemCount(cid,5882) >= 40 and getPlayerItemCount(cid,5904) >= 15 and getPlayerItemCount(cid,5905) >= 30 then
        if doPlayerRemoveItem(cid,5894,70) and doPlayerRemoveItem(cid,5911,20) and doPlayerRemoveItem(cid,5883,40) and doPlayerRemoveItem(cid,5922,35) and doPlayerRemoveItem(cid,5886,10) and doPlayerRemoveItem(cid,5881,60) and doPlayerRemoveItem(cid,5882,40) and doPlayerRemoveItem(cid,5904,15) and doPlayerRemoveItem(cid,5905,30) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 133, 2)
            doPlayerAddOutfit(cid, 138, 2)
            setPlayerStorageValue(cid,summoner+1,1)
        end
        else
            selfSay(noitems)
        end
        elseif getPlayerSex(cid) == 0 then
        if getPlayerItemCount(cid,5903) >= 1 then
        if doPlayerRemoveItem(cid,5903,1) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 133, 2)
            doPlayerAddOutfit(cid, 138, 2)
            setPlayerStorageValue(cid,summoner+1,1)
        end
        else
            selfSay(noitems)
        end
        end
    else
        selfSay(already)
    end
    end

end
-- SUMMONER END --

-- WARRIOR START --
function WarriorFirst(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,warrior)
    if addon == -1 then
        if getPlayerItemCount(cid,5925) >= 100 and getPlayerItemCount(cid,5899) >= 100 and getPlayerItemCount(cid,5884) >= 1 and getPlayerItemCount(cid,5919) >= 1 then
        if doPlayerRemoveItem(cid,5925,100) and doPlayerRemoveItem(cid,5899,100) and doPlayerRemoveItem(cid,5884,1) and doPlayerRemoveItem(cid,5919,1) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 134, 1)
            doPlayerAddOutfit(cid, 142, 1)
            setPlayerStorageValue(cid,warrior,1)
        end
        else
            selfSay(noitems)
        end
    else
        selfSay(already)
    end
    end

end

function WarriorSecond(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,warrior+1)
    if addon == -1 then
        if getPlayerItemCount(cid,5887) >= 1 and getPlayerItemCount(cid,5880) >= 100 then
        if doPlayerRemoveItem(cid,5887,1) and doPlayerRemoveItem(cid,5880,100) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 134, 2)
            doPlayerAddOutfit(cid, 142, 2)
            setPlayerStorageValue(cid,warrior+1,1)
        end
        else
            selfSay(noitems)
        end
    else
        selfSay(already)
    end
    end

end
-- WARRIOR END --

-- BARBARIAN START --
function BarbarianFirst(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,barbarian)
    if addon == -1 then
        if getPlayerItemCount(cid,5884) >= 1 and getPlayerItemCount(cid,5885) >= 1 and getPlayerItemCount(cid,5911) >= 50 and getPlayerItemCount(cid,5910) >= 50 and getPlayerItemCount(cid,5886) >= 10 then
        if doPlayerRemoveItem(cid,5884,1) and doPlayerRemoveItem(cid,5885,1) and doPlayerRemoveItem(cid,5911,50) and doPlayerRemoveItem(cid,5910,50) and doPlayerRemoveItem(cid,5886,10) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 143, 2)
            doPlayerAddOutfit(cid, 147, 2)
            setPlayerStorageValue(cid,barbarian,1)
        end
        else
            selfSay(noitems)
        end
    else
        selfSay(already)
    end
    end

end

function BarbarianSecond(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,barbarian+1)
    if addon == -1 then
        if getPlayerItemCount(cid,5880) >= 100 and getPlayerItemCount(cid,5892) >= 1 and getPlayerItemCount(cid,5893) >= 50 and getPlayerItemCount(cid,5876) >= 50 and getPlayerStorageValue(cid,barbarian) then
        if doPlayerRemoveItem(cid,5880,100) and doPlayerRemoveItem(cid,5892,1) and doPlayerRemoveItem(cid,5893,50) and doPlayerRemoveItem(cid,5876,50) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 143, 1)
            doPlayerAddOutfit(cid, 147, 1)
            setPlayerStorageValue(cid,barbarian+1,1)
        end
        else
            selfSay(noitems)
        end
    else
        selfSay(already)
    end
    end

end
-- BARBARIAN END --

-- DRUID START --
function DruidFirst(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,druid)
    if addon == -1 then
        if getPlayerItemCount(cid,5897) >= 50 and getPlayerItemCount(cid,5896) >= 50 then
        if doPlayerRemoveItem(cid,5897,50) and doPlayerRemoveItem(cid,5896,50) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 144, 1)
            doPlayerAddOutfit(cid, 148, 1)
            setPlayerStorageValue(cid,druid,1)
        end
        else
            selfSay(noitems)
        end
    else
        selfSay(already)
    end
    end

end

function DruidSecond(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,druid+1)
    if addon == -1 then
        if getPlayerItemCount(cid,5937) >= 1 and getPlayerItemCount(cid,5938) >= 1 and getPlayerItemCount(cid,5906) >= 100 and getPlayerItemCount(cid,5942) >= 1 and getPlayerItemCount(cid,5940) >= 1 then
        if doPlayerRemoveItem(cid,5937,1) and doPlayerRemoveItem(cid,5938,1) and doPlayerRemoveItem(cid,5906,100) and doPlayerRemoveItem(cid,5942,1) and doPlayerRemoveItem(cid,5940,1) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 144, 2)
            doPlayerAddOutfit(cid, 148, 2)
            setPlayerStorageValue(cid,druid+1,1)
        end
        else
            selfSay(noitems)
        end
    else
        selfSay(already)
    end
    end

end
-- DRUID END --

-- WIZARD START --
function WizardFirst(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,wizard)
    if addon == -1 then
        if getPlayerItemCount(cid,2488) >= 1 and getPlayerItemCount(cid,2123) >= 1 and getPlayerItemCount(cid,2492) >= 1 and getPlayerItemCount(cid,2536) >= 1 then
        if doPlayerRemoveItem(cid,2488,1) and doPlayerRemoveItem(cid,2123,1) and doPlayerRemoveItem(cid,2492,1) and doPlayerRemoveItem(cid,2536,1) then
            selfSay(newaddon)
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 145, 2)
            doPlayerAddOutfit(cid, 149, 2)
            setPlayerStorageValue(cid,wizard,1)
        end
        else
            selfSay(noitems)
        end
    else
        selfSay(already)
    end
    end

end

function WizardSecond(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,wizard+1)
    if addon == -1 then
        if getPlayerItemCount(cid,5922) >= 50 and getPlayerStorageValue(cid,wizard) then
        if doPlayerRemoveItem(cid,5922,50) and getPlayerStorageValue(cid,wizard) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 145, 1)
            doPlayerAddOutfit(cid, 149, 1)
            setPlayerStorageValue(cid,wizard+1,1)
        end
        else
            selfSay(noitems2)
        end
    else
        selfSay(already)
    end
    end

end
-- WIZARD END --

-- ORIENTAL START --
function OrientalFirst(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,oriental)
    if addon == -1 then
        if getPlayerItemCount(cid,5945) >= 1 then
        if doPlayerRemoveItem(cid,5945,1) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 146, 1)
            doPlayerAddOutfit(cid, 150, 1)
            setPlayerStorageValue(cid,oriental,1)
        end
        else
            selfSay(noitems)
        end
    else
        selfSay(already)
    end
    end

end

function OrientalSecond(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,oriental+1)
    if addon == -1 then
        if getPlayerItemCount(cid,5883) >= 100 and getPlayerItemCount(cid,5895) >= 100 and getPlayerItemCount(cid,5891) >= 2 and getPlayerItemCount(cid,5912) >= 100 then
        if doPlayerRemoveItem(cid,5883,100) and doPlayerRemoveItem(cid,5895,100) and doPlayerRemoveItem(cid,5891,2) and doPlayerRemoveItem(cid,5912,100) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 146, 2)
            doPlayerAddOutfit(cid, 150, 2)
            setPlayerStorageValue(cid,oriental+1,1)
        end
        else
            selfSay(noitems)
        end
    else
        selfSay(already)
    end
    end

end
-- ORIENTAL END --

-- PIRATE START --
function PirateFirst(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,pirate)
    if addon == -1 then
        if getPlayerItemCount(cid,6126) >= 100 and getPlayerItemCount(cid,6097) >= 100 and getPlayerItemCount(cid,6098) >= 100 then
        if doPlayerRemoveItem(cid,6126,100) and doPlayerRemoveItem(cid,6097,100) and doPlayerRemoveItem(cid,6098,100) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 151, 1)
            doPlayerAddOutfit(cid, 155, 1)
            setPlayerStorageValue(cid,pirate,1)
        end
        else
            selfSay(noitems)
        end
    else
        selfSay(already)
    end
    end

end

function PirateSecond(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,pirate+1)
    if addon == -1 then
        if getPlayerItemCount(cid,2385) >= 1 and getPlayerItemCount(cid,6098) >= 1 and getPlayerItemCount(cid,6095) >= 1 and getPlayerItemCount(cid,6096) >= 1 then
        if doPlayerRemoveItem(cid,6099,1) and doPlayerRemoveItem(cid,6100,1) and doPlayerRemoveItem(cid,6101,1) and doPlayerRemoveItem(cid,6102,1) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 151, 2)
            doPlayerAddOutfit(cid, 155, 2)
            setPlayerStorageValue(cid,pirate+1,1)
        end
        else
            selfSay(noitems)
        end
    else
        selfSay(already)
    end
    end

end
-- PIRATE END --

-- ASSASSIN START --
function AssassinFirst(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,assassin)
    if addon == -1 then
        if getPlayerItemCount(cid,5898) >= 30 and getPlayerItemCount(cid,5882) >= 10 and getPlayerItemCount(cid,5881) >= 30 and getPlayerItemCount(cid,5895) >= 20 and getPlayerItemCount(cid,5905) >= 20 and getPlayerItemCount(cid,5906) >= 10 and getPlayerItemCount(cid,5885) >= 1 then
        if doPlayerRemoveItem(cid,5898,30) and doPlayerRemoveItem(cid,5882,10) and doPlayerRemoveItem(cid,5881,30) and doPlayerRemoveItem(cid,5895,20) and doPlayerRemoveItem(cid,5905,20) and doPlayerRemoveItem(cid,5906,10) and doPlayerRemoveItem(cid,5885,1) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 152, 1)
            doPlayerAddOutfit(cid, 156, 1)
            setPlayerStorageValue(cid,assassin,1)
        end
        else
            selfSay(noitems)
        end
    else
        selfSay(already)
    end
    end

end

function AssassinSecond(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,assassin+1)
    if addon == -1 then
        if getPlayerItemCount(cid,5909) >= 50 and getPlayerItemCount(cid,5910) >= 50 and getPlayerItemCount(cid,5911) >= 50 and getPlayerItemCount(cid,5912) >= 50 and getPlayerItemCount(cid,5913) >= 50 and getPlayerItemCount(cid,5914) >= 50 and getPlayerItemCount(cid,5886) >= 10 then
        if doPlayerRemoveItem(cid,5909,50) and doPlayerRemoveItem(cid,5910,50) and doPlayerRemoveItem(cid,5911,50) and doPlayerRemoveItem(cid,5912,50) and doPlayerRemoveItem(cid,5913,50) and doPlayerRemoveItem(cid,5914,50) and doPlayerRemoveItem(cid,5886,10) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 152, 2)
            doPlayerAddOutfit(cid, 156, 2)
            setPlayerStorageValue(cid,assassin+1,1)
        end
        else
            selfSay(noitems)
        end
    else
        selfSay(already)
    end
    end

end
-- ASSASSIN END --

-- BEGGAR START --
function BeggarFirst(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end
    
    local player_gold     = getPlayerItemCount(cid,2148)
    local player_plat     = getPlayerItemCount(cid,2152)*100
    local player_crys     = getPlayerItemCount(cid,2160)*10000
    local player_money     = player_gold + player_plat + player_crys

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,beggar)
    if addon == -1 then
        if getPlayerItemCount(cid,5883) >= 100 and player_money >= 20000 then
        if doPlayerRemoveItem(cid,5883,100) and doPlayerRemoveMoney(cid,20000) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 153, 1)
            doPlayerAddOutfit(cid, 157, 1)
            setPlayerStorageValue(cid,beggar,1)
        end
        else
            selfSay(noitems)
        end
    else
        selfSay(already)
    end
    end

end

function BeggarSecond(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,beggar+1)
    if addon == -1 then
        if getPlayerItemCount(cid,6107) >= 1 then
        if doPlayerRemoveItem(cid,6107,1) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 153, 2)
            doPlayerAddOutfit(cid, 157, 2)
            setPlayerStorageValue(cid,beggar+1,1)
        end
        else
            selfSay(noitems)
        end
    else
        selfSay(already)
    end
    end

end
-- BEGGAR END --

-- SHAMAN START --
function ShamanFirst(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,shaman)
    if addon == -1 then
        if getPlayerItemCount(cid,3955) >= 5 and getPlayerItemCount(cid,5015) >= 1 then
        if doPlayerRemoveItem(cid,3955,5) and doPlayerRemoveItem(cid,5015,1) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 154, 2)
            doPlayerAddOutfit(cid, 158, 2)
            setPlayerStorageValue(cid,shaman,1)
        end
        else
            selfSay(noitems)
        end
    else
        selfSay(already)
    end
    end

end

function ShamanSecond(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,shaman+1)
    if addon == -1 then
        if getPlayerItemCount(cid,3966) >= 5 and getPlayerItemCount(cid,3967) >= 5 then
        if doPlayerRemoveItem(cid,3966,5) and doPlayerRemoveItem(cid,3967,5) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 154, 1)
            doPlayerAddOutfit(cid, 158, 1)
            setPlayerStorageValue(cid,shaman+1,1)
        end
        else
            selfSay(noitems)
        end
    else
        selfSay(already)
    end
    end

end
-- SHAMAN END --

-- NORSEMAN START --
function NorsemanFirst(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,norseman)
    if addon == -1 then
        if getPlayerItemCount(cid,7290) >= 5 then
        if doPlayerRemoveItem(cid,7290,5) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 251, 1)
            doPlayerAddOutfit(cid, 252, 1)
            setPlayerStorageValue(cid,norseman,1)
        end
        else
            selfSay(noitems)
        end
    else
        selfSay(already)
    end
    end

end

function NorsemanSecond(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,norseman+1)
    if addon == -1 then
        if getPlayerItemCount(cid,7290) >= 10 then
        if doPlayerRemoveItem(cid,7290,10) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 251, 2)
            doPlayerAddOutfit(cid, 252, 2)
            setPlayerStorageValue(cid,norseman+1,1)
        end
        else
            selfSay(noitems)
        end
    else
        selfSay(already)
    end
    end

end
-- NORSEMAN END --

-- NIGHTMARE START --
function NightmareFirst(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,nightmare)
    if addon == -1 then
        if getPlayerItemCount(cid,6500) >= 500 then
        if doPlayerRemoveItem(cid,6500,500) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 268, 1)
            doPlayerAddOutfit(cid, 269, 1)
            setPlayerStorageValue(cid,nightmare,1)
        end
        else
            selfSay(noitems)
        end
    else
        selfSay(already)
    end
    end

end

function NightmareSecond(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,nightmare+1)
    if addon == -1 then
        if getPlayerItemCount(cid,6500) >= 1500 then
        if doPlayerRemoveItem(cid,6500,1500) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 268, 2)
            doPlayerAddOutfit(cid, 269, 2)
            setPlayerStorageValue(cid,nightmare+1,1)
        end
        else
            selfSay(noitems)
        end
    else
        selfSay(already)
    end
    end

end
-- NIGHTMARE END --

-- JESTER START --
function JesterFirst(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,jester)
    if addon == -1 then
        if getPlayerItemCount(cid,5879) >= 1 and getPlayerItemCount(cid,5878) >= 4 then
        if doPlayerRemoveItem(cid,5879,1) and doPlayerRemoveItem(cid,5878,4) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 273, 1)
            doPlayerAddOutfit(cid, 270, 1)
            setPlayerStorageValue(cid,jester,1)
        end
        else
            selfSay(noitems)
        end
    else
        selfSay(already)
    end
    end

end

function JesterSecond(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,jester+1)
    if addon == -1 then
        if getPlayerItemCount(cid,5909) >= 5 then
        if doPlayerRemoveItem(cid,5909,5) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 273, 2)
            doPlayerAddOutfit(cid, 270, 2)
            setPlayerStorageValue(cid,jester+1,1)
        end
        else
            selfSay(noitems)
        end
    else
        selfSay(already)
    end
    end

end
-- JESTER END --

-- BROTHERHOOD START --
function BrotherhoodFirst(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,brotherhood)
    if addon == -1 then
        if getPlayerItemCount(cid,6500) >= 500 then
        if doPlayerRemoveItem(cid,6500,500) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 278, 1)
            doPlayerAddOutfit(cid, 279, 1)
            setPlayerStorageValue(cid,brotherhood,1)
        end
        else
            selfSay(noitems)
        end
    else
        selfSay(already)
    end
    end

end

function BrotherhoodSecond(cid, message, keywords, parameters, node)

    if(not npcHandler:isFocused(cid)) then
        return false
    end

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,brotherhood+1)
    if addon == -1 then
        if getPlayerItemCount(cid,6500) >= 1500 then
        if doPlayerRemoveItem(cid,6500,1500) then
            selfSay(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddOutfit(cid, 278, 2)
            doPlayerAddOutfit(cid, 279, 2)
            setPlayerStorageValue(cid,brotherhood+1,1)
        end
        else
            selfSay(noitems)
        end
    else
        selfSay(already)
    end
    end

end
-- BROTHERHOOD END --


keywordHandler:addKeyword({'addons'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I can offer you first & second addons of the following outfits: Citizen, Hunter, Mage, Knight, Nobleman, Summoner, Warrior, Barbarian, Druid, Wizard, Oriental, Pirate, Assassin, Beggar, Shaman, Norseman, Nightmare, Jester & Brotherhood."})
keywordHandler:addKeyword({'help'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "What you do is that you type 'first hunter addon' or 'second hunter addon' where you replace 'hunter' with whatever outfit you'd like to achieve the addons for. Assuming that you already collected all the required pieces, say 'yes' and voíla - you got yourself an addon!"})

 node1 = keywordHandler:addKeyword({'first citizen addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first citizen addon you need to give me 100 minotaur leathers. Do you have them with you?'})
    node1:addChildKeyword({'yes'}, CitizenFirst, {})
    node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})

 node2 = keywordHandler:addKeyword({'second citizen addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first hunter addon you need to give me 100 chicken feathers, 50 honeycombs and a legion helmet. Do you have them with you?'})
    node2:addChildKeyword({'yes'}, CitizenSecond, {})
    node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})

 node3 = keywordHandler:addKeyword({'first hunter addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first hunter addon you need to give me an engraved crossbow, 100 lizard leathers, 100 red dragon leather, 5 enchanted chicken wings, royal steel, hell steel and draconian steel. Do you have them with you?'})
    node3:addChildKeyword({'yes'}, HunterFirst, {})
    node3:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})

 node4 = keywordHandler:addKeyword({'second hunter addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second hunter addon you need to give me a pair of sniper gloves. Do you have them with you?'})
    node4:addChildKeyword({'yes'}, HunterSecond, {})
    node4:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})

 node5 = keywordHandler:addKeyword({'first mage addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first mage addon you need to give me a winning lottery ticket if you are a female. Otherwise, you need to give me all kind of wands and rods, 10 magic sulphurs, 20 ankhs and a soul stone. Do you have it with you?'})
    node5:addChildKeyword({'yes'}, MageFirst, {})
    node5:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})

 node6 = keywordHandler:addKeyword({'second mage addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second mage addon you need to give me 70 bat wings, 20 red pieces of cloth, 40 ape fur, 35 holy orchid, 10 spools of spider silk yarn, 60 lizard scales, 40 red dragon scales, 15 magic sulphurs and 30 vampire dusts if you are a female. Otherwise, you need to give me a ferumbras\' hat. Do you have them with you?'})
    node6:addChildKeyword({'yes'}, MageSecond, {})
    node6:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})

 node7 = keywordHandler:addKeyword({'first knight addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first knight addon you need to give me a chunk of crude iron and 100 iron ores. Do you have it with you?'})
    node7:addChildKeyword({'yes'}, KnightFirst, {})
    node7:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})

 node8 = keywordHandler:addKeyword({'second knight addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second knight addon you need to give me 100 perfect behemoth fangs, a damaged steel helmet, warrior\'s sweat and a royal steel. Do you have them with you?'})
    node8:addChildKeyword({'yes'}, KnightSecond, {})
    node8:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
    
 node9 = keywordHandler:addKeyword({'first nobleman addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first nobleman addon you need to give me 150,000 gold pieces. Do you have it with you?'})
    node9:addChildKeyword({'yes'}, NoblemanFirst, {})
    node9:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})

 node10 = keywordHandler:addKeyword({'second nobleman addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second nobleman addon you need to give me 150,000 gold pieces. Do you have them with you?'})
    node10:addChildKeyword({'yes'}, NoblemanSecond, {})
    node10:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})

 node11 = keywordHandler:addKeyword({'first summoner addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first summoner addon you need to give me a winning lottery ticket if you are a male. Otherwise, you need to give me all kind of wands and rods, 10 magic sulphurs, 20 ankhs and a soul stone. Do you have it with you?'})
    node11:addChildKeyword({'yes'}, SummonerFirst, {})
    node11:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})

 node12 = keywordHandler:addKeyword({'second summoner addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second summoner addon you need to give me 70 bat wings, 20 red pieces of cloth, 40 ape fur, 35 holy orchid, 10 spools of spider silk yarn, 60 lizard scales, 40 red dragon scales, 15 magic sulphurs and 30 vampire dusts if you are a male. Otherwise, you need to give me a ferumbras\' hat. Do you have them with you?'})
    node12:addChildKeyword({'yes'}, SummonerSecond, {})
    node12:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})
    
 node13 = keywordHandler:addKeyword({'first warrior addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first warrior addon you need to give me 100 hardened bones, 100 turtle shells, a fighting spirit and a dragon claw. Do you have it with you?'})
    node13:addChildKeyword({'yes'}, WarriorFirst, {})
    node13:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})

 node14 = keywordHandler:addKeyword({'second warrior addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second warrior addon you need to give me 100 iron ores and a piece of royal steel. Do you have them with you?'})
    node14:addChildKeyword({'yes'}, WarriorSecond, {})
    node14:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})

 node15 = keywordHandler:addKeyword({'first barbarian addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first barbarian addon you need to give me a fighting spirit, the warrior\'s sweat, 50 red pieces of cloth, 50 green pieces of cloth and 10 spider silk yarns. Do you have them with you?'})
    node15:addChildKeyword({'yes'}, BarbarianFirst, {})
    node15:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})

 node16 = keywordHandler:addKeyword({'second barbarian addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second barbarian addon you need to give me 100 iron ore, a chunk of crude iron, 50 behemoth fangs and 50 lizard leathers. Do you have them with you?'})
    node16:addChildKeyword({'yes'}, BarbarianSecond, {})
    node16:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})

 node17 = keywordHandler:addKeyword({'first druid addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first druid addon you need to give me 50 wolf paws and 50 bear paws. Do you have them with you?'})
    node17:addChildKeyword({'yes'}, DruidFirst, {})
    node17:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})

 node18 = keywordHandler:addKeyword({'second druid addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second druid addon you need to give me Griffinclaw flower sample, water from the hydra cave, 100 demon dusts, a blessed wooden stake and Ceirons wolf tooth chain. Do you have them with you?'})
    node18:addChildKeyword({'yes'}, DruidSecond, {})
    node18:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})

 node19 = keywordHandler:addKeyword({'first wizard addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first wizard addon you need to give me a dragon scale mail, a pair of crown legs, a medusa shield and a ring of the sky. Do you have them with you?'})
    node19:addChildKeyword({'yes'}, WizardFirst, {})
    node19:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})

 node20 = keywordHandler:addKeyword({'second wizard addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second wizard addon you need to give me 50 holy orchids. Do you have them with you?'})
    node20:addChildKeyword({'yes'}, WizardSecond, {})
    node20:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})

 node21 = keywordHandler:addKeyword({'first oriental addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first oriental addon you need to give me a mermaid comb. Do you have it with you?'})
    node21:addChildKeyword({'yes'}, OrientalFirst, {})
    node21:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})

 node22 = keywordHandler:addKeyword({'second oriental addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second oriental addon you need to give me 100 ape furs, 100 fish fins, 2 enchanted chicken wings and 100 blue pieces of cloth. Do you have them with you?'})
    node22:addChildKeyword({'yes'}, OrientalSecond, {})
    node22:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})

 node23 = keywordHandler:addKeyword({'first pirate addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first pirate addon you need to give me 100 hooks, 100 peg legs and 100 eye patches. Do you have them with you?'})
    node23:addChildKeyword({'yes'}, PirateFirst, {})
    node23:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})

 node24 = keywordHandler:addKeyword({'second pirate addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second pirate addon you need to give me brutus bloodbeard\'s hat, lethal lissy\'s shirt, ron the ripper\'s sabre and deadeye devious\' eye patch. Do you have them with you?'})
    node24:addChildKeyword({'yes'}, PirateSecond, {})
    node24:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})

 node25 = keywordHandler:addKeyword({'first assassin addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first assassin addon you need to give me 30 beholder eyes, 10 red dragon scales, 30 lizard scales, 20 fish fins, 20 vampire dusts, 10 demon dusts and Warrior\'s sweat. Do you have them with you?'})
    node25:addChildKeyword({'yes'}, AssassinFirst, {})
    node25:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})

 node26 = keywordHandler:addKeyword({'second assassin addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second assassin addon you need to give me 50 blue piece of cloth, 50 green piece of cloth, 50 red piece of cloth, 50 brown piece of cloth, 50 yellow piece of cloth, 50 white piece of cloth and 10 spider silk yarns. Do you have them with you?'})
    node26:addChildKeyword({'yes'}, AssassinSecond, {})
    node26:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})

 node27 = keywordHandler:addKeyword({'first beggar addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first beggar addon you need to give me 100 ape furs and 20,000 gold pieces. Do you have them with you?'})
    node27:addChildKeyword({'yes'}, BeggarFirst, {})
    node27:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})

 node28 = keywordHandler:addKeyword({'second beggar addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second beggar addon you need to give me simon the beggar\'s staff. Do you have it with you?'})
    node28:addChildKeyword({'yes'}, BeggarSecond, {})
    node28:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})

 node29 = keywordHandler:addKeyword({'first shaman addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first shaman addon you need to give me 5 dworf voodoo dolls and a mandrake. Do you have them with you?'})
    node29:addChildKeyword({'yes'}, ShamanFirst, {})
    node29:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})

 node30 = keywordHandler:addKeyword({'second shaman addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second shaman addon you need to give me 5 banana staffs and 5 tribal masks. Do you have them with you?'})
    node30:addChildKeyword({'yes'}, ShamanSecond, {})
    node30:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})

 node31 = keywordHandler:addKeyword({'first norseman addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first norseman addon you need to give me 5 shards. Do you have them with you?'})
    node31:addChildKeyword({'yes'}, NorsemanFirst, {})
    node31:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})

 node32 = keywordHandler:addKeyword({'second norseman addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second norseman addon you need to give me 10 shards. Do you have them with you?'})
    node32:addChildKeyword({'yes'}, NorsemanSecond, {})
    node32:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})

 node33 = keywordHandler:addKeyword({'first nightmare addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first nightmare addon you need to give me 500 demonic essences. Do you have them with you?'})
    node33:addChildKeyword({'yes'}, NightmareFirst, {})
    node33:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})

 node34 = keywordHandler:addKeyword({'second nightmare addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second nightmare addon you need to give me 1500 demonic essences. Do you have them with you?'})
    node34:addChildKeyword({'yes'}, NightmareSecond, {})
    node34:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})

 node35 = keywordHandler:addKeyword({'first jester addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first jester addon you need to give me a giant spider silk and 4 minotaur leathers. Do you have them with you?'})
    node35:addChildKeyword({'yes'}, JesterFirst, {})
    node35:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})

 node36 = keywordHandler:addKeyword({'second jester addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second jester addon you need to give me 5 white piece of cloth. Do you have them with you?'})
    node36:addChildKeyword({'yes'}, JesterSecond, {})
    node36:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})

 node37 = keywordHandler:addKeyword({'first brotherhood addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first brotherhood addon you need to give me 500 demonic essences. Do you have them with you?'})
    node37:addChildKeyword({'yes'}, BrotherhoodFirst, {})
    node37:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})

 node38 = keywordHandler:addKeyword({'second brotherhood addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second brotherhood addon you need to give me 1500 demonic essences. Do you have them with you?'})
    node38:addChildKeyword({'yes'}, BrotherhoodSecond, {})
    node38:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true})


npcHandler:addModule(FocusModule:new())

The npc
Code:
  <?xml version="1.0" encoding="UTF-8" ?> 
- <npc name="Hermes" script="data/npc/scripts/loladdon.lua" walkinterval="2000" floorchange="0">
  <health now="1337" max="1337" /> 
  <look type="289" head="78" body="88" legs="0" feet="88" addons="1" /> 
  </npc>

so plzz help me :)
 
That's like one of my first scripts, so don't expect it to be perfect haha, but what server are you using? As that NPC was only tested on TFS 2~
 
Code:
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 

----------------------------citizen first------------------------------- 
function buycitizenfirst(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

if getplayeritemcount(cid,5878) >= 100 then 
if doplayertakeitem(cid,5878,100) == 0 then 

selfsay('here you are.') 
doplayeraddoutfit(cid, 128, 1) 
doplayeraddoutfit(cid, 136, 1) 
end 
else 
selfsay('you do not have all the items.') 
end 
return true 
end 

----------------------------citizen second------------------------------- 
function buycitizensecond(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 
if getplayeritemcount(cid,5890) >= 100 and getplayeritemcount(cid,5902) >= 50 and getplayeritemcount(cid,2480) >= 1 then 
if doplayertakeitem(cid,5890,100) == 0 and doplayertakeitem(cid,5902,50) == 0 and doplayertakeitem(cid,2480,1) == 0 then 

selfsay('here you are.') 
doplayeraddoutfit(cid, 128, 2) 
doplayeraddoutfit(cid, 136, 2) 
end 
else 
selfsay('you do not have all the items.') 
end 
return true 
end 

----------------------------barbarian second------------------------------- 
function buybarbsecond(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 


if doplayertakeitem(cid,5884,1) == 0 and doplayertakeitem(cid,5885,1) == 0 and doplayertakeitem(cid,5911,50) == 0 and doplayertakeitem(cid,5910,50) == 0 and doplayertakeitem(cid,5886,10) == 0 then 
if doplayertakeitem(cid,5884,1) == 0 and doplayertakeitem(cid,5885,1) == 0 and doplayertakeitem(cid,5911,50) == 0 and doplayertakeitem(cid,5910,50) == 0 and doplayertakeitem(cid,5886,10) == 0 then 
selfsay('here you are.') 
doplayeraddoutfit(cid, 143, 2) 
doplayeraddoutfit(cid, 147, 2) 
                end 
            else 
selfsay('you do not have all the items.') 
            end 
return true 
end 


----------------------------barbarian first------------------------------- 
function buybarbfirst(cid, message, keywords, parameters, node) 
    if(not npchandler:isfocused(cid)) then 
    return false 
    end 

        if getplayeritemcount(cid,5880) >= 100 and getplayeritemcount(cid,5892) >= 1 and getplayeritemcount(cid,5893) >= 50 and getplayeritemcount(cid,5876) >= 50 then 
                    if doplayertakeitem(cid,5880,100) == 0 and doplayertakeitem(cid,5892,1) == 0 and doplayertakeitem(cid,5893,50) == 0 and doplayertakeitem(cid,5876,50) == 0 then 
                    selfsay('here you are.') 
                    doplayeraddoutfit(cid, 143, 1) 
                    doplayeraddoutfit(cid, 147, 1) 
                    end 
        else 
                    selfsay('i need 100 iron ore, 1 chunk of crude iron, 50 behemoth fangs and 50 lizard leathers, to give you the second barbarian addon. Come back when you have them.') 
                end 
return true 
end 
----------------------------hunter first------------------------------- 

function buyhunterfirst(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

if getplayeritemcount(cid,5875) >= 1 then 
if doplayertakeitem(cid,5875,1) == 0 then 

selfsay('here you are.') 
doplayeraddoutfit(cid, 129, 2) 
doplayeraddoutfit(cid, 137, 2) 
end 
else 
selfsay('you do not have all the items.') 
end 
return true 
end 

----------------------------hunter second------------------------------- 

function buyhuntersecond(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

if getplayeritemcount(cid,5947) >= 1 and getplayeritemcount(cid,5876) >= 100 and getplayeritemcount(cid,5948) >= 100 and getplayeritemcount(cid,5891) >= 5 and getplayeritemcount(cid,5887) >= 1 and getplayeritemcount(cid,5888) >= 1 and getplayeritemcount(cid,5889) >= 1 then 
if doplayertakeitem(cid,5947,1) == 0 and doplayertakeitem(cid,5876,100) == 0 and doplayertakeitem(cid,5948,100) == 0 and doplayertakeitem(cid,5891,5) == 0 and doplayertakeitem(cid,5887,1) == 0 and doplayertakeitem(cid,5888,1) == 0 and doplayertakeitem(cid,5889,1) == 0 then 

selfsay('here you are.') 
    doplayeraddoutfit(cid, 129, 1) 
    doplayeraddoutfit(cid, 137, 1) 
end 
else 
selfsay('you do not have all the items.') 
end 
return true 
end 


----------------------------knight first------------------------------- 

function buyknightfirst(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

if getplayeritemcount(cid,5892) >= 1 and getplayeritemcount(cid,5880) >= 100 then 
if doplayertakeitem(cid,5892,1) == 0 and doplayertakeitem(cid,5880,100) == 0 then 

selfsay('here you are.') 
doplayeraddoutfit(cid, 131, 1) 
doplayeraddoutfit(cid, 139, 1) 
end 
else 
selfsay('you do not have all the items.') 
end 
return true 
end 

----------------------------knight second------------------------------ 

function buyknightsecond(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

if getplayeritemcount(cid,5893) >= 100 and getplayeritemcount(cid,5924) >= 1 and getplayeritemcount(cid,5885) >= 1 and getplayeritemcount(cid,5887) >= 1 then 
if doplayertakeitem(cid,5893,100) == 0 and doplayertakeitem(cid,5924,1) == 0 and doplayertakeitem(cid,5885,1) == 0 and doplayertakeitem(cid,5887,1) == 0 then 
selfsay('here you are.') 
doplayeraddoutfit(cid, 131, 2) 
doplayeraddoutfit(cid, 139, 2) 
end 
else 
selfsay('you do not have all the items.') 
end 
return true 
end 


-------------------------mage first female------------------------------------- 
function buymagefirstfemale(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

if getplayersex(cid) == 1 then 
selfsay('you must be female to buy this addon.') 
return false 
end 


if getplayeritemcount(cid,5958) >= 1  then 
if doplayertakeitem(cid,5958,1) == 0 then 
selfsay('here you are.') 
doplayeraddoutfit(cid, 138, 1) 
end 


else 
selfsay('you do not have all the items.') 
end 
return true 
end 


-------------------------mage second female------------------------------------- 
function buymagesecondfemale(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

if getplayersex(cid) == 1 then 
selfsay('you must be female to buy this addon.') 
return false 
end 

if getplayeritemcount(cid,5894) >= 70 and getplayeritemcount(cid,5911) >= 20 and getplayeritemcount(cid,5883) >= 40 and getplayeritemcount(cid,5922) >= 35 and getplayeritemcount(cid,5886) >= 10 and getplayeritemcount(cid,5881) >= 60 and getplayeritemcount(cid,5882) >= 40 and getplayeritemcount(cid,5904) >= 15 and getplayeritemcount(cid,5905) >= 30 then 
if doplayertakeitem(cid,5894,70) and doplayertakeitem(cid,5911,20) and doplayertakeitem(cid,5883,40) and doplayertakeitem(cid,5922,35) and doplayertakeitem(cid,5886,10) and doplayertakeitem(cid,5881,60) and doplayertakeitem(cid,5882,40) and doplayertakeitem(cid,5904,15) and doplayertakeitem(cid,5905,30) then 
selfsay('here you are.') 
doplayeraddoutfit(cid, 138, 2) 
end 
else 
selfsay('you do not have all the items.') 
end 
return true 
end 

-------------------------mage first male------------------------------------- 
function buymagefirstmale(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

if getplayersex(cid) == 0 then 
selfsay('you must be male to buy this addon.') 
return false 
end 


if getplayeritemcount(cid,2181) >= 1 and getplayeritemcount(cid,2182) >= 1 and getplayeritemcount(cid,2183) >= 1 and getplayeritemcount(cid,2185) >= 1 and getplayeritemcount(cid,2186) >= 1 and getplayeritemcount(cid,2187) >= 1 and getplayeritemcount(cid,2188) >= 1 and getplayeritemcount(cid,2189) >= 1 and getplayeritemcount(cid,2190) >= 1 and getplayeritemcount(cid,2191) >= 1 and getplayeritemcount(cid,5904) >= 10 and getplayeritemcount(cid,2193) >= 20 and getplayeritemcount(cid,5809) >= 1 then 
if doplayertakeitem(cid,2181,1) == 0 and doplayertakeitem(cid,2182,1) == 0 and doplayertakeitem(cid,2183,1) == 0 and doplayertakeitem(cid,2185,1) == 0 and doplayertakeitem(cid,2186,1) == 0 and doplayertakeitem(cid,2187,1) == 0 and doplayertakeitem(cid,2188,1) == 0 and doplayertakeitem(cid,2189,1) == 0 and doplayertakeitem(cid,2190,1) == 0 and doplayertakeitem(cid,2191,1) == 0 and doplayertakeitem(cid,5904,10) == 0 and doplayertakeitem(cid,2193,20) == 0 and doplayertakeitem(cid,5809,1) == 0 then 
selfsay('here you are.') 
doplayeraddoutfit(cid, 130, 1) 
end 


else 
selfsay('you do not have all the items.') 
end 
return true 
end 

-------------------------mage second male------------------------------------- 
function buymagesecondmale(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

if getplayersex(cid) == 0 then 
selfsay('you must be male to buy this addon.') 
return false 
end 


if getplayeritemcount(cid,5903) >= 1  then 
if doplayertakeitem(cid,5903,1) == 0 then 
selfsay('wow im impressed , here you are.') 
doplayeraddoutfit(cid, 130, 2) 
end 


else 
selfsay('you do not have all the items.') 
end 
return true 
end 

-------------------------summoner first male------------------------------------- 
function buysummonerfirstmale(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

if getplayersex(cid) == 0 then 
selfsay('you must be male to buy this addon.') 
return false 
end 


if getplayeritemcount(cid,5958) >= 1  then 
if doplayertakeitem(cid,5958,1) == 0 then 
selfsay('here you are.') 
doplayeraddoutfit(cid, 133, 1) 
end 


else 
selfsay('you do not have all the items.') 
end 
return true 
end 

-------------------------summoner second male------------------------------------- 
function buysummonersecondmale(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

if getplayersex(cid) == 0 then 
selfsay('you must be male to buy this addon.') 
return false 
end 



if getplayeritemcount(cid,5894) >= 70 and getplayeritemcount(cid,5911) >= 20 and getplayeritemcount(cid,5883) >= 40 and getplayeritemcount(cid,5922) >= 35 and getplayeritemcount(cid,5886) >= 10 and getplayeritemcount(cid,5881) >= 60 and getplayeritemcount(cid,5882) >= 40 and getplayeritemcount(cid,5904) >= 15 and getplayeritemcount(cid,5905) >= 30 then 
if doplayertakeitem(cid,5894,70) and doplayertakeitem(cid,5911,20) and doplayertakeitem(cid,5883,40) and doplayertakeitem(cid,5922,35) and doplayertakeitem(cid,5886,10) and doplayertakeitem(cid,5881,60) and doplayertakeitem(cid,5882,40) and doplayertakeitem(cid,5904,15) and doplayertakeitem(cid,5905,30) then 
selfsay('here you are.') 
doplayeraddoutfit(cid, 133, 2) 
end 


else 
selfsay('you do not have all the items.') 
end 
return true 
end 

-------------------------summoner second female------------------------------------- 
function buysummonersecondfemale(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

if getplayersex(cid) == 1 then 
selfsay('you must be female to buy this addon.') 
return false 
end 


if getplayeritemcount(cid,5903) >= 1  then 
if doplayertakeitem(cid,5903,1) == 0 then 
selfsay('wow im impressed , here you are.') 
doplayeraddoutfit(cid, 141, 2) 
end 


else 
selfsay('you do not have all the items.') 
end 
return true 
end 



----------------------------druid first------------------------------ 

function buydruidfirst(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

if getplayeritemcount(cid,5897) >= 50 and getplayeritemcount(cid,5896) >= 50 then 
if doplayertakeitem(cid,5897,50) == 0 and doplayertakeitem(cid,5896,50) == 0 then 
selfsay('here you are.') 
doplayeraddoutfit(cid, 144, 1) 
doplayeraddoutfit(cid, 148, 1) 
end 
else 
selfsay('you do not have all the items.') 
end 
return true 
end 


----------------------------druid second------------------------------ 

function buydruidsecond(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

if getplayeritemcount(cid,5937) >= 1 and getplayeritemcount(cid,5938) >= 1 and getplayeritemcount(cid,5906) >= 100 and getplayeritemcount(cid,5942) >= 1 and getplayeritemcount(cid,5940) >= 1 then 
if doplayertakeitem(cid,5937,1) == 0 and doplayertakeitem(cid,5938,1) == 0 and doplayertakeitem(cid,5906,100) == 0 and doplayertakeitem(cid,5942,1) == 0 and doplayertakeitem(cid,5940,1) == 0 then 
selfsay('here you are.') 
doplayeraddoutfit(cid, 144, 2) 
doplayeraddoutfit(cid, 148, 2) 
end 
else 
selfsay('you do not have all the items.') 
end 
return true 
end 

----------------------------oriental first------------------------------ 

function buyorientalfirst(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

if getplayeritemcount(cid,5945) >= 1 then 
if doplayertakeitem(cid,5945,1) == 0 then 
selfsay('here you are.') 
doplayeraddoutfit(cid, 146, 1) 
doplayeraddoutfit(cid, 150, 1) 
end 
else 
selfsay('you do not have all the items.') 
end 
return true 
end 

----------------------------oriental second------------------------------ 

function buyorientalsecond(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

if getplayeritemcount(cid,5883) >= 100 and getplayeritemcount(cid,5895) >= 100 and getplayeritemcount(cid,5891) >= 2 and getplayeritemcount(cid,5912) >= 100 then 
if doplayertakeitem(cid,5883,100) == 0 and doplayertakeitem(cid,5895,100) == 0 and doplayertakeitem(cid,5891,2) == 0 and doplayertakeitem(cid,5912,100) == 0 then 
selfsay('here you are.') 
doplayeraddoutfit(cid, 146, 1) 
doplayeraddoutfit(cid, 150, 1) 
end 
else 
selfsay('you do not have all the items.') 
end 
return true 
end 

----------------------------warrior first------------------------------ 

function buywarriorfirst(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

            if getplayeritemcount(cid,5925) >= 100 and getplayeritemcount(cid,5899) >= 100 and getplayeritemcount(cid,5884) >= 1 and getplayeritemcount(cid,5919) >= 1 then 
if doplayertakeitem(cid,5925,100) == 0 and doplayertakeitem(cid,5899,100) == 0 and doplayertakeitem(cid,5884,1) == 0 and doplayertakeitem(cid,5919,1) == 0 then 
selfsay('here you are.') 
doplayeraddoutfit(cid, 134, 1) 
doplayeraddoutfit(cid, 142, 1) 
end 
else 
selfsay('you do not have all the items.') 
end 
return true 
end 


----------------------------warrior second------------------------------ 

function buywarriorsecond(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

if getplayeritemcount(cid,5887) >= 1 and getplayeritemcount(cid,5880) >= 100 then 
if doplayertakeitem(cid,5887,1) == 0 and doplayertakeitem(cid,5880,100) == 0 then 
selfsay('here you are.') 
doplayeraddoutfit(cid, 134, 2) 
doplayeraddoutfit(cid, 142, 2) 
end 
else 
selfsay('you do not have all the items.') 
end 
return true 
end 


----------------------------wizard first------------------------------ 

function buywizardfirst(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

if getplayeritemcount(cid,2488) >= 1 and getplayeritemcount(cid,2123) >= 1 and getplayeritemcount(cid,2492) >= 1 and getplayeritemcount(cid,2536) >= 1 then 
if doplayertakeitem(cid,2488,1) == 0 and doplayertakeitem(cid,2123,1) == 0 and doplayertakeitem(cid,2492,1) == 0 and doplayertakeitem(cid,2536,1) == 0 then 
selfsay('here you are.') 
doplayeraddoutfit(cid, 145, 2) 
doplayeraddoutfit(cid, 149, 2) 
end 
else 
selfsay('you do not have all the items.') 
end 
return true 
end 

----------------------------wizard second------------------------------ 

function buywizardsecond(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

if getplayeritemcount(cid,5922) >= 50 and getplayerstoragevalue(cid,110001) then 
if doplayertakeitem(cid,5922,50) == 0 then 
selfsay('here you are.') 
doplayeraddoutfit(cid, 145, 1) 
doplayeraddoutfit(cid, 149, 1) 
end 
else 
selfsay('you do not have all the items.') 
end 
return true 
end 

----------------------------assasin first------------------------------ 

function buyassassinfirst(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

if getplayeritemcount(cid,5898) >= 30 and getplayeritemcount(cid,5882) >= 10 and getplayeritemcount(cid,5881) >= 30 and getplayeritemcount(cid,5895) >= 20 and getplayeritemcount(cid,5905) >= 20 and getplayeritemcount(cid,5906) >= 10 and getplayeritemcount(cid,5885) >= 1 then 
if doplayertakeitem(cid,5898,30) == 0 and doplayertakeitem(cid,5882,10) == 0 and doplayertakeitem(cid,5881,30) == 0 and doplayertakeitem(cid,5895,20) == 0 and doplayertakeitem(cid,5905,20) == 0 and doplayertakeitem(cid,5906,10) == 0 and doplayertakeitem(cid,5885,1) then 
selfsay('here you are.') 
doplayeraddoutfit(cid, 152, 1) 
doplayeraddoutfit(cid, 156, 1) 
end 
else 
selfsay('you do not have all the items.') 
end 
return true 
end 

----------------------------assasin second------------------------------ 

function buyassassinsecond(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

if getplayeritemcount(cid,5909) >= 50 and getplayeritemcount(cid,5910) >= 50 and getplayeritemcount(cid,5911) >= 50 and getplayeritemcount(cid,5912) >= 50 and getplayeritemcount(cid,5913) >= 50 and getplayeritemcount(cid,5914) >= 50 and getplayeritemcount(cid,5886) >= 10 then 
if doplayertakeitem(cid,5909,50) == 0 and doplayertakeitem(cid,5910,50) == 0 and doplayertakeitem(cid,5911,50) == 0 and doplayertakeitem(cid,5912,50) == 0 and doplayertakeitem(cid,5913,50) == 0 and doplayertakeitem(cid,5914,50) == 0 and doplayertakeitem(cid,5886,10) == 0 then 
selfsay('here you are.') 
doplayeraddoutfit(cid, 152, 2) 
doplayeraddoutfit(cid, 156, 2) 
end 
else 
selfsay('you do not have all the items.') 
end 
return true 
end 

----------------------------pirate first------------------------------ 

function buypiratefirst(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

if getplayeritemcount(cid,6126) >= 100 and getplayeritemcount(cid,6097) >= 100 and getplayeritemcount(cid,6098) >= 100 then 
if doplayertakeitem(cid,6126,100) == 0 and doplayertakeitem(cid,6097,100) == 0 and doplayertakeitem(cid,6098,100) == 0 then 
selfsay('here you are.') 
doplayeraddoutfit(cid, 151, 1) 
doplayeraddoutfit(cid, 155, 1) 
end 
else 
selfsay('you do not have all the items.') 
end 
return true 
end 

----------------------------pirate second------------------------------ 

function buypiratesecond(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

if getplayeritemcount(cid,6099) >= 1 and getplayeritemcount(cid,6100) >= 1 and getplayeritemcount(cid,6101) >= 1 and getplayeritemcount(cid,6102) >= 1 then 
if doplayertakeitem(cid,6099,1) == 0 and doplayertakeitem(cid,6100,1) == 0 and doplayertakeitem(cid,6101,1) == 0 and doplayertakeitem(cid,6102,1) == 0 then 
selfsay('here you are.') 
doplayeraddoutfit(cid, 151, 2) 
doplayeraddoutfit(cid, 155, 2) 
end 
else 
selfsay('you do not have all the items.') 
end 
return true 
end 

----------------------------shaman first------------------------------ 

function buyshamanfirst(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

if getplayeritemcount(cid,3955) >= 5 and getplayeritemcount(cid,5015) >= 1 then 
if doplayertakeitem(cid,3955,5) == 0 and doplayertakeitem(cid,5015,1) == 0 then 
selfsay('here you are.') 
doplayeraddoutfit(cid, 154, 1) 
doplayeraddoutfit(cid, 158, 1) 
end 
else 
selfsay('you do not have all the items.') 
end 
return true 
end 

----------------------------shaman second------------------------------ 

function buyshamansecond(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

if getplayeritemcount(cid,3966) >= 5 and getplayeritemcount(cid,3967) >= 5 then 
if doplayertakeitem(cid,3966,5) == 0 and doplayertakeitem(cid,3967,5) == 0 then 

selfsay('here you are.') 
doplayeraddoutfit(cid, 154, 2) 
doplayeraddoutfit(cid, 158, 2) 
end 
else 
selfsay('you do not have all the items.') 
end 
return true 
end 
----------------------------norseman first------------------------------ 

function buynorsemanfirst(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

if getplayeritemcount(cid,7290) >= 5 then 
if doplayertakeitem(cid,7290,5) == 0 then 

selfsay('here you are.') 
doplayeraddoutfit(cid, 251, 1) 
doplayeraddoutfit(cid, 252, 1) 
end 
else 
selfsay('you do not have all the items.') 
end 
return true 
end 

----------------------------norseman second------------------------------ 

function buynorsemansecond(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

if getplayeritemcount(cid,7290) >= 10 then 
if doplayertakeitem(cid,7290,10) == 0 then 

selfsay('here you are.') 
doplayeraddoutfit(cid, 251, 2) 
doplayeraddoutfit(cid, 252, 2) 
end 
else 
selfsay('you do not have all the items.') 
end 
return true 
end 

----------------------------brotherhood first------------------------------ 

function buybrotherhoodfirst(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

if getplayeritemcount(cid,6500) >= 500 then 
if doplayertakeitem(cid,6500,500) == 0 then 

selfsay('here you are.') 
doplayeraddoutfit(cid, 278, 1) 
doplayeraddoutfit(cid, 279, 1) 
end 
else 
selfsay('you do not have all the items.') 
end 
return true 
end 

----------------------------brotherhood second------------------------------ 

function buybrotherhoodsecond(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

if getplayeritemcount(cid,6500) >= 1500 then 
if doplayertakeitem(cid,6500,1500) == 0 then 

selfsay('here you are.') 
doplayeraddoutfit(cid, 278, 2) 
doplayeraddoutfit(cid, 279, 2) 
end 
else 
selfsay('you do not have all the items.') 
end 
return true 
end 

----------------------------nightmare first------------------------------ 

function buynightmarefirst(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

if getplayeritemcount(cid,6500) >= 500 then 
if doplayertakeitem(cid,6500,500) == 0 then 

selfsay('here you are.') 
doplayeraddoutfit(cid, 268, 1) 
doplayeraddoutfit(cid, 269, 1) 
end 
else 
selfsay('you do not have all the items.') 
end 
return true 
end 

----------------------------nightmare second------------------------------ 

function buynightmaresecond(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

if getplayeritemcount(cid,6500) >= 1500 then 
if doplayertakeitem(cid,6500,1500) == 0 then 

selfsay('here you are.') 
doplayeraddoutfit(cid, 268, 2) 
doplayeraddoutfit(cid, 269, 2) 
end 
else 
selfsay('you do not have all the items.') 
end 
return true 
end 


----------------------------jester first------------------------------ 

function buyjesterfirst(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

if getplayeritemcount(cid,5911) >= 1 and getplayeritemcount(cid,5912) >= 1 and getplayeritemcount(cid,5914) >= 1 and getplayeritemcount(cid,5910) >= 1 and getplayeritemcount(cid,5909) >= 5 and getplayeritemcount(cid,5879) >= 1 and getplayeritemcount(cid,5878) >= 4 then 
if doplayertakeitem(cid,5911,1) == 0 and doplayertakeitem(cid,5912,1) == 0 and doplayertakeitem(cid,5914,1) == 0 and doplayertakeitem(cid,5910,1) == 0 and doplayertakeitem(cid,5909,5) == 0 and doplayertakeitem(cid,5879,1) == 0 and doplayertakeitem(cid,5878,4) == 0 then 

selfsay('here you are.') 
doplayeraddoutfit(cid, 273, 1) 
doplayeraddoutfit(cid, 270, 1) 
end 
else 
selfsay('you do not have all the items.') 
end 
return true 
end 


----------------------------jester second------------------------------ 

function buyjestersecond(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

if getplayeritemcount(cid,5911) >= 10 and getplayeritemcount(cid,5912) >= 10 and getplayeritemcount(cid,5914) >= 10 and getplayeritemcount(cid,5910) >= 10 and getplayeritemcount(cid,5909) >= 25 and getplayeritemcount(cid,5879) >= 10 and getplayeritemcount(cid,5878) >= 40 then 
if doplayertakeitem(cid,5911,10) == 0 and doplayertakeitem(cid,5912,10) == 0 and doplayertakeitem(cid,5914,10) == 0 and doplayertakeitem(cid,5910,10) == 0 and doplayertakeitem(cid,5909,25) == 0 and doplayertakeitem(cid,5879,10) == 0 and doplayertakeitem(cid,5878,40) == 0 then 

selfsay('here you are.') 
doplayeraddoutfit(cid, 273, 2) 
doplayeraddoutfit(cid, 270, 2) 
end 
else 
selfsay('you do not have all the items.') 
end 
return true 
end 


----------------------------noble first------------------------------ 

function buynoblefirst(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

if getplayeritemcount(cid,2160) >= 15  then 
if doplayertakeitem(cid,2160,15) == 0 then 

selfsay('here you are.') 
doplayeraddoutfit(cid, 132, 1) 
doplayeraddoutfit(cid, 140, 1) 
end 
else 
selfsay('you do not have all the items.') 
end 
return true 
end 


----------------------------noble second------------------------------ 

function buynoblesecond(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

if getplayeritemcount(cid,2160) >= 15  then 
if doplayertakeitem(cid,2160,15) == 0 then 

selfsay('here you are.') 
doplayeraddoutfit(cid, 132, 2) 
doplayeraddoutfit(cid, 140, 2) 
end 
else 
selfsay('you do not have all the items.') 
end 
return true 
end 


----------------------------beggar first------------------------------ 

function buybeggarfirst(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

if getplayeritemcount(cid,2160) >= 15 and getplayeritemcount(cid,5883) >= 100 then 
if doplayertakeitem(cid,2160,15) == 0 and doplayertakeitem(cid,5883,100)  == 0 then 

selfsay('here you are.') 
doplayeraddoutfit(cid, 153, 1) 
doplayeraddoutfit(cid, 157, 1) 
end 
else 
selfsay('you do not have all the items.') 
end 
return true 
end 

----------------------------beggar second------------------------------ 

function buybeggarsecond(cid, message, keywords, parameters, node) 
if(not npchandler:isfocused(cid)) then 
return false 
end 

if getplayeritemcount(cid,6107) >= 1 then 
if doplayertakeitem(cid,6107,1) == 0 then 

selfsay('here you are.') 
doplayeraddoutfit(cid, 153, 2) 
doplayeraddoutfit(cid, 157, 2) 
end 
else 
selfsay('you do not have all the items.') 
end 
return true 
end 

-----------------------------------node keywords-------------------------- 
local node1 = keywordhandler:addkeyword({'addons'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'i can give you citizen, hunter, knight, mage, nobleman, summoner, warrior, barbarian, druid, wizard, oriental, pirate, assassin, beggar, shaman, norseman, nighmare, jester and brotherhood addons.'}) 
local node1 = keywordhandler:addkeyword({'help'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'to buy the first addon say \'first name addon\', for the second addon say \'second name addon\'.'}) 
local node2 = keywordhandler:addkeyword({'first citizen'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need - 100 minotaur leathers do you have them now?'}) 
node2:addchildkeyword({'yes'}, buycitizenfirst) 
local node3 = keywordhandler:addkeyword({'second barbarian'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need - fighting spirit, warrior\'s sweat, 50 red pieces of cloth, 50 green pieces of cloth and 10 spider silk yarns do you have them now?'}) 
node3:addchildkeyword({'yes'}, buybarbsecond) 
local node4 = keywordhandler:addkeyword({'first barbarian'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need -  100 iron ore, 1 chunk of crude iron, 50 behemoth fangs and 50 lizard leathers, do you have them now?'}) 
node4:addchildkeyword({'yes'}, buybarbfirst) 
local node5 = keywordhandler:addkeyword({'second citizen'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need - 100 chicken feathers, 50 honeycombs and a legion helmet do you have them now?'}) 
node5:addchildkeyword({'yes'}, buycitizensecond) 
local node6 = keywordhandler:addkeyword({'first hunter'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need sniper gloves do you have them now?'}) 
node6:addchildkeyword({'yes'}, buyhunterfirst) 
local node7 = keywordhandler:addkeyword({'second hunter'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need - engraved crossbow, 100 lizard leathers, 100 red dragon leather, 5 enchanted chicken wings, royal steel, hell steel and draconian steel do you have them now?'}) 
node7:addchildkeyword({'yes'}, buyhuntersecond) 
local node8 = keywordhandler:addkeyword({'first knight'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need - chunk of crude iron and 100 iron ores do you have them now?'}) 
node8:addchildkeyword({'yes'}, buyknightfirst) 
local node9 = keywordhandler:addkeyword({'second knight'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need - 100 behemoth fangs, a damaged steel helmet, warrior\'s sweat and a royal steel do you have them now?'}) 
node9:addchildkeyword({'yes'}, buyknightsecond) 
local node10 = keywordhandler:addkeyword({'first mage female'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need a winning lottery ticket do you have one?'}) 
node10:addchildkeyword({'yes'}, buymagefirstfemale) 
local node11 = keywordhandler:addkeyword({'second mage female'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need - 70 bat wings, 20 red pieces of cloth, 40 ape fur, 35 holy orchid, 10 spools of spider silk yarn, 60 lizard scales, 40 red dragon scales, 15 magic sulphurs and 30 vampire dusts do you have them now?'}) 
node11:addchildkeyword({'yes'}, buymagesecondfemale) 
local node12 = keywordhandler:addkeyword({'first mage male'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need - all kind of wands and rods, 10 magic sulphurs, 20 ankhs and a soul stone do you have them?'}) 
node12:addchildkeyword({'yes'}, buymagefirstmale) 
local node14 = keywordhandler:addkeyword({'second mage male'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need a ferumbras hat do you have it now?'}) 
node14:addchildkeyword({'yes'}, buymagesecondmale) 
local node15 = keywordhandler:addkeyword({'second mage male'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need a ferumbras hat do you have it now?'}) 
node15:addchildkeyword({'yes'}, buysummonerfirstmale) 
local node13 = keywordhandler:addkeyword({'first summoner male'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need a winning lottery ticket do you have one?'}) 
node13:addchildkeyword({'yes'}, buysummonerfirstmale) 
local node16 = keywordhandler:addkeyword({'first mage'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'please ask me for first mage male or first mage female.'}) 
local node17 = keywordhandler:addkeyword({'second summoner female'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need a ferumbras hat do you have it now?'}) 
node17:addchildkeyword({'yes'}, buysummonersecondfemale) 
local node18 = keywordhandler:addkeyword({'first druid'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need  50 wolf paws and 50 bear paws do you have them now?'}) 
node18:addchildkeyword({'yes'}, buydruidfirst) 
local node19 = keywordhandler:addkeyword({'second druid'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need  a griffinclaw flower sample, water from the hydra cave, 100 demon dusts, a blessed wooden stake and ceiron\'s wolf tooth chain do you have them now?'}) 
node19:addchildkeyword({'yes'}, buydruidsecond) 
local node20 = keywordhandler:addkeyword({'first oriental'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need  a mermaid comb do you have one now?'}) 
node20:addchildkeyword({'yes'}, buyorientalfirst) 
local node21 = keywordhandler:addkeyword({'second oriental'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need -  100 ape furs, 100 fish fins, 2 enchanted chicken wings and 100 blue pieces of cloth do you have them now?'}) 
node21:addchildkeyword({'yes'}, buyorientalsecond) 
local node22 = keywordhandler:addkeyword({'first warrior'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need -  100 hardened bones, 100 turtle shells, fighting spirit and a dragon claw do you have them now?'}) 
node22:addchildkeyword({'yes'}, buywarriorfirst) 
local node23 = keywordhandler:addkeyword({'second warrior'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need -  100 iron ores and a royal steel do you have them now?'}) 
node23:addchildkeyword({'yes'}, buywarriorsecond) 
local node24 = keywordhandler:addkeyword({'first wizard'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need -  medusa shield, a dragon scale mail, a ring of the sky and crown legs do you have them now?'}) 
node24:addchildkeyword({'yes'}, buywizardfirst) 
local node25 = keywordhandler:addkeyword({'second wizard'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need 50 holy orchids  do you have them now?'}) 
node25:addchildkeyword({'yes'}, buywizardsecond) 
local node26 = keywordhandler:addkeyword({'first assassin'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need - 30 beholder eyes, 10 red dragon scales, 30 lizard scales, 20 fish fins, 20 vampire dusts, 10 demon dusts and warrior\'s sweat do you have them now?'}) 
node26:addchildkeyword({'yes'}, buyassassinfirst) 
local node27 = keywordhandler:addkeyword({'second assassin'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need - 50 blue piece of cloth, 50 green piece of cloth, 50 red piece of cloth, 50 brown piece of cloth, 50 yellow piece of cloth, 50 white piece of cloth and 10 spider silk yarns do you have them now?'}) 
node27:addchildkeyword({'yes'}, buyassassinsecond) 
local node28 = keywordhandler:addkeyword({'first pirate'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need - 100 eye patches, 100 peg legs and 100 hooks do you have them now?'}) 
node28:addchildkeyword({'yes'}, buypiratefirst) 
local node29 = keywordhandler:addkeyword({'second pirate'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need - ron the ripper\'s sabre, deadeye devious\' eye patch, lethal lissy\'s shirt, brutus bloodbeard\'s hat do you have them now?'}) 
node29:addchildkeyword({'yes'}, buypiratesecond) 
local node30 = keywordhandler:addkeyword({'first shaman'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need - 5 dworc vodoo dolls and a mandrake do you have them now?'}) 
node30:addchildkeyword({'yes'}, buyshamanfirst) 
local node31 = keywordhandler:addkeyword({'second shaman'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need - 5 banana staffs and 5 tribal masks do you have them now?'}) 
node31:addchildkeyword({'yes'}, buyshamansecond) 
local node32 = keywordhandler:addkeyword({'first norseman'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need 5 shards do you have them now?'}) 
node32:addchildkeyword({'yes'}, buynorsemanfirst) 
local node33 = keywordhandler:addkeyword({'second norseman'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need 10 shards do you have them now?'}) 
node33:addchildkeyword({'yes'}, buynorsemansecond) 
local node34 = keywordhandler:addkeyword({'first brotherhood'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need 500 demonic essences do you have them now?'}) 
node34:addchildkeyword({'yes'}, buybrotherhoodfirst) 
local node35 = keywordhandler:addkeyword({'second brotherhood'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need 1500 demonic essences do you have them now?'}) 
node35:addchildkeyword({'yes'}, buybrotherhoodsecond) 
local node36 = keywordhandler:addkeyword({'first nightmare'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need 500 demonic essences do you have them now?'}) 
node36:addchildkeyword({'yes'}, buynightmarefirst) 
local node37 = keywordhandler:addkeyword({'second nightmare'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need 1500 demonic essences do you have them now?'}) 
node37:addchildkeyword({'yes'}, buynightmaresecond) 
local node38 = keywordhandler:addkeyword({'first jester'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need - 1 red piece of cloth, 1 blue piece of cloth, 1 yellow piece of cloth, 1 green piece of cloth, 5 white piece of cloth, 1 giant spider silk and 4 minotaur leathers do you have them now?'}) 
node38:addchildkeyword({'yes'}, buyjesterfirst) 
local node39 = keywordhandler:addkeyword({'second jester'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need - 10 red piece of cloth, 10 blue piece of cloth, 10 yellow piece of cloth, 10 green piece of cloth, 25 white piece of cloth, 10 giant spider silk and 40 minotaur leather?'}) 
node39:addchildkeyword({'yes'}, buyjestersecond) 
local node40 = keywordhandler:addkeyword({'first nobleman'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need 15 crystal coins you have them now?'}) 
node40:addchildkeyword({'yes'}, buynoblefirst) 
local node41 = keywordhandler:addkeyword({'second nobleman'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need 15 crystal coins you have them now?'}) 
node41:addchildkeyword({'yes'}, buynoblesecond) 
local node43 = keywordhandler:addkeyword({'first beggar'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need 100 ape furs and 2 crystal coins you have them now?'}) 
node43:addchildkeyword({'yes'}, buybeggarfirst) 

local node44 = keywordhandler:addkeyword({'second beggar'}, stdmodule.say, {npchandler = npchandler, onlyfocus = true, text = 'for this addon you need simon\'s favourite staff do you have it now?'}) 
node44:addchildkeyword({'yes'}, buybeggarsecond) 

npchandler:addmodule(focusmodule:new())

test it!
 
Last edited by a moderator:
Back
Top