Ir para conteúdo

Posts Recomendados

Poxa Pessoal é um seguinte Eu estou curioso e sei que esse poste pode ajuda Mutas pessoas com a mesma duvida que eu

 

E o Segunte Eu preciso de 1 Scrip Eu não sei se é Um Action Ou Um Talk action

 

Exp: Quando a gente clica no Gold ele vira Plation Acount certo .

 

Agora eu queria Um Que eu Clicacse Ne Algum Iten e ele Ativasa a Outfit Automaticamente no Perssonagen

 

é se clicar Novamente Desativa a Outfit Alguem pode me passa esse Action se for Por Favor Preciso muiito !!

 

Mas Assim So pode usa a outfit Se clicar no Iten e desativer so se clicar no iten

Mas Assim que clicar O Boneco ja fica com a outfit sem precisar de ir em SEFT OUTFIT Seila como se escreve xD !

 

Agradesço Muito quem Poder me ajuda

 

Aff Postei na area Erra né :( se tiver como alguem mover pramin agradesço :D

Link para o comentário
https://xtibia.com/forum/topic/159650-ajuda-me-preciso-de-1-scrip-action-talkaction/
Compartilhar em outros sites

tenta esse :63_63:

 

function onUse(cid, item, frompos, item2, topos)
if item.uid == 5252 then

getPlayerStorageValue(cid,3517)
doPlayerSendTextMessage(cid,22,"Isso ai voce eh foda!.")
setPlayerStorageValue(cid,3517,1)
else

doPlayerSendTextMessage(cid,22,"Isso ai voce eh foda!")


end

return 1

end 

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 buyAddons(cid, message, keywords, parameters, node)
--TODO: buyAddons function in modules.lua
if(not npcHandler:isFocused(cid)) then
	return false
end

local addon = parameters.addon
local cost = parameters.cost
local premium = (parameters.premium ~= nil and parameters.premium)

if isPlayerPremiumCallback == nil or (isPlayerPremiumCallback(cid) and premium) then
	if doPlayerRemoveMoney(cid, cost) == TRUE then
		doPlayerAddAddons(cid, addon)
		npcHandler:say('There, you are now able to use all addons!', cid)
	else
		npcHandler:say('Sorry, you do not have enough money.', cid)
	end
else
	npcHandler:say('I only serve customers with premium accounts.', cid)
end

keywordHandler:moveUp(1)
return true
end

local node1 = keywordHandler:addKeyword({'first addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to buy the first addons set for 250000 gold coins?'})
node1:addChildKeyword({'yes'}, buyAddons, {addon = 1, cost = 250000, premium = true})
node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, moveup = 1, text = 'Too expensive, eh?'})

local node2 = keywordHandler:addKeyword({'second addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Would you like to buy the second addons set for 500000 gold coins?'})
node2:addChildKeyword({'yes'}, buyAddons, {addon = 2, cost = 500000, premium = true})
node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, moveup = 1, text = 'Too expensive, eh?'})

keywordHandler:addKeyword({'addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell the first addons set for 250000 gold coins and the second addons set for 500000 gold coins.'})

npcHandler:addModule(FocusModule:new())

  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...