• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

NPC [NPC] Real Addons 8.1 (evo)

Evil Hero

Legacy Member
TFS Developer
Joined
Dec 12, 2007
Messages
1,262
Solutions
29
Reaction score
739
Location
Germany
Hello,
I just edited the Basic Script (credits to: Mokerhamer,Xidaozu,Jiddo)
that you can get Norseman,Jester,Brotherhood,Nightmare

ok here you go....

make a new file called "Addon.lua" and place it into /NPC/scripts

Code:
--------------------------------------------------------------------------------------------
------------------------------------ Advanced Addon NPC ------------------------------------
-------------------------------- Script made by teh_pwnage ---------------------------------
--------------- Special thanks to: mokerhamer, Xidaozu and Jiddo, deaths'life --------------
------------------------------- Thanks also to everyone else -------------------------------
------------------------------ NPC based on Evolutions V0.7.7 ------------------------------
--------------------------------------------------------------------------------------------
 
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
 
-- OTServ event handling functions start
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
-- OTServ event handling functions end
 
function creatureSayCallback(cid, type, msg)
    -- Place all your code in here. Remember that hi, bye and all that stuff is already handled by the npcsystem, so you do not have to take care of that yourself.
    if(npcHandler.focus ~= cid) then
        return false
    end
 
        addon_need_premium = 'Sorry, you need a premium account to get addons.'
        addon_have_already = 'Sorry, you already have this addon.'
        addon_have_not_items = 'Sorry, you don\'t have these items.'
        addon_give = 'Here you are.'
        player_gold = getPlayerItemCount(cid,2148)
        player_plat = getPlayerItemCount(cid,2152)*100
        player_crys = getPlayerItemCount(cid,2160)*10000
        player_money = player_gold + player_plat + player_crys
 
        if msgcontains(msg, 'addons') then
            selfSay('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.')
        elseif msgcontains(msg, 'help') then
            selfSay('To buy the first addon say \'first NAME addon\', for the second addon say \'second NAME addon\'.')
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'first citizen addon') then
            if isPremium(cid) then
                if getPlayerItemCount(cid,5878) >= 100 then
                    selfSay('Did you bring me 100 minotaur leathers?')
                    talk_state = 1
                else
                    selfSay('I need 100 minotaur leather, to give you the first citizen addon. Come back when you have them.')
                    talk_state = 0
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 1 then
            talk_state = 0
            if getPlayerItemCount(cid,5878) >= 100 then
                addon = getPlayerStorageValue(cid,10001)
                if addon == -1 then
                    if doPlayerTakeItem(cid,5878,100) == 0 then
                        selfSay(addon_give)
                        doPlayerAddAddon(cid, 128, 1)
                        doPlayerAddAddon(cid, 136, 1)
                        setPlayerStorageValue(cid,10001,1)
                    end
                else
                    selfSay(addon_have_already)
                end
            else
                selfSay(addon_have_not_items)
            end
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'second citizen addon') then
            if isPremium(cid) then
                if getPlayerItemCount(cid,5890) >= 100 and getPlayerItemCount(cid,5902) >= 50 and getPlayerItemCount(cid,2480) >= 1 then
                    selfSay('Did you bring me 100 chicken feathers, 50 honeycombs and the legion helmet?')
                    talk_state = 2
                else
                    selfSay('I need 100 chicken feathers, 50 honeycombs and a legion helmet, to give you the second citizen addon. Come back when you have them.')
                    talk_state = 0
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 2 then
            talk_state = 0
            if getPlayerItemCount(cid,5890) >= 100 and getPlayerItemCount(cid,5902) >= 50 and getPlayerItemCount(cid,2480) >= 1 then
                addon = getPlayerStorageValue(cid,10002)
                if addon == -1 then
                    if doPlayerTakeItem(cid,5890,100) == 0 and doPlayerTakeItem(cid,5902,50) == 0 and doPlayerTakeItem(cid,2480,1) == 0 then
                        selfSay(addon_give)
                        doPlayerAddAddon(cid, 128, 2)
                        doPlayerAddAddon(cid, 136, 2)
                        setPlayerStorageValue(cid,10002,1)
                    end
                else
                    selfSay(addon_have_already)
                end
            else
                selfSay(addon_have_not_items)
            end
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'first hunter addon') then
            if isPremium(cid) 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
                    selfSay('Did you bring me the engraved crossbow, 100 lizard leathers, 100 red dragon leather, 5 enchanted chicken wings, royal steel, hell steel and draconian steel?')
                    talk_state = 3
                else
                    selfSay('I need a engraved crossbow, 100 lizard leathers, 100 red dragon leather, 5 enchanted chicken wings, royal steel, hell steel and draconian steel, to give you the first hunter addon. Come back when you have them.')
                    talk_state = 0
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 3 then
            talk_state = 0
            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
                addon = getPlayerStorageValue(cid,20002)
                if addon == -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(addon_give)
                        doPlayerAddAddon(cid, 129, 1)
                        doPlayerAddAddon(cid, 137, 1)
                        setPlayerStorageValue(cid,20002,1)
                    end
                else
                    selfSay(addon_have_already)
                end
            else
                selfSay(addon_have_not_items)
            end
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'second hunter addon') then
            if isPremium(cid) then
                if getPlayerItemCount(cid,5875) >= 1 then
                    selfSay('Did you bring me the sniper gloves?')
                    talk_state = 4
                else
                    selfSay('I need sniper gloves, to give you the second hunter addon. Come back when you have them.')
                    talk_state = 0
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 4 then
            talk_state = 0
            if getPlayerItemCount(cid,5875) >= 1 then
                addon = getPlayerStorageValue(cid,20001)
                if addon == -1 then
                    if doPlayerTakeItem(cid,5875,1) == 0 then
                        selfSay(addon_give)
                        doPlayerAddAddon(cid, 129, 2)
                        doPlayerAddAddon(cid, 137, 2)
                        setPlayerStorageValue(cid,20001,1)
                    end
                else
                    selfSay(addon_have_already)
                end
            else
                selfSay(addon_have_not_items)
            end
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'first knight addon') then
            if isPremium(cid) then
                if getPlayerItemCount(cid,5892) >= 1 and getPlayerItemCount(cid,5880) >= 100 then
                    selfSay('Did you bring me the chunk of crude iron and 100 iron ores?')
                    talk_state = 5
                else
                    selfSay('I need a chunk of crude iron and 100 iron ores, to give you the first knight addon. Come back when you have them.')
                    talk_state = 0
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 5 then
            talk_state = 0
            if getPlayerItemCount(cid,5892) >= 1 and getPlayerItemCount(cid,5880) >= 100 then
                addon = getPlayerStorageValue(cid,30001)
                if addon == -1 then
                    if doPlayerTakeItem(cid,5892,1) == 0 and doPlayerTakeItem(cid,5880,100) == 0 then
                        selfSay(addon_give)
                        doPlayerAddAddon(cid, 131, 1)
                        doPlayerAddAddon(cid, 139, 1)
                        setPlayerStorageValue(cid,30001,1)
                    end
                else
                    selfSay(addon_have_already)
                end
            else
                selfSay(addon_have_not_items)
            end
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'second knight addon') then
            if isPremium(cid) then
                if getPlayerItemCount(cid,5893) >= 100 and getPlayerItemCount(cid,5924) >= 1 and getPlayerItemCount(cid,5885) >= 1 and getPlayerItemCount(cid,5887) >= 1 then
                    selfSay('Did you bring me 100 behemoth fangs, the damaged steel helmet, warrior\'s sweat, and royal steel?')
                    talk_state = 6
                else
                    selfSay('I need 100 behemoth fangs, a damaged steel helmet, warrior\'s sweat and royal steel, to give you the second knight addon. Come back when you have them.')
                    talk_state = 0
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 6 then
            talk_state = 0
            if getPlayerItemCount(cid,5893) >= 100 and getPlayerItemCount(cid,5924) >= 1 and getPlayerItemCount(cid,5885) >= 1 and getPlayerItemCount(cid,5887) >= 1 then
                addon = getPlayerStorageValue(cid,30002)
                if addon == -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(addon_give)
                        doPlayerAddAddon(cid, 131, 2)
                        doPlayerAddAddon(cid, 139, 2)
                        setPlayerStorageValue(cid,30002,1)
                    end
                else
                    selfSay(addon_have_already)
                end
            else
                selfSay(addon_have_not_items)
            end
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'first mage addon') then
            if isPremium(cid) then
                if getPlayerSex(cid) == 0 then
                    if getPlayerItemCount(cid,5958) >= 1 then
                        selfSay('Did you bring me a winning lotery ticket?')
                        talk_state = 7
                    else
                        selfSay('I need a winning lotery ticket, to give you the first mage addon. Come back when you have it.')
                        talk_state = 0
                    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
                        selfSay('Did you bring me all the wands and rods, 10 magic sulphors, 20 ankhs and a soul stone?')
                        talk_state = 7
                    else
                        selfSay('I need all kind of wands and rods, 10 magic sulphurs, 20 ankhs and a soul stone, to give you the first mage addon. Come back when you have it.')
                        talk_state = 0
                    end
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 7 then
            talk_state = 0
            if getPlayerSex(cid) == 0 then
                if getPlayerItemCount(cid,5958) >= 1 then
                    addon = getPlayerStorageValue(cid,40001)
                    if addon == -1 then
                        if doPlayerTakeItem(cid,5958,1) == 0 then
                            selfSay(addon_give)
                            doPlayerAddAddon(cid, 141, 1)
                            setPlayerStorageValue(cid,40001,1)
                        end
                    else
                        selfSay(addon_have_already)
                    end
                else
                    selfSay(addon_have_not_items)
                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
                    addon = getPlayerStorageValue(cid,40001)
                    if addon == -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(addon_give)
                            doPlayerAddAddon(cid, 130, 1)
                            setPlayerStorageValue(cid,40001,1)
                        end
                    else
                        selfSay(addon_have_already)
                    end
                else
                    selfSay(addon_have_not_items)
                end
            end
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'second mage addon') then
            if isPremium(cid) 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
                        selfSay('Did you bring 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?')
                        talk_state = 8
                    else
                        selfSay('I 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, to give you the second mage addon. Come back when you have it.')
                        talk_state = 0
                    end
                elseif getPlayerSex(cid) == 1 then
                    if getPlayerItemCount(cid,5903) >= 1 then
                        selfSay('Did you bring me the Ferumbrass\' hat?')
                        talk_state = 8
                    else
                        selfSay('I need the famous Ferumbrass\' hat, to give you the second mage addon. Come back when you have it.')
                        talk_state = 0
                    end
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 8 then
            talk_state = 0
            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
                    addon = getPlayerStorageValue(cid,40002)
                    if addon == -1 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(addon_give)
                            doPlayerAddAddon(cid, 141, 2)
                            setPlayerStorageValue(cid,40002,1)
                        end
                    else
                        selfSay(addon_have_already)
                    end
                else
                    selfSay(addon_have_not_items)
                end
            elseif getPlayerSex(cid) == 1 then
                if getPlayerItemCount(cid,5903) >= 1 then
                    addon = getPlayerStorageValue(cid,40002)
                    if addon == -1 then
                        if doPlayerTakeItem(cid,5903,1) == 0 then
                            selfSay(addon_give)
                            doPlayerAddAddon(cid, 130, 2)
                            setPlayerStorageValue(cid,40002,1)
                        end
                    else
                        selfSay(addon_have_already)
                    end
                else
                    selfSay(addon_have_not_items)
                end
            end
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'first summoner addon') then
            if isPremium(cid) then
                if getPlayerSex(cid) == 1 then
                    if getPlayerItemCount(cid,5958) >= 1 then
                        selfSay('Did you bring me a winning lotery ticket?')
                        talk_state = 9
                    else
                        selfSay('I need a winning lotery ticket, to give you the first summoner addon. Come back when you have it.')
                        talk_state = 0
                    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 then
                        selfSay('Did you bring me all the wands and rods and 10 magic sulphors?')
                        talk_state = 9
                    else
                        selfSay('I need all kind of wands and rods and 10 magic sulphurs, to give you the first summoner addon. Come back when you have it.')
                        talk_state = 0
                    end
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 9 then
            talk_state = 0
            if getPlayerSex(cid) == 1 then
                if getPlayerItemCount(cid,5958) >= 1 then
                    addon = getPlayerStorageValue(cid,50001)
                    if addon == -1 then
                        if doPlayerTakeItem(cid,5958,1) == 0 then
                            selfSay(addon_give)
                            doPlayerAddAddon(cid, 133, 1)
                            setPlayerStorageValue(cid,50001,1)
                        end
                    else
                        selfSay(addon_have_already)
                    end
                else
                    selfSay(addon_have_not_items)
                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 then
                    addon = getPlayerStorageValue(cid,50001)
                    if addon == -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 then
                            selfSay(addon_give)
                            doPlayerAddAddon(cid, 138, 1)
                            setPlayerStorageValue(cid,50001,1)
                        end
                    else
                        selfSay(addon_have_already)
                    end
                else
                    selfSay(addon_have_not_items)
                end
            end
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'second summoner addon') then
            if isPremium(cid) 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
                        selfSay('Did you bring 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?')
                        talk_state = 10
                    else
                        selfSay('I 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, to give you the second summoner addon. Come back when you have it.')
                        talk_state = 0
                    end
                elseif getPlayerSex(cid) == 0 then
                    if getPlayerItemCount(cid,5903) >= 1 then
                        selfSay('Did you bring me the Ferumbras\' hat?')
                        talk_state = 10
                    else
                        selfSay('I need the famous Ferumbras\' hat, to give you the second summoner addon. Come back when you have it.')
                        talk_state = 0
                    end
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 10 then
            talk_state = 0
            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
                    addon = getPlayerStorageValue(cid,50002)
                    if addon == -1 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(addon_give)
                            doPlayerAddAddon(cid, 133, 2)
                            setPlayerStorageValue(cid,50002,1)
                        end
                    else
                        selfSay(addon_have_already)
                    end
                else
                    selfSay(addon_have_not_items)
                end
            elseif getPlayerSex(cid) == 0 then
                if getPlayerItemCount(cid,5903) >= 1 then
                    addon = getPlayerStorageValue(cid,50002)
                    if addon == -1 then
                        if doPlayerTakeItem(cid,5903,1) == 0 then
                            selfSay(addon_give)
                            doPlayerAddAddon(cid, 138, 2)
                            setPlayerStorageValue(cid,50002,1)
                        end
                    else
                        selfSay(addon_have_already)
                    end
                else
                    selfSay(addon_have_not_items)
                end
            end
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'first barbarian addon') then
            if isPremium(cid) 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
                    selfSay('Did you bring me the fighting spirit, the warrior\'s sweat, 50 red pieces of cloth, 50 green pieces of cloth and 10 spider silk yarns?')
                    talk_state = 11
                else
                    selfSay('I need fighting spirit, warrior\'s sweat, 50 red pieces of cloth, 50 green pieces of cloth and 10 spider silk yarns, to give you the first barbarian addon. Come back when you have them.')
                    talk_state = 0
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 11 then
            talk_state = 0
            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
                addon = getPlayerStorageValue(cid,60001)
                if addon == -1 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(addon_give)
                        doPlayerAddAddon(cid, 143, 2)
                        doPlayerAddAddon(cid, 147, 2)
                        setPlayerStorageValue(cid,60001,1)
                    end
                else
                    selfSay(addon_have_already)
                end
            else
                selfSay(addon_have_not_items)
            end
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'second barbarian addon') then
            if isPremium(cid) then
                if getPlayerItemCount(cid,5880) >= 100 and getPlayerItemCount(cid,5892) >= 1 and getPlayerItemCount(cid,5893) >= 50 and getPlayerItemCount(cid,5876) >= 50 then
                    selfSay('Did you bring me 100 iron ore, 1 chunk of crude iron, 50 behemoth fangs and 50 lizard leathers?')
                    talk_state = 12
                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.')
                    talk_state = 0
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 12 then
            talk_state = 0
            if getPlayerItemCount(cid,5880) >= 100 and getPlayerItemCount(cid,5892) >= 1 and getPlayerItemCount(cid,5893) >= 50 and getPlayerItemCount(cid,5876) >= 50 then
                addon = getPlayerStorageValue(cid,60002)
                if addon == -1 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(addon_give)
                        doPlayerAddAddon(cid, 143, 1)
                        doPlayerAddAddon(cid, 147, 1)
                        setPlayerStorageValue(cid,60002,1)
                    end
                else
                    selfSay(addon_have_already)
                end
            else
                selfSay(addon_have_not_items)
            end
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'first druid addon') then
            if isPremium(cid) then
                if getPlayerItemCount(cid,5897) >= 50 and getPlayerItemCount(cid,5896) >= 50 then
                    selfSay('Did you bring me 50 wolf paws and 50 bear paws?')
                    talk_state = 13
                else
                    selfSay('I need 50 wolf paws and 50 bear paws, to give you the first druid addon. Come back when you have them.')
                    talk_state = 0
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 13 then
            talk_state = 0
            if getPlayerItemCount(cid,5897) >= 50 and getPlayerItemCount(cid,5896) >= 50 then
                addon = getPlayerStorageValue(cid,70001)
                if addon == -1 then
                    if doPlayerTakeItem(cid,5897,50) == 0 and doPlayerTakeItem(cid,5896,50) == 0 then
                        selfSay(addon_give)
                        doPlayerAddAddon(cid, 144, 1)
                        doPlayerAddAddon(cid, 148, 1)
                        setPlayerStorageValue(cid,70001,1)
                    end
                else
                    selfSay(addon_have_already)
                end
            else
                selfSay(addon_have_not_items)
            end
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'second druid addon') then
            if isPremium(cid) 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
                    selfSay('Did you bring me a Griffinclaw flower sample, water from the hydra cave, 100 demon dusts, a blessed wooden stake and Ceiron\'s wolf tooth chain?')
                    talk_state = 14
                else
                    selfSay('I need a Griffinclaw flower sample, water from the hydra cave, 100 demon dusts, a blessed wooden stake and Ceiron\'s wolf tooth chain, to give you the second druid addon. Come back when you have them.')
                    talk_state = 0
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 14 then
            talk_state = 0
            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
                addon = getPlayerStorageValue(cid,70002)
                if addon == -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(addon_give)
                        doPlayerAddAddon(cid, 144, 2)
                        doPlayerAddAddon(cid, 148, 2)
                        setPlayerStorageValue(cid,70002,1)
                    end
                else
                    selfSay(addon_have_already)
                end
            else
                selfSay(addon_have_not_items)
            end
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'first nobleman addon') then
            if isPremium(cid) then
                if player_money >= 150000 then
                    selfSay('Did you bring me 150000 gold coins?')
                    talk_state = 15
                else
                    selfSay('I need 150000 gold coins, to give you the first nobleman addon. Come back when you have them.')
                    talk_state = 0
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 15 then
            talk_state = 0
            if player_money >= 150000 then
                addon = getPlayerStorageValue(cid,80001)
                if addon == -1 then
                    if pay(cid,150000) then
                        selfSay(addon_give)
                        doPlayerAddAddon(cid, 132, 1)
                        doPlayerAddAddon(cid, 140, 1)
                        setPlayerStorageValue(cid,80001,1)
                    end
                else
                    selfSay(addon_have_already)
                end
            else
                selfSay(addon_have_not_items)
            end
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'second nobleman addon') then
            if isPremium(cid) then
                if player_money >= 150000 then
                    selfSay('Did you bring me 150000 gold coins?')
                    talk_state = 16
                else
                    selfSay('I need 150000 gold coins, to give you the second nobleman addon. Come back when you have them.')
                    talk_state = 0
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 16 then
            talk_state = 0
            if player_money >= 150000 then
                addon = getPlayerStorageValue(cid,80002)
                if addon == -1 then
                    if pay(cid,150000) then
                        selfSay(addon_give)
                        doPlayerAddAddon(cid, 132, 2)
                        doPlayerAddAddon(cid, 140, 2)
                        setPlayerStorageValue(cid,80002,1)
                    end
                else
                    selfSay(addon_have_already)
                end
            else
                selfSay(addon_have_not_items)
            end
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'first oriental addon') then
            if isPremium(cid) then
                if getPlayerItemCount(cid,5945) >= 1 then
                    selfSay('Did you bring me the mermaid comb?')
                    talk_state = 17
                else
                    selfSay('I need a mermaid comb, to give you the first oriental addon. Come back when you have it.')
                    talk_state = 0
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 17 then
            talk_state = 0
            if getPlayerItemCount(cid,5945) >= 1 then
                addon = getPlayerStorageValue(cid,90001)
                if addon == -1 then
                    if doPlayerTakeItem(cid,5945,1) == 0 then
                        selfSay(addon_give)
                        doPlayerAddAddon(cid, 146, 1)
                        doPlayerAddAddon(cid, 150, 1)
                        setPlayerStorageValue(cid,90001,1)
                    end
                else
                    selfSay(addon_have_already)
                end
            else
                selfSay(addon_have_not_items)
            end
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'second oriental addon') then
            if isPremium(cid) then
                if getPlayerItemCount(cid,5883) >= 100 and getPlayerItemCount(cid,5895) >= 100 and getPlayerItemCount(cid,5891) >= 2 and getPlayerItemCount(cid,5912) >= 100 then
                    selfSay('Did you bring me 100 ape furs, 100 fish fins, 2 enchanted chicken wings and 100 blue pieces of cloth?')
                    talk_state = 18
                else
                    selfSay('I need 100 ape furs, 100 fish fins, 2 enchanted chicken wings and 100 blue pieces of cloth, to give you the second oriental addon. Come back when you have them.')
                    talk_state = 0
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 18 then
            talk_state = 0
            if getPlayerItemCount(cid,5883) >= 100 and getPlayerItemCount(cid,5895) >= 100 and getPlayerItemCount(cid,5891) >= 2 and getPlayerItemCount(cid,5912) >= 100 then
                addon = getPlayerStorageValue(cid,90002)
                if addon == -1 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(addon_give)
                        doPlayerAddAddon(cid, 146, 2)
                        doPlayerAddAddon(cid, 150, 2)
                        setPlayerStorageValue(cid,90002,1)
                    end
                else
                    selfSay(addon_have_already)
                end
            else
                selfSay(addon_have_not_items)
            end
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'first warrior addon') then
            if isPremium(cid) then
                if getPlayerItemCount(cid,5925) >= 100 and getPlayerItemCount(cid,5899) >= 100 and getPlayerItemCount(cid,5884) >= 1 and getPlayerItemCount(cid,5919) >= 1 then
                    selfSay('Did you bring me 100 hardened bones, 100 turtle shells, fighting spirit and a dragon claw?')
                    talk_state = 19
                else
                    selfSay('I need 100 hardened bones, 100 turtle shells, fighting spirit and a dragon claw, to give you the first warrior addon. Come back when you have it.')
                    talk_state = 0
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 19 then
            talk_state = 0
            if getPlayerItemCount(cid,5925) >= 100 and getPlayerItemCount(cid,5899) >= 100 and getPlayerItemCount(cid,5884) >= 1 and getPlayerItemCount(cid,5919) >= 1 then
                addon = getPlayerStorageValue(cid,100001)
                if addon == -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(addon_give)
                        doPlayerAddAddon(cid, 134, 1)
                        doPlayerAddAddon(cid, 142, 1)
                        setPlayerStorageValue(cid,100001,1)
                    end
                else
                    selfSay(addon_have_already)
                end
            else
                selfSay(addon_have_not_items)
            end
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'second warrior addon') then
            if isPremium(cid) then
                if getPlayerItemCount(cid,5887) >= 1 and getPlayerItemCount(cid,5880) >= 100 then
                    selfSay('Did you bring me 100 iron ores and royal steel?')
                    talk_state = 20
                else
                    selfSay('I need 100 iron ores and royal steel, to give you the second warrior addon. Come back when you have them.')
                    talk_state = 0
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 20 then
            talk_state = 0
            if getPlayerItemCount(cid,5887) >= 1 and getPlayerItemCount(cid,5880) >= 100 then
                addon = getPlayerStorageValue(cid,100002)
                if addon == -1 then
                    if doPlayerTakeItem(cid,5887,1) == 0 and doPlayerTakeItem(cid,5880,100) == 0 then
                        selfSay(addon_give)
                        doPlayerAddAddon(cid, 134, 2)
                        doPlayerAddAddon(cid, 142, 2)
                        setPlayerStorageValue(cid,100002,1)
                    end
                else
                    selfSay(addon_have_already)
                end
            else
                selfSay(addon_have_not_items)
            end
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'first wizard addon') then
            if isPremium(cid) then
                if getPlayerItemCount(cid,2488) >= 1 and getPlayerItemCount(cid,2123) >= 1 and getPlayerItemCount(cid,2492) >= 1 and getPlayerItemCount(cid,2536) >= 1 then
                    selfSay('Did you bring me a medusa shield, a dragon scale mail, a ring of the sky and crown legs?')
                    talk_state = 21
                else
                    selfSay('I need a medusa shield, a dragon scale mail, a ring od the sky and crown legs, to give you the first wizard addon. Come back when you have it.')
                    talk_state = 0
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 21 then
            talk_state = 0
            if getPlayerItemCount(cid,2488) >= 1 and getPlayerItemCount(cid,2123) >= 1 and getPlayerItemCount(cid,2492) >= 1 and getPlayerItemCount(cid,2536) >= 1 then
                addon = getPlayerStorageValue(cid,110001)
                if addon == -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(addon_give)
                        doPlayerAddAddon(cid, 145, 2)
                        doPlayerAddAddon(cid, 149, 2)
                        setPlayerStorageValue(cid,110001,1)
                    end
                else
                    selfSay(addon_have_already)
                end
            else
                selfSay(addon_have_not_items)
            end
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'second wizard addon') then
            if isPremium(cid) then
                if getPlayerItemCount(cid,5922) >= 50 and getPlayerStorageValue(cid,110001) then
                    selfSay('Did you bring me 50 holy orchids?')
                    talk_state = 22
                else
                    selfSay('I need 50 holy orchids and you must have a skull mask or a snake tiara, to give you the second wizard addon. Come back when you have them.')
                    talk_state = 0
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 22 then
            talk_state = 0
            if getPlayerItemCount(cid,5922) >= 50 then
                addon = getPlayerStorageValue(cid,110002)
                if addon == -1 then
                    if doPlayerTakeItem(cid,5922,50) == 0 then
                        selfSay(addon_give)
                        doPlayerAddAddon(cid, 145, 1)
                        doPlayerAddAddon(cid, 149, 1)
                        setPlayerStorageValue(cid,110002,1)
                    end
                else
                    selfSay(addon_have_already)
                end
            else
                selfSay(addon_have_not_items)
            end
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'first assassin addon') then
            if isPremium(cid) 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
                    selfSay('Did you bring me 30 beholder eyes, 10 red dragon scales, 30 lizard scales, 20 fish fins, 20 vampire dusts, 10 demon dusts and Warrior\'s sweat?')
                    talk_state = 23
                else
                    selfSay('I need 30 beholder eyes, 10 red dragon scales, 30 lizard scales, 20 fish fins, 20 vampire dusts, 10 demon dusts and Warrior\'s sweat, to give you the first assassin addon. Come back when you have it.')
                    talk_state = 0
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 23 then
            talk_state = 0
            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
                addon = getPlayerStorageValue(cid,120001)
                if addon == -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(addon_give)
                        doPlayerAddAddon(cid, 152, 1)
                        doPlayerAddAddon(cid, 156, 1)
                        setPlayerStorageValue(cid,120001,1)
                    end
                else
                    selfSay(addon_have_already)
                end
            else
                selfSay(addon_have_not_items)
            end
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'second assassin addon') then
            if isPremium(cid) 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
                    selfSay('Did you bring 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?')
                    talk_state = 24
                else
                    selfSay('I 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, to give you the second assassin addon. Come back when you have them.')
                    talk_state = 0
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 24 then
            talk_state = 0
            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
                addon = getPlayerStorageValue(cid,120002)
                if addon == -1 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(addon_give)
                        doPlayerAddAddon(cid, 152, 2)
                        doPlayerAddAddon(cid, 156, 2)
                        setPlayerStorageValue(cid,120002,1)
                    end
                else
                    selfSay(addon_have_already)
                end
            else
                selfSay(addon_have_not_items)
            end
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'first beggar addon') then
            if isPremium(cid) then
                if getPlayerItemCount(cid,5883) >= 100 and player_money >= 20000 then
                    selfSay('Did you bring me 100 ape furs and 20000 gold coins?')
                    talk_state = 25
                else
                    selfSay('I need 100 ape furs and 20000 gold coins, to give you the first beggar addon. Come back when you have it.')
                    talk_state = 0
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 25 then
            talk_state = 0
            if getPlayerItemCount(cid,5883) >= 100 and player_money >= 20000 then
                addon = getPlayerStorageValue(cid,130001)
                if addon == -1 then
                    if doPlayerTakeItem(cid,5883,100) == 0 and pay(cid,20000) then
                        selfSay(addon_give)
                        doPlayerAddAddon(cid, 153, 1)
                        doPlayerAddAddon(cid, 157, 1)
                        setPlayerStorageValue(cid,130001,1)
                    end
                else
                    selfSay(addon_have_already)
                end
            else
                selfSay(addon_have_not_items)
            end
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'second beggar addon') then
            if isPremium(cid) then
                if getPlayerItemCount(cid,6107) >= 1 then
                    selfSay('Did you bring me Simon\'s favourite staff?')
                    talk_state = 26
                else
                    selfSay('I need Simon\'s favourite staff, to give you the second beggar addon. Come back when you have them.')
                    talk_state = 0
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 26 then
            talk_state = 0
            if getPlayerItemCount(cid,6107) >= 1 then
                addon = getPlayerStorageValue(cid,130002)
                if addon == -1 then
                    if doPlayerTakeItem(cid,6107,1) == 0 then
                        selfSay(addon_give)
                        doPlayerAddAddon(cid, 153, 2)
                        doPlayerAddAddon(cid, 157, 2)
                        setPlayerStorageValue(cid,130002,1)
                    end
                else
                    selfSay(addon_have_already)
                end
            else
                selfSay(addon_have_not_items)
            end
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'first pirate addon') then
            if isPremium(cid) then
                if getPlayerItemCount(cid,6126) >= 100 and getPlayerItemCount(cid,6097) >= 100 and getPlayerItemCount(cid,6098) >= 100 then
                    selfSay('Did you bring me 100 eye patches, 100 peg legs and 100 hooks?')
                    talk_state = 27
                else
                    selfSay('I need 100 eye patches, 100 peg legs and 100 hooks, to give you the first pirate addon. Come back when you have it.')
                    talk_state = 0
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 27 then
            talk_state = 0
            if getPlayerItemCount(cid,6126) >= 100 and getPlayerItemCount(cid,6097) >= 100 and getPlayerItemCount(cid,6098) >= 100 then
                addon = getPlayerStorageValue(cid,140001)
                if addon == -1 then
                    if doPlayerTakeItem(cid,6126,100) == 0 and doPlayerTakeItem(cid,6097,100) == 0 and doPlayerTakeItem(cid,6098,100) == 0 then
                        selfSay(addon_give)
                        doPlayerAddAddon(cid, 151, 1)
                        doPlayerAddAddon(cid, 155, 1)
                        setPlayerStorageValue(cid,140001,1)
                    end
                else
                    selfSay(addon_have_already)
                end
            else
                selfSay(addon_have_not_items)
            end
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'second pirate addon') then
            if isPremium(cid) then
                if getPlayerItemCount(cid,6099) >= 1 and getPlayerItemCount(cid,6100) >= 1 and getPlayerItemCount(cid,6101) >= 1 and getPlayerItemCount(cid,6102) >= 1 then
                    selfSay('Did you bring me Ron the Ripper\'s sabre, Deadeye Devious\' eye patch, Lethal Lissy\'s shirt, Brutus Bloodbeard\'s hat?')
                    talk_state = 28
                else
                    selfSay('I need Ron the Ripper\'s sabre, Deadeye Devious\' eye patch, Lethal Lissy\'s shirt, Brutus Bloodbeard\'s hat, to give you the second pirate addon. Come back when you have them.')
                    talk_state = 0
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 28 then
            talk_state = 0
            if getPlayerItemCount(cid,6099) >= 1 and getPlayerItemCount(cid,6100) >= 1 and getPlayerItemCount(cid,6101) >= 1 and getPlayerItemCount(cid,6102) >= 1 then
                addon = getPlayerStorageValue(cid,140002)
                if addon == -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(addon_give)
                        doPlayerAddAddon(cid, 151, 2)
                        doPlayerAddAddon(cid, 155, 2)
                        setPlayerStorageValue(cid,140002,1)
                    end
                else
                    selfSay(addon_have_already)
                end
            else
                selfSay(addon_have_not_items)
            end
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'first shaman addon') then
            if isPremium(cid) then
                if getPlayerItemCount(cid,3955) >= 5 and getPlayerItemCount(cid,5015) >= 1 then
                    selfSay('Did you bring me 5 dworc vodoo dolls and a mandrake?')
                    talk_state = 29
                else
                    selfSay('I need 5 dworc vodoo dolls and a mandrake, to give you the first shaman addon. Come back when you have it.')
                    talk_state = 0
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 29 then
            talk_state = 0
            if getPlayerItemCount(cid,3955) >= 5 and getPlayerItemCount(cid,5015) >= 1 then
                addon = getPlayerStorageValue(cid,150001)
                if addon == -1 then
                    if doPlayerTakeItem(cid,3955,5) == 0 and doPlayerTakeItem(cid,5015,1) == 0 then
                        selfSay(addon_give)
                        doPlayerAddAddon(cid, 154, 1)
                        doPlayerAddAddon(cid, 158, 1)
                        setPlayerStorageValue(cid,150001,1)
                    end
                else
                    selfSay(addon_have_already)
                end
            else
                selfSay(addon_have_not_items)
            end
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'second shaman addon') then
            if isPremium(cid) then
                if getPlayerItemCount(cid,3966) >= 5 and getPlayerItemCount(cid,3967) >= 5 then
                    selfSay('Did you bring me 5 banana staffs and 5 tribal masks?')
                    talk_state = 30
                else
                    selfSay('I need 5 banana staffs and 5 tribal masks, to give you the second shaman addon. Come back when you have them.')
                    talk_state = 0
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 30 then
            talk_state = 0
            if getPlayerItemCount(cid,3966) >= 5 and getPlayerItemCount(cid,3967) >= 5 then
                addon = getPlayerStorageValue(cid,150002)
                if addon == -1 then
                    if doPlayerTakeItem(cid,3966,5) == 0 and doPlayerTakeItem(cid,3967,5) == 0 then
                        selfSay(addon_give)
                        doPlayerAddAddon(cid, 154, 2)
                        doPlayerAddAddon(cid, 158, 2)
                        setPlayerStorageValue(cid,150002,1)
                    end
                else
                    selfSay(addon_have_already)
                end
            else
                selfSay(addon_have_not_items)
            end
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'first norseman addon') then
            if isPremium(cid) then
                if getPlayerItemCount(cid,7290) >= 5 then
                    selfSay('Did you bring me 5 Shards?')
                    talk_state = 31
                else
                    selfSay('I need 5 Shards, to give you the first norseman addon. Come back when you have them.')
                    talk_state = 0
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 31 then
            talk_state = 0
            if getPlayerItemCount(cid,7290) >= 5 then
                addon = getPlayerStorageValue(cid,160001)
                if addon == -1 then
                    if doPlayerTakeItem(cid,7290,5) == 0 then
                        selfSay(addon_give)
                        doPlayerAddAddon(cid, 252, 1)
                        doPlayerAddAddon(cid, 251, 1)
                        setPlayerStorageValue(cid,160001,1)
                    end
                else
                    selfSay(addon_have_already)
                end
            else
                selfSay(addon_have_not_items)
            end
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'second norseman addon') then
            if isPremium(cid) then
                if getPlayerItemCount(cid,7290) >= 10 then
                    selfSay('Did you bring me 10 Shards?')
                    talk_state = 32
                else
                    selfSay('I need 10 Shards, to give you the second norseman addon. Come back when you have them.')
                    talk_state = 0
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 32 then
            talk_state = 0
            if getPlayerItemCount(cid,7290) >= 10 then
                addon = getPlayerStorageValue(cid,160002)
                if addon == -1 then
                    if doPlayerTakeItem(cid,7290,10) == 0 then
                        selfSay(addon_give)
                        doPlayerAddAddon(cid, 252, 2)
                        doPlayerAddAddon(cid, 251, 2)
                        setPlayerStorageValue(cid,160002,1)
                    end
                else
                    selfSay(addon_have_already)
                end
            else
                selfSay(addon_have_not_items)
            end
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'first brotherhood addon') then
            if isPremium(cid) then
                if getPlayerItemCount(cid,6500) >= 500 then
                    selfSay('Did you bring me 500 Demonic essences?')
                    talk_state = 33
                else
                    selfSay('I need 500 Demonic essences, to give you the first brotherhood addon. Come back when you have them.')
                    talk_state = 0
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 33 then
            talk_state = 0
            if getPlayerItemCount(cid,6500) >= 500 then
                addon = getPlayerStorageValue(cid,170001)
                if addon == -1 then
                    if doPlayerTakeItem(cid,6500,500) == 0 then
                        selfSay(addon_give)
                        doPlayerAddAddon(cid, 278, 1)
                        doPlayerAddAddon(cid, 279, 1)
                        setPlayerStorageValue(cid,170001,1)
                    end
                else
                    selfSay(addon_have_already)
                end
            else
                selfSay(addon_have_not_items)
            end
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'second brotherhood addon') then
            if isPremium(cid) then
                if getPlayerItemCount(cid,6500) >= 1500 then
                    selfSay('Did you bring me 1500 Demonic essences?')
                    talk_state = 34
                else
                    selfSay('I need 1500 Demonic essences, to give you the second Brotherhood addon. Come back when you have them.')
                    talk_state = 0
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 34 then
            talk_state = 0
            if getPlayerItemCount(cid,6500) >= 1500 then
                addon = getPlayerStorageValue(cid,170002)
                if addon == -1 then
                    if doPlayerTakeItem(cid,6500,1500) == 0 then
                        selfSay(addon_give)
                        doPlayerAddAddon(cid, 278, 2)
                        doPlayerAddAddon(cid, 279, 2)
                        setPlayerStorageValue(cid,170002,2)
                    end
                else
                    selfSay(addon_have_already)
                end
            else
                selfSay(addon_have_not_items)
            end
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'first nightmare addon') then
            if isPremium(cid) then
                if getPlayerItemCount(cid,6500) >= 500 then
                    selfSay('Did you bring me 500 Demonic essences?')
                    talk_state = 35
                else
                    selfSay('I need 500 Demonic essences, to give you the first nightmare addon. Come back when you have them.')
                    talk_state = 0
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 35 then
            talk_state = 0
            if getPlayerItemCount(cid,6500) >= 500 then
                addon = getPlayerStorageValue(cid,180001)
                if addon == -1 then
                    if doPlayerTakeItem(cid,6500,500) == 0 then
                        selfSay(addon_give)
                        doPlayerAddAddon(cid, 268, 1)
                        doPlayerAddAddon(cid, 269, 1)
                        setPlayerStorageValue(cid,180001,1)
                    end
                else
                    selfSay(addon_have_already)
                end
            else
                selfSay(addon_have_not_items)
            end
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'second nightmare addon') then
            if isPremium(cid) then
                if getPlayerItemCount(cid,5600) >= 1500 then
                    selfSay('Did you bring me 1500 Demonic essences?')
                    talk_state = 36
                else
                    selfSay('I need 1500 Demonic essences, to give you the second nightmare addon. Come back when you have them.')
                    talk_state = 0
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 36 then
            talk_state = 0
            if getPlayerItemCount(cid,6500) >= 1500 then
                addon = getPlayerStorageValue(cid,180002)
                if addon == -1 then
                    if doPlayerTakeItem(cid,6500,1500) == 0 then
                        selfSay(addon_give)
                        doPlayerAddAddon(cid, 268, 2)
                        doPlayerAddAddon(cid, 269, 2)
                        setPlayerStorageValue(cid,180002,2)
                    end
                else
                    selfSay(addon_have_already)
                end
            else
                selfSay(addon_have_not_items)
            end
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'first jester addon') then
            if isPremium(cid) then
                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
                    selfSay('Did you bring me 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 leather?')
                    talk_state = 37
                else
                    selfSay('I 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, to give you the first Jester addon. Come back when you have them.')
                    talk_state = 0
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 37 then
            talk_state = 0
            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
                addon = getPlayerStorageValue(cid,190001)
                if addon == -1 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(addon_give)
                        doPlayerAddAddon(cid, 273, 1)
                        doPlayerAddAddon(cid, 270, 1)
                        setPlayerStorageValue(cid,190001,1)
                    end
                else
                    selfSay(addon_have_already)
                end
            else
                selfSay(addon_have_not_items)
            end
