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
-- XVX FORGER START --
function helmet(cid, message, keywords, parameters, node)
if(not npcHandler:isFocused(cid)) then
return false
end
if getPlayerItemCount(cid,6527) >= 1 then
if doPlayerRemoveItem(cid,6527,1) then
npcHandler:say('Aqui esta seu item!', cid)
doPlayerAddItem(cid,10316,1)
end
else
npcHandler:say('Voce nao tem nenhuma vip coin!', cid)
end
end
function armor(cid, message, keywords, parameters, node)
if(not npcHandler:isFocused(cid)) then
return false
end
if getPlayerItemCount(cid,6527) >= 1 then
if doPlayerRemoveItem(cid,6527,1) then
npcHandler:say('Aqui esta seu item!', cid)
doPlayerAddItem(cid,8821,1)
end
else
npcHandler:say('Voce nao tem nenhuma vip coin!', cid)
end
end
function legs(cid, message, keywords, parameters, node)
if(not npcHandler:isFocused(cid)) then
return false
end
if getPlayerItemCount(cid,6527) >= 1 then
if doPlayerRemoveItem(cid,6527,1) then
npcHandler:say('Aqui esta seu item!', cid)
doPlayerAddItem(cid,7885,1)
end
else
npcHandler:say('Voce nao tem nenhuma vip coin!', cid)
end
end
function shield(cid, message, keywords, parameters, node)
if(not npcHandler:isFocused(cid)) then
return false
end
if getPlayerItemCount(cid,6527) >= 1 then
if doPlayerRemoveItem(cid,6527,1) then
npcHandler:say('Aqui esta seu item!', cid)
doPlayerAddItem(cid,2527,1)
end
else
npcHandler:say('Voce nao tem nenhuma vip coin!', cid)
end
end
function boots(cid, message, keywords, parameters, node)
if(not npcHandler:isFocused(cid)) then
return false
end
if getPlayerItemCount(cid,6527) >= 1 then
if doPlayerRemoveItem(cid,6527,1) then
npcHandler:say('Aqui esta seu item!', cid)
doPlayerAddItem(cid,7886,1)
end
else
npcHandler:say('Voce nao tem nenhuma vip coin!', cid)
end
end
function wand(cid, message, keywords, parameters, node)
if(not npcHandler:isFocused(cid)) then
return false
end
if getPlayerItemCount(cid,6527) >= 1 then
if doPlayerRemoveItem(cid,6527,1) then
npcHandler:say('Aqui esta seu item!', cid)
doPlayerAddItem(cid,8922,1)
end
else
npcHandler:say('Voce nao tem nenhuma vip coin!', cid)
end
end
function rod(cid, message, keywords, parameters, node)
if(not npcHandler:isFocused(cid)) then
return false
end
if getPlayerItemCount(cid,6527) >= 1 then
if doPlayerRemoveItem(cid,6527,1) then
npcHandler:say('Aqui esta seu item!', cid)
doPlayerAddItem(cid,8910,1)
end
else
npcHandler:say('Voce nao tem nenhuma vip coin!', cid)
end
end
function magic(cid, message, keywords, parameters, node)
if(not npcHandler:isFocused(cid)) then
return false
end
if getPlayerItemCount(cid,6527) >= 1 then
if doPlayerRemoveItem(cid,6527,1) then
npcHandler:say('Aqui esta seu item!', cid)
doPlayerAddItem(cid,2323,1)
end
else
npcHandler:say('Voce nao tem nenhuma vip coin!', cid)
end
end
function bow(cid, message, keywords, parameters, node)
if(not npcHandler:isFocused(cid)) then
return false
end
if getPlayerItemCount(cid,6527) >= 1 then
if doPlayerRemoveItem(cid,6527,1) then
npcHandler:say('Aqui esta seu item!', cid)
doPlayerAddItem(cid,8855,1)
end
else
npcHandler:say('Voce nao tem nenhuma vip coin!', cid)
end
end
function scarf(cid, message, keywords, parameters, node)
if(not npcHandler:isFocused(cid)) then
return false
end
if getPlayerItemCount(cid,6527) >= 1 then
if doPlayerRemoveItem(cid,6527,1) then
npcHandler:say('Aqui esta seu item!', cid)
doPlayerAddItem(cid,2661,1)
end
else
npcHandler:say('Voce nao tem nenhuma vip coin!', cid)
end
end
function axe(cid, message, keywords, parameters, node)
if(not npcHandler:isFocused(cid)) then
return false
end
if getPlayerItemCount(cid,6527) >= 1 then
if doPlayerRemoveItem(cid,6527,1) then
npcHandler:say('Aqui esta seu item!', cid)
doPlayerAddItem(cid,7419,1)
end
else
npcHandler:say('Voce nao tem nenhuma vip coin!', cid)
end
end
function club(cid, message, keywords, parameters, node)
if(not npcHandler:isFocused(cid)) then
return false
end
if getPlayerItemCount(cid,6527) >= 1 then
if doPlayerRemoveItem(cid,6527,1) then
npcHandler:say('Aqui esta seu item!', cid)
doPlayerAddItem(cid,7422,1)
end
else
npcHandler:say('Voce nao tem nenhuma vip coin!', cid)
end
end
function sword(cid, message, keywords, parameters, node)
if(not npcHandler:isFocused(cid)) then
return false
end
if getPlayerItemCount(cid,6527) >= 1 then
if doPlayerRemoveItem(cid,6527,1) then
npcHandler:say('Aqui esta seu item!', cid)
doPlayerAddItem(cid,7416,1)
end
else
npcHandler:say('Voce nao tem nenhuma vip coin!', cid)
end
end
-- XVX FORGER END --
keywordHandler:addKeyword({'help'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "Eu vendo itens vips como {helmet}, {armor}, {legs}, {shield}, {boots}, {wand}, {rod}, {magic hat}, {bow}, {scarf}, {axe}, {club} e {sword}!"})
local node1 = keywordHandler:addKeyword({'helmet'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Hum Humm! Bem Vindo. Voce gostaria de comprar um helmet vip por x vip coins. Yes or no??'})
node1:addChildKeyword({'yes'}, helmet, {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({'armor'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Hum Humm! Bem Vindo. Voce gostaria de comprar uma armor vip por x vip coins. Yes or no??'})
node2:addChildKeyword({'yes'}, armor, {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 node3 = keywordHandler:addKeyword({'legs'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Hum Humm! Bem Vindo. Voce gostaria de comprar uma legs vip por x vip coins. Yes or no??'})
node3:addChildKeyword({'yes'}, legs, {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({'shield'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Hum Humm! Bem Vindo. Voce gostaria de comprar um shield vip por x vip coins. Yes or no??'})
node4:addChildKeyword({'yes'}, shield, {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({'boots'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Hum Humm! Bem Vindo. Voce gostaria de comprar uma boots vip por x vip coins. Yes or no??'})
node5:addChildKeyword({'yes'}, boots, {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 node6 = keywordHandler:addKeyword({'wand'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Hum Humm! Bem Vindo. Voce gostaria de comprar uma wand vip por x vip coins. Yes or no??'})
node6:addChildKeyword({'yes'}, wand, {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})
local node7 = keywordHandler:addKeyword({'rod'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Hum Humm! Bem Vindo. Voce gostaria de comprar um rod vip por x vip coins. Yes or no??'})
node7:addChildKeyword({'yes'}, rod, {npcHandler = npcHandler, onlyFocus = true, reset = true})
node7:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got the neccessary items.', reset = true})
local node8 = keywordHandler:addKeyword({'magic hat'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Hum Humm! Bem Vindo. Voce gostaria de comprar um magic hat vip por x vip coins. Yes or no??'})
node8:addChildKeyword({'yes'}, magic, {npcHandler = npcHandler, onlyFocus = true, reset = true})
node8:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got the neccessary items.', reset = true})
local node9 = keywordHandler:addKeyword({'bow'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Hum Humm! Bem Vindo. Voce gostaria de comprar um bow vip por x vip coins. Yes or no??'})
node9:addChildKeyword({'yes'}, bow, {npcHandler = npcHandler, onlyFocus = true, reset = true})
node9:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got the neccessary items.', reset = true})
local node10 = keywordHandler:addKeyword({'scarf'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Hum Humm! Bem Vindo. Voce gostaria de comprar um scarf vip por x vip coins. Yes or no??'})
node10:addChildKeyword({'yes'}, scarf, {npcHandler = npcHandler, onlyFocus = true, reset = true})
node10:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got the neccessary items.', reset = true})
local node11 = keywordHandler:addKeyword({'axe'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Hum Humm! Bem Vindo. Voce gostaria de comprar um axe vip por x vip coins. Yes or no??'})
node11:addChildKeyword({'yes'}, axe, {npcHandler = npcHandler, onlyFocus = true, reset = true})
node11:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got the neccessary items.', reset = true})
local node12 = keywordHandler:addKeyword({'club'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Hum Humm! Bem Vindo. Voce gostaria de comprar um club vip por x vip coins. Yes or no??'})
node12:addChildKeyword({'yes'}, club, {npcHandler = npcHandler, onlyFocus = true, reset = true})
node12:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got the neccessary items.', reset = true})
local node13 = keywordHandler:addKeyword({'sword'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Hum Humm! Bem Vindo. Voce gostaria de comprar uma sword vip por x vip coins. Yes or no??'})
node3:addChildKeyword({'yes'}, asword, {npcHandler = npcHandler, onlyFocus = true, reset = true})
node3:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Bem, volte quando tiver algumas vip coins.', reset = true})
npcHandler:addModule(FocusModule:new())