

SkyLigh
Lorde-
Total de itens
2183 -
Registro em
-
Última visita
-
Dias Ganhos
23
Tudo que SkyLigh postou
-
[Pedido] Script De Donation Gold Coin Com Ranking.
tópico respondeu ao daniel1997 de SkyLigh em Lixeira Pública
Olá Seu Tópico esta no lugar errado Irei Reportado para ser movido para Pedidos E Duvidas De Scripting -
talkaction [Talkaction] Comando Attr
tópico respondeu ao lucasatak de SkyLigh em Actions e Talkactions
Este script ja vem em todos os servidores acho que nao e necessário este tópico @FECHADO -
Como Fazer Um Item Almentar Dano Magico
tópico respondeu ao shadizinho de SkyLigh em Actions e Talkactions
Se vocês não perceberam o tópico e de 2008 e claro que foi testado em uma versão antiga -
Tópico movido para a seção de dúvidas e pedidos resolvidos.
- 6 respostas
-
- urgente rep+
- resolvido
-
(e 3 mais)
Tags:
-
Tome cuidado com este tipo de post @KUNGLOW ele ja tinha especificado como queria acima
-
Kung que fico faltando um end no seu ! e desculpem pelo meu que não to com ot no pc ai so fazo pelo debug Seu script Corrigido if(param == "magiclevel") then if getPlayerMagLevel(cid, true) >= 200 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não pode ter magic level acima de 200.") return TRUE end if(not isSorcerer(cid) and not isDruid(cid) and not isMasterInfernalist(cid)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Somente Sorcerers, Druids e Infernalists podem comprar magic level.") return TRUE end if getPlayerItemCount(cid, 9971) >= 3 then local pid = getPlayerGUID(cid) doPlayerRemoveItem(cid, 9971, 3) setPlayerStorageValue(cid,11548,os.time()+0) doRemoveCreature(cid) db.query("UPDATE `players` SET `maglevel` = `maglevel` + 1 WHERE `id` = "..pid) return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não possui a quantidade necessária para comprar.") end return TRUE end
- 11 respostas
-
- talkaction
- resolvido
-
(e 1 mais)
Tags:
-
Tem como postar ele aki para mim verificar
-
Não irei testar que estou sem ot mais parece ser boa . REPUTADO.
-
talkactions. function onSay(cid, words, param) local magic = { ['magic'] = {7}, money = 10000 -- quanto vai ser cada ml } if doPlayerRemoveMoney(cid,cofig.money) then doPlayerAddSkillTry(cid,config.magic) doPlayerSendTextMessage(cid,22,"Parabens se compro ml") else doPlayerSendTextMessage(cid,22,"Voce nao tem dinheiro suficiente") end return TRUE end
- 11 respostas
-
- talkaction
- resolvido
-
(e 1 mais)
Tags:
-
Corrigindo erros local config = { level_Direto = "sim", -- Se for por level direto bote sim. add_Level = 2, -- Aqui você coloca o quando que vai adicionar de level no player, se ewstiver n vai ser por experiencia add_Exp = 500, -- Aqui você coloca a quantidade de experiencia o player vai ganhar uniqueid_Bau = 5033, -- Aqui vai o uniqueid do bau } function onUse(cid, item, frompos, item2, topos) local cd = exhaustion.get(cid, 88726) if not cd then cd = 0 end if cd > 0 then doPlayerSendCancel(cid, "Desculpa, espere 24hrs para usar denovo.") return true end if item.uid == config.uniqueid_Bau then if config.level_Direto == "sim" or config.level_Direto == "SIM" then doPlayerSetSkill(cid, SKILL__LEVEL, getPlayerLevel(cid) + config.add_Level) doPlayerSendTextMessage(cid, 27, "Você ganhou "..config.add_Level..", agora seu level é "..getPlayerLevel(cid).."") doSendMagicEffect(getThingPos(cid), 25) exhaustion.set(cid, 88726, 60 * 1000 * 60 * 24) else doPlayerAddExp(cid, config.add_Exp) doSendAnimatedText(getThingPos(cid), ""..config.add_Exp.."", math.random(25, 100)) doPlayerSendTextMessage(cid, 27, "Você ganhou "..config.add_Exp.." de experiencia.") doSendMagicEffect(getThingPos(cid), 25) exhaustion.set(cid, 88726, 60 * 1000 * 60 * 24) end end return true end function doPlayerSetSkill(cid, skill, amount) local pid = getPlayerGUID(cid) doRemoveCreature(cid,true) db.executeQuery("UPDATE `player_skills` SET `value` = ".. amount .." WHERE `player_id` = ".. pid .. " and `skillid` = ".. skill ..";") return TRUE end
-
Vip local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE) setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_FIREATTACK) setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -12.5, -130, -12.3, -130) local combat2 = createCombatObject() setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE) setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_ICETORNADO) setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -12.5, -130, -12.5, -130) arr1 = { {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, } arr2 = { {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, } local area1 = createCombatArea(arr1) local area2 = createCombatArea(arr2) setCombatArea(combat1, area1) setCombatArea(combat2, area2) local function onCastSpell1(parameters) doCombat(parameters.cid, parameters.combat1, parameters.var) end local function onCastSpell2(parameters) doCombat(parameters.cid, parameters.combat2, parameters.var) end function onCastSpell(cid, var) local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2 } addEvent(onCastSpell1, 100, parameters) addEvent(onCastSpell2, 100, parameters) end function onCastSpell(cid, var) if getPlayerStorageValue(cid,22459) >= 1 then return doCombat(cid, acombat, var) else doPlayerSendCancel(cid, "Desculpe,Só jogadores Vips usam está magia.") end return TRUE end Reset. local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE) setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_FIREATTACK) setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -12.5, -130, -12.3, -130) local combat2 = createCombatObject() setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE) setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_ICETORNADO) setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -12.5, -130, -12.5, -130) arr1 = { {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, } arr2 = { {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, } local area1 = createCombatArea(arr1) local area2 = createCombatArea(arr2) setCombatArea(combat1, area1) setCombatArea(combat2, area2) local function onCastSpell1(parameters) doCombat(parameters.cid, parameters.combat1, parameters.var) end local function onCastSpell2(parameters) doCombat(parameters.cid, parameters.combat2, parameters.var) end function onCastSpell(cid, var) local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2 } addEvent(onCastSpell1, 100, parameters) addEvent(onCastSpell2, 100, parameters) end local reset_storage = 2310 -- coloque o storage do seu sistema de reset local quant_reset = 3 -- quantidade de resets para poder passar if getPlayerStorageValue(cid, reset_storage) == quant_reset then return true end Os Dois Juntos. local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE) setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_FIREATTACK) setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -12.5, -130, -12.3, -130) local combat2 = createCombatObject() setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE) setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_ICETORNADO) setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -12.5, -130, -12.5, -130) arr1 = { {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, } arr2 = { {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, } local area1 = createCombatArea(arr1) local area2 = createCombatArea(arr2) setCombatArea(combat1, area1) setCombatArea(combat2, area2) local function onCastSpell1(parameters) doCombat(parameters.cid, parameters.combat1, parameters.var) end local function onCastSpell2(parameters) doCombat(parameters.cid, parameters.combat2, parameters.var) end function onCastSpell(cid, var) local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2 } addEvent(onCastSpell1, 100, parameters) addEvent(onCastSpell2, 100, parameters) end local reset_storage = 2310 -- coloque o storage do seu sistema de reset local quant_reset = 3 -- quantidade de resets para poder passar if getPlayerStorageValue(cid, reset_storage) == quant_reset then return true end function onCastSpell(cid, var) if getPlayerStorageValue(cid,22459) >= 1 then return doCombat(cid, acombat, var) else doPlayerSendCancel(cid, "Desculpe,Só jogadores Vips usam está magia.") end return TRUE end
-
duvida sanada reportado
-
va em data / creaturescripts / scripts / firstitems.lua ai voce configura
-
kra isso e o mesmo ip so mudar a port pra 7172
-
sim e so você libera a port 7172
-
pedido [Npc] Dando Um Errozinho Do Then , Facil De Arrumar
pergunta respondeu ao tonynamoral de SkyLigh em Scripts
pronto. 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 time = 5 --------------------------------- npcHandler:setMessage(MESSAGE_GREET, "Hello |PLAYERNAME|, I can {create} wings or {information} about wings.") -- muda a frase só yes q não muda function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end --------------------------------- local function Sucesso(cid,id) if isPlayer(cid) then doPlayerAddItem(cid,id,1) doPlayerSendTextMessage(cid, 27, "Success -> You created an ".. getItemNameById(id).."") end end --------------------------------- local function Falha(cid, id) if isPlayer(cid) then doPlayerSendTextMessage(cid, 27, "Failed -> Trying to create your ".. getItemNameById(id).." failed.") end end --------------------------------- local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid --------------------------------- if(msgcontains(msg, 'create')) then selfSay("Well .. I can only create three types of wings. {angelic wings}, {dragon wings} and {fairy wings}.", cid) talkState[talkUser] = 1 return true elseif(msgcontains(msg, 'information')) then selfSay("Well .. I can show you informations about three wings, these wings are {angelic wings}, {dragon wings} and {fairy wings}.", cid) talkState[talkUser] = 2 return true elseif msgcontains(msg, 'angelic wings') and talkState[talkUser] then doShowTextDialog(cid,2407,"####--> Informations <--####\n\nName: Angelic Wigns\nVocation: Mage\nLevel: 40\nPrice NPC: $40.000,00\nWeighs: 40.00 oz\n ") return true elseif msgcontains(msg, 'dragon wings') and talkState[talkUser] == 2 then doShowTextDialog(cid,2417,"####--> Informations <--####\n\nName: Dragon Wings\nVocation: Warrior\nLevel: 40\nPrice NPC: $40.000,00\nWeighs: 40.00 oz\n ") return true elseif msgcontains(msg, 'fairy wings') and talkState[talkUser] == 2 then doShowTextDialog(cid,2412,"####--> Informations <--####\n\nName: Fairy Wings\nVocation: Elf\nLevel: 40\nPrice NPC: $40.000,00\nWeighs: 40.00 oz\n ") return true elseif msgcontains(msg, 'angelical wings') and talkState[talkUser] == 1 then selfSay("Ok .. You to create an angelic wing, 1kk you need, and you will have 35% chance of success, yet you want to create your wing?", cid) talkState[TalkUser] = 3 return true elseif msgcontains(msg, 'dragon wings') and talkState[talkUser] == 1 then selfSay("Ok .. You to create an dragon wings, 1kk you need, and you will have 35% chance of success, yet you want to create your wing?", cid) talkState[TalkUser] = 4 return true elseif msgcontains(msg, 'fairy wings') and talkState[talkUser] == 1 then selfSay("Ok .. You to create an fairy wings, 1kk you need, and you will have 35% chance of success, yet you want to create your wing?", cid) talkState[TalkUser] = 5 return true ------------------------------------------------------------ elseif msgcontains(msg, 'yes') and talkState[talkUser] == 3 then if math.random(1,100) <= 35 and getPlayerItemCount(cid,2160) >= 100 then doPlayerRemoveItem(cid,2160,100) addEvent(Sucesso, time*1000, cid, 2407) talkState[talkUser] = 0 return true elseif math.random(1,100) > 35 and getPlayerItemCount(cid,2160) >= 100 then doPlayerRemoveItem(cid,2160,100) addEvent(Falha, time*1000, cid, 2407) talkState[talkUser] = 0 return true elseif getPlayerItemCount(cid,2160) < 100 then selfSay("Você não tem dinheiro suficiente!", cid) return true ------------------------------------------------------------- elseif(msgcontains(msg, 'yes')) and talkState[talkUser] == 4 then if math.random(1,100) <= 35 and getPlayerItemCount(cid,2160) >= 100 then doPlayerRemoveItem(cid,2160,100) addEvent(Sucesso, time*1000, cid, 2417) talkState[talkUser] = 0 return true elseif math.random(1,100) > 35 and getPlayerItemCount(cid,2160) >= 100 then doPlayerRemoveItem(cid,2160,100) addEvent(Falha, time*1000, cid, 2417) talkState[talkUser] = 0 return true elseif getPlayerItemCount(cid,2160) < 100 then selfSay("Você não tem dinheiro suficiente!", cid) return true ------------------------------------------------------------- elseif(msgcontains(msg, 'yes')) and talkState[talkUser] == 5 then if math.random(1,100) <= 35 and getPlayerItemCount(cid,2160) >= 100 then doPlayerRemoveItem(cid,2160,100) addEvent(Sucesso, time*1000, cid, 2412) talkState[talkUser] = 0 return true elseif math.random(1,100) > 35 and getPlayerItemCount(cid,2160) >= 100 then doPlayerRemoveItem(cid,2160,100) addEvent(Falha, time*1000, cid, 2412) talkState[talkUser] = 0 return true elseif getPlayerItemCount(cid,2160) < 100 then selfSay("Você não tem dinheiro suficiente!", cid) return true end end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) -
veja este http://www.xtibia.com/forum/topic/138026-talk-action-advanced-reset-system/
-
Local incorreto reportado para ser movido claro que tem so você utilizar em um servidor a prot 7171 e no outro 7172 Tutorial http://www.xtibia.com/forum/topic/128606-desbloqueando-as-portas-7171-e-7172-no-windows-7/
-
o 1 script ja existe ! basta ir em pasta do ot / config.lua e procure por loginMessage = e escreva entre aspas a msg o 2 nao entendi o 3 http://www.xtibia.com/forum/topic/73866-premium-tile/ o 4 http://www.xtibia.com/forum/topic/140258-tile-de-level/
-
veja http://www.xtibia.com/forum/topic/149970-alguem-sabe-adicionar-novos-pokemons-no-poketibia/
-
@Hadamo refiz o meu testei aki e foi que no meu eu tinha colocado função que ainda nao existe no 8.60 function onSay(cid, words, param) if getPlayerSex(cid) == 0 then doPlayerSetSex(cid, 1) else doPlayerSetSex(cid, 0) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Parabens voce troco de sexo.") return true end if doPlayerRemoveMoney(cid, 1000) == TRUE then end return true end duvida sanada reportado
- 9 respostas
-
- !change sex
- resolvido
-
(e 1 mais)
Tags:
-
Cogames creio que nao era preciso postar com o meu acima mais parabéns pelo tutorial !
- 9 respostas
-
- !change sex
- resolvido
-
(e 1 mais)
Tags:
-
@Frenesy acho que você nao leu direito ! ele quer que custe 10k n que remova premium aki esta . function onSay(cid, words, param) local money = 1000 if getPlayerMoney(cid,money) == TRUE then if doPlayerRemoveMoney(cid,money) == TRUE then if getPlayerSex(cid) == 0 then doPlayerSetSex(cid, 1) else doPlayerSetSex(cid, 0) end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Parabens voce troco de sexo.") else doPlayerSendCancel(cid, "Desculpe voce nao tem dinheiro suficiente.") doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) end end end e em talkactions.xml <talkaction words="!changesex" script="changesex.lua"/>
- 9 respostas
-
- !change sex
- resolvido
-
(e 1 mais)
Tags:
-
Utilize este programa http://www.xtibia.com/forum/topic/128676-mindrages-spellmaker-068b/ eu uso ele para spell la tem como você criar com os 5 efeitos ! e também rápido e fácil Ensinando : Quando você for abrir o programa Vai Number Of Phases ai se vai ate colocar quanto efeitos voce quiser ! e clicka em Begin ai voce segue os dados em type coloke Direction And Targent dps segue os dados ate que quando você ir na chage Área voce clicka aonde vai sair o efeito da magia dps em combat properties se faz o efeito o attack e dps disso você clicka em next que ficara no seu lado esquerdo que ira para a próxima magia ! Espero que isso lhe ajude
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.