------------------------------------------------ addon ------------------------------------------------
        elseif msgcontains(msg, 'second jester addon') then
            if isPremium(cid) then
                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
                    selfSay('Did you bring me 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?')
                    talk_state = 38
                else
                    selfSay('I 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 leathers, to give you the second Jester addon. Come back when you have them.')
                    talk_state = 0
                end
            else
                selfSay(addon_need_premium)
                talk_state = 0
            end
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 38 then
            talk_state = 0
            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
                addon = getPlayerStorageValue(cid,190002)
                if addon == -1 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(addon_give)
                        doPlayerAddAddon(cid, 273, 2)
                        doPlayerAddAddon(cid, 270, 2)
                        setPlayerStorageValue(cid,190002,2)
                    end
                else
                    selfSay(addon_have_already)
                end
            else
                selfSay(addon_have_not_items)
            end
------------------------------------------------ confirm no ------------------------------------------------
        elseif msgcontains(msg, 'no') and (talk_state >= 1 and talk_state <= 38) then
            selfSay('Ok thanks.')
            talk_state = 0
        end
    -- Place all your code in here. Remember that hi, bye and all that stuff is already handled by the npcsystem, so you do not have to take care of that yourself.
    return true
end
 
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())

Make new XML file and rename it like you want and put the npc into /NPC/

