-
Total de itens
729 -
Registro em
-
Última visita
-
Dias Ganhos
6
Tudo que kaleudd postou
-
Obrigado era isso mesmo,Ty!
-
-
Gostaria de remover o dinheiro e botar para vender por x item Meu script do npc/scripts 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 function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid local outs = { ["blastoise female"] = {181656}, ["venusaur male"] = {181657}, ["skarmory male"] = {181658}, ["gengar female"] = {181659}, ["charizard female"] = {181660}, ["pikachu female"] = {181661}, ["azumaril female"] = {181662}, ["gengar male"] = {181663}, ["charizard male"] = {181664}, ["blastoise male"] = {181665}, ["pikachu male"] = {181666}, } msg = string.lower(msg) local diamond = 10606 --id dos diamonds if (msgcontains(msg, 'outfit') or msgcontains(msg, 'outfits')) then selfSay("Eu vendo as seguintes outfits: {blastoise female, venusaur male, skarmory male, gengar female, charizard female, pikachu female, azumaril female, gengar male, charizard male, blastoise male e pikachu male}, qual delas voce quer??", cid) talkState[talkUser] = 2 elseif outs[msg] and talkState[talkUser] == 2 then selfSay("Tem certeza que quer comprar essa outfit?", cid) outfit = outs[tostring(msg)] talkState[talkUser] = 3 elseif msgcontains(msg, 'yes') and talkState[talkUser] == 3 then if getPlayerStorageValue(cid, outfit[1]) <= 0 then if getPlayerLevel(cid) > 1 then if outfit[2] then if doPlayerRemoveItem(cid, diamond, outfit[2]) then setPlayerStorageValue(cid, outfit[1], 1) else selfSay("Voce precisa de ".. outfit[2] .." Tecidos para comprar essa outfit!", cid) talkState[talkUser] = 0 return false end else if getPlayerMoney(cid) >= 20000 then doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, outfit[1], 1) else selfSay("Voce precisa de 200 Tecidos para comprar essa outfit!", cid) talkState[talkUser] = 0 return false end end else selfSay("!!!!!!!!", cid) talkState[talkUser] = 0 return false end else selfSay("Voce ja tem essa outfit, sentao por favor, escolha outra outfit...", cid) talkState[talkUser] = 0 return false end selfSay("Obrigado por comprar conosco!.", cid) talkState[talkUser] = 0 return true elseif msgcontains(msg, 'no') and talkState[talkUser] == 3 then selfSay("Entao... Por favor escolha outra outfit...", cid) talkState[talkUser] = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
-
pedido [Encerrado] Diferenciar pokémon de player!
um tópico no fórum postou kaleudd Tópicos Sem Resposta
Bem,tenho muitas hunts,quest em meu servidor,e de vez em quando os player se perder para usar potion pois a varios magmar ou pokemons parecido com os do player,e ai oque eu gostaria? Gostaria de um script que puxasse um Icone do otclient ou de qualquer lugar e ficasse ao lado da cabeça do pokemon,por exemplo uma mini-pokeball,assim podiamos diferenciar qual o poke do player Pv,nao sabia a area certa,obg!!! up up up up -
Link do Addon System que estou usando para pda. = http://www.xtibia.com/forum/topic/194023-download-addons-pokemons-151/ Problema:Ele funcionar perfeitamente,só tem um probleminha,a barra de Moves conheçida como Cooldown Bar,nao aparece os Moves dos pokemons que eu uso Addon,porém eu consigo usar tranquilamente usar o m1 á m12 up up UP BUCETAA up
-
Resolvido.
-
.SPR e .DAT PXG 22/03/2015 - DESCOMPILADO
tópico respondeu ao Sakegari de kaleudd em OTServer Alternativo (ATS)
Poderia descompilar os mais atualizado e liberar neh,seria uma boa..- 28 respostas
-
Gostaria de um script que ao entrar ele de x outfit,e retirasse somente quando o personagem tiver em Protect Zone e a outfit sumisse,obg! Base:Pda 1.2 up up
-
PIOR JOGO QUE JA VI CRIADO! PDA MAL FEITO!
-
Muito bom!!
-
npc [PEDIDO] Npc's de Batalha Pokemon que da item como recompensa
tópico respondeu ao tatotheus de kaleudd em Lixeira Pública
Melhorar nao usar esse acima,unica coisa que terá é lag com misturada de cods... -
ou qualquer outro,so preciso de um com nome de Pokémon System Urgente com o tamanho citado e seja qualquer um! up @up
-
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 function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid local outs = { ["outfit_name1"] = {Storage_Outfit1, Preço}, ["outfit_name2"] = {Storage_Outfit2, Preço}, } msg = string.lower(msg) local diamond = ID_DO_ITEM if (msgcontains(msg, 'outfit') or msgcontains(msg, 'outfits')) then selfSay("I sell these clothes: {Outfit_name1} and {Outfit_name2}, what you want?", cid) talkState[talkUser] = 2 elseif outs[msg] and talkState[talkUser] == 2 then selfSay("Are you sure you want to buy this outfit?", cid) outfit = outs[tostring(msg)] talkState[talkUser] = 3 elseif msgcontains(msg, 'yes') and talkState[talkUser] == 3 then if getPlayerStorageValue(cid, outfit[1]) <= 0 then if outfit[2] then if doPlayerRemoveItem(cid, diamond, outfit[2]) then setPlayerStorageValue(cid, outfit[1], 1) else selfSay("You need ".. outfit[2] .." Diamonds to buy that clothe!", cid) talkState[talkUser] = 0 return false end else if getPlayerMoney(cid) >= 20000 then doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, outfit[1], 1) else selfSay("Voce precisa 200dl para comprar essa roupa!", cid) -- Ignore talkState[talkUser] = 0 return false end end else selfSay("You already have that outfit, please choose another outfit...", cid) talkState[talkUser] = 0 return false end selfSay("Ok... Here it is.", cid) talkState[talkUser] = 0 return true elseif msgcontains(msg, 'no') and talkState[talkUser] == 3 then selfSay("So... Please choose another outfit...", cid) talkState[talkUser] = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
-
mesmo problema,quando dou /n Toms [09/08/2015 21:03:15] [Error - LuaScriptInterface::loadFile] data/npc/scripts/out.lua:1: unexpected symbol near 'ï' [09/08/2015 21:03:15] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/out.lua [09/08/2015 21:03:15] data/npc/scripts/out.lua:1: unexpected symbol near 'ï'
-
action [PDA] PokéDex em corpses de pokémons
tópico respondeu ao zipter98 de kaleudd em Mods, funções e outros
Usei no corpo.porem aparece como se o corpo tivesse invisível e da dez em baixo do corpo testei em vários corpos se poke -
action [PDA] PokéDex em corpses de pokémons
tópico respondeu ao zipter98 de kaleudd em Mods, funções e outros
ando dou dex nos pokes mortos aparece isso agora [09/08/2015 20:15:04] Usou em item. [09/08/2015 20:15:04] Nome do item: asphalt na distro!!! -
Nossa verdade,esqueçi disso,funciono 100%,muito obrigado pela paciencia.
-
Nao funcionar,quando uso fly do raichu por exemplo,eu consvoarunico problema é que fica invisivel a outfit que escolhi para ele,fica invisivel.
-
[09/08/2015 19:42:46] [Error - LuaScriptInterface::loadFile] data/npc/scripts/out.lua:1: unexpected symbol near 'ï' [09/08/2015 19:42:46] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/out.lua [09/08/2015 19:42:46] data/npc/scripts/out.lua:1: unexpected symbol near 'ï'
-
action [PDA] PokéDex em corpses de pokémons
tópico respondeu ao zipter98 de kaleudd em Mods, funções e outros
Bem,eles sao Fainted charmander <um exemplo @up? -
@up plz, Mesmo problema ainda Zipter,você irá me ajudar?caso nao falei plz,pq dai to pensando em outras coisas.
-
como diz o titulo do topico,gostaria de um npc que dá x outfit por x item [Configuraveis] 7 Ex: Player:Hi NPC:Olá,diga outfits para ver todas as outfits a venda. Player:outfits npc:Bem tenho as seguintes Outfits,Gengar,Blastoise,Pikachu e Azumaril,escolha uma e repita o nome da escolhida. Player:Gengar Npc:Você comprou a outfit Gengar,parabens. Player:Bye. Npc:Tchau. Mais ou menos isso,obg!
-
Funfo,vlw! Uma duvida e no lugar de if getPlayerMoney(cid) >= 20000 then eu boto oq?
-
uma copia perfeitar de otp ou quase
-
I ae,gostaria que alguem modificasse como eu queria. oq eu quero que edite? Gostaria de tirar o dinheiro e botar para comprar outfit por x item e quantia. Só isso obg! Meu 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 function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid out = {Jam = 181601, Rap = 181602, Ori = 181603, Roc = 181604, Adv = 181605, Bus = 181606, Atl = 181607, Punk = 181608, Mer = 181610, Hik = 181611} if (msgcontains(msg, 'Outfit') or msgcontains(msg, 'roupas') or msgcontains(msg, 'Outfits') or msgcontains(msg, 'outfits')) then selfSay("I sell this outfits Male..{Fodao, Gordo Alto, Jogado de Basquete, Sktista, Punk 1, Malandro, Negao, Novinho, Dr House e Malandro Jr}, which outfit do you want??", cid) talkState[talkUser] = 2 ----Fodao elseif (msgcontains(msg, 'Fodao') or msgcontains(msg, 'fodao')) and talkState[talkUser] == 2 then selfSay("Are you sure which want buy that outfit?", cid) talkState[talkUser] = 3 elseif (msgcontains(msg, 'yes') or msgcontains(msg, 'sim')) and talkState[talkUser] == 3 then if getPlayerStorageValue(cid, out.Jam) <= 0 then if getPlayerPremiumDays(cid) > 0 then if getPlayerMoney(cid) >= 20000 then if getPlayerSex(cid) == 0 then doPlayerAddOutfit(cid, 1562, 1) doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, out.Jam, 1) else doPlayerAddOutfit(cid, 1562, 1) doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, out.Jam, 1) end else selfSay("You need 200dl to buy this outfit!", cid) talkState[talkUser] = 2 return false end else selfSay("Need be premium to buy this Outfit.", cid) talkState[talkUser] = 0 return false end else selfSay("You already have this outfit, so... I have other outfits {Gordo Alto, Jogado de Basquete, Sktista, Punk 1, Malandro, Negao, Novinho, Dr House e Malandro Jr}.", cid) talkState[talkUser] = 2 return false end selfSay("So... Here is.", cid) elseif (msgcontains(msg, 'no') or msgcontains(msg, 'nao')) and talkState[talkUser] == 3 then selfSay("So... I have this other outfits {Gordo Alto, Jogado de Basquete, Sktista, Punk 1, Malandro, Negao, Novinho, Dr House e Malandro Jr}.", cid) talkState[talkUser] = 2 ----Gordo Alto elseif (msgcontains(msg, 'Gordo Alto') or msgcontains(msg, 'gordo alto')) and talkState[talkUser] == 2 then selfSay("Are you sure which want buy that outfit?", cid) talkState[talkUser] = 4 elseif (msgcontains(msg, 'yes') or msgcontains(msg, 'sim')) and talkState[talkUser] == 4 then if getPlayerStorageValue(cid, out.Rap) <= 0 then if getPlayerPremiumDays(cid) > 0 then if getPlayerMoney(cid) >= 20000 then if getPlayerSex(cid) == 0 then doPlayerAddOutfit(cid, 1563, 0) doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, out.Rap, 1) else doPlayerAddOutfit(cid, 1563, 0) doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, out.Rap, 1) end else selfSay("You need 200dl to buy this outfit!", cid) talkState[talkUser] = 2 return false end else selfSay("Need be premium to buy this Outfit.", cid) talkState[talkUser] = 0 return false end else selfSay("You already have this outfit, so... I have other outfits {Fodao, Jogado de Basquete, Sktista, Punk 1, Malandro, Negao, Novinho, Dr House e Malandro Jr}.", cid) talkState[talkUser] = 2 return false end selfSay("So... Here is.", cid) elseif (msgcontains(msg, 'no') or msgcontains(msg, 'nao')) and talkState[talkUser] == 4 then selfSay("So... I have this other outfits {Fodao, Jogado de Basquete, Sktista, Punk 1, Malandro, Negao, Novinho, Dr House e Malandro Jr}.", cid) talkState[talkUser] = 2 ----Jogado de Basquete elseif (msgcontains(msg, 'Jogado de Basquete') or msgcontains(msg, 'jogado de basquete')) and talkState[talkUser] == 2 then selfSay("Are you sure which want buy that outfit?", cid) talkState[talkUser] = 5 elseif (msgcontains(msg, 'yes') or msgcontains(msg, 'sim')) and talkState[talkUser] == 5 then if getPlayerStorageValue(cid, out.Ori) <= 0 then if getPlayerPremiumDays(cid) > 0 then if getPlayerMoney(cid) >= 20000 then if getPlayerSex(cid) == 0 then doPlayerAddOutfit(cid, 1568, 0) doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, out.Ori, 1) else doPlayerAddOutfit(cid, 1568, 0) doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, out.Ori, 1) end else selfSay("You need 200dl to buy this outfit!", cid) talkState[talkUser] = 2 return false end else selfSay("Need be premium to buy this Outfit.", cid) talkState[talkUser] = 0 return false end else selfSay("You already have this outfit, so... I have other outfits {Fodao, Gordo Alto, Sktista, Punk 1, Malandro, Negao, Novinho, Dr House e Malandro Jr}.", cid) talkState[talkUser] = 2 return false end selfSay("So... Here is.", cid) elseif (msgcontains(msg, 'no') or msgcontains(msg, 'nao')) and talkState[talkUser] == 5 then selfSay("So... I have this other outfits {Fodao, Gordo Alto, Sktista, Punk 1, Malandro, Negao, Novinho, Dr House e Malandro Jr}.", cid) talkState[talkUser] = 2 ----Sktista elseif (msgcontains(msg, 'Sktista') or msgcontains(msg, 'sktista')) and talkState[talkUser] == 2 then selfSay("Are you sure which want buy that outfit?", cid) talkState[talkUser] = 6 elseif (msgcontains(msg, 'yes') or msgcontains(msg, 'sim')) and talkState[talkUser] == 6 then if getPlayerStorageValue(cid, out.Roc) <= 0 then if getPlayerPremiumDays(cid) > 0 then if getPlayerMoney(cid) >= 20000 then if getPlayerSex(cid) == 0 then doPlayerAddOutfit(cid, 1569, 0) doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, out.Roc, 1) else doPlayerAddOutfit(cid, 1569, 0) doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, out.Roc, 1) end else selfSay("You need 200dl to buy this outfit!", cid) talkState[talkUser] = 2 return false end else selfSay("Need be premium to buy this Outfit.", cid) talkState[talkUser] = 0 return false end else selfSay("You already have this outfit, so... I have other outfits {Fodao, Gordo Alto, Jogado de Basquete, Punk 1, Malandro, Negao, Novinho, Dr House e Malandro Jr}.", cid) talkState[talkUser] = 2 return false end selfSay("So... Here is.", cid) elseif (msgcontains(msg, 'no') or msgcontains(msg, 'nao')) and talkState[talkUser] == 6 then selfSay("So... I have this other outfits {Fodao, Gordo Alto, Jogado de Basquete, Punk 1, Malandro, Negao, Novinho, Dr House e Malandro Jr}.", cid) talkState[talkUser] = 2 ----Punk 1 elseif (msgcontains(msg, 'Punk 1') or msgcontains(msg, 'punk 1')) and talkState[talkUser] == 2 then selfSay("Are you sure which want buy that outfit?", cid) talkState[talkUser] = 7 elseif (msgcontains(msg, 'yes') or msgcontains(msg, 'sim')) and talkState[talkUser] == 7 then if getPlayerStorageValue(cid, out.Adv) <= 0 then if getPlayerPremiumDays(cid) > 0 then if getPlayerMoney(cid) >= 20000 then if getPlayerSex(cid) == 0 then doPlayerAddOutfit(cid, 1570, 0) doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, out.Adv, 1) else doPlayerAddOutfit(cid, 1570, 0) doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, out.Adv, 1) end else selfSay("You need 200dl to buy this outfit!", cid) talkState[talkUser] = 2 return false end else selfSay("Need be premium to buy this Outfit.", cid) talkState[talkUser] = 0 return false end else selfSay("You already have this outfit, so... I have other outfits {Fodao, Gordo Alto, Jogado de Basquete, Sktista, Malandro, Negao, Novinho, Dr House e Malandro Jr}.", cid) talkState[talkUser] = 2 return false end selfSay("So... Here is.", cid) elseif (msgcontains(msg, 'no') or msgcontains(msg, 'nao')) and talkState[talkUser] == 7 then selfSay("So... I have this other outfits {Fodao, Gordo Alto, Jogado de Basquete, Sktista, Malandro, Negao, Novinho, Dr House e Malandro Jr}.", cid) talkState[talkUser] = 2 ----Malandro elseif (msgcontains(msg, 'Malandro') or msgcontains(msg, 'malandro')) and talkState[talkUser] == 2 then selfSay("Are you sure which want buy that outfit?", cid) talkState[talkUser] = 8 elseif (msgcontains(msg, 'yes') or msgcontains(msg, 'sim')) and talkState[talkUser] == 8 then if getPlayerStorageValue(cid, out.Bus) <= 0 then if getPlayerMoney(cid) >= 30000 then if getPlayerSex(cid) == 0 then doPlayerAddOutfit(cid, 1574, 0) doPlayerRemoveMoney(cid, 30000) setPlayerStorageValue(cid, out.Bus, 1) else doPlayerAddOutfit(cid, 1574, 0) doPlayerRemoveMoney(cid, 30000) setPlayerStorageValue(cid, out.Bus, 1) end else selfSay("You need 300dl to buy this outfit!", cid) talkState[talkUser] = 2 return false end else selfSay("You already have this outfit, so... I have other outfits {Fodao, Gordo Alto, Jogado de Basquete, Sktista, Punk 1, Negao, Novinho, Dr House e Malandro Jr}.", cid) talkState[talkUser] = 2 return false end selfSay("So... Here is.", cid) elseif (msgcontains(msg, 'no') or msgcontains(msg, 'nao')) and talkState[talkUser] == 8 then selfSay("So... I have this other outfits {Fodao, Gordo Alto, Jogado de Basquete, Sktista, Punk 1, Negao, Novinho, Dr House e Malandro Jr}.", cid) talkState[talkUser] = 2 ----Negao elseif (msgcontains(msg, 'Negao') or msgcontains(msg, 'negao')) and talkState[talkUser] == 2 then selfSay("Are you sure which want buy that outfit?", cid) talkState[talkUser] = 9 elseif (msgcontains(msg, 'yes') or msgcontains(msg, 'sim')) and talkState[talkUser] == 9 then if getPlayerStorageValue(cid, out.Atl) <= 0 then if getPlayerPremiumDays(cid) > 0 then if getPlayerMoney(cid) >= 20000 then if getPlayerSex(cid) == 0 then doPlayerAddOutfit(cid, 1573, 0) doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, out.Atl, 1) else doPlayerAddOutfit(cid, 1573, 0) doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, out.Atl, 1) end else selfSay("You need 200dl to buy this outfit!", cid) talkState[talkUser] = 2 return false end else selfSay("Need be premium to buy this Outfit.", cid) talkState[talkUser] = 0 return false end else selfSay("You already have this outfit, so... I have other outfits {Fodao, Gordo Alto, Jogado de Basquete, Sktista, Punk 1, Malandro, Novinho, Dr House e Malandro Jr}.", cid) talkState[talkUser] = 2 return false end selfSay("So... Here is.", cid) elseif (msgcontains(msg, 'no') or msgcontains(msg, 'nao')) and talkState[talkUser] == 9 then selfSay("So... I have this other outfits {Fodao, Gordo Alto, Jogado de Basquete, Sktista, Punk 1, Malandro, Novinho, Dr House e Malandro Jr}.", cid) talkState[talkUser] = 2 ----Novinho elseif (msgcontains(msg, 'Novinho') or msgcontains(msg, 'novinho')) and talkState[talkUser] == 2 then selfSay("Are you sure which want buy that outfit?", cid) talkState[talkUser] = 10 elseif (msgcontains(msg, 'yes') or msgcontains(msg, 'sim')) and talkState[talkUser] == 10 then if getPlayerStorageValue(cid, out.Punk) <= 0 then if getPlayerPremiumDays(cid) > 0 then if getPlayerMoney(cid) >= 20000 then if getPlayerSex(cid) == 0 then doPlayerAddOutfit(cid, 1575, 0) doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, out.Punk, 1) else doPlayerAddOutfit(cid, 1575, 0) doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, out.Punk, 1) end else selfSay("You need 200dl to buy this outfit!", cid) talkState[talkUser] = 2 return false end else selfSay("Need be premium to buy this Outfit.", cid) talkState[talkUser] = 0 return false end else selfSay("You already have this outfit, so... I have other outfits {Fodao, Gordo Alto, Jogado de Basquete, Sktista, Punk 1, Malandro, Negao, Dr House e Malandro Jr}.", cid) talkState[talkUser] = 2 return false end selfSay("So... Here is.", cid) elseif (msgcontains(msg, 'no') or msgcontains(msg, 'nao')) and talkState[talkUser] == 10 then selfSay("So... I have this other outfits {Fodao, Gordo Alto, Jogado de Basquete, Sktista, Punk 1, Malandro, Negao, Dr House e Malandro Jr}.", cid) talkState[talkUser] = 2 ----Dr House elseif (msgcontains(msg, 'Dr House') or msgcontains(msg, 'dr house')) and talkState[talkUser] == 2 then selfSay("Are you sure which want buy that outfit?", cid) talkState[talkUser] = 12 elseif (msgcontains(msg, 'yes') or msgcontains(msg, 'sim')) and talkState[talkUser] == 12 then if getPlayerStorageValue(cid, out.Mer) <= 0 then if getPlayerPremiumDays(cid) > 0 then if getPlayerMoney(cid) >= 20000 then if getPlayerSex(cid) == 0 then doPlayerAddOutfit(cid, 1579, 0) doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, out.Mer, 1) else doPlayerAddOutfit(cid, 1579, 0) doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, out.Mer, 1) end else selfSay("You need 200dl to buy this outfit!", cid) talkState[talkUser] = 2 return false end else selfSay("Need be premium to buy this Outfit.", cid) talkState[talkUser] = 0 return false end else selfSay("You already have this outfit, so... I have other outfits {Fodao, Gordo Alto, Jogado de Basquete, Sktista, Punk 1, Malandro, Negao, Novinho e Malandro Jr}.", cid) talkState[talkUser] = 2 return false end selfSay("So... Here is.", cid) elseif (msgcontains(msg, 'no') or msgcontains(msg, 'nao')) and talkState[talkUser] == 12 then selfSay("So... I have this other outfits {Fodao, Gordo Alto, Jogado de Basquete, Sktista, Punk 1, Malandro, Negao, Novinho e Malandro Jr}.", cid) talkState[talkUser] = 2 ----Malandro Jr elseif (msgcontains(msg, 'Malandro Jr') or msgcontains(msg, 'malandro jr')) and talkState[talkUser] == 2 then selfSay("Are you sure which want buy that outfit?", cid) talkState[talkUser] = 13 elseif (msgcontains(msg, 'yes') or msgcontains(msg, 'sim')) and talkState[talkUser] == 13 then if getPlayerStorageValue(cid, out.Hik) <= 0 then if getPlayerPremiumDays(cid) > 0 then if getPlayerMoney(cid) >= 20000 then if getPlayerSex(cid) == 0 then doPlayerAddOutfit(cid, 1571, 0) doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, out.Hik, 1) else doPlayerAddOutfit(cid, 1571, 0) doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, out.Hik, 1) end else selfSay("You need 200dl to buy this outfit!", cid) talkState[talkUser] = 2 return false end else selfSay("Need be premium to buy this Outfit.", cid) talkState[talkUser] = 0 return false end else selfSay("You already have this outfit, so... I have other outfits {Fodao, Gordo Alto, Jogado de Basquete, Sktista, Punk 1, Malandro, Negao, Novinho e Dr House}.", cid) talkState[talkUser] = 2 return false end selfSay("So... Here is.", cid) elseif (msgcontains(msg, 'no') or msgcontains(msg, 'nao')) and talkState[talkUser] == 13 then selfSay("So... I have this other outfits {Fodao, Gordo Alto, Jogado de Basquete, Sktista, Punk 1, Malandro, Negao, Novinho e Dr House}.", cid) talkState[talkUser] = 2 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) @up
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.