• 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!

Lua (Request) sweet cyclops npc

Hunday

New Member
Joined
Jan 28, 2009
Messages
15
Reaction score
0
I need NPC Sweet Cyclops, that the tibia global exchange that obdisian Knife, royal piece of iron and other ~~....
 
A Sweaty Cyclops.xml
PHP:
<?xml version="1.0"?> 
<npc name="A Sweaty Cyclops" script="data/npc/scripts/sweatycyclops.lua" walkinterval="2500" access="5"> 
  <mana now="800" max="800" /> 
  <look type="22" head="0" body="0" legs="0" feet="0" /> 
  <parameters> 
    <parameter key="message_greet" value="Hum Humm! Welcume lil' |PLAYERNAME|. Me can forge steel from uth'prta, soul orbs, za'ralator, uth' lokr and uth'kean." /> 
    <parameter key="message_farewell" value="Good bye lil' one. " /> 
  </parameters> 
</npc>
sweatycyclops.lua
PHP:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

function onCreatureAppear(cid)            npcHandler:onCreatureAppear(cid)        end
function onCreatureDisappear(cid)        npcHandler:onCreatureDisappear(cid)        end
function onCreatureSay(cid, type, msg)        npcHandler:onCreatureSay(cid, type, msg)    

end
function onThink()                npcHandler:onThink()                end

-- Storage IDs --
local assassin    = 75025  


local newaddon    = 'Cling clang! ', cid
local noitems        = 'Lil\'one no have item?', cid
local noitems2    = 'Lil\'one no have item?', cid
local already        = 'We have already traded!', cid
        
-- ASSASSIN START --
function AssassinFirst(cid, message, keywords, parameters, node)

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

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,assassin)
    if addon == -1 then
        if getPlayerItemCount(cid,2487) >= 1 then
        if doPlayerRemoveItem(cid,2487,1) then
            npcHandler:say(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddItem(cid,5887,1)
        end
        else
            npcHandler:say(noitems)
        end
    else
        npcHandler:say(already)
    end
    end

end

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

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

       if isPremium(cid) then
    addon = getPlayerStorageValue(cid,assassin)
    if addon == -1 then
        if getPlayerItemCount(cid,2516) >= 1 then
        if doPlayerRemoveItem(cid,2516,1) then
            npcHandler:say(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddItem(cid,5889,1)
        end
        else
            npcHandler:say(noitems)
        end
    else
        npcHandler:say(already)
    end
    end

end

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

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

       if isPremium(cid) then
    addon = getPlayerStorageValue(cid,assassin)
    if addon == -1 then
        if getPlayerItemCount(cid,2462) >= 1 then
        if doPlayerRemoveItem(cid,2462,1) then
            npcHandler:say(newaddon)
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddItem(cid,5888,1)
        end
        else
            npcHandler:say(noitems)
        end
    else
        npcHandler:say(already)
    end
    end

end

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

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

       if isPremium(cid) then
    addon = getPlayerStorageValue(cid,assassin)
    if addon == -1 then
        if getPlayerItemCount(cid,2393) >= 1 then
        if doPlayerRemoveItem(cid,2393,1) then
            npcHandler:say(newaddon)
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddItem(cid,5892,1)
        end
        else
            npcHandler:say(noitems)
        end
    else
        npcHandler:say(already)
    end
    end

end

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

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

       if isPremium(cid) then
    addon = getPlayerStorageValue(cid,assassin)
    if addon == -1 then
sorb = getPlayerItemCount(cid,5944)
        if getPlayerItemCount(cid,5944) >= 1 then
        if doPlayerRemoveItem(cid,5944,sorb) then
            npcHandler:say(newaddon)
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddItem(cid,6529,(sorb*5))
        end
        else
            npcHandler:say(noitems)
        end
    else
        npcHandler:say(already)
    end
    end

end
-- ASSASSIN END --

keywordHandler:addKeyword({'help'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "Hum Humm! Welcume lil' Player. I forge steel from itens."})
keywordHandler:addKeyword({'steel'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "There is many kind of steel please look on tibia wikia for more information."})

local node3 = keywordHandler:addKeyword({'za\'ralator'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Hellsteel is. Cursed and evil. Dangerous to work with. Me can make from evil helmet. Lil\' one want to trade?'})
    node3:addChildKeyword({'yes'}, AssassinThird, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node3:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got the neccessary items.', reset = true})

local node4 = keywordHandler:addKeyword({'uth\'prta'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Good iron is. Me friends use it much for fight. Me can make from weapon. Lil\' want to trade?'})
    node4:addChildKeyword({'yes'}, AssassinFourth, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node4:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got the neccessary items.', reset = true})

local node5 = keywordHandler:addKeyword({'soul orb'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Uh. Me can make some nasty lil\' bolt from soul orbs. Lil\' one want to trade all?'})
    node5:addChildKeyword({'yes'}, AssassinFifth, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node5:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got the neccessary items.', reset = true})

local node1 = keywordHandler:addKeyword({'uth\'kean'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Very noble. Shiny. Me like. But breaks so fast. Me can make from shiny armour. Lil\' one want to trade?'})
    node1:addChildKeyword({'yes'}, AssassinFirst, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got the neccessary items.', reset = true})

local node2 = keywordHandler:addKeyword({'uth\'lokr'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Firy steel it is. Need green one\'s breath to melt. Or red even better. Me can make from shield. Lil\' one want to trade?'})
    node2:addChildKeyword({'yes'}, AssassinSecond, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got the neccessary items.', reset = true})

npcHandler:addModule(FocusModule:new())

By the way, he doesn't exchange obsidian knife. You will have to do it yourself :p
 
He is performing exchanges:

You give him/He gives you/Words

Devil Helmet/Piece of Hell Steel: Za'Ralator
Crown Armor/Piece of Royal Steel: Uth'Kean
Dragon Shield/Piece of Draconian Steel: Uth'Lokr
Giant Sword/Huge Chunk of Crude Iron: Uth'Prta
Soul Orb/5 Infernal Bolts per Soul Orb: Soul Orb
 
He is performing exchanges:

You give him/He gives you/Words

Devil Helmet/Piece of Hell Steel: Za'Ralator
Crown Armor/Piece of Royal Steel: Uth'Kean
Dragon Shield/Piece of Draconian Steel: Uth'Lokr
Giant Sword/Huge Chunk of Crude Iron: Uth'Prta
Soul Orb/5 Infernal Bolts per Soul Orb: Soul Orb


exchanges need to speak the language cyc?
 
Finally ;)
PHP:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

function onCreatureAppear(cid)            npcHandler:onCreatureAppear(cid)        end
function onCreatureDisappear(cid)        npcHandler:onCreatureDisappear(cid)        end
function onCreatureSay(cid, type, msg)        npcHandler:onCreatureSay(cid, type, msg)    

end
function onThink()                npcHandler:onThink()                end

-- Storage IDs --
local assassin    = 75025  


local newaddon    = 'Cling clang! ', cid
local noitems        = 'Lil\'one no have item?', cid
local noitems2    = 'Lil\'one no have item?', cid
local already        = 'We have already traded!', cid
        
-- ASSASSIN START --
function AssassinFirst(cid, message, keywords, parameters, node)

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

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,assassin)
    if addon == -1 then
        if getPlayerItemCount(cid,2487) >= 1 then
        if doPlayerRemoveItem(cid,2487,1) then
            npcHandler:say(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddItem(cid,5887,1)
        end
        else
            npcHandler:say(noitems)
        end
    else
        npcHandler:say(already)
    end
    end

end

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

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

       if isPremium(cid) then
    addon = getPlayerStorageValue(cid,assassin)
    if addon == -1 then
        if getPlayerItemCount(cid,2516) >= 1 then
        if doPlayerRemoveItem(cid,2516,1) then
            npcHandler:say(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddItem(cid,5889,1)
        end
        else
            npcHandler:say(noitems)
        end
    else
        npcHandler:say(already)
    end
    end

end

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

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

       if isPremium(cid) then
    addon = getPlayerStorageValue(cid,assassin)
    if addon == -1 then
        if getPlayerItemCount(cid,2462) >= 1 then
        if doPlayerRemoveItem(cid,2462,1) then
            npcHandler:say(newaddon)
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddItem(cid,5888,1)
        end
        else
            npcHandler:say(noitems)
        end
    else
        npcHandler:say(already)
    end
    end

end

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

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

       if isPremium(cid) then
    addon = getPlayerStorageValue(cid,assassin)
    if addon == -1 then
        if getPlayerItemCount(cid,2393) >= 1 then
        if doPlayerRemoveItem(cid,2393,1) then
            npcHandler:say(newaddon)
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddItem(cid,5892,1)
        end
        else
            npcHandler:say(noitems)
        end
    else
        npcHandler:say(already)
    end
    end

end

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

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

       if isPremium(cid) then
    addon = getPlayerStorageValue(cid,assassin)
    if addon == -1 then
sorb = getPlayerItemCount(cid,5944)
        if getPlayerItemCount(cid,5944) >= 1 then
        if doPlayerRemoveItem(cid,5944,sorb) then
            npcHandler:say(newaddon)
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddItem(cid,6529,(sorb*5))
        end
        else
            npcHandler:say(noitems)
        end
    else
        npcHandler:say(already)
    end
    end

end

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

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

       if isPremium(cid) then
    addon = getPlayerStorageValue(cid,assassin)
    if addon == -1 then
        if getPlayerItemCount(cid,2425) >= 1 and getPlayerItemCount(cid,2516) >= 1 then
        if doPlayerRemoveItem(cid,2425,1) and doPlayerRemoveItem(cid,2516,1) then
            npcHandler:say(newaddon)
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddItem(cid,5908,1)
        end
        else
            npcHandler:say(noitems)
        end
    else
        npcHandler:say(already)
    end
    end

end
-- ASSASSIN END --

local node3 = keywordHandler:addKeyword({'devil helmet'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to trade a devil helmet for a piece of hell steel?'})
    node3:addChildKeyword({'yes'}, AssassinThird, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node3:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got the neccessary items.', reset = true})

local node4 = keywordHandler:addKeyword({'giant sword'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to trade a giant sword for a huge chunk of crude iron.'})
    node4:addChildKeyword({'yes'}, AssassinFourth, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node4:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got the neccessary items.', reset = true})

local node5 = keywordHandler:addKeyword({'soul orb'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can give you 5 infernal bolts for each soul orb. Do you want to trade all?'})
    node5:addChildKeyword({'yes'}, AssassinFifth, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node5:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got the neccessary items.', reset = true})

local node1 = keywordHandler:addKeyword({'crown armor'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to trade a crown armor for a piece of royal steel?'})
    node1:addChildKeyword({'yes'}, AssassinFirst, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got the neccessary items.', reset = true})

local node2 = keywordHandler:addKeyword({'dragon shield'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to trade a dragon shield for a piece of draconian steel?'})
    node2:addChildKeyword({'yes'}, AssassinSecond, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got the neccessary items.', reset = true})
	
local node6 = keywordHandler:addKeyword({'obsidian knife'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to trade a dragon shield and an obsidian lance for a obsidian knife?'})
    node6:addChildKeyword({'yes'}, AssassinSixth, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node6:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got the neccessary items.', reset = true})

npcHandler:addModule(FocusModule:new())
 
Hmmm... I dont know. I have Zorzin ver. 1.1 for Tibia 7.92. I search all archives and i nothing found for Tiba 7.92. (My English its Bad ;D)
 
A Sweaty Cyclops.xml
PHP:
<?xml version="1.0"?> 
<npc name="A Sweaty Cyclops" script="data/npc/scripts/sweatycyclops.lua" walkinterval="2500" access="5"> 
  <mana now="800" max="800" /> 
  <look type="22" head="0" body="0" legs="0" feet="0" /> 
  <parameters> 
    <parameter key="message_greet" value="Hum Humm! Welcume lil' |PLAYERNAME|. Me can forge steel from uth'prta, soul orbs, za'ralator, uth' lokr and uth'kean." /> 
    <parameter key="message_farewell" value="Good bye lil' one. " /> 
  </parameters> 
</npc>
sweatycyclops.lua
PHP:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

function onCreatureAppear(cid)            npcHandler:onCreatureAppear(cid)        end
function onCreatureDisappear(cid)        npcHandler:onCreatureDisappear(cid)        end
function onCreatureSay(cid, type, msg)        npcHandler:onCreatureSay(cid, type, msg)    

end
function onThink()                npcHandler:onThink()                end

-- Storage IDs --
local assassin    = 75025  


local newaddon    = 'Cling clang! ', cid
local noitems        = 'Lil\'one no have item?', cid
local noitems2    = 'Lil\'one no have item?', cid
local already        = 'We have already traded!', cid
        
-- ASSASSIN START --
function AssassinFirst(cid, message, keywords, parameters, node)

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

    if isPremium(cid) then
    addon = getPlayerStorageValue(cid,assassin)
    if addon == -1 then
        if getPlayerItemCount(cid,2487) >= 1 then
        if doPlayerRemoveItem(cid,2487,1) then
            npcHandler:say(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddItem(cid,5887,1)
        end
        else
            npcHandler:say(noitems)
        end
    else
        npcHandler:say(already)
    end
    end

end

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

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

       if isPremium(cid) then
    addon = getPlayerStorageValue(cid,assassin)
    if addon == -1 then
        if getPlayerItemCount(cid,2516) >= 1 then
        if doPlayerRemoveItem(cid,2516,1) then
            npcHandler:say(newaddon)
             
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddItem(cid,5889,1)
        end
        else
            npcHandler:say(noitems)
        end
    else
        npcHandler:say(already)
    end
    end

end

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

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

       if isPremium(cid) then
    addon = getPlayerStorageValue(cid,assassin)
    if addon == -1 then
        if getPlayerItemCount(cid,2462) >= 1 then
        if doPlayerRemoveItem(cid,2462,1) then
            npcHandler:say(newaddon)
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddItem(cid,5888,1)
        end
        else
            npcHandler:say(noitems)
        end
    else
        npcHandler:say(already)
    end
    end

end

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

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

       if isPremium(cid) then
    addon = getPlayerStorageValue(cid,assassin)
    if addon == -1 then
        if getPlayerItemCount(cid,2393) >= 1 then
        if doPlayerRemoveItem(cid,2393,1) then
            npcHandler:say(newaddon)
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddItem(cid,5892,1)
        end
        else
            npcHandler:say(noitems)
        end
    else
        npcHandler:say(already)
    end
    end

end

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

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

       if isPremium(cid) then
    addon = getPlayerStorageValue(cid,assassin)
    if addon == -1 then
sorb = getPlayerItemCount(cid,5944)
        if getPlayerItemCount(cid,5944) >= 1 then
        if doPlayerRemoveItem(cid,5944,sorb) then
            npcHandler:say(newaddon)
            doSendMagicEffect(getCreaturePosition(cid), 13)
            doPlayerAddItem(cid,6529,(sorb*5))
        end
        else
            npcHandler:say(noitems)
        end
    else
        npcHandler:say(already)
    end
    end

end
-- ASSASSIN END --

keywordHandler:addKeyword({'help'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "Hum Humm! Welcume lil' Player. I forge steel from itens."})
keywordHandler:addKeyword({'steel'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "There is many kind of steel please look on tibia wikia for more information."})

local node3 = keywordHandler:addKeyword({'za\'ralator'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Hellsteel is. Cursed and evil. Dangerous to work with. Me can make from evil helmet. Lil\' one want to trade?'})
    node3:addChildKeyword({'yes'}, AssassinThird, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node3:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got the neccessary items.', reset = true})

local node4 = keywordHandler:addKeyword({'uth\'prta'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Good iron is. Me friends use it much for fight. Me can make from weapon. Lil\' want to trade?'})
    node4:addChildKeyword({'yes'}, AssassinFourth, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node4:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got the neccessary items.', reset = true})

local node5 = keywordHandler:addKeyword({'soul orb'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Uh. Me can make some nasty lil\' bolt from soul orbs. Lil\' one want to trade all?'})
    node5:addChildKeyword({'yes'}, AssassinFifth, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node5:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got the neccessary items.', reset = true})

local node1 = keywordHandler:addKeyword({'uth\'kean'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Very noble. Shiny. Me like. But breaks so fast. Me can make from shiny armour. Lil\' one want to trade?'})
    node1:addChildKeyword({'yes'}, AssassinFirst, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got the neccessary items.', reset = true})

local node2 = keywordHandler:addKeyword({'uth\'lokr'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Firy steel it is. Need green one\'s breath to melt. Or red even better. Me can make from shield. Lil\' one want to trade?'})
    node2:addChildKeyword({'yes'}, AssassinSecond, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got the neccessary items.', reset = true})

npcHandler:addModule(FocusModule:new())

By the way, he doesn't exchange obsidian knife. You will have to do it yourself :p

is this script compatible with TFS Mystic Spirit 0.2.4? coz wen i run it, is brings up these errors:

Code:
[25/07/2009 20:25:20] data/npc/lib/npcsystem/npchandler.lua:576: table index is nil
[25/07/2009 20:25:20] stack traceback:
[25/07/2009 20:25:20] 	data/npc/lib/npcsystem/npchandler.lua:576: in function 'say'
[25/07/2009 20:25:20] 	data/npc/scripts/sweatycyclops.lua:110: in function 'callback'
[25/07/2009 20:25:20] 	data/npc/lib/npcsystem/keywordhandler.lua:40: in function 'processMessage'
[25/07/2009 20:25:20] 	data/npc/lib/npcsystem/keywordhandler.lua:168: in function 'processNodeMessage'
[25/07/2009 20:25:20] 	data/npc/lib/npcsystem/keywordhandler.lua:122: in function 'processMessage'
[25/07/2009 20:25:20] 	data/npc/lib/npcsystem/npchandler.lua:371: in function 'onCreatureSay'
[25/07/2009 20:25:20] 	data/npc/scripts/sweatycyclops.lua:7: in function <data/npc/scripts/sweatycyclops.lua:7>

[25/07/2009 20:25:28] Lua Script Error: [Npc interface] 
[25/07/2009 20:25:28] data/npc/scripts/sweatycyclops.lua:onCreatureSay

[25/07/2009 20:25:28] data/npc/lib/npcsystem/npchandler.lua:576: table index is nil
[25/07/2009 20:25:28] stack traceback:
[25/07/2009 20:25:28] 	data/npc/lib/npcsystem/npchandler.lua:576: in function 'say'
[25/07/2009 20:25:28] 	data/npc/scripts/sweatycyclops.lua:110: in function 'callback'
[25/07/2009 20:25:28] 	data/npc/lib/npcsystem/keywordhandler.lua:40: in function 'processMessage'
[25/07/2009 20:25:28] 	data/npc/lib/npcsystem/keywordhandler.lua:168: in function 'processNodeMessage'
[25/07/2009 20:25:28] 	data/npc/lib/npcsystem/keywordhandler.lua:128: in function 'processMessage'
[25/07/2009 20:25:28] 	data/npc/lib/npcsystem/npchandler.lua:371: in function 'onCreatureSay'
[25/07/2009 20:25:28] 	data/npc/scripts/sweatycyclops.lua:7: in function <data/npc/scripts/sweatycyclops.lua:7

any ideas?
 
Back
Top Bottom