Então um player me reporto o seguinte problema, ele fez o primeiro addon citizen (first citizen addon), só que quando ele falava second citizen addon aparecia a seguinte mensagem "You already have this addon!", falando que ele já tem o second citizen mas ele so tem o first.
como arrumar isso?
...: Scrip :...
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:setMessage(MESSAGE_GREET, "Greetings |PLAYERNAME|. Will you help me? If you do, I'll reward you with nice addons! Just say {addons} or {help} if you don't know what to do.")
function playerBuyAddonNPC(cid, message, keywords, parameters, node)
if(not npcHandler:isFocused(cid)) then
return false
end
if (parameters.confirm ~= true) and (parameters.decline ~= true) then
if(getPlayerPremiumDays(cid) == 0) and (parameters.premium == true) then
npcHandler:say('Sorry, but this addon is only for premium players!', cid)
npcHandler:resetNpc()
return true
end
if (getPlayerStorageValue(cid, parameters.storageID) ~= -1) then
npcHandler:say('You already have this addon!', cid)
keywordHandler:addKeyword({'addons'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can give you citizen, hunter, mage, knight, nobleman, summoner, warrior, barbarian, druid, wizard, oriental, pirate, assassin, beggar, shaman, norseman, nighmare, jester, brotherhood, demonhunter, yalaharian, warmaster and wayfarer addons.'})
keywordHandler:addKeyword({'help'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To buy the first addon say \'first NAME addon\', for the second addon say \'second NAME addon\'.'})
Pergunta
TiagoBordin1988 4
Então um player me reporto o seguinte problema, ele fez o primeiro addon citizen (first citizen addon), só que quando ele falava second citizen addon aparecia a seguinte mensagem "You already have this addon!", falando que ele já tem o second citizen mas ele so tem o first.
como arrumar isso?
...
: Scrip
:...
Link para o comentário
https://xtibia.com/forum/topic/185479-outfits-seller/Compartilhar em outros sites
1 resposta a esta questão
Posts Recomendados