Code:
<?xml version="1.0"?>
<npc name="[COLOR=red]npcnamehere[/COLOR]" script="data/npc/scripts/addon.lua" access="5" lookdir="2" autowalk="25">
    <mana now="800" max="800"/>
    <health now="200" max="200"/>
    <look type="134" head="78" body="88" legs="0" feet="88" addons="3"/>
    <parameters>
    <parameter key="message_greet" value="Greetings |PLAYERNAME|. [COLOR=red]Will you help me? If you do, I'll reward you with nice addons! Just say 'addons' or 'help' if you don't know what to do.[/COLOR]" />
    </parameters>
</npc>

red = changeable

Only the Jester isn't the real 1 becouse it's more like a quest and don't trading items but i can do the full jester quest if someone wants it :)
 
Last edited by a moderator:
You are not obtainable or better saying i hope so... :p
 
Can you make a NPC that give you beggar,assassin,shaman,and all addons just saying first addon and second addon? because i think any evolutions have beholder's hunt zone and where can i get Lethal Lissy's shirt!!?? and ape furs??? IF ANYBODY WANT THIS NPC HAVE TO EDIT THE MAP....SO...WHY DONT U MAKE IT EASIER AND MAKE AN NPC THAT SELL U ALL TOGHETER..

AND...NICE WORK!

I ONLY WANT AN NPC THAT U DONT HAVE TO PICK ITEMS. (SORRY MY BAD ENGLISH)
 
If you download a new 8.1 server there is always varkhal with it and he is selling all addons just when you say "first addon" "second addon"
But like my Thread is saying "Real addons" i can give you a npc that sell you all addon items but where is the fun to collect then?!

the NPC who sell all addon items:

make a new file into your data/NPC folder called npcnamehere.xml
and put that things into the file:

Code:
<npc name="[COLOR="Red"]npcnamehere[/COLOR]" script="data/npc/scripts/seller.lua" autowalk="0" floorchange="0" access="5" level="1" maglevel="1">
	<health now="150" max="150"/>
	<look type="134" head="114" body="113" legs="113" feet="113" addons="3" corpse="2212"/>
	<parameters>
		<parameter key="module_shop" value="1" />
		<parameter key="message_greet" value="Hello |PLAYERNAME|. I sell addon items :P" />
		<parameter key="shop_buyable" value="yellow piece of cloth,5914,3000; simons favourite staff,6107,3000; sniper gloves,5875,3000;lizard leather,5876,300;green dragon leather,5877,300;minotaur leather,5878,150;giant spider silk,5879,300;iron ore,5880,300;lizard scale,5881,300;red dragon scale,5882,300;ape fur,5883,300;fighting spirit,5884,3000;warrior's sweat,5885,3000;spool of yarn,5886,3000;royal steel,5887,4000;hell steel,5888,2000;draconian steel,5889,1000;chicken feather,5890,100;enchanted chicken wing,5891,5000;crude iron,5892,2000;behemoth fang,5893,500;bat wing,5894,200;fish fin,5895,300;bear paw,5896,150;wolf paw,5897,100;beholder eye,5898,300;turtle shell,5899,300;honeycomb,5902,200;ferumbras hat,5903,500000;magic sulphur,5904,700;vampire dust,5905,300;demon dust,5906,1000;white piece of cloth,5909,300;green piece of cloth,5910,300;red piece of cloth,5911,300;blue piece of cloth,5912,300;brown piece of cloth,5913,300;yelow piece of cloth,5914,300;dragon claw,5919,10000;green dragon scale,5920,300;behemoth claw,5930,500;soul stone,5809,5000;mandrake,5015,2000;demon horn,5954,1000;red dragon leather,5948,300;engraved crossbow,5947,4000;brutus bloodbeard's hat,6099,3000;lethal lissy's shirt,6100,3000;ankh,2193,200;holy orchid,5922,500;mermaid comb,5945,10000;pirate voodoo doll,5810,1000;dworc voodoo doll,3955,1000;banana staff,3966,5000;tribal mask,3967,1500;hardened bone,5925,400;nose ring,5804,3000;damaged steel helmet,5924,6000;peg leg,6126,300;hook,6097,300;eye patch,6098,300;ron the ripper's sabre,6101,4000;deadeye devious eye,6102,4000;blooming griffinclaw,5937,5000;water from the hydra cave,5938,5000;blessed wooden stake,5942,2000;ceiron's wolf tooth chain,5940,5000" />
	</parameters>
</npc>

red = changeable

and make a file called "seller.lua" and put it into data/npc/scripts

Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

-- OTServ event handling functions start
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
-- OTServ event handling functions end

npcHandler:addModule(FocusModule:new())

ok here you are i hope your happy about it ;)
 
Last edited:
Can you make a NPC that give you beggar,assassin,shaman,and all addons just saying first addon and second addon? because i think any evolutions have beholder's hunt zone and where can i get Lethal Lissy's shirt!!?? and ape furs??? IF ANYBODY WANT THIS NPC HAVE TO EDIT THE MAP....SO...WHY DONT U MAKE IT EASIER AND MAKE AN NPC THAT SELL U ALL TOGHETER..

