the problem is that I'm using Premium Acc as Vip ACC..
I've changed premmy spells and outfits to free players..
so every player can use premium/free spells, etc.. there's no problem.
It begin when i try tro buy a house with a Free Acc, it says that I need premium account(vip acc in my server) to buy house.. also the same problem while buying promotion..
I need to buying house and promotion dont need pacc..
I'm using theforgottenserver-v0.2.7 GUI (Mystic Spirit)
promotion.lua:
also i have a problem with npc/default.lua:
[26/06/2010 16:39:00] Lua Script Error: [Npc interface]
[26/06/2010 16:39:00] data/npc/scripts/default.lua: onThink
default.lua:
I've changed premmy spells and outfits to free players..
so every player can use premium/free spells, etc.. there's no problem.
It begin when i try tro buy a house with a Free Acc, it says that I need premium account(vip acc in my server) to buy house.. also the same problem while buying promotion..
I need to buying house and promotion dont need pacc..
I'm using theforgottenserver-v0.2.7 GUI (Mystic Spirit)
promotion.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 node1 = keywordHandler:addKeyword({'promot'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can promote you for 20000 gold coins. Do you want me to promote you?'})
node1:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 20000, level = 20, text = 'Congratulations! You are now promoted.'})
node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then, come back when you are ready.', reset = true})
npcHandler:addModule(FocusModule:new())
also i have a problem with npc/default.lua:
[26/06/2010 16:39:00] Lua Script Error: [Npc interface]
[26/06/2010 16:39:00] data/npc/scripts/default.lua: onThink
default.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
npcHandler:addModule(FocusModule:new())