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

[NPC] Problem with Bulma - item addon seller

picachu

Member
Joined
Dec 2, 2007
Messages
970
Reaction score
11
Hi guys!
Im using tfs 0.3.6

My item addon seller NPC isn't working!
I say trade but she said 'sorry i'm not offering anything'

Take a look
here's my npc:

Code:
<?xml version="1.0" encoding="UTF-8"?> 
<npc name="Bulma" script="data/npc/scripts/default.lua" walkinterval="2000" floorchange="0"> 
    <health now="100" max="100"/> 
    <look type="139" head="113" body="57" legs="95" feet="113" addons="3"/> 
    <parameters> 
        <parameter key="module_shop" value="1"/> 
        <parameter key="message_greet" value="Oi |PLAYERNAME|, Eu posso vender alguns items necessarios para seus addons, diga-me {trade} para ver o que eu posso lhe vender."/>
        <parameter key="shop_buyable" value="banana staff,3966,10000;tribal mask,3967,15000;simon the beggar's favorite staff,6107,100000;brutus bloodbeard's hat,6099,100000;lethal lissy's shirt,6100,100000;deadeye devious' eye patch,6102,100000;ron the ripper's sabre,6101,100000;eye patch,6098,3000;peg legs,6126,3000;hook,6097,3000;ceiron's wolf tooth chain,5940,10000;waterhose,5938,10000;spools of yarn,5886,50000;warrior's sweat,5885,40000;fighting spirit,5884,80000;sniper gloves,5875,50000;white piece of cloth,5909,15000;elane's crossbow,5947,5000;green piece of cloth,5910,5000;red piece of cloth,5911,10000;blue piece of cloth,5912,5000;brown piece of cloth,5913,5000;yellow piece of cloth,5914,10000;lizard leather,5876,1000;green dragon leather,5877,1000;minotaur leather,5878,2000;giant spider silk,5879,8000;iron ore,5880,1000;lizard scale,5881,1000;red dragon scale,5882,5000;ape fur,5883,2000;chicken feather,5890,3000;perfect behemoth fang,5893,5000;bat wing,5894,1000;fish fin,5895,15000;bear paw,5896,5000;wolf paw,5897,3000;beholder eye,5898,5000;turtle shell,5899,2000;dwarven beard,5900,1000;honeycomb,5902,2000;vampire dust,5905,15000;demon dust,5906,20000;heaven blosson,5921,2000;holy orchid,5922,15000;behemoth claw,5930,35000;demonic essence,6500,1500;
		dworc voodoo doll,5810,5000;vampiric crest,9955,100000;shard,7290,1000;hardened bone,5925,1000;blessed wooden stake,5942,10000;enchanted chicken wing,5891,50000;piece of royal stell,5887,50000;piece of draconian stell,5889,50000;piece of hell stell,5888,50000;ankh,2193,5000;huge chunk of crude iron,5892,150000"/> 
    </parameters> 
</npc>

Thx!
 
First off, the NPC's dialog is in Spanish...

Second, if what you're saying is correct, then showing us this NPC file doesn't help very much at all. You'll need to take a look at the script which the NPC is using. From the looks of it, it's using Default.lua... Perhaps your Default.lua file is incorrect?

It should look like this:

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())
 
I'm having this problem with
Rashid and djinn npc's too
omfg
help please!!!!

with THIS mode i posted in topic doesnt work
but with THIS mode:

Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
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 onThink()                    npcHandler:onThink()                    end

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

shopModule:addBuyableItem({'meat'}, 2666, 5, 'meat')
shopModule:addBuyableItem({'fish'}, 2667, 5, 'fish')
shopModule:addBuyableItem({'salmon'}, 2668, 5, 'salmon')
shopModule:addBuyableItem({'ham'}, 2671, 8, 'ham')
shopModule:addBuyableItem({'dragon ham'}, 2672, 20, 'dragon ham')
shopModule:addBuyableItem({'pear'}, 2673, 4, 'pear')
shopModule:addBuyableItem({'red apple'}, 2674, 3, 'red apple')
shopModule:addBuyableItem({'orange'}, 2675, 10, 'orange')
shopModule:addBuyableItem({'banana'}, 2676, 3, 'banana')
shopModule:addBuyableItem({'blueberry'}, 2677, 1, 'blueberry')
shopModule:addBuyableItem({'cherry'}, 2679, 1, 'cherry')
shopModule:addBuyableItem({'strawberry'}, 2680, 1, 'strawberry')
shopModule:addBuyableItem({'grape'}, 2680, 3, 'grape')
shopModule:addBuyableItem({'melon'}, 2682, 8, 'melon')
shopModule:addBuyableItem({'pumpkin'}, 2683, 10, 'pumpkin')
shopModule:addBuyableItem({'carrot'}, 2684, 3, 'carrot')
shopModule:addBuyableItem({'tomato'}, 2685, 5, 'tomato')
shopModule:addBuyableItem({'corncob'}, 2686, 3, 'corncob')
shopModule:addBuyableItem({'cookie'}, 2687, 2, 'cookie')
shopModule:addBuyableItem({'bread'}, 2689, 4, 'bread')
shopModule:addBuyableItem({'roll'}, 2690, 2, 'roll')
shopModule:addBuyableItem({'brown bread'}, 2691, 3, 'brown bread')
shopModule:addBuyableItem({'egg'}, 2695, 2, 'egg')
shopModule:addBuyableItem({'white mushroom'}, 2787, 6, 'white mushroom')
shopModule:addBuyableItem({'red mushroom'}, 2788, 12, 'red mushroom')
shopModule:addBuyableItem({'brown mushroom'}, 2789, 10, 'brown mushroom')
shopModule:addBuyableItem({'valentine cake'}, 6393, 6, 'valentine cake')
shopModule:addBuyableItem({'cookbook'}, 2347, 150, 'cookbook')

npcHandler:addModule(FocusModule:new())

someone have this mode of Rashid and djinns?
tyy
 
Back
Top