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

Fallen's NPC Maker v1.4 (using talkState)

Delirium

OTLand veteran
Staff member
Global Moderator
Joined
May 28, 2007
Messages
3,365
Solutions
1
Reaction score
289
Location
Athens, Greece
Hello.

This is a tool made solely by Fallen and compiled by me. It is an npc maker which generates a .lua file and uses talkState to function. Is is written using Qt C++ Library v4.7.0

Screenshot:
5ppv9y.png


Changelog:
  • Version 1.0:
    • Initial release.
  • Version 1.1:
    • Added a feature which shows the NPC.
    • Added file name.
    • Fixed a bug with window close.
    • Removed shit after "Make new" or "Make script".
  • Version 1.3:
    • XML Support.
    • Added NPC filename to sellable/buyable items.
  • Version 1.4:
    • Now it won't erase the filename when pressing "Add New".
    • Support for sellable/buyable items.

Example of buyable/sellable items:
Lua:
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

local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)

shopModule:addSellableItem({'a wand'}, 9023, 200, 'wand')
shopModule:addBuyableItem({'a rod'}, 2456, 300, 1, 'rod')


npcHandler:addModule(FocusModule:new())


All credits go to Fallen.

Download:
Fallen s NPC Maker - Rar
If you have any question or comment please, do not hesitate to post it!

Yours,
Delirium.
 
Last edited by a moderator:
it was Cykotitan's idea :p
why did you fuck up tabbing?
 
Last edited:
Make it update script with a preview in realtime!
 
2 things!
1.when you click "add new" it erases file name.
2.the only way to ad a file name to a file is by writing the name then pressing "add new" then "make script".
check those things out.
 
2 things!
1.when you click "add new" it erases file name.
2.the only way to ad a file name to a file is by writing the name then pressing "add new" then "make script".
check those things out.
thanks, will be patched in next rev
 
@Delirium, Why are you using windows 7
@Cykotitan stop editing lua files and do real c++ proyect xd
@Fallen Trollface


edit: i forgot real comment

Nice fallen quest, npc maker , wat next?
 
Last edited:
It's the same has my NPC maker, just that this one supports 2 little things. However it's good.
 
Updated.
Changelog:
* Now it doesnt erase the file name on "add new"
* support for sellable/buyable, example:
Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

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

local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)

shopModule:addSellableItem({'a wand'}, 9023, 200, 'wand')
shopModule:addBuyableItem({'a rod'}, 2456, 300, 1, 'rod')


npcHandler:addModule(FocusModule:new())
Download:
Npc Maker rar
 
Last edited:
PRO :D can troll now!! VERY JUSEFULL ! PROMISE :D i make pro quest npc in buy and sell :S
 
Back
Top