Ir para conteúdo

Taunt Sistem Para Poketibia World


DinoAdmin

Posts Recomendados

Bom galera Ja tem um Post esplicando como faz o taunt sistem e como Ele funciona.

Sendo assim eu vo postar aqui o taunt sistem para o Poketibia World para aquele que Estao com duvida de organizar a sequencia entao

Eu irei postar o Script.

Lembrando que ele Funciona no Poketibia World.

Nao sei se voce for usar em outro server se vai funcionar. Ai voce teria que configurar a sequencia de novo.

 

Vamos la!

 

Vá em data/Talkaction/Script/scrie um arquivo chamado taunt.lua e cole isso dentro

 

local outfits = {
[1154] = {1743, 1744, 1745, 1746, 1747, 1746, 1745, 1744, 1743, 1742, 1741, 1740},--volcanic male
[1160] = {1689, 1690, 1691, 1692, 1693, 1694, 1695,1694, 1693, 1692, 1691, 1690},--raibolt male
[1162] = {1696, 1697, 1698, 1699, 1700, 1699, 1698, 1697, 1696},--seavel male
[1159] = {1701, 1702, 1703, 1704, 1705, 1704, 1703, 1702, 1701},--naturia male
[1158] = {1710, 1711, 1709, 1708, 1707, 1706, 1707, 1708, 1709, 1709, 1711, 1710},--wingeon male
[1751] = {1713, 1714, 1715, 1712, 1715, 1716, 1715, 1714, 1713},--malefic male
[1155] = {1717, 1718, 1719, 1720, 1721, 1722, 1723, 1724, 1725},--Gardestrike male
[1161] = {1727, 1728, 1729, 1730, 1731, 1732, 1733},--Psycraft male
[1156] = {1735, 1736, 1737, 1738, 1739, 1734, 1738, 1737, 1736, 1735},--Orebound male
[1153] = {1751, 1752, 1753, 1754, 1755, 1756, 1757, 1758, 1759, 1750},--malefic female
[1146] = {1760, 1761, 1762, 1763, 1764, 1763, 1762, 1761, 1760},--Gardestrike female
[1152] = {1765, 1766, 1767, 1768, 1769, 1770, 1771, 1772, 1773, 1765},--volcanic female
[1151] = {1774, 1775, 1776, 1777, 1778, 1779, 1780},--seavel female
[1149] = {1781, 1782, 1783, 1784, 1785, 1786, 1787, 1788, 1789, 1790, 1791},--Naturia female
[1145] = {1792, 1793, 1794, 1795, 1796, 1797, 1798, 1799, 1800, 1792},--Psycraft female
[1150] = {1801, 1802, 1803, 1804, 1805, 1804, 1803, 1802, 1801},--Orebound female
[1147] = {1807, 1808, 1809, 1810, 1811, 1812, 1813, 1814, 1806},--Raibolt female
[1148] = {1815, 1816, 1817, 1818, 1819, 1820, 1821, 1822, 1823, 1824},--Wingeon female
[1183] = {1829, 1830, 1831, 1832, 1831, 1832},--police male
[1184] = {1825, 1826, 1827, 1828, 1827, 1828},--police female
}
local intervalo_para_trocar_roupas = 2 * 200 -- em ms, 1 * 1000 = 1 segundo
local function doChangeOutfit(cid, id, oldLook)
if not isCreature(cid) then return true end
local n = id or 1
local newOutfit = getCreatureOutfit(cid)
newOutfit.lookType = outfits[oldLook][n]
doSetCreatureOutfit(cid, newOutfit, -1)
if n < #outfits[oldLook] then
addEvent(doChangeOutfit, intervalo_para_trocar_roupas, cid, n + 1, oldLook)
else
doCreatureSetNoMove(cid, false)
doRemoveCondition(cid, CONDITION_OUTFIT)
end
end
function onSay(cid, words, param)
if getCreatureCondition(cid, CONDITION_OUTFIT) and getCreatureNoMove(cid) then
return true
end
if not outfits[getCreatureOutfit(cid).lookType] then
doPlayerSendCancel(cid, "Você não está usndo o outfit necessário.")
return true
end
doCreatureSetNoMove(cid, true)
doChangeOutfit(cid, 1, getCreatureOutfit(cid).lookType)
return true
end

 

Agora em Talkaction.xml

 

<talkaction words="!taunt" event="script" value="taunt.lua"/>

 

Bom agora Se voce quiser usar em Outro Server Veja esta tutorial

http://www.xtibia.co...2-taunt-system/

 

 

Creditos:

 

Brun123 (pelo script)

Slicer (pela modificação)

Bolz (Por Postar o Tutorial)

DinoAdmin (Por Montar a Sequencia De todos os clans)

Editado por DinoAdmin
Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...