- 0
Colocar Storage Em Script Já Existente
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.
-
Conteúdo Similar
-
script alguém pode me ajudar nessa spells aqui, queira que colocassem pro meu personagem ficar inatingível por 6 segundos e podendo atacar livremente
Por lazaroszz,
- 0 respostas
- 1054 visualizações
-
- 3 respostas
- 4348 visualizações
-
- 2 respostas
- 1961 visualizações
-
- 1 resposta
- 1652 visualizações
-
- 1 resposta
- 1785 visualizações
-

Pergunta
dragonfight 53
Pessoal, estou apanhando pra colocar um storage nesse script, de modo que os itens só possam ser trocados 1 vez..
Se alguém puder ajudar dou rep+
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 function GSS(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getPlayerItemCount(cid,5879) >= 1 then if doPlayerRemoveItem(cid,5879,1) then npcHandler:say('Here is your spool of yarn!', cid) doPlayerAddItem(cid,5886,1) end else npcHandler:say('Sorry, you don\'t have the giant spider silk!', cid) end end keywordHandler:addKeyword({'giant spider silk'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you wanna exchange a giant spider silk into a {spool of yarn}?.'}) local node1 = keywordHandler:addKeyword({'spool of yarn'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Are you sure?'}) node1:addChildKeyword({'yes'}, GSS, {npcHandler = npcHandler, onlyFocus = true, reset = true}) node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Come back when you want.', reset = true}) npcHandler:addModule(FocusModule:new())Link para o comentário
https://xtibia.com/forum/topic/163051-colocar-storage-em-script-j%C3%A1-existente/Compartilhar em outros sites
2 respostass a esta questão
Posts Recomendados