Always when i try to buy somethink.
Aslo npc dont take money and dont give me item.
Code:[26/12/2009 05:50:36] [Error - Npc interface] [26/12/2009 05:50:36] (Unknown script file) [26/12/2009 05:50:36] Description: [26/12/2009 05:50:36] data/npc/lib/npcsystem/modules.lua:1156: bad argument #2 to 'error' (number expected, got string) [26/12/2009 05:50:36] stack traceback: [26/12/2009 05:50:36] [C]: in function 'error' [26/12/2009 05:50:36] data/npc/lib/npcsystem/modules.lua:1156: in function 'callbackOnBuy' [26/12/2009 05:50:36] data/npc/lib/npcsystem/npchandler.lua:263: in function 'processModuleCallback' [26/12/2009 05:50:36] data/npc/lib/npcsystem/npchandler.lua:440: in function 'onBuy' [26/12/2009 05:50:36] data/npc/lib/npcsystem/modules.lua:1292: in function <data/npc/lib/npcsystem/modules.lua:1291>
What do you want to sell?
Can you post the NPC script?
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({'leather armor'}, 2467, 40, 'leather armor')
shopModule:addBuyableItem({'studded armor'}, 2484, 60, 'studded armor')
shopModule:addBuyableItem({'leather boots'}, 2643, 10, 'leather boots')
shopModule:addBuyableItem({'leather helmet'}, 2461, 10, 'leather helmet')
shopModule:addBuyableItem({'studded helmet'}, 2482, 20, 'studded helmet')
shopModule:addBuyableItem({'leather legs'}, 2649, 10, 'leather legs')
shopModule:addBuyableItem({'wooden shield'}, 2512, 12, 'wooden shield')
shopModule:addBuyableItem({'studded shield'}, 2526, 40, 'studded shield')
shopModule:addBuyableItem({'hand axe'}, 2380, 20, 'hand axe')
shopModule:addBuyableItem({'club'}, 2382, 5, 'club')
shopModule:addBuyableItem({'spear'}, 2389, 10, 'spear')
shopModule:addBuyableItem({'machete'}, 2420, 35, 'machete')
shopModule:addSellableItem({'leather armor'}, 2467, 10, 'leather armor')
shopModule:addSellableItem({'studded armor'}, 2484, 20, 'studded armor')
shopModule:addSellableItem({'doublet'}, 2485, 5, 'doublet')
shopModule:addSellableItem({'chain armor'}, 2464, 40, 'chain armor')
shopModule:addSellableItem({'brass armor'}, 2465, 150, 'brass armor')
shopModule:addSellableItem({'leather helmet'}, 2461, 3, 'leather helmet')
shopModule:addSellableItem({'studded helmet'}, 2482, 12, 'studded helmet')
shopModule:addSellableItem({'chain helmet'}, 2458, 17, 'chain helmet')
shopModule:addSellableItem({'wooden shield'}, 2512, 3, 'wooden shield')
shopModule:addSellableItem({'studded shield'}, 2526, 10, 'studded shield')
shopModule:addSellableItem({'plate shield'}, 2510, 25, 'plate shield')
shopModule:addSellableItem({'brass shield'}, 2511, 15, 'brass shield')
shopModule:addSellableItem({'hand axe'}, 2380, 4, 'hand axe')
shopModule:addSellableItem({'axe'}, 2386, 7, 'axe')
shopModule:addSellableItem({'hatchet'}, 2388, 25, 'hatchet')
shopModule:addSellableItem({'mace'}, 2398, 30, 'mace')
shopModule:addSellableItem({'studded club'}, 2448, 4, 'studded club')
shopModule:addSellableItem({'spear'}, 2389, 3, 'spear')
shopModule:addSellableItem({'sword'}, 2376, 25, 'sword')
shopModule:addSellableItem({'spike sword'}, 2383, 200, 'spike sword')
shopModule:addSellableItem({'rapier'}, 2384, 5, 'rapier')
shopModule:addSellableItem({'sabre'}, 2385, 12, 'sabre')
function creatureSayCallback(cid, type, msg)
if(not npcHandler:isFocused(cid)) then
return false
end
return true
end
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
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({'magic lightwand'}, 2163, 200, 'magic lightwand')
shopModule:addBuyableItem({'small health'}, 8704, 20, 1, 'small health potion')
shopModule:addBuyableItem({'health potion'}, 7618, 45, 1, 'health potion')
shopModule:addBuyableItem({'mana potion'}, 7620, 50, 1, 'mana potion')
shopModule:addBuyableItem({'antidote potion'}, 8474, 50, 1, 'antidote potion')
shopModule:addSellableItem({'normal potion flask', 'normal flask'}, 7636, 5, 'empty small potion flask')
shopModule:addBuyableItem({'instense healing'}, 2265, 95, 1, 'intense healing rune')
shopModule:addBuyableItem({'destroy field'}, 2261, 45, 3, 'destroy field rune')
shopModule:addBuyableItem({'light magic missile'}, 2287, 40, 10, 'light magic missile rune')
shopModule:addBuyableItem({'fireball'}, 2302, 90, 4, 'fireball rune')
shopModule:addBuyableItemContainer({'bp slhp'}, 2000, 8704, 400, 1, 'backpack of small health potions')
shopModule:addBuyableItemContainer({'bp hp'}, 2000, 7618, 900, 1, 'backpack of health potions')
shopModule:addBuyableItemContainer({'bp mp'}, 2001, 7620, 1000, 1, 'backpack of mana potions')
shopModule:addBuyableItemContainer({'bp ap'}, 2002, 8474, 2000, 1, 'backpack of antidote potions')
shopModule:addSellableItem({'dead rabbit', 'rabbit'}, 3119, 2, 'dead rabbit')
shopModule:addSellableItem({'dead wolf', 'wolf'}, 3086, 5, 'dead wolf')
shopModule:addSellableItem({'dead rat', 'rat'}, 2813, 2, 'dead rat')
function creatureSayCallback(cid, type, msg)
if(not npcHandler:isFocused(cid)) then
return false
end
return true
end
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
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({'leather armor'}, 2467, 40, 'leather armor') shopModule:addBuyableItem({'studded armor'}, 2484, 60, 'studded armor') shopModule:addBuyableItem({'leather boots'}, 2643, 10, 'leather boots') shopModule:addBuyableItem({'leather helmet'}, 2461, 10, 'leather helmet') shopModule:addBuyableItem({'studded helmet'}, 2482, 20, 'studded helmet') shopModule:addBuyableItem({'leather legs'}, 2649, 10, 'leather legs') shopModule:addBuyableItem({'wooden shield'}, 2512, 12, 'wooden shield') shopModule:addBuyableItem({'studded shield'}, 2526, 40, 'studded shield') shopModule:addBuyableItem({'hand axe'}, 2380, 20, 'hand axe') shopModule:addBuyableItem({'club'}, 2382, 5, 'club') shopModule:addBuyableItem({'spear'}, 2389, 10, 'spear') shopModule:addBuyableItem({'machete'}, 2420, 35, 'machete') shopModule:addSellableItem({'leather armor'}, 2467, 10, 'leather armor') shopModule:addSellableItem({'studded armor'}, 2484, 20, 'studded armor') shopModule:addSellableItem({'doublet'}, 2485, 5, 'doublet') shopModule:addSellableItem({'chain armor'}, 2464, 40, 'chain armor') shopModule:addSellableItem({'brass armor'}, 2465, 150, 'brass armor') shopModule:addSellableItem({'leather helmet'}, 2461, 3, 'leather helmet') shopModule:addSellableItem({'studded helmet'}, 2482, 12, 'studded helmet') shopModule:addSellableItem({'chain helmet'}, 2458, 17, 'chain helmet') shopModule:addSellableItem({'wooden shield'}, 2512, 3, 'wooden shield') shopModule:addSellableItem({'studded shield'}, 2526, 10, 'studded shield') shopModule:addSellableItem({'plate shield'}, 2510, 25, 'plate shield') shopModule:addSellableItem({'brass shield'}, 2511, 15, 'brass shield') shopModule:addSellableItem({'hand axe'}, 2380, 4, 'hand axe') shopModule:addSellableItem({'axe'}, 2386, 7, 'axe') shopModule:addSellableItem({'hatchet'}, 2388, 25, 'hatchet') shopModule:addSellableItem({'mace'}, 2398, 30, 'mace') shopModule:addSellableItem({'studded club'}, 2448, 4, 'studded club') shopModule:addSellableItem({'spear'}, 2389, 3, 'spear') shopModule:addSellableItem({'sword'}, 2376, 25, 'sword') shopModule:addSellableItem({'spike sword'}, 2383, 200, 'spike sword') shopModule:addSellableItem({'rapier'}, 2384, 5, 'rapier') shopModule:addSellableItem({'sabre'}, 2385, 12, 'sabre') function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
I can selling, buy i can't buy anythink from this NPC
This is the another NPC what works correctly
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({'magic lightwand'}, 2163, 200, 'magic lightwand') shopModule:addBuyableItem({'small health'}, 8704, 20, 1, 'small health potion') shopModule:addBuyableItem({'health potion'}, 7618, 45, 1, 'health potion') shopModule:addBuyableItem({'mana potion'}, 7620, 50, 1, 'mana potion') shopModule:addBuyableItem({'antidote potion'}, 8474, 50, 1, 'antidote potion') shopModule:addSellableItem({'normal potion flask', 'normal flask'}, 7636, 5, 'empty small potion flask') shopModule:addBuyableItem({'instense healing'}, 2265, 95, 1, 'intense healing rune') shopModule:addBuyableItem({'destroy field'}, 2261, 45, 3, 'destroy field rune') shopModule:addBuyableItem({'light magic missile'}, 2287, 40, 10, 'light magic missile rune') shopModule:addBuyableItem({'fireball'}, 2302, 90, 4, 'fireball rune') shopModule:addBuyableItemContainer({'bp slhp'}, 2000, 8704, 400, 1, 'backpack of small health potions') shopModule:addBuyableItemContainer({'bp hp'}, 2000, 7618, 900, 1, 'backpack of health potions') shopModule:addBuyableItemContainer({'bp mp'}, 2001, 7620, 1000, 1, 'backpack of mana potions') shopModule:addBuyableItemContainer({'bp ap'}, 2002, 8474, 2000, 1, 'backpack of antidote potions') shopModule:addSellableItem({'dead rabbit', 'rabbit'}, 3119, 2, 'dead rabbit') shopModule:addSellableItem({'dead wolf', 'wolf'}, 3086, 5, 'dead wolf') shopModule:addSellableItem({'dead rat', 'rat'}, 2813, 2, 'dead rat') function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
I no see differnts ;/
local creature = doCreateMonster(cid, "Skeleton", pos)
doConvinceCreature(cid, creature)
doConvinceCreature(cid, doCreateMonster("Skeleton", pos))
Kaspersky
Internet Security 2010
ACESSO NEGADO
Não foi possível recuperar o URL solicitado
Ao tentar recuperar o URL:
http://www6.speedy*****malware.localhost/data/
633718469/19960796/99495381/force/
cryingdamson6pl1-gui.7z
Foi encontrada a seguinte ameaça:
O objeto solicitado está INFECTADO pelos seguintes vírus: Trojan.Win32.Delf.slc
I have crash in my serv 0.3.5 tfs
Chojrak fail xD
Its about 3.5.6