AND...NICE WORK!

I ONLY WANT AN NPC THAT U DONT HAVE TO PICK ITEMS. (SORRY MY BAD ENGLISH)
u think all "Evolutions Servers" Have "Evolutions Map"?
May one have Real tibia server with Evolution ?!? oO
 
Very nice. I was just getting ready to make this for my server. I was going to use Ricky Mesny's script, and edit it like you did. You did it 1st so BLAM! Thx anyway.
 
If you download a new 8.1 server there is always varkhal with it and he is selling all addons just when you say "first addon" "second addon"
But like my Thread is saying "Real addons" i can give you a npc that sell you all addon items but where is the fun to collect then?!

the NPC who sell all addon items:

make a new file into your data/NPC folder called npcnamehere.xml
and put that things into the file:

Code:
<npc name="[COLOR="Red"]npcnamehere[/COLOR]" script="data/npc/scripts/seller.lua" autowalk="0" floorchange="0" access="5" level="1" maglevel="1">
	<health now="150" max="150"/>
	<look type="134" head="114" body="113" legs="113" feet="113" addons="3" corpse="2212"/>
	<parameters>
		<parameter key="module_shop" value="1" />
		<parameter key="message_greet" value="Hello |PLAYERNAME|. I sell addon items :P" />
		<parameter key="shop_buyable" value="yellow piece of cloth,5914,3000; simons favourite staff,6107,3000; sniper gloves,5875,3000;lizard leather,5876,300;green dragon leather,5877,300;minotaur leather,5878,150;giant spider silk,5879,300;iron ore,5880,300;lizard scale,5881,300;red dragon scale,5882,300;ape fur,5883,300;fighting spirit,5884,3000;warrior's sweat,5885,3000;spool of yarn,5886,3000;royal steel,5887,4000;hell steel,5888,2000;draconian steel,5889,1000;chicken feather,5890,100;enchanted chicken wing,5891,5000;crude iron,5892,2000;behemoth fang,5893,500;bat wing,5894,200;fish fin,5895,300;bear paw,5896,150;wolf paw,5897,100;beholder eye,5898,300;turtle shell,5899,300;honeycomb,5902,200;ferumbras hat,5903,500000;magic sulphur,5904,700;vampire dust,5905,300;demon dust,5906,1000;white piece of cloth,5909,300;green piece of cloth,5910,300;red piece of cloth,5911,300;blue piece of cloth,5912,300;brown piece of cloth,5913,300;yelow piece of cloth,5914,300;dragon claw,5919,10000;green dragon scale,5920,300;behemoth claw,5930,500;soul stone,5809,5000;mandrake,5015,2000;demon horn,5954,1000;red dragon leather,5948,300;engraved crossbow,5947,4000;brutus bloodbeard's hat,6099,3000;lethal lissy's shirt,6100,3000;ankh,2193,200;holy orchid,5922,500;mermaid comb,5945,10000;pirate voodoo doll,5810,1000;dworc voodoo doll,3955,1000;banana staff,3966,5000;tribal mask,3967,1500;hardened bone,5925,400;nose ring,5804,3000;damaged steel helmet,5924,6000;peg leg,6126,300;hook,6097,300;eye patch,6098,300;ron the ripper's sabre,6101,4000;deadeye devious eye,6102,4000;blooming griffinclaw,5937,5000;water from the hydra cave,5938,5000;blessed wooden stake,5942,2000;ceiron's wolf tooth chain,5940,5000" />
	</parameters>
</npc>

red = changeable

and make a file called "seller.lua" and put it into data/npc/scripts

Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

-- OTServ event handling functions start
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
-- OTServ event handling functions end

npcHandler:addModule(FocusModule:new())

ok here you are i hope your happy about it ;)


Yeah...the npc worked to me but the addons didn't added to my "select outfit" I bought beggar outfit but the outfit didn't add to my "select outfit" (i have a bad english, i hope u understand me)

PLX HELP!!!!!
 
That NPC what you quoted is just to sell you the addon items he wont give you the addons!

yours Evil Hero,
 
Hello,
I just edited the Basic Script (credits to: Mokerhamer,Xidaozu,Jiddo)
that you can get Norseman,Jester,Brotherhood,Nightmare

ok here you go....

make a new file called "Addon.lua" and place it into /NPC/scripts

Code:
--------------------------------------------------------------------------------------------
------------------------------------ Advanced Addon NPC ------------------------------------
-------------------------------- Script made by teh_pwnage ---------------------------------
--------------- Special thanks to: mokerhamer, Xidaozu and Jiddo, deaths'life --------------
------------------------------- Thanks also to everyone else -------------------------------
------------------------------ NPC based on Evolutions V0.7.7 ------------------------------
--------------------------------------------------------------------------------------------

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

-- OTServ event handling functions start
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
-- OTServ event handling functions end

function creatureSayCallback(cid, type, msg)
	-- Place all your code in here. Remember that hi, bye and all that stuff is already handled by the npcsystem, so you do not have to take care of that yourself.
	if(npcHandler.focus ~= cid) then
		return false
	end

		addon_need_premium = 'Sorry, you need a premium account to get addons.'
		addon_have_already = 'Sorry, you already have this addon.'
		addon_have_not_items = 'Sorry, you don\'t have these items.'
		addon_give = 'Here you are.'
		player_gold = getPlayerItemCount(cid,2148)
		player_plat = getPlayerItemCount(cid,2152)*100
		player_crys = getPlayerItemCount(cid,2160)*10000
		player_money = player_gold + player_plat + player_crys
		
		if msgcontains(msg, 'addons') then
			selfSay('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.')
		elseif msgcontains(msg, 'help') then
			selfSay('To buy the first addon say \'first NAME addon\', for the second addon say \'second NAME addon\'.')
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first citizen addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,5878) >= 100 then
					selfSay('Did you bring me 100 minotaur leathers?')
					talk_state = 1
				else
					selfSay('I need 100 minotaur leather, to give you the first citizen addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 1 then
			talk_state = 0
			if getPlayerItemCount(cid,5878) >= 100 then
				addon = getPlayerStorageValue(cid,10001)
				if addon == -1 then
					if doPlayerTakeItem(cid,5878,100) == 0 then
						selfSay(addon_give)
						doPlayerAddAddon(cid, 128, 1)
						doPlayerAddAddon(cid, 136, 1)
						setPlayerStorageValue(cid,10001,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second citizen addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,5890) >= 100 and getPlayerItemCount(cid,5902) >= 50 and getPlayerItemCount(cid,2480) >= 1 then
					selfSay('Did you bring me 100 chicken feathers, 50 honeycombs and the legion helmet?')
					talk_state = 2
				else
					selfSay('I need 100 chicken feathers, 50 honeycombs and a legion helmet, to give you the second citizen addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 2 then
			talk_state = 0
			if getPlayerItemCount(cid,5890) >= 100 and getPlayerItemCount(cid,5902) >= 50 and getPlayerItemCount(cid,2480) >= 1 then
				addon = getPlayerStorageValue(cid,10002)
				if addon == -1 then
					if doPlayerTakeItem(cid,5890,100) == 0 and doPlayerTakeItem(cid,5902,50) == 0 and doPlayerTakeItem(cid,2480,1) == 0 then
						selfSay(addon_give)
						doPlayerAddAddon(cid, 128, 2)
						doPlayerAddAddon(cid, 136, 2)
						setPlayerStorageValue(cid,10002,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first hunter addon') then
			if isPremium(cid) 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
					selfSay('Did you bring me the engraved crossbow, 100 lizard leathers, 100 red dragon leather, 5 enchanted chicken wings, royal steel, hell steel and draconian steel?')
					talk_state = 3
				else
					selfSay('I need a engraved crossbow, 100 lizard leathers, 100 red dragon leather, 5 enchanted chicken wings, royal steel, hell steel and draconian steel, to give you the first hunter addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 3 then
			talk_state = 0
			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
				addon = getPlayerStorageValue(cid,20002)
				if addon == -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(addon_give)
						doPlayerAddAddon(cid, 129, 1)
						doPlayerAddAddon(cid, 137, 1)
						setPlayerStorageValue(cid,20002,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second hunter addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,5875) >= 1 then
					selfSay('Did you bring me the sniper gloves?')
					talk_state = 4
				else
					selfSay('I need sniper gloves, to give you the second hunter addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 4 then
			talk_state = 0
			if getPlayerItemCount(cid,5875) >= 1 then
				addon = getPlayerStorageValue(cid,20001)
				if addon == -1 then
					if doPlayerTakeItem(cid,5875,1) == 0 then
						selfSay(addon_give)
						doPlayerAddAddon(cid, 129, 2)
						doPlayerAddAddon(cid, 137, 2)
						setPlayerStorageValue(cid,20001,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first knight addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,5892) >= 1 and getPlayerItemCount(cid,5880) >= 100 then
					selfSay('Did you bring me the chunk of crude iron and 100 iron ores?')
					talk_state = 5
				else
					selfSay('I need a chunk of crude iron and 100 iron ores, to give you the first knight addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 5 then
			talk_state = 0
			if getPlayerItemCount(cid,5892) >= 1 and getPlayerItemCount(cid,5880) >= 100 then
				addon = getPlayerStorageValue(cid,30001)
				if addon == -1 then
					if doPlayerTakeItem(cid,5892,1) == 0 and doPlayerTakeItem(cid,5880,100) == 0 then
						selfSay(addon_give)
						doPlayerAddAddon(cid, 131, 1)
						doPlayerAddAddon(cid, 139, 1)
						setPlayerStorageValue(cid,30001,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second knight addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,5893) >= 100 and getPlayerItemCount(cid,5924) >= 1 and getPlayerItemCount(cid,5885) >= 1 and getPlayerItemCount(cid,5887) >= 1 then
					selfSay('Did you bring me 100 behemoth fangs, the damaged steel helmet, warrior\'s sweat, and royal steel?')
					talk_state = 6
				else
					selfSay('I need 100 behemoth fangs, a damaged steel helmet, warrior\'s sweat and royal steel, to give you the second knight addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 6 then
			talk_state = 0
			if getPlayerItemCount(cid,5893) >= 100 and getPlayerItemCount(cid,5924) >= 1 and getPlayerItemCount(cid,5885) >= 1 and getPlayerItemCount(cid,5887) >= 1 then
				addon = getPlayerStorageValue(cid,30002)
				if addon == -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(addon_give)
						doPlayerAddAddon(cid, 131, 2)
						doPlayerAddAddon(cid, 139, 2)
						setPlayerStorageValue(cid,30002,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first mage addon') then
			if isPremium(cid) then
				if getPlayerSex(cid) == 0 then
					if getPlayerItemCount(cid,5958) >= 1 then
						selfSay('Did you bring me a winning lotery ticket?')
						talk_state = 7
					else
						selfSay('I need a winning lotery ticket, to give you the first mage addon. Come back when you have it.')
						talk_state = 0
					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
						selfSay('Did you bring me all the wands and rods, 10 magic sulphors, 20 ankhs and a soul stone?')
						talk_state = 7
					else
						selfSay('I need all kind of wands and rods, 10 magic sulphurs, 20 ankhs and a soul stone, to give you the first mage addon. Come back when you have it.')
						talk_state = 0
					end
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 7 then
			talk_state = 0
			if getPlayerSex(cid) == 0 then
				if getPlayerItemCount(cid,5958) >= 1 then
					addon = getPlayerStorageValue(cid,40001)
					if addon == -1 then
						if doPlayerTakeItem(cid,5958,1) == 0 then
							selfSay(addon_give)
							doPlayerAddAddon(cid, 141, 1)
							setPlayerStorageValue(cid,40001,1)
						end
					else
						selfSay(addon_have_already)
					end
				else
					selfSay(addon_have_not_items)
				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
					addon = getPlayerStorageValue(cid,40001)
					if addon == -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(addon_give)
							doPlayerAddAddon(cid, 130, 1)
							setPlayerStorageValue(cid,40001,1)
						end
					else
						selfSay(addon_have_already)
					end
				else
					selfSay(addon_have_not_items)
				end
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second mage addon') then
			if isPremium(cid) 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
						selfSay('Did you bring 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?')
						talk_state = 8
					else
						selfSay('I 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, to give you the second mage addon. Come back when you have it.')
						talk_state = 0
					end
				elseif getPlayerSex(cid) == 1 then
					if getPlayerItemCount(cid,5903) >= 1 then
						selfSay('Did you bring me the Ferumbrass\' hat?')
						talk_state = 8
					else
						selfSay('I need the famous Ferumbrass\' hat, to give you the second mage addon. Come back when you have it.')
						talk_state = 0
					end
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 8 then
			talk_state = 0
			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
					addon = getPlayerStorageValue(cid,40002)
					if addon == -1 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(addon_give)
							doPlayerAddAddon(cid, 141, 2)
							setPlayerStorageValue(cid,40002,1)
						end
					else
						selfSay(addon_have_already)
					end
				else
					selfSay(addon_have_not_items)
				end
			elseif getPlayerSex(cid) == 1 then
				if getPlayerItemCount(cid,5903) >= 1 then
					addon = getPlayerStorageValue(cid,40002)
					if addon == -1 then
						if doPlayerTakeItem(cid,5903,1) == 0 then
							selfSay(addon_give)
							doPlayerAddAddon(cid, 130, 2)
							setPlayerStorageValue(cid,40002,1)
						end
					else
						selfSay(addon_have_already)
					end
				else
					selfSay(addon_have_not_items)
				end
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first summoner addon') then
			if isPremium(cid) then
				if getPlayerSex(cid) == 1 then
					if getPlayerItemCount(cid,5958) >= 1 then
						selfSay('Did you bring me a winning lotery ticket?')
						talk_state = 9
					else
						selfSay('I need a winning lotery ticket, to give you the first summoner addon. Come back when you have it.')
						talk_state = 0
					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 then
						selfSay('Did you bring me all the wands and rods and 10 magic sulphors?')
						talk_state = 9
					else
						selfSay('I need all kind of wands and rods and 10 magic sulphurs, to give you the first summoner addon. Come back when you have it.')
						talk_state = 0
					end
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 9 then
			talk_state = 0
			if getPlayerSex(cid) == 1 then
				if getPlayerItemCount(cid,5958) >= 1 then
					addon = getPlayerStorageValue(cid,50001)
					if addon == -1 then
						if doPlayerTakeItem(cid,5958,1) == 0 then
							selfSay(addon_give)
							doPlayerAddAddon(cid, 133, 1)
							setPlayerStorageValue(cid,50001,1)
						end
					else
						selfSay(addon_have_already)
					end
				else
					selfSay(addon_have_not_items)
				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 then
					addon = getPlayerStorageValue(cid,50001)
					if addon == -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 then
							selfSay(addon_give)
							doPlayerAddAddon(cid, 138, 1)
							setPlayerStorageValue(cid,50001,1)
						end
					else
						selfSay(addon_have_already)
					end
				else
					selfSay(addon_have_not_items)
				end
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second summoner addon') then
			if isPremium(cid) 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
						selfSay('Did you bring 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?')
						talk_state = 10
					else
						selfSay('I 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, to give you the second summoner addon. Come back when you have it.')
						talk_state = 0
					end
				elseif getPlayerSex(cid) == 0 then
					if getPlayerItemCount(cid,5903) >= 1 then
						selfSay('Did you bring me the Ferumbras\' hat?')
						talk_state = 10
					else
						selfSay('I need the famous Ferumbras\' hat, to give you the second summoner addon. Come back when you have it.')
						talk_state = 0
					end
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 10 then
			talk_state = 0
			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
					addon = getPlayerStorageValue(cid,50002)
					if addon == -1 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(addon_give)
							doPlayerAddAddon(cid, 133, 2)
							setPlayerStorageValue(cid,50002,1)
						end
					else
						selfSay(addon_have_already)
					end
				else
					selfSay(addon_have_not_items)
				end
			elseif getPlayerSex(cid) == 0 then
				if getPlayerItemCount(cid,5903) >= 1 then
					addon = getPlayerStorageValue(cid,50002)
					if addon == -1 then
						if doPlayerTakeItem(cid,5903,1) == 0 then
							selfSay(addon_give)
							doPlayerAddAddon(cid, 138, 2)
							setPlayerStorageValue(cid,50002,1)
						end
					else
						selfSay(addon_have_already)
					end
				else
					selfSay(addon_have_not_items)
				end
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first barbarian addon') then
			if isPremium(cid) 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
					selfSay('Did you bring me the fighting spirit, the warrior\'s sweat, 50 red pieces of cloth, 50 green pieces of cloth and 10 spider silk yarns?')
					talk_state = 11
				else
					selfSay('I need fighting spirit, warrior\'s sweat, 50 red pieces of cloth, 50 green pieces of cloth and 10 spider silk yarns, to give you the first barbarian addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 11 then
			talk_state = 0
			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
				addon = getPlayerStorageValue(cid,60001)
				if addon == -1 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(addon_give)
						doPlayerAddAddon(cid, 143, 2)
						doPlayerAddAddon(cid, 147, 2)
						setPlayerStorageValue(cid,60001,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second barbarian addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,5880) >= 100 and getPlayerItemCount(cid,5892) >= 1 and getPlayerItemCount(cid,5893) >= 50 and getPlayerItemCount(cid,5876) >= 50 then
					selfSay('Did you bring me 100 iron ore, 1 chunk of crude iron, 50 behemoth fangs and 50 lizard leathers?')
					talk_state = 12
				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.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 12 then
			talk_state = 0
			if getPlayerItemCount(cid,5880) >= 100 and getPlayerItemCount(cid,5892) >= 1 and getPlayerItemCount(cid,5893) >= 50 and getPlayerItemCount(cid,5876) >= 50 then
				addon = getPlayerStorageValue(cid,60002)
				if addon == -1 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(addon_give)
						doPlayerAddAddon(cid, 143, 1)
						doPlayerAddAddon(cid, 147, 1)
						setPlayerStorageValue(cid,60002,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first druid addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,5897) >= 50 and getPlayerItemCount(cid,5896) >= 50 then
					selfSay('Did you bring me 50 wolf paws and 50 bear paws?')
					talk_state = 13
				else
					selfSay('I need 50 wolf paws and 50 bear paws, to give you the first druid addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 13 then
			talk_state = 0
			if getPlayerItemCount(cid,5897) >= 50 and getPlayerItemCount(cid,5896) >= 50 then
				addon = getPlayerStorageValue(cid,70001)
				if addon == -1 then
					if doPlayerTakeItem(cid,5897,50) == 0 and doPlayerTakeItem(cid,5896,50) == 0 then
						selfSay(addon_give)
						doPlayerAddAddon(cid, 144, 1)
						doPlayerAddAddon(cid, 148, 1)
						setPlayerStorageValue(cid,70001,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second druid addon') then
			if isPremium(cid) 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
					selfSay('Did you bring me a Griffinclaw flower sample, water from the hydra cave, 100 demon dusts, a blessed wooden stake and Ceiron\'s wolf tooth chain?')
					talk_state = 14
				else
					selfSay('I need a Griffinclaw flower sample, water from the hydra cave, 100 demon dusts, a blessed wooden stake and Ceiron\'s wolf tooth chain, to give you the second druid addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 14 then
			talk_state = 0
			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
				addon = getPlayerStorageValue(cid,70002)
				if addon == -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(addon_give)
						doPlayerAddAddon(cid, 144, 2)
						doPlayerAddAddon(cid, 148, 2)
						setPlayerStorageValue(cid,70002,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first nobleman addon') then
			if isPremium(cid) then
				if player_money >= 150000 then
					selfSay('Did you bring me 150000 gold coins?')
					talk_state = 15
				else
					selfSay('I need 150000 gold coins, to give you the first nobleman addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 15 then
			talk_state = 0
			if player_money >= 150000 then
				addon = getPlayerStorageValue(cid,80001)
				if addon == -1 then
					if pay(cid,150000) then
						selfSay(addon_give)
						doPlayerAddAddon(cid, 132, 1)
						doPlayerAddAddon(cid, 140, 1)
						setPlayerStorageValue(cid,80001,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second nobleman addon') then
			if isPremium(cid) then
				if player_money >= 150000 then
					selfSay('Did you bring me 150000 gold coins?')
					talk_state = 16
				else
					selfSay('I need 150000 gold coins, to give you the second nobleman addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 16 then
			talk_state = 0
			if player_money >= 150000 then
				addon = getPlayerStorageValue(cid,80002)
				if addon == -1 then
					if pay(cid,150000) then
						selfSay(addon_give)
						doPlayerAddAddon(cid, 132, 2)
						doPlayerAddAddon(cid, 140, 2)
						setPlayerStorageValue(cid,80002,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first oriental addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,5945) >= 1 then
					selfSay('Did you bring me the mermaid comb?')
					talk_state = 17
				else
					selfSay('I need a mermaid comb, to give you the first oriental addon. Come back when you have it.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 17 then
			talk_state = 0
			if getPlayerItemCount(cid,5945) >= 1 then
				addon = getPlayerStorageValue(cid,90001)
				if addon == -1 then
					if doPlayerTakeItem(cid,5945,1) == 0 then
						selfSay(addon_give)
						doPlayerAddAddon(cid, 146, 1)
						doPlayerAddAddon(cid, 150, 1)
						setPlayerStorageValue(cid,90001,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second oriental addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,5883) >= 100 and getPlayerItemCount(cid,5895) >= 100 and getPlayerItemCount(cid,5891) >= 2 and getPlayerItemCount(cid,5912) >= 100 then
					selfSay('Did you bring me 100 ape furs, 100 fish fins, 2 enchanted chicken wings and 100 blue pieces of cloth?')
					talk_state = 18
				else
					selfSay('I need 100 ape furs, 100 fish fins, 2 enchanted chicken wings and 100 blue pieces of cloth, to give you the second oriental addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 18 then
			talk_state = 0
			if getPlayerItemCount(cid,5883) >= 100 and getPlayerItemCount(cid,5895) >= 100 and getPlayerItemCount(cid,5891) >= 2 and getPlayerItemCount(cid,5912) >= 100 then
				addon = getPlayerStorageValue(cid,90002)
				if addon == -1 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(addon_give)
						doPlayerAddAddon(cid, 146, 2)
						doPlayerAddAddon(cid, 150, 2)
						setPlayerStorageValue(cid,90002,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first warrior addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,5925) >= 100 and getPlayerItemCount(cid,5899) >= 100 and getPlayerItemCount(cid,5884) >= 1 and getPlayerItemCount(cid,5919) >= 1 then
					selfSay('Did you bring me 100 hardened bones, 100 turtle shells, fighting spirit and a dragon claw?')
					talk_state = 19
				else
					selfSay('I need 100 hardened bones, 100 turtle shells, fighting spirit and a dragon claw, to give you the first warrior addon. Come back when you have it.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 19 then
			talk_state = 0
			if getPlayerItemCount(cid,5925) >= 100 and getPlayerItemCount(cid,5899) >= 100 and getPlayerItemCount(cid,5884) >= 1 and getPlayerItemCount(cid,5919) >= 1 then
				addon = getPlayerStorageValue(cid,100001)
				if addon == -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(addon_give)
						doPlayerAddAddon(cid, 134, 1)
						doPlayerAddAddon(cid, 142, 1)
						setPlayerStorageValue(cid,100001,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second warrior addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,5887) >= 1 and getPlayerItemCount(cid,5880) >= 100 then
					selfSay('Did you bring me 100 iron ores and royal steel?')
					talk_state = 20
				else
					selfSay('I need 100 iron ores and royal steel, to give you the second warrior addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 20 then
			talk_state = 0
			if getPlayerItemCount(cid,5887) >= 1 and getPlayerItemCount(cid,5880) >= 100 then
				addon = getPlayerStorageValue(cid,100002)
				if addon == -1 then
					if doPlayerTakeItem(cid,5887,1) == 0 and doPlayerTakeItem(cid,5880,100) == 0 then
						selfSay(addon_give)
						doPlayerAddAddon(cid, 134, 2)
						doPlayerAddAddon(cid, 142, 2)
						setPlayerStorageValue(cid,100002,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first wizard addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,2488) >= 1 and getPlayerItemCount(cid,2123) >= 1 and getPlayerItemCount(cid,2492) >= 1 and getPlayerItemCount(cid,2536) >= 1 then
					selfSay('Did you bring me a medusa shield, a dragon scale mail, a ring of the sky and crown legs?')
					talk_state = 21
				else
					selfSay('I need a medusa shield, a dragon scale mail, a ring od the sky and crown legs, to give you the first wizard addon. Come back when you have it.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 21 then
			talk_state = 0
			if getPlayerItemCount(cid,2488) >= 1 and getPlayerItemCount(cid,2123) >= 1 and getPlayerItemCount(cid,2492) >= 1 and getPlayerItemCount(cid,2536) >= 1 then
				addon = getPlayerStorageValue(cid,110001)
				if addon == -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(addon_give)
						doPlayerAddAddon(cid, 145, 2)
						doPlayerAddAddon(cid, 149, 2)
						setPlayerStorageValue(cid,110001,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second wizard addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,5922) >= 50 and getPlayerStorageValue(cid,110001) then
					selfSay('Did you bring me 50 holy orchids?')
					talk_state = 22
				else
					selfSay('I need 50 holy orchids and you must have a skull mask or a snake tiara, to give you the second wizard addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 22 then
			talk_state = 0
			if getPlayerItemCount(cid,5922) >= 50 then
				addon = getPlayerStorageValue(cid,110002)
				if addon == -1 then
					if doPlayerTakeItem(cid,5922,50) == 0 then
						selfSay(addon_give)
						doPlayerAddAddon(cid, 145, 1)
						doPlayerAddAddon(cid, 149, 1)
						setPlayerStorageValue(cid,110002,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first assassin addon') then
			if isPremium(cid) 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
					selfSay('Did you bring me 30 beholder eyes, 10 red dragon scales, 30 lizard scales, 20 fish fins, 20 vampire dusts, 10 demon dusts and Warrior\'s sweat?')
					talk_state = 23
				else
					selfSay('I need 30 beholder eyes, 10 red dragon scales, 30 lizard scales, 20 fish fins, 20 vampire dusts, 10 demon dusts and Warrior\'s sweat, to give you the first assassin addon. Come back when you have it.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 23 then
			talk_state = 0
			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
				addon = getPlayerStorageValue(cid,120001)
				if addon == -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(addon_give)
						doPlayerAddAddon(cid, 152, 1)
						doPlayerAddAddon(cid, 156, 1)
						setPlayerStorageValue(cid,120001,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second assassin addon') then
			if isPremium(cid) 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
					selfSay('Did you bring 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?')
					talk_state = 24
				else
					selfSay('I 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, to give you the second assassin addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 24 then
			talk_state = 0
			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
				addon = getPlayerStorageValue(cid,120002)
				if addon == -1 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(addon_give)
						doPlayerAddAddon(cid, 152, 2)
						doPlayerAddAddon(cid, 156, 2)
						setPlayerStorageValue(cid,120002,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first beggar addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,5883) >= 100 and player_money >= 20000 then
					selfSay('Did you bring me 100 ape furs and 20000 gold coins?')
					talk_state = 25
				else
					selfSay('I need 100 ape furs and 20000 gold coins, to give you the first beggar addon. Come back when you have it.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 25 then
			talk_state = 0
			if getPlayerItemCount(cid,5883) >= 100 and player_money >= 20000 then
				addon = getPlayerStorageValue(cid,130001)
				if addon == -1 then
					if doPlayerTakeItem(cid,5883,100) == 0 and pay(cid,20000) then
						selfSay(addon_give)
						doPlayerAddAddon(cid, 153, 1)
						doPlayerAddAddon(cid, 157, 1)
						setPlayerStorageValue(cid,130001,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second beggar addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,6107) >= 1 then
					selfSay('Did you bring me Simon\'s favourite staff?')
					talk_state = 26
				else
					selfSay('I need Simon\'s favourite staff, to give you the second beggar addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 26 then
			talk_state = 0
			if getPlayerItemCount(cid,6107) >= 1 then
				addon = getPlayerStorageValue(cid,130002)
				if addon == -1 then
					if doPlayerTakeItem(cid,6107,1) == 0 then
						selfSay(addon_give)
						doPlayerAddAddon(cid, 153, 2)
						doPlayerAddAddon(cid, 157, 2)
						setPlayerStorageValue(cid,130002,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first pirate addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,6126) >= 100 and getPlayerItemCount(cid,6097) >= 100 and getPlayerItemCount(cid,6098) >= 100 then
					selfSay('Did you bring me 100 eye patches, 100 peg legs and 100 hooks?')
					talk_state = 27
				else
					selfSay('I need 100 eye patches, 100 peg legs and 100 hooks, to give you the first pirate addon. Come back when you have it.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 27 then
			talk_state = 0
			if getPlayerItemCount(cid,6126) >= 100 and getPlayerItemCount(cid,6097) >= 100 and getPlayerItemCount(cid,6098) >= 100 then
				addon = getPlayerStorageValue(cid,140001)
				if addon == -1 then
					if doPlayerTakeItem(cid,6126,100) == 0 and doPlayerTakeItem(cid,6097,100) == 0 and doPlayerTakeItem(cid,6098,100) == 0 then
						selfSay(addon_give)
						doPlayerAddAddon(cid, 151, 1)
						doPlayerAddAddon(cid, 155, 1)
						setPlayerStorageValue(cid,140001,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second pirate addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,6099) >= 1 and getPlayerItemCount(cid,6100) >= 1 and getPlayerItemCount(cid,6101) >= 1 and getPlayerItemCount(cid,6102) >= 1 then
					selfSay('Did you bring me Ron the Ripper\'s sabre, Deadeye Devious\' eye patch, Lethal Lissy\'s shirt, Brutus Bloodbeard\'s hat?')
					talk_state = 28
				else
					selfSay('I need Ron the Ripper\'s sabre, Deadeye Devious\' eye patch, Lethal Lissy\'s shirt, Brutus Bloodbeard\'s hat, to give you the second pirate addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 28 then
			talk_state = 0
			if getPlayerItemCount(cid,6099) >= 1 and getPlayerItemCount(cid,6100) >= 1 and getPlayerItemCount(cid,6101) >= 1 and getPlayerItemCount(cid,6102) >= 1 then
				addon = getPlayerStorageValue(cid,140002)
				if addon == -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(addon_give)
						doPlayerAddAddon(cid, 151, 2)
						doPlayerAddAddon(cid, 155, 2)
						setPlayerStorageValue(cid,140002,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first shaman addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,3955) >= 5 and getPlayerItemCount(cid,5015) >= 1 then
					selfSay('Did you bring me 5 dworc vodoo dolls and a mandrake?')
					talk_state = 29
				else
					selfSay('I need 5 dworc vodoo dolls and a mandrake, to give you the first shaman addon. Come back when you have it.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 29 then
			talk_state = 0
			if getPlayerItemCount(cid,3955) >= 5 and getPlayerItemCount(cid,5015) >= 1 then
				addon = getPlayerStorageValue(cid,150001)
				if addon == -1 then
					if doPlayerTakeItem(cid,3955,5) == 0 and doPlayerTakeItem(cid,5015,1) == 0 then
						selfSay(addon_give)
						doPlayerAddAddon(cid, 154, 1)
						doPlayerAddAddon(cid, 158, 1)
						setPlayerStorageValue(cid,150001,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second shaman addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,3966) >= 5 and getPlayerItemCount(cid,3967) >= 5 then
					selfSay('Did you bring me 5 banana staffs and 5 tribal masks?')
					talk_state = 30
				else
					selfSay('I need 5 banana staffs and 5 tribal masks, to give you the second shaman addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 30 then
			talk_state = 0
			if getPlayerItemCount(cid,3966) >= 5 and getPlayerItemCount(cid,3967) >= 5 then
				addon = getPlayerStorageValue(cid,150002)
				if addon == -1 then
					if doPlayerTakeItem(cid,3966,5) == 0 and doPlayerTakeItem(cid,3967,5) == 0 then
						selfSay(addon_give)
						doPlayerAddAddon(cid, 154, 2)
						doPlayerAddAddon(cid, 158, 2)
						setPlayerStorageValue(cid,150002,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first norseman addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,7290) >= 5 then
					selfSay('Did you bring me 5 Shards?')
					talk_state = 31
				else
					selfSay('I need 5 Shards, to give you the first norseman addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 31 then
			talk_state = 0
			if getPlayerItemCount(cid,7290) >= 5 then
				addon = getPlayerStorageValue(cid,160001)
				if addon == -1 then
					if doPlayerTakeItem(cid,7290,5) == 0 then
						selfSay(addon_give)
						doPlayerAddAddon(cid, 252, 1)
						doPlayerAddAddon(cid, 251, 1)
						setPlayerStorageValue(cid,160001,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second norseman addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,7290) >= 10 then
					selfSay('Did you bring me 10 Shards?')
					talk_state = 32
				else
					selfSay('I need 10 Shards, to give you the second norseman addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 32 then
			talk_state = 0
			if getPlayerItemCount(cid,7290) >= 10 then
				addon = getPlayerStorageValue(cid,160002)
				if addon == -1 then
					if doPlayerTakeItem(cid,7290,10) == 0 then
						selfSay(addon_give)
						doPlayerAddAddon(cid, 252, 2)
						doPlayerAddAddon(cid, 251, 2)
						setPlayerStorageValue(cid,160002,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first brotherhood addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,6500) >= 500 then
					selfSay('Did you bring me 500 Demonic essences?')
					talk_state = 33
				else
					selfSay('I need 500 Demonic essences, to give you the first brotherhood addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 33 then
			talk_state = 0
			if getPlayerItemCount(cid,6500) >= 500 then
				addon = getPlayerStorageValue(cid,170001)
				if addon == -1 then
					if doPlayerTakeItem(cid,6500,500) == 0 then
						selfSay(addon_give)
						doPlayerAddAddon(cid, 278, 1)
						doPlayerAddAddon(cid, 279, 1)
						setPlayerStorageValue(cid,170001,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second brotherhood addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,6500) >= 1500 then
					selfSay('Did you bring me 1500 Demonic essences?')
					talk_state = 34
				else
					selfSay('I need 1500 Demonic essences, to give you the second Brotherhood addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 34 then
			talk_state = 0
			if getPlayerItemCount(cid,6500) >= 1500 then
				addon = getPlayerStorageValue(cid,170002)
				if addon == -1 then
					if doPlayerTakeItem(cid,6500,1500) == 0 then
						selfSay(addon_give)
						doPlayerAddAddon(cid, 278, 2)
						doPlayerAddAddon(cid, 279, 2)
						setPlayerStorageValue(cid,170002,2)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first nightmare addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,6500) >= 500 then
					selfSay('Did you bring me 500 Demonic essences?')
					talk_state = 35
				else
					selfSay('I need 500 Demonic essences, to give you the first nightmare addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 35 then
			talk_state = 0
			if getPlayerItemCount(cid,6500) >= 500 then
				addon = getPlayerStorageValue(cid,180001)
				if addon == -1 then
					if doPlayerTakeItem(cid,6500,500) == 0 then
						selfSay(addon_give)
						doPlayerAddAddon(cid, 268, 1)
						doPlayerAddAddon(cid, 269, 1)
						setPlayerStorageValue(cid,180001,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second nightmare addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,5600) >= 1500 then
					selfSay('Did you bring me 1500 Demonic essences?')
					talk_state = 36
				else
					selfSay('I need 1500 Demonic essences, to give you the second nightmare addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 36 then
			talk_state = 0
			if getPlayerItemCount(cid,6500) >= 1500 then
				addon = getPlayerStorageValue(cid,180002)
				if addon == -1 then
					if doPlayerTakeItem(cid,6500,1500) == 0 then
						selfSay(addon_give)
						doPlayerAddAddon(cid, 268, 2)
						doPlayerAddAddon(cid, 269, 2)
						setPlayerStorageValue(cid,180002,2)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first jester addon') then
			if isPremium(cid) then
				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
					selfSay('Did you bring me 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 leather?')
					talk_state = 37
				else
					selfSay('I 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, to give you the first Jester addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 37 then
			talk_state = 0
			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
				addon = getPlayerStorageValue(cid,190001)
				if addon == -1 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(addon_give)
						doPlayerAddAddon(cid, 273, 1)
						doPlayerAddAddon(cid, 270, 1)
						setPlayerStorageValue(cid,190001,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second jester addon') then
			if isPremium(cid) then
				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
					selfSay('Did you bring me 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?')
					talk_state = 38
				else
					selfSay('I 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 leathers, to give you the second Jester addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 38 then
			talk_state = 0
			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
				addon = getPlayerStorageValue(cid,190002)
				if addon == -1 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(addon_give)
						doPlayerAddAddon(cid, 273, 2)
						doPlayerAddAddon(cid, 270, 2)
						setPlayerStorageValue(cid,190002,2)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ confirm no ------------------------------------------------
		elseif msgcontains(msg, 'no') and (talk_state >= 1 and talk_state <= 38) then
			selfSay('Ok thanks.')
			talk_state = 0
		end
	-- Place all your code in here. Remember that hi, bye and all that stuff is already handled by the npcsystem, so you do not have to take care of that yourself.
	return true
end

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())

Make new XML file and rename it like you want and put the npc into /NPC/

Code:
<?xml version="1.0"?>
<npc name="[COLOR="Red"]npcnamehere[/COLOR]" script="data/npc/scripts/addon.lua" access="5" lookdir="2" autowalk="25">
	<mana now="800" max="800"/>
	<health now="200" max="200"/>
	<look type="134" head="78" body="88" legs="0" feet="88" addons="3"/>
	<parameters>
	<parameter key="message_greet" value="Greetings |PLAYERNAME|. [COLOR="Red"]Will you help me? If you do, I'll reward you with nice addons! Just say 'addons' or 'help' if you don't know what to do.[/COLOR]" />
	</parameters>
</npc>

red = changeable

Only the Jester isn't the real 1 becouse it's more like a quest and don't trading items but i can do the full jester quest if someone wants it :)


Hey man...you understood me...i use your npc that sell u addons...and items for addons, the npc that sell addons (varkhal) didn't gave me the addons in the "select outfit" and i cant put them on me...i bought the items and i gave the items to varkhal..he say "here you are" but, where are the addons?

PLX MAN I HAVE A BAD ENGLISH AND IT'S HARD TO ME WRITE YOU A POST...PLX I NEED HELP
 
But it looks like you didn't understand me :p
I'm quit sure that you can't get the addons becouse you don't have the basic outfit

do me favor buy a new pacc from a npc or make some pacc yourself on a chara and try it with hunter,citizen or mage...
and you will see it will work

or make a complete new chara and try it with a new chara

yours Evil Hero,
 
I will make a 2nd for TFS don't worry :p

yours Evil Hero,
 
Hey man, i created a new character but it doesn't work...even i changed 'doPlayerAddAddon' to 'doPlayerAddOutfit' and it doesn't work...Maybe that addons u said works...but i need SHAMAN,ASSASSIN,PIRATE and BEGGAR outifts and addons...i think them doesn't work for evolutions...
man, i really need your help...plx i have 20 persons waiting for those addons.

PLX HELP!! if anyone know how to do this, plx post!!
 
Try this:

go into the folder Data/ and open the file called Outfits.xml

if it loosk like this:

Code:
<?xml version="1.0"?>
<outfits>
	<!-- Female outfits -->
	<outfit type="0" looktype="136" addons="3" name="Citizen" premium="0"/>
	<outfit type="0" looktype="137" addons="3" name="Hunter" premium="0"/>
	<outfit type="0" looktype="138" addons="3" name="Summoner" premium="1"/>
	<outfit type="0" looktype="269" addons="3" name="Nightmare" premium="1"/>
	<outfit type="0" looktype="270" addons="3" name="Jester" premium="1"/>
	<outfit type="0" looktype="279" addons="3" name="Brotherhood" premium="1"/>
	<outfit type="0" looktype="252" addons="3" name="Norseman" premium="1"/>
	<outfit type="0" looktype="139" addons="3" name="Knight" premium="0"/>
	<outfit type="0" looktype="140" addons="3" name="Nobleman" premium="1"/>
	<outfit type="0" looktype="141" addons="3" name="Mage" premium="0"/>
	<outfit type="0" looktype="142" addons="3" name="Warrior" premium="1"/>
	<outfit type="0" looktype="147" addons="3" name="Barbarian" premium="1"/>
	<outfit type="0" looktype="148" addons="3" name="Druid" premium="1"/>
	<outfit type="0" looktype="149" addons="3" name="Wizard" premium="1"/>
	<outfit type="0" looktype="150" addons="3" name="Oriental" premium="1"/>
	<outfit type="0" looktype="155" addons="3" name="Pirate" premium="1"/>
	<outfit type="0" looktype="156" addons="3" name="Assassin" premium="1"/>
	<outfit type="0" looktype="157" addons="3" name="Beggar" premium="1"/>
	<outfit type="0" looktype="158" addons="3" name="Shaman" premium="1"/>
	<!-- Male outfits -->
	<outfit type="1" looktype="128" addons="3" name="Citizen" premium="0"/>
	<outfit type="1" looktype="129" addons="3" name="Hunter" premium="0"/>
	<outfit type="1" looktype="130" addons="3" name="Mage" premium="0"/>
	<outfit type="1" looktype="131" addons="3" name="Knight" premium="0"/>
	<outfit type="1" looktype="268" addons="3" name="Nightmare" premium="1"/>
	<outfit type="1" looktype="273" addons="3" name="Jester" premium="1"/>
	<outfit type="1" looktype="278" addons="3" name="Brotherhood" premium="1"/>
	<outfit type="1" looktype="251" addons="3" name="Norseman" premium="1"/>
	<outfit type="1" looktype="132" addons="3" name="Nobleman" premium="1"/>
	<outfit type="1" looktype="133" addons="3" name="Summoner" premium="1"/>
	<outfit type="1" looktype="134" addons="3" name="Warrior" premium="1"/>
	<outfit type="1" looktype="143" addons="3" name="Barbarian" premium="1"/>
	<outfit type="1" looktype="144" addons="3" name="Druid" premium="1"/>
	<outfit type="1" looktype="145" addons="3" name="Wizard" premium="1"/>
	<outfit type="1" looktype="146" addons="3" name="Oriental" premium="1"/>
	<outfit type="1" looktype="151" addons="3" name="Pirate" premium="1"/>
	<outfit type="1" looktype="152" addons="3" name="Assassin" premium="1"/>
	<outfit type="1" looktype="153" addons="3" name="Beggar" premium="1"/>
	<outfit type="1" looktype="154" addons="3" name="Shaman" premium="1"/>
	<!-- Elf outfits -->
	<outfit type="2" looktype="159" addons="3" name="Elf" premium="1"/>
	<!-- Dwarf outfits -->
	<outfit type="2" looktype="160" addons="3" name="Dwarf" premium="1"/>
	<!-- Frog outfits -->
	<outfit type="2" looktype="226" addons="3" name="Frog" premium="1"/>
	<!-- Cult -->
	<outfit type="2" looktype="194" addons="3" name="Cult" premium="1"/>
</outfits>

the code above is the right 1 if it still wont work then it's your own fault becouse other people getting it work....

yours Evil Hero,
 
This doesen't work for my server can somewone help me please,,
 
Last edited:
I dunno if this happens on other servers too, but on TFS, some addons like Assassin and Hunter is kinda twisted. You pay for the first addon and get the second, like you give sniper gloves and get the Winged Tiara... and The Outfits that you need to pay money like beggar/nobleman inst working.
 
This Script does not work for TFS i will post the code for tfs later :)

Edit: here it is

Code:
--------------------------------------------------------------------------------------------
------------------------------------ Advanced Addon NPC ------------------------------------
-------------------------------- Script made by teh_pwnage modified by STiX - 8.1---------------------------------
--------------- Special thanks to: mokerhamer, Xidaozu and Jiddo, deaths'life --------------
------------------------------- Thanks also to everyone else -------------------------------
------------------------------ NPC based on Evolutions V0.7.7 ------------------------------
--------------------------------------------------------------------------------------------
 
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
 
-- OTServ event handling functions start
function onCreatureAppear(cid)				npcHandler<img src="http://******.net/images/smilies/ohmy.gif" border="0" alt="" title=":o" class="inlineimg" />nCreatureAppear(cid) end
function onCreatureDisappear(cid) 			npcHandler<img src="http://******.net/images/smilies/ohmy.gif" border="0" alt="" title=":o" class="inlineimg" />nCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) 	npcHandler<img src="http://******.net/images/smilies/ohmy.gif" border="0" alt="" title=":o" class="inlineimg" />nCreatureSay(cid, type, msg) end
function onThink() 						npcHandler<img src="http://******.net/images/smilies/ohmy.gif" border="0" alt="" title=":o" class="inlineimg" />nThink() end
-- OTServ event handling functions end
 
function creatureSayCallback(cid, type, msg)
	-- Place all your code in here. Remember that hi, bye and all that stuff is already handled by the npcsystem, so you do not have to take care of that yourself.
	if(npcHandler.focus ~= cid) then
		return false
	end
 
		addon_need_premium = 'Sorry, you need a premium account to get addons.'
		addon_have_already = 'Sorry, you already have this addon.'
		addon_have_not_items = 'Sorry, you don\'t have these items.'
		addon_give = 'Here you are.'
		player_gold = getPlayerItemCount(cid,2148)
		player_plat = getPlayerItemCount(cid,2152)*100
		player_crys = getPlayerItemCount(cid,2160)*10000
		player_money = player_gold + player_plat + player_crys
 
		if msgcontains(msg, 'addons') then
			selfSay('I can give you Citizen, Hunter, Knight, Mage, Nobleman, Summoner, Warrior, Barbarian, Druid, Wizard, Oriental, Pirate, Assassin, Beggar, Shaman, Norseman, Nightmare, Jester and Brotherhood addons.')
		elseif msgcontains(msg, 'help') then
			selfSay('To buy the first addon say \'first NAME addon\', for the second addon say \'second NAME addon\'.')
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first jester addon') then
			if isPremium(cid) then
				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
					selfSay('Did you bring me 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 leather?')
					talk_state = 33
				else
					selfSay('I 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, to give you the first Jester addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 33 then
			talk_state = 0
			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
				addon = getPlayerStorageValue(cid,190001)
				if addon == -1 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(addon_give)
						doPlayerAddOutfit(cid, 273, 1)
						doPlayerAddOutfit(cid, 270, 1)
						setPlayerStorageValue(cid,190001,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second jester addon') then
			if isPremium(cid) then
				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
					selfSay('Did you bring me 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?')
					talk_state = 34
				else
					selfSay('I 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 leathers, to give you the second Jester addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 34 then
			talk_state = 0
			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
				addon = getPlayerStorageValue(cid,190002)
				if addon == -1 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(addon_give)
						doPlayerAddOutfit(cid, 273, 2)
						doPlayerAddOutfit(cid, 270, 2)
						setPlayerStorageValue(cid,190002,2)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
 
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first citizen addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,5878) >= 100 then
					selfSay('Did you bring me 100 minotaur leathers?')
					talk_state = 1
				else
					selfSay('I need 100 minotaur leather, to give you the first citizen addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 1 then
			talk_state = 0
			if getPlayerItemCount(cid,5878) >= 100 then
				addon = getPlayerStorageValue(cid,10001)
				if addon == -1 then
					if doPlayerTakeItem(cid,5878,100) == 0 then
						selfSay(addon_give)
						doPlayerAddOutfit(cid, 128, 1)
						doPlayerAddOutfit(cid, 136, 1)
						setPlayerStorageValue(cid,10001,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second citizen addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,5890) >= 100 and getPlayerItemCount(cid,5902) >= 50 and getPlayerItemCount(cid,2480) >= 1 then
					selfSay('Did you bring me 100 chicken feathers, 50 honeycombs and the legion helmet?')
					talk_state = 2
				else
					selfSay('I need 100 chicken feathers, 50 honeycombs and a legion helmet, to give you the second citizen addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 2 then
			talk_state = 0
			if getPlayerItemCount(cid,5890) >= 100 and getPlayerItemCount(cid,5902) >= 50 and getPlayerItemCount(cid,2480) >= 1 then
				addon = getPlayerStorageValue(cid,10002)
				if addon == -1 then
					if doPlayerTakeItem(cid,5890,100) == 0 and doPlayerTakeItem(cid,5902,50) == 0 and doPlayerTakeItem(cid,2480,1) == 0 then
						selfSay(addon_give)
						doPlayerAddOutfit(cid, 128, 2)
						doPlayerAddOutfit(cid, 136, 2)
						setPlayerStorageValue(cid,10002,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first hunter addon') then
			if isPremium(cid) 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
					selfSay('Did you bring me the engraved crossbow, 100 lizard leathers, 100 red dragon leather, 5 enchanted chicken wings, royal steel, hell steel and draconian steel?')
					talk_state = 3
				else
					selfSay('I need a engraved crossbow, 100 lizard leathers, 100 red dragon leather, 5 enchanted chicken wings, royal steel, hell steel and draconian steel, to give you the first hunter addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 3 then
			talk_state = 0
			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
				addon = getPlayerStorageValue(cid,20002)
				if addon == -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(addon_give)
						doPlayerAddOutfit(cid, 129, 1)
						doPlayerAddOutfit(cid, 137, 2)
						setPlayerStorageValue(cid,20002,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second hunter addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,5875) >= 1 then
					selfSay('Did you bring me the sniper gloves?')
					talk_state = 4
				else
					selfSay('I need sniper gloves, to give you the second hunter addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 4 then
			talk_state = 0
			if getPlayerItemCount(cid,5875) >= 1 then
				addon = getPlayerStorageValue(cid,20001)
				if addon == -1 then
					if doPlayerTakeItem(cid,5875,1) == 0 then
						selfSay(addon_give)
						doPlayerAddOutfit(cid, 129, 2)
						doPlayerAddOutfit(cid, 137, 1)
						setPlayerStorageValue(cid,20001,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first knight addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,5892) >= 1 and getPlayerItemCount(cid,5880) >= 100 then
					selfSay('Did you bring me the chunk of crude iron and 100 iron ores?')
					talk_state = 5
				else
					selfSay('I need a chunk of crude iron and 100 iron ores, to give you the first knight addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 5 then
			talk_state = 0
			if getPlayerItemCount(cid,5892) >= 1 and getPlayerItemCount(cid,5880) >= 100 then
				addon = getPlayerStorageValue(cid,30001)
				if addon == -1 then
					if doPlayerTakeItem(cid,5892,1) == 0 and doPlayerTakeItem(cid,5880,100) == 0 then
						selfSay(addon_give)
						doPlayerAddOutfit(cid, 131, 1)
						doPlayerAddOutfit(cid, 139, 1)
						setPlayerStorageValue(cid,30001,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second knight addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,5893) >= 100 and getPlayerItemCount(cid,5924) >= 1 and getPlayerItemCount(cid,5885) >= 1 and getPlayerItemCount(cid,5887) >= 1 then
					selfSay('Did you bring me 100 behemoth fangs, the damaged steel helmet, warrior\'s sweat, and royal steel?')
					talk_state = 6
				else
					selfSay('I need 100 behemoth fangs, a damaged steel helmet, warrior\'s sweat and royal steel, to give you the second knight addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 6 then
			talk_state = 0
			if getPlayerItemCount(cid,5893) >= 100 and getPlayerItemCount(cid,5924) >= 1 and getPlayerItemCount(cid,5885) >= 1 and getPlayerItemCount(cid,5887) >= 1 then
				addon = getPlayerStorageValue(cid,30002)
				if addon == -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(addon_give)
						doPlayerAddOutfit(cid, 131, 2)
						doPlayerAddOutfit(cid, 139, 2)
						setPlayerStorageValue(cid,30002,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first mage addon') then
			if isPremium(cid) then
				if getPlayerSex(cid) == 0 then
					if getPlayerItemCount(cid,5958) >= 1 then
						selfSay('Did you bring me a winning lotery ticket?')
						talk_state = 7
					else
						selfSay('I need a winning lotery ticket, to give you the first mage addon. Come back when you have it.')
						talk_state = 0
					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
						selfSay('Did you bring me all the wands and rods, 10 magic sulphors, 20 ankhs and a soul stone?')
						talk_state = 7
					else
						selfSay('I need all kind of wands and rods, 10 magic sulphurs, 20 ankhs and a soul stone, to give you the first mage addon. Come back when you have it.')
						talk_state = 0
					end
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 7 then
			talk_state = 0
			if getPlayerSex(cid) == 0 then
				if getPlayerItemCount(cid,5958) >= 1 then
					addon = getPlayerStorageValue(cid,40001)
					if addon == -1 then
						if doPlayerTakeItem(cid,5958,1) == 0 then
							selfSay(addon_give)
							doPlayerAddOutfit(cid, 141, 1)
							setPlayerStorageValue(cid,40001,1)
						end
					else
						selfSay(addon_have_already)
					end
				else
					selfSay(addon_have_not_items)
				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
					addon = getPlayerStorageValue(cid,40001)
					if addon == -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(addon_give)
							doPlayerAddOutfit(cid, 130, 1)
							setPlayerStorageValue(cid,40001,1)
						end
					else
						selfSay(addon_have_already)
					end
				else
					selfSay(addon_have_not_items)
				end
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second mage addon') then
			if isPremium(cid) 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
						selfSay('Did you bring 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?')
						talk_state = 8
					else
						selfSay('I 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, to give you the second mage addon. Come back when you have it.')
						talk_state = 0
					end
				elseif getPlayerSex(cid) == 1 then
					if getPlayerItemCount(cid,5903) >= 1 then
						selfSay('Did you bring me the magician hat?')
						talk_state = 8
					else
						selfSay('I need a magician hat to give you the second mage addon. Come back when you have it.')
						talk_state = 0
					end
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 8 then
			talk_state = 0
			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
					addon = getPlayerStorageValue(cid,40002)
					if addon == -1 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(addon_give)
							doPlayerAddOutfit(cid, 141, 2)
							setPlayerStorageValue(cid,40002,1)
						end
					else
						selfSay(addon_have_already)
					end
				else
					selfSay(addon_have_not_items)
				end
			elseif getPlayerSex(cid) == 1 then
				if getPlayerItemCount(cid,2323) >= 1 then
					addon = getPlayerStorageValue(cid,40002)
					if addon == -1 then
						if doPlayerTakeItem(cid,2323,1) == 0 then
							selfSay(addon_give)
							doPlayerAddOutfit(cid, 130, 2)
							setPlayerStorageValue(cid,40002,1)
						end
					else
						selfSay(addon_have_already)
					end
				else
					selfSay(addon_have_not_items)
				end
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first summoner addon') then
			if isPremium(cid) then
				if getPlayerSex(cid) == 1 then
					if getPlayerItemCount(cid,5958) >= 1 then
						selfSay('Did you bring me a winning lotery ticket?')
						talk_state = 9
					else
						selfSay('I need a winning lotery ticket, to give you the first summoner addon. Come back when you have it.')
						talk_state = 0
					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
						selfSay('Did you bring me all the wands and rods, 10 magic sulphors, 20 ankhs and a soul stone?')
						talk_state = 9
					else
						selfSay('I need all kind of wands and rods, 10 magic sulphurs, 20 ankhs and a soul stone, to give you the first summoner addon. Come back when you have it.')
						talk_state = 0
					end
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 9 then
			talk_state = 0
			if getPlayerSex(cid) == 1 then
				if getPlayerItemCount(cid,5958) >= 1 then
					addon = getPlayerStorageValue(cid,50001)
					if addon == -1 then
						if doPlayerTakeItem(cid,5958,1) == 0 then
							selfSay(addon_give)
							doPlayerAddOutfit(cid, 133, 1)
							setPlayerStorageValue(cid,50001,1)
						end
					else
						selfSay(addon_have_already)
					end
				else
					selfSay(addon_have_not_items)
				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
					addon = getPlayerStorageValue(cid,50001)
					if addon == -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(addon_give)
							doPlayerAddOutfit(cid, 138, 1)
							setPlayerStorageValue(cid,50001,1)
						end
					else
						selfSay(addon_have_already)
					end
				else
					selfSay(addon_have_not_items)
				end
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second summoner addon') then
			if isPremium(cid) 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
						selfSay('Did you bring 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?')
						talk_state = 10
					else
						selfSay('I 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, to give you the second summoner addon. Come back when you have it.')
						talk_state = 0
					end
				elseif getPlayerSex(cid) == 0 then
					if getPlayerItemCount(cid,5903) >= 1 then
						selfSay('Did you bring me the Ferumbrass\' hat?')
						talk_state = 10
					else
						selfSay('I need the famous Ferumbrass\' hat, to give you the second summoner addon. Come back when you have it.')
						talk_state = 0
					end
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 10 then
			talk_state = 0
			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
					addon = getPlayerStorageValue(cid,50002)
					if addon == -1 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(addon_give)
							doPlayerAddOutfit(cid, 133, 2)
							setPlayerStorageValue(cid,50002,1)
						end
					else
						selfSay(addon_have_already)
					end
				else
					selfSay(addon_have_not_items)
				end
			elseif getPlayerSex(cid) == 0 then
				if getPlayerItemCount(cid,5903) >= 1 then
					addon = getPlayerStorageValue(cid,50002)
					if addon == -1 then
						if doPlayerTakeItem(cid,5903,1) == 0 then
							selfSay(addon_give)
							doPlayerAddOutfit(cid, 138, 2)
							setPlayerStorageValue(cid,50002,1)
						end
					else
						selfSay(addon_have_already)
					end
				else
					selfSay(addon_have_not_items)
				end
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first barbarian addon') then
			if isPremium(cid) 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
					selfSay('Did you bring me the fighting spirit, the warrior\'s sweat, 50 red pieces of cloth, 50 green pieces of cloth and 10 spider silk yarns?')
					talk_state = 11
				else
					selfSay('I need fighting spirit, warrior\'s sweat, 50 red pieces of cloth, 50 green pieces of cloth and 10 spider silk yarns, to give you the first barbarian addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 11 then
			talk_state = 0
			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
				addon = getPlayerStorageValue(cid,60001)
				if addon == -1 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(addon_give)
						doPlayerAddOutfit(cid, 143, 2)
						doPlayerAddOutfit(cid, 147, 2)
						setPlayerStorageValue(cid,60001,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second barbarian addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,5880) >= 100 and getPlayerItemCount(cid,5892) >= 1 and getPlayerItemCount(cid,5893) >= 50 and getPlayerItemCount(cid,5876) >= 50 then
					selfSay('Did you bring me 100 iron ore, 1 chunk of crude iron, 50 behemoth fangs and 50 lizard leathers?')
					talk_state = 12
				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.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 12 then
			talk_state = 0
			if getPlayerItemCount(cid,5880) >= 100 and getPlayerItemCount(cid,5892) >= 1 and getPlayerItemCount(cid,5893) >= 50 and getPlayerItemCount(cid,5876) >= 50 then
				addon = getPlayerStorageValue(cid,60002)
				if addon == -1 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(addon_give)
						doPlayerAddOutfit(cid, 143, 1)
						doPlayerAddOutfit(cid, 147, 1)
						setPlayerStorageValue(cid,60002,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first druid addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,5897) >= 50 and getPlayerItemCount(cid,5896) >= 50 then
					selfSay('Did you bring me 50 wolf paws and 50 bear paws?')
					talk_state = 13
				else
					selfSay('I need 50 wolf paws and 50 bear paws, to give you the first druid addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 13 then
			talk_state = 0
			if getPlayerItemCount(cid,5897) >= 50 and getPlayerItemCount(cid,5896) >= 50 then
				addon = getPlayerStorageValue(cid,70001)
				if addon == -1 then
					if doPlayerTakeItem(cid,5897,50) == 0 and doPlayerTakeItem(cid,5896,50) == 0 then
						selfSay(addon_give)
						doPlayerAddOutfit(cid, 144, 1)
						doPlayerAddOutfit(cid, 148, 1)
						setPlayerStorageValue(cid,70001,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second druid addon') then
			if isPremium(cid) 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
					selfSay('Did you bring me a Griffinclaw flower sample, water from the hydra cave, 100 demon dusts, a blessed wooden stake and Ceirons wolf tooth chain?')
					talk_state = 14
				else
					selfSay('I need a Griffinclaw flower sample, water from the hydra cave, 100 demon dusts, a blessed wooden stake and Ceirons wolf tooth chain, to give you the second druid addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 14 then
			talk_state = 0
			if getPlayerItemCount(cid,5906) >= 100 then
				addon = getPlayerStorageValue(cid,70002)
				if addon == -1 then
					if doPlayerTakeItem(cid,5906,100) == 0 then
						selfSay(addon_give)
						doPlayerAddOutfit(cid, 144, 2)
						doPlayerAddOutfit(cid, 148, 2)
						setPlayerStorageValue(cid,70002,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first nobleman addon') then
			if isPremium(cid) then
				if player_money >= 150000 then
					selfSay('Did you bring me 150000 gold coins?')
					talk_state = 15
				else
					selfSay('I need 150000 gold coins, to give you the first nobleman addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 15 then
			talk_state = 0
			if player_money >= 150000 then
				addon = getPlayerStorageValue(cid,80001)
				if addon == -1 then
					if doPlayerRemoveMoney(cid,150000) then
						selfSay(addon_give)
						doPlayerAddOutfit(cid, 132, 1)
						doPlayerAddOutfit(cid, 140, 1)
						setPlayerStorageValue(cid,80001,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second nobleman addon') then
			if isPremium(cid) then
				if player_money >= 150000 then
					selfSay('Did you bring me 150000 gold coins?')
					talk_state = 16
				else
					selfSay('I need 150000 gold coins, to give you the second nobleman addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 16 then
			talk_state = 0
			if player_money >= 150000 then
				addon = getPlayerStorageValue(cid,80002)
				if addon == -1 then
					if doPlayerRemoveMoney(cid,150000) then
						selfSay(addon_give)
						doPlayerAddOutfit(cid, 132, 2)
						doPlayerAddOutfit(cid, 140, 2)
						setPlayerStorageValue(cid,80002,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first oriental addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,5945) >= 1 then
					selfSay('Did you bring me the mermaid comb?')
					talk_state = 17
				else
					selfSay('I need a mermaid comb, to give you the first oriental addon. Come back when you have it.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 17 then
			talk_state = 0
			if getPlayerItemCount(cid,5945) >= 1 then
				addon = getPlayerStorageValue(cid,90001)
				if addon == -1 then
					if doPlayerTakeItem(cid,5945,1) == 0 then
						selfSay(addon_give)
						doPlayerAddOutfit(cid, 146, 1)
						doPlayerAddOutfit(cid, 150, 1)
						setPlayerStorageValue(cid,90001,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second oriental addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,5883) >= 100 and getPlayerItemCount(cid,5895) >= 100 and getPlayerItemCount(cid,5891) >= 2 and getPlayerItemCount(cid,5912) >= 100 then
					selfSay('Did you bring me 100 ape furs, 100 fish fins, 2 enchanted chicken wings and 100 blue pieces of cloth?')
					talk_state = 18
				else
					selfSay('I need 100 ape furs, 100 fish fins, 2 enchanted chicken wings and 100 blue pieces of cloth, to give you the second oriental addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 18 then
			talk_state = 0
			if getPlayerItemCount(cid,5883) >= 100 and getPlayerItemCount(cid,5895) >= 100 and getPlayerItemCount(cid,5891) >= 2 and getPlayerItemCount(cid,5912) >= 100 then
				addon = getPlayerStorageValue(cid,90002)
				if addon == -1 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(addon_give)
						doPlayerAddOutfit(cid, 146, 2)
						doPlayerAddOutfit(cid, 150, 2)
						setPlayerStorageValue(cid,90002,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first warrior addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,5925) >= 100 and getPlayerItemCount(cid,5899) >= 100 and getPlayerItemCount(cid,5884) >= 1 and getPlayerItemCount(cid,5919) >= 1 then
					selfSay('Did you bring me 100 hardened bones, 100 turtle shells, fighting spirit and a dragon claw?')
					talk_state = 19
				else
					selfSay('I need 100 hardened bones, 100 turtle shells, fighting spirit and a dragon claw, to give you the first warrior addon. Come back when you have it.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 19 then
			talk_state = 0
			if getPlayerItemCount(cid,5925) >= 100 and getPlayerItemCount(cid,5899) >= 100 and getPlayerItemCount(cid,5884) >= 1 and getPlayerItemCount(cid,5919) >= 1 then
				addon = getPlayerStorageValue(cid,100001)
				if addon == -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(addon_give)
						doPlayerAddOutfit(cid, 134, 1)
						doPlayerAddOutfit(cid, 142, 1)
						setPlayerStorageValue(cid,100001,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second warrior addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,5887) >= 1 and getPlayerItemCount(cid,5880) >= 100 then
					selfSay('Did you bring me 100 iron ores and royal steel?')
					talk_state = 20
				else
					selfSay('I need 100 iron ores and royal steel, to give you the second warrior addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 20 then
			talk_state = 0
			if getPlayerItemCount(cid,5887) >= 1 and getPlayerItemCount(cid,5880) >= 100 then
				addon = getPlayerStorageValue(cid,100002)
				if addon == -1 then
					if doPlayerTakeItem(cid,5887,1) == 0 and doPlayerTakeItem(cid,5880,100) == 0 then
						selfSay(addon_give)
						doPlayerAddOutfit(cid, 134, 2)
						doPlayerAddOutfit(cid, 142, 2)
						setPlayerStorageValue(cid,100002,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first wizard addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,2488) >= 1 and getPlayerItemCount(cid,2123) >= 1 and getPlayerItemCount(cid,2492) >= 1 and getPlayerItemCount(cid,2536) >= 1 then
					selfSay('Did you bring me a medusa shield, a dragon scale mail, a ring of the sky and crown legs?')
					talk_state = 21
				else
					selfSay('I need a medusa shield, a dragon scale mail, a ring od the sky and crown legs, to give you the first wizard addon. Come back when you have it.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 21 then
			talk_state = 0
			if getPlayerItemCount(cid,2488) >= 1 and getPlayerItemCount(cid,2123) >= 1 and getPlayerItemCount(cid,2492) >= 1 and getPlayerItemCount(cid,2536) >= 1 then
				addon = getPlayerStorageValue(cid,110001)
				if addon == -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(addon_give)
						doPlayerAddOutfit(cid, 145, 2)
						doPlayerAddOutfit(cid, 149, 2)
						setPlayerStorageValue(cid,110001,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second wizard addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,5922) >= 50 and getPlayerStorageValue(cid,110001) then
					selfSay('Did you bring me 50 holy orchids?')
					talk_state = 22
				else
					selfSay('I need 50 holy orchids and you must have a skull mask or a snake tiara, to give you the second wizard addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 22 then
			talk_state = 0
			if getPlayerItemCount(cid,5922) >= 50 then
				addon = getPlayerStorageValue(cid,110002)
				if addon == -1 then
					if doPlayerTakeItem(cid,5922,50) == 0 then
						selfSay(addon_give)
						doPlayerAddOutfit(cid, 145, 1)
						doPlayerAddOutfit(cid, 149, 1)
						setPlayerStorageValue(cid,110002,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first assassin addon') then
			if isPremium(cid) 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
					selfSay('Did you bring me 30 beholder eyes, 10 red dragon scales, 30 lizard scales, 20 fish fins, 20 vampire dusts, 10 demon dusts and Warrior\'s sweat?')
					talk_state = 23
				else
					selfSay('I need 30 beholder eyes, 10 red dragon scales, 30 lizard scales, 20 fish fins, 20 vampire dusts, 10 demon dusts and Warrior\'s sweat, to give you the first assassin addon. Come back when you have it.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 23 then
			talk_state = 0
			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
				addon = getPlayerStorageValue(cid,120001)
				if addon == -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(addon_give)
						doPlayerAddOutfit(cid, 152, 1)
						doPlayerAddOutfit(cid, 156, 1)
						setPlayerStorageValue(cid,120001,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second assassin addon') then
			if isPremium(cid) 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
					selfSay('Did you bring 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?')
					talk_state = 24
				else
					selfSay('I 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, to give you the second assassin addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 24 then
			talk_state = 0
			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
				addon = getPlayerStorageValue(cid,120002)
				if addon == -1 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(addon_give)
						doPlayerAddOutfit(cid, 152, 2)
						doPlayerAddOutfit(cid, 156, 2)
						setPlayerStorageValue(cid,120002,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first beggar addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,5883) >= 100 and player_money >= 20000 then
					selfSay('Did you bring me 100 ape furs and 20000 gold coins?')
					talk_state = 25
				else
					selfSay('I need 100 ape furs and 20000 gold coins, to give you the first beggar addon. Come back when you have it.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 25 then
			talk_state = 0
			if getPlayerItemCount(cid,5883) >= 100 and player_money >= 20000 then
				addon = getPlayerStorageValue(cid,130001)
				if addon == -1 then
					if doPlayerTakeItem(cid,5883,100) == 0 and doPlayerRemoveMoney(cid,20000) then
						selfSay(addon_give)
						doPlayerAddOutfit(cid, 153, 1)
						doPlayerAddOutfit(cid, 157, 1)
						setPlayerStorageValue(cid,130001,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second beggar addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,6107) >= 1 then
					selfSay('Did you bring me Simon\'s favourite staff?')
					talk_state = 26
				else
					selfSay('I need Simon\'s favourite staff, to give you the second beggar addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 26 then
			talk_state = 0
			if getPlayerItemCount(cid,6107) >= 1 then
				addon = getPlayerStorageValue(cid,130002)
				if addon == -1 then
					if doPlayerTakeItem(cid,6107,1) == 0 then
						selfSay(addon_give)
						doPlayerAddOutfit(cid, 153, 2)
						doPlayerAddOutfit(cid, 157, 2)
						setPlayerStorageValue(cid,130002,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first pirate addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,6126) >= 100 and getPlayerItemCount(cid,6097) >= 100 and getPlayerItemCount(cid,6098) >= 100 then
					selfSay('Did you bring me 100 eye patches, 100 peg legs and 100 hooks?')
					talk_state = 27
				else
					selfSay('I need 100 eye patches, 100 peg legs and 100 hooks, to give you the first pirate addon. Come back when you have it.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 27 then
			talk_state = 0
			if getPlayerItemCount(cid,6126) >= 100 and getPlayerItemCount(cid,6097) >= 100 and getPlayerItemCount(cid,6098) >= 100 then
				addon = getPlayerStorageValue(cid,140001)
				if addon == -1 then
					if doPlayerTakeItem(cid,6126,100) == 0 and doPlayerTakeItem(cid,6097,100) == 0 and doPlayerTakeItem(cid,6098,100) == 0 then
						selfSay(addon_give)
						doPlayerAddOutfit(cid, 151, 1)
						doPlayerAddOutfit(cid, 155, 1)
						setPlayerStorageValue(cid,140001,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second pirate addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,2385) >= 1 and getPlayerItemCount(cid,6098) >= 1 and getPlayerItemCount(cid,6095) >= 1 and getPlayerItemCount(cid,6096) >= 1 then
					selfSay('Did you bring me a sabre, an eye patch, a pirate shirt, and a pirate hat??')
					talk_state = 28
				else
					selfSay('I need a sabre, an eye patch, a pirate shirt, a pirate hat, to give you the second pirate addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 28 then
			talk_state = 0
			if getPlayerItemCount(cid,2385) >= 1 and getPlayerItemCount(cid,6098) >= 1 and getPlayerItemCount(cid,6095) >= 1 and getPlayerItemCount(cid,6096) >= 1 then
				addon = getPlayerStorageValue(cid,140002)
				if addon == -1 then
					if doPlayerTakeItem(cid,2385,1) == 0 and doPlayerTakeItem(cid,6098,1) == 0 and doPlayerTakeItem(cid,6095,1) == 0 and doPlayerTakeItem(cid,6096,1) == 0 then
						selfSay(addon_give)
						doPlayerAddOutfit(cid, 151, 2)
						doPlayerAddOutfit(cid, 155, 2)
						setPlayerStorageValue(cid,140002,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first shaman addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,3955) >= 5 and getPlayerItemCount(cid,5015) >= 1 then
					selfSay('Did you bring me 5 dworc vodoo dolls and a mandrake?')
					talk_state = 29
				else
					selfSay('I need 5 dworc vodoo dolls and a mandrake, to give you the first shaman addon. Come back when you have it.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 29 then
			talk_state = 0
			if getPlayerItemCount(cid,3955) >= 5 and getPlayerItemCount(cid,5015) >= 1 then
				addon = getPlayerStorageValue(cid,150001)
				if addon == -1 then
					if doPlayerTakeItem(cid,3955,5) == 0 and doPlayerTakeItem(cid,5015,1) == 0 then
						selfSay(addon_give)
						doPlayerAddOutfit(cid, 154, 1)
						doPlayerAddOutfit(cid, 158, 1)
						setPlayerStorageValue(cid,150001,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second shaman addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,3966) >= 5 and getPlayerItemCount(cid,3967) >= 5 then
					selfSay('Did you bring me 5 banana staffs and 5 tribal masks?')
					talk_state = 30
				else
					selfSay('I need 5 banana staffs and 5 tribal masks, to give you the second shaman addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 30 then
			talk_state = 0
			if getPlayerItemCount(cid,3966) >= 5 and getPlayerItemCount(cid,3967) >= 5 then
				addon = getPlayerStorageValue(cid,150002)
				if addon == -1 then
					if doPlayerTakeItem(cid,3966,5) == 0 and doPlayerTakeItem(cid,3967,5) == 0 then
						selfSay(addon_give)
						doPlayerAddOutfit(cid, 154, 2)
						doPlayerAddOutfit(cid, 158, 2)
						setPlayerStorageValue(cid,150002,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first norseman addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,7290) >= 5 then
					selfSay('Excellent, Did you bring me 5 shard?')
					talk_state = 31
				else
					selfSay('I need 5 shard, to give you the first norseman addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 31 then
			talk_state = 0
			if getPlayerItemCount(cid,7290) >= 5 then
				addon = getPlayerStorageValue(cid,150003)
				if addon == -1 then
					if doPlayerTakeItem(cid,7290,5) == 0 then
						selfSay(addon_give)
						doPlayerAddOutfit(cid, 251, 1)
						doPlayerAddOutfit(cid, 252, 1)
						setPlayerStorageValue(cid,150003,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second norseman addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,7290) >= 10 then
					selfSay('Did you bring me 10 shard?')
					talk_state = 32
				else
					selfSay('I need 10 shard, to give you the second norseman addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 32 then
			talk_state = 0
			if getPlayerItemCount(cid,7290) >= 10 then
				addon = getPlayerStorageValue(cid,150004)
				if addon == -1 then
					if doPlayerTakeItem(cid,7290,10) == 0 then
						selfSay(addon_give)
						doPlayerAddOutfit(cid, 251, 2)
						doPlayerAddOutfit(cid, 252, 2)
						setPlayerStorageValue(cid,150004,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first nightmare addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,6500) >= 500 then
					selfSay('Did you bring me 500 Demonic essences?')
					talk_state = 35
				else
					selfSay('I need 500 Demonic essences, to give you the first nightmare addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 35 then
			talk_state = 0
			if getPlayerItemCount(cid,6500) >= 500 then
				addon = getPlayerStorageValue(cid,180001)
				if addon == -1 then
					if doPlayerTakeItem(cid,6500,500) == 0 then
						selfSay(addon_give)
						doPlayerAddOutfit(cid, 268, 1)
						doPlayerAddOutfit(cid, 269, 1)
						setPlayerStorageValue(cid,180001,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second nightmare addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,6500) >= 1500 then
					selfSay('Did you bring me 1500 Demonic essences?')
					talk_state = 36
				else
					selfSay('I need 1500 Demonic essences, to give you the second nightmare addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 36 then
			talk_state = 0
			if getPlayerItemCount(cid,6500) >= 1500 then
				addon = getPlayerStorageValue(cid,180002)
				if addon == -1 then
					if doPlayerTakeItem(cid,6500,1500) == 0 then
						selfSay(addon_give)
						doPlayerAddOutfit(cid, 268, 2)
						doPlayerAddOutfit(cid, 269, 2)
						setPlayerStorageValue(cid,180002,2)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'first brotherhood addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,6500) >= 500 then
					selfSay('Did you bring me 500 Demonic essences?')
					talk_state = 37
				else
					selfSay('I need 500 Demonic essences, to give you the first brotherhood addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 37 then
			talk_state = 0
			if getPlayerItemCount(cid,6500) >= 500 then
				addon = getPlayerStorageValue(cid,170001)
				if addon == -1 then
					if doPlayerTakeItem(cid,6500,500) == 0 then
						selfSay(addon_give)
						doPlayerAddOutfit(cid, 278, 1)
						doPlayerAddOutfit(cid, 279, 1)
						setPlayerStorageValue(cid,170001,1)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ addon ------------------------------------------------
		elseif msgcontains(msg, 'second brotherhood addon') then
			if isPremium(cid) then
				if getPlayerItemCount(cid,6500) >= 1500 then
					selfSay('Did you bring me 1500 Demonic essences?')
					talk_state = 38
				else
					selfSay('I need 1500 Demonic essences, to give you the second Brotherhood addon. Come back when you have them.')
					talk_state = 0
				end
			else
				selfSay(addon_need_premium)
				talk_state = 0
			end
------------------------------------------------ confirm yes ------------------------------------------------
		elseif msgcontains(msg, 'yes') and talk_state == 38 then
			talk_state = 0
			if getPlayerItemCount(cid,6500) >= 1500 then
				addon = getPlayerStorageValue(cid,170002)
				if addon == -1 then
					if doPlayerTakeItem(cid,6500,1500) == 0 then
						selfSay(addon_give)
						doPlayerAddOutfit(cid, 278, 2)
						doPlayerAddOutfit(cid, 279, 2)
						setPlayerStorageValue(cid,170002,2)
					end
				else
					selfSay(addon_have_already)
				end
			else
				selfSay(addon_have_not_items)
			end
------------------------------------------------ confirm no ------------------------------------------------
		elseif msgcontains(msg, 'no') and (talk_state >= 1 and talk_state <= 39) then
			selfSay('Gah! Go away poor human.')
			talk_state = 0
		end
	-- Place all your code in here. Remember that hi, bye and all that stuff is already handled by the npcsystem, so you do not have to take care of that yourself.
	return true
end
 
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new()

a big thx to Stix who just edited it for tfs :)

yours Evil Hero,
 
Back
Top