Solutions
-
ViitinG's post in (Resolvido)this account does not contain any character yet was marked as the answerResolvido.
Solução no tópico!
-
ViitinG's post in (Resolvido)[pedido] como dar intem para um certo player was marked as the answerAcho que é isso que você quer, certo !?
LINK : http://www.tibiaking.com/forum/topic/35865-talkaction-adicionar-x-item-para-o-player/
O tópico foi movido para a área correta, preste mais atenção da próxima vez!
Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680
Este tópico foi movido:
De: "Tibia King → Atendimento Geral → Apresentação"
Para: "OTServ → Suporte OTServ → Suporte de Scripts"
-
ViitinG's post in (Resolvido)Apontamento de script was marked as the answerTenta colocar assim :
data/npc/scripts/addons/teste.lua -
ViitinG's post in (Resolvido)10.53 [tf 1.0] was marked as the answer"data/creaturescripts/scripts/antimc.lua" :
local config = { max = 2, group_id = 1 } local accepted_ip_list = {"192.168.25.17"} local function antiMC(p) if #getPlayersByIp(getPlayerIp(p.pid)) >= p.max then doRemoveCreature(p.pid) end return true end function onLogin(cid) if getPlayerGroupId(cid) <= config.group_id then if isInArray(accepted_ip_list,doConvertIntegerToIp(getPlayerIp(cid))) == false then addEvent(antiMC, 1000, {pid = cid, max = config.max+1}) end end return true end "data/creaturescripts/creaturescripts.xml" :
<event type="login" name="AntiMC" event="script" value="antimc.lua"/> "data/creaturescripts/login.lua" :
registerCreatureEvent(cid, "AntiMC") -
ViitinG's post in (Resolvido)Ajuda com o RME was marked as the answerSegure CTRL + SHIFT e arraste com o ponteiro do mouse e clicando com o botão esquerdo, selecione todos os andares e copie.
-
ViitinG's post in (Resolvido)Action para mudar cidade natal do player was marked as the answer"data/movements/scripts/morador.lua" :
function onStepIn(cid, item, pos) local townid = 4 if isPlayer(cid) == TRUE then if (item.actionid == 7006) then doPlayerSendTextMessage(cid,22,"Agora voce e morador da cidade " .. getTownName(townId) .. ".") doPlayerSetTown(cid,townid) end end end "data/movements/movements.xml" :
<movevent type="StepIn" itemid="1387" event="script" value="morador.lua"/> -
ViitinG's post in (Resolvido)Erro no distro ao usar Ceremonial Ankh e Ornamented Brooch was marked as the answer"data/actions/scripts/tools/ceremonial_ankh" :
local blessings = {"\nWisdom of Solitude", "\nSpark of the Phoenix", "\nFire of the Suns", "\nSpiritual Shielding", "\nEmbrace of Tibia"} function onUse(cid, item, fromPosition, itemEx, toPosition) local result = "Received blessings:" for i = 1, 5 do result = getPlayerBlessing(cid, i) and result .. blessings[i] or result end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 20 > result:len() and "No blessings received." or result) return TRUE end Xml :
<action itemid="6561" event="script" value="tools/ceremonial_ankh.lua"/> OBS : se preferir você pode usar este script aqui que facilita bastante : http://www.tibiaking.com/forum/topic/45374-creaturescripts-bless-check-ao-logar/
-
ViitinG's post in (Resolvido)Healar Amigo was marked as the answerCria um arquivo lua na pasta "data/spells/scripts/healing/Heal Friend.lua" e coloca este script dentro :
local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false) setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE) setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 10, 14) function onCastSpell(cid, var) return doCombat(cid, combat, var) end E essa tag no spells.xml :
<instant name="Heal Friend" words="exura sio" lvl="18" mana="140" prem="1" aggressive="0" needtarget="1" params="1" exhaustion="2000" needlearn="0" event="script" value="healing/heal friend.lua"> <vocation id="2"/> <vocation id="6"/> </instant> -
ViitinG's post in (Resolvido)Adicionando Weapons [HELP!] was marked as the answerAo em vez da galera postar a tag do movements.xml e simplificar o que o membro deve fazer para solucionar o problema, criam mais perguntas e talvez mais problemas..
Aqui brother, está é a tag que você tem que adicionar em movements,xml :
<movevent event="DeEquip" itemid="18412" slot="hand" function="onDeEquipItem"/> <movevent event="Equip" itemid="18412" slot="hand" function="onEquipItem"/> obs : mude somente o número que está entre parêntesis : itemid="18412"
-
ViitinG's post in (Resolvido)Ajuda com pz mapa editor was marked as the answerSeleciona a opção para colocar o PZ e segura o botão ctrl e vai passando onde você quer retirar.
-
ViitinG's post in (Resolvido)Preciso muito da sua AJUDA! Compra IN-GAME. was marked as the answer"data/actions/scripts/quest1.lua" :
function onUse(cid, item) local price = 10 local it = 8932 local count = 1 local gold = 2328 if not doPlayerRemoveItem(cid, gold, price) then doPlayerSendCancel(cid, "Você precisa ter "..price.." gold coins para comprar "..count.."x "..getItemNameById(it)..".") return true end doPlayerAddItem(cid, it, count) doPlayerSendCancel(cid, "Você comprou "..count.."x "..getItemNameById(it).." por "..price.." gold coins.") return true end "data/actions/actions.xml" :
<action actionid="7001" script="quest1.lua"/> -
ViitinG's post in (Resolvido)Tibia 8.6 para Remere's was marked as the answerAqui : http://www.4shared.com/zip/Y9yED_UOce/Tibia_Remeres_860_ViitinG_wwwt.html
-
ViitinG's post in (Resolvido)Soft Boots em 10.53 was marked as the answerColocou os movements ja ?
<movevent type="Equip" itemid="2358" slot="feet" event="function" value="onEquipItem"/> <movevent type="DeEquip" itemid="2358" slot="feet" event="function" value="onDeEquipItem"/> -
ViitinG's post in (Resolvido)Tirar Battle ao entrar em PZ? was marked as the answerTenta esse script, eu usava :
"data/creaturescripts/scripts/tirabattle.lua" :
function onThink(cid, interval) if(getTilePzInfo(getCreaturePosition(cid))) then doRemoveCondition(cid, CONDITION_INFIGHT) end end "data/creaturescripts/creaturescripts.xml" :
<event type="think" name="TiraBattle" event="script" value="tirabattle.lua"/> "data/creaturescripts/scripts/login.lua" :
registerCreatureEvent(cid, "TiraBattle") -
ViitinG's post in (Resolvido)area clara was marked as the answerÉ difícil dizer o que você pode colocar para clarear porque não sei qual bioma e nem o tipo de lugar que está essa área mas vou deixar aqui algumas dicas úteis :
Para lugares tanto subterrâneos quanto acima da terra você pode usar os diversos tipos de Coal Basin(2604) para iluminar os meios.
Para lugares abaixo do floor 8 você pode usar Lit Torch Bearer(3944), Lit Wall Lamp(2069), Lit Wall Lamp(3950) ou Lit Wall Lamp(9749), dependendo do lugar que está essa área e lembrando que quanto menor o floor do mapa, mais acima ele está.
Para lugares subterrâneos no caso acima do floor 8, você pode usar Lit Torch Bearer(2059) ou Lit Wall Lamp(2040).
Existem outros itens que podem iluminar os lugares, porém acho que esses são os mais apropriados e mais usados para todas as situações, caso ainda esteja muito escuro tente ver se o seu cliente do tibia não está com os gráficos de luminosidade baixo.
-
ViitinG's post in (Resolvido)Death was marked as the answer"data/creaturescripts/scripts/deathBroadcast.lua" :
local config = { affected = 10, -- how many players (deathAssits) from table deathList should this script be executed for? killStorageValue = 3943, deathStorageValue = 3944, -- commands for the texts (those inside of ||, example: |KILLS| to show skills): KILLS, KILLERNAME, TARGETNAME rewardItem = { use = true, itemid = 2152, minLevel = false, -- false if you don't want any level req minLevelDiff = false, -- false if you don't want any level diff req (negative numbers allowed). }, killMessage = { use = true, text = "You owned |TARGETNAME|! You have now |KILLERKILLS| kills!", messageClass = MESSAGE_STATUS_CONSOLE_BLUE }, broadcastMessage = { use = false, minLevel = false, -- false if you don't want any level req minLevelDiff = false, -- false if you don't want any level diff req (negative numbers allowed). text = "|KILLERNAME| [|KILLERLEVEL|] just killed |TARGETNAME| [|TARGETLEVEL|]!", messageClass = MESSAGE_STATUS_WARNING }, killerAnimation = { use = true, text = "Frag!", -- Only 9 letters! No "commands" here. color = 144 }, targetAnimation = { use = true, text = "OWNED!!", -- Only 9 letters! No "commands" here. color = 180 } } function onDeath(cid, corpse, deathList) for i = 1, math.min(config.affected, getConfigInfo('deathAssistCount')) do local killer = deathList[i] if(isPlayer(killer) == TRUE) then local targetKills = math.max(0, getPlayerStorageValue(cid, config.killStorageValue)) + 1 local targetDeaths = math.max(0, getPlayerStorageValue(cid, config.deathStorageValue)) + 1 local killerKills = math.max(0, getPlayerStorageValue(killer, config.killStorageValue)) + 1 local killerDeaths = math.max(0, getPlayerStorageValue(killer, config.deathStorageValue)) + 1 setPlayerStorageValue(killer, config.killStorageValue, targetKills) setPlayerStorageValue(cid, config.deathStorageValue, targetDeaths) local killerLevel = getPlayerLevel(killer) local targetLevel = getPlayerLevel(cid) local levelDiff = targetLevel - killerLevel local values = { ["KILLERKILLS"] = killerKills, ["KILLERDEATHS"] = killerDeaths, ["KILLERNAME"] = getCreatureName(killer), ["KILLERLEVEL"] = killerLevel, ["TARGETKILLS"] = targetKills, ["TARGETDEATHS"] = targetDeaths, ["TARGETNAME"] = getCreatureName(cid), ["TARGETLEVEL"] = targetLevel } function formateString(str) return(str:gsub("|([A-Z]+)|", (function(a) return values[a] end))) end if(config.rewardItem.use and (not config.rewardItem.minLevel or targetLevel >= config.rewardItem.minLevel) and (not config.rewardItem.minLevelDiff or levelDiff >= config.rewardItem.minLevelDiff)) then if getPlayerIp(cid) == getPlayerIp(killer) then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você não ganha nada matando MC") return False end local uid = doPlayerAddItem(killer, config.rewardItem.itemid, 5) end if(config.killMessage.use) then doPlayerSendTextMessage(killer, config.killMessage.messageClass, formateString(config.killMessage.text)) end if(config.broadcastMessage.use and (not config.broadcastMessage.minLevel or getPlayerLevel(cid) >= config.broadcastMessage.minLevel) and (not config.broadcastMessage.minLevelDiff or levelDiff >= config.broadcastMessage.minLevelDiff)) then broadcastMessage(formateString(config.broadcastMessage.text), config.broadcastMessage.messageClass) end if(config.killerAnimation.use) then doSendAnimatedText(getCreaturePosition(killer), config.killerAnimation.text, config.killerAnimation.color) end if(config.targetAnimation.use) then doSendAnimatedText(getCreaturePosition(cid), config.targetAnimation.text, config.targetAnimation.color) end end end return true end function onKill(cid, target, lastHit) local str = "O player %s acaba de ser morto no nível %d por %s" if isPlayer(cid) and isPlayer(target) then doBroadcastMessage(str:format(getCreatureName(target), getPlayerLevel(target), getCreatureName(cid)), 27) end return true end "data/creaturescripts/login.lua" :
registerCreatureEvent(cid, "DeathBroadcast") "data/creaturescripts/creaturescripts.xml" :
<event type="kill" name="DeathBroadCast" event="script" value="deathbroadcast.lua"/> -
ViitinG's post in (Resolvido)Premium para X level alcançado was marked as the answer"data/creaturescripts/scripts/premmylevel.lua" :
function onAdvance(cid, oldLevel, newLevel) local msg = "Você atingiu o level 100, parabéns. Como Bônus receba 7 dias de premmy account." if getPlayerLevel(cid) >= 100 and getPlayerStorageValue(cid, 31562) == -1 then doPlayerSendTextMessage(cid,19,msg) doPlayerAddPremiumDays(cid, 7) setPlayerStorageValue(cid, 31562, 1) end return true end "data/creaturescripts/creaturescripts.xml" :
<event type="advance" name="levelpremmy" event="script" value="premmylevel.lua"/> "data/creaturescripts/scripts/login.lua" :
registerCreatureEvent(cid, "levelpremmy") -
ViitinG's post in (Resolvido)[AJUDA] Monster morre e nasce TP was marked as the answer"data/creaturescripts/scripts/tpmonster.lua" :
local config = { message = "Parabens voce derrotou o Azerus. Foi criado um Teleport no corpo do Azerus !!", timeToRemove = 20, -- seconds teleportId = 1387, bosses = { ["Azerus"] = { x = 576, y = 644, z = 7 }, } } local function removal(position) doRemoveThing(getTileItemById(position, config.teleportId).uid, 1) return TRUE end function onDeath(cid, corpse, killer) registerCreatureEvent(cid, "teleportmonster") local position = getCreaturePosition(cid) for name, pos in pairs(config.bosses) do if name == getCreatureName(cid) then teleport = doCreateTeleport(config.teleportId, pos, position) doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1) addEvent(removal, config.timeToRemove * 1000, position) doSendMagicEffect(position,10) end end return TRUE end "data/creaturescripts/creaturescripts.xml" :
<event type="death" name="teleportmonster" script="tpmonster.lua"/> No scripts do Azerus você coloca essa tag no final do scripts do monster :
<script> <event name="teleportmonster"/> </script> Um exemplo, caso você for usar o Troll como o monster :
-
ViitinG's post in (Resolvido)COMO COMPILAR TFS 0.4? was marked as the answerO tópico foi movido para a área correta, preste mais atenção da próxima vez!
Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680
Este tópico foi movido:
De: "OTServ → Suporte OTServ → Suporte de OTServ Geral"
Para: "OTServ → Suporte OTServ → Suporte de Programação"
-
ViitinG's post in (Resolvido)Ajudem com essa script was marked as the answerO tópico foi movido para a área correta, preste mais atenção da próxima vez!
Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680
Este tópico foi movido:
De: "OTServ → Scripting → Monsters e NPCs"
Para: "OTServ → Suporte OTServ → Suporte de Scripts"
-
ViitinG's post in (Resolvido)Pokémon não evolui com Stone was marked as the answerVocê abriu uma denúncia relatando que ja resolveu o problema então se possível comente como resolveu o problema para que outros membros que tiverem com o mesmo problema saberem como resolver.
-
ViitinG's post in (Resolvido)AJUDINHA RAPIDINHA PFV was marked as the answerNão entendi muito bem, o teu servidor tem a sprite do dinheiro mudada mas isso não muda em nada no script a não ser que a sprite e o ID do dinheiro sejam diferentes do normal.
Caso for isso é só procurar pelos ID's do dinheiro e mudar pelo seu, no caso :
obs : isso é para você ver os id's, se você procurar por eles vai ver que tem que mudar em mais linhas.
-
ViitinG's post in (Resolvido)RME pra mapa 10.41 was marked as the answerTenta usar esse : http://www.4shared.com/rar/tqXNnpuMba/RME_ViitinG.html
-
ViitinG's post in (Resolvido)Duvida was marked as the answerSim pode.
Existem varios programas, eu particularmente uso o WinSCP é prático e fácil de usar.
WinSCP : http://winscp.net/eng/download.php
-
ViitinG's post in (Resolvido)cidade was marked as the answerAbra o mapa com o RME e aperte Ctrl + T.