Ezzz
Developer of Nostalrius and The Violet Project
Sup,
I already tryed to post 3x tools in the Tools board, the first one Quest NPC Maker which was really great and usefull, the last one was a NPC Creator which supports the conversations, shop, & boat modules to be in the script.lua.
However, a moderator is not allowing them for unknown reason. Even got an answer of why, i haven't got any notification or anything...Just the things empty.
<_< Can somebody please explain me, why aren't them allowed?. My NPC Creator is great for those that wants to make quest npcs...
Sample:
I already tryed to post 3x tools in the Tools board, the first one Quest NPC Maker which was really great and usefull, the last one was a NPC Creator which supports the conversations, shop, & boat modules to be in the script.lua.
However, a moderator is not allowing them for unknown reason. Even got an answer of why, i haven't got any notification or anything...Just the things empty.
<_< Can somebody please explain me, why aren't them allowed?. My NPC Creator is great for those that wants to make quest npcs...
Sample:
Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
-- Topic
local talkState = {}
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 onPlayerEndTrade(cid) npcHandler:onPlayerEndTrade(cid) end
function onPlayerCloseChannel(cid) npcHandler:onPlayerCloseChannel(cid) end
function onThink() npcHandler:onThink() end
-- Boat --
local travelNode = keywordHandler:addKeyword({"1}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "Do you want to travel to 1 for 1 gold coins?"})
travelNode:addChildKeyword({"yes"}, StdModule.travel, {npcHandler = npcHandler, premium = false, level = 0, cost = 1, destination = {x=1, y=1, z=1} })
travelNode:addChildKeyword({"no"}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = "I wouldn't go there either."})
-- Shop --
local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)
shopModule:addBuyableItem({'1'}, 1, 1, '1')
shopModule:addSellableItem({'1'}, 1, 1, '1')
-- Talk modules
function creatureSayCallback(cid, type, msg)
if(not npcHandler:isFocused(cid)) then
return false
end
local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid
if(msgcontains(msg, "1")) then
selfSay("1", cid)
end
return true
end
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())