• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

I need help for certain things..

Ripags

Experienced Member
Joined
Sep 14, 2009
Messages
217
Reaction score
4
Location
Exiva ;P
Hi guys and thanks for listening to me!
Firstly;
I have a problem with furniture seller, because when someones wants to but items from him he(all sellers) just answer " Sorry, I'm not offering anything.".. If someone knows the reason i would be pleased!
Secondly Those someone knows where can i find a perfect arena?. Because i had been trying to solve mine for long time and there is no way!
Thirdly and last!.. when people go through that fire thats on poi entrance where you need to have a team of 4 people to open your way and click on each vocation lever.. the fire does not cause any damage on people and an error on movements appears
Well guys thats all, if u can help me please do it ! Thanks for all and i ll give rep for those that help me or tried to do so.
 
These Would be furniture.lua inside npc/scripts
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

function onCreatureAppear(cid) npcHandlernCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandlernCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandlernCreatureSay(cid, type, msg) end
function onThink() npcHandlernThink() end

-- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions!
keywordHandler:addKeyword({'chairs'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell wooden, sofa, red cushioned, green cushioned, tusk and ivory chairs.'})
keywordHandler:addKeyword({'tables'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell big, square, round, small, stone, tusk, bamboo tables.'})
keywordHandler:addKeyword({'plants'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell pink and green flowers, also christmas trees.'})
keywordHandler:addKeyword({'furniture'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell large trunks, boxes, drawers, dressers, lockers and troughs.'})
keywordHandler:addKeyword({'more'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell coal basins, birdcages, harps, pianos, globes, clocks and lamps.'})
keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell blue, green, orange, pink, red, white and yellow tapestries.'})
keywordHandler:addKeyword({'small'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell small purple, small green, small red, small blue, small orange, small turquiose and small white pillows.'})
keywordHandler:addKeyword({'round'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell round blue, round red, round purple and round turquiose pillows.'})
keywordHandler:addKeyword({'square'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell blue, red, green and yellow pillows.'})
keywordHandler:addKeyword({'pillows'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell heart, small, sqare and round pillows.'})
keywordHandler:addKeyword({'beds'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell {green}, {red} and {yellow} {beds} for {5000}gp. I can sell you too standard bed (to remove modification)'})

npcHandler:addModule(FocusModule:new())
 
Hey santigg i found i had two furniture.lua.. that might be the reason or it has nothing to do?... By the way thanks for anwsering
 
Yes, that could be the reason, if you can post both scripts with XMLs files it would be awesome :p
 
Yeah here they are.. i dont know if these is what u want but;S..

Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Gamon" script="data/npc/scripts/SELL/furniture.lua" walkinterval="2000" floorchange="0">
    <health now="100" max="100"/>
    <look type="128" head="97" body="58" legs="105" feet="120" addons="0"/>
    <parameters>
        <parameter key="message_greet" value="Nice to meet you, Mister |PLAYERNAME|! Looking for furniture? You've come to the right place!"/>
        <parameter key="message_farewell" value="You'll come back. They all do."/>
        <parameter key="module_keywords" value="1" />
        <parameter key="keywords" value="job;" />
        <parameter key="keyword_reply1" value="I am Thais's foremost furniture salesman." />

        <parameter key="module_shop" value="1"/>
		<parameter key="shop_buyable" value="" />
    </parameters>
</npc>
 
Last edited:
Yeah here they are.. i dont know if these is what u want but;S..

<?xml version="1.0" encoding="UTF-8"?>
<npc name="Gamon" script="data/npc/scripts/SELL/furniture.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100"/>
<look type="128" head="97" body="58" legs="105" feet="120" addons="0"/>
<parameters>
<parameter key="message_greet" value="Nice to meet you, Mister |PLAYERNAME|! Looking for furniture? You've come to the right place!"/>
<parameter key="message_farewell" value="You'll come back. They all do."/>
<parameter key="module_keywords" value="1" />
<parameter key="keywords" value="job;" />
<parameter key="keyword_reply1" value="I am Thais's foremost furniture salesman." />

<parameter key="module_shop" value="1"/>
<parameter key="shop_buyable" value="" />
</parameters>
</npc>

could you use
Code:
TEXT HERE[./CODE] without the . (dot)?
 

Similar threads

Back
Top