Conectarse
Buscar
Mejores posteadores
XxStroksxX (463) | ||||
~*~[:Đαяќ:]~[:тιβια:]~*~ (366) | ||||
spoor (83) | ||||
Dj Pacos (73) | ||||
God Skit (68) | ||||
GoD MexicanSoul (40) | ||||
fuzzy (35) | ||||
Eddie (31) | ||||
GOD Chimito (30) | ||||
conalep1996 (23) |
Últimos temas
Temas más activos
Miembros que empiezan más temas
XxStroksxX | ||||
~*~[:Đαяќ:]~[:тιβια:]~*~ | ||||
God Skit | ||||
spoor | ||||
GoD MexicanSoul | ||||
fuzzy | ||||
Eddie | ||||
conalep1996 | ||||
Dj Pacos | ||||
God Rakzzo |
[Talkation] Comando Para Bailar :D By ~*~[Dark]~[Tibia]~*~
2 participantes
Página 1 de 1.
[Talkation] Comando Para Bailar :D By ~*~[Dark]~[Tibia]~*~
se van a ot/data/talkactions/scripts Copian cualquiera le ponen dancing lo abren borran lo de adentro y pegan esto
y luego se van a ot/data/talkactions/talkactions.xml Y pegan
Nota para aquitivarlo es !dance start y para detenerlo es !dance stop
- Código:
local conf = {}
-- // config // ---
conf.danceTexts = {"baila", "", ""}
conf.textSpeed = 1500 -- how fast animated texts is sending?
conf.danceSpeed = 100 -- dance speed
conf.outfitSpeed = 250 -- outfit changer speed
conf.outfitMale = {128, 129, 130, 131, 132, 133, 134, 143, 144, 145, 146, 151, 152, 153, 154, 251, 268, 273, 278, 289, 325} -- all male outfits
conf.outfitFemale = {136, 137, 138, 139, 140, 141, 142, 147, 148, 149, 150, 155, 156, 157, 158, 252, 269, 270, 279, 288, 324} -- all female outfits
-- // end // --
function dancer(tab)
if isPlayer(tab[1]) then
local dirs = {[0] = {1,3},[1] = {0,2},[2] = {1,3},[3] = {0,2}}
local look = dirs[getCreatureLookDirection(tab[1])]
doCreatureSetLookDir(tab[1], look[math.random(1,2)])
tab[2].dancer = addEvent(dancer,conf.danceSpeed, {tab[1], tab[2]})
end
end
function messager(tab)
if isPlayer(tab[1]) then
doCreatureSay(tab[1], conf.danceTexts[math.random(1, #conf.danceTexts)], TALKTYPE_ORANGE_2)
tab[2].messager = addEvent(messager,conf.textSpeed, tab)
end
end
function outfitChanger(tab)
if isPlayer(tab[1]) then
if getPlayerSex(tab[1]) == PLAYERSEX_FEMALE then
outs = conf.outfitFemale
else
outs = conf.outfitMale
end
local outfit = {
lookType = outs[math.random(1, #outs)],
lookHead = math.random(1,133),
lookBody = math.random(1,133),
lookLegs = math.random(1,133),
lookFeet = math.random(1,133),
lookTypeEx = math.random(1,133),
lookAddons = math.random(0,3)}
doCreatureChangeOutfit(tab[1], outfit)
tab[2].outfitChanger = addEvent(outfitChanger,conf.outfitSpeed, tab)
end
end
backOutfit = {}
local backOutfit = {}
function onSay(cid, words, param, channel)
local pid = getPlayerGUID(cid)
if type(events[pid]) ~= "table" then
events[pid] = {}
end
if string.lower(param) == "start" and not(events[pid].dancer) then
outBack = getCreatureOutfit(cid)
backOutfit[pid] = outBack
backOutfit[pid].lookType = outBack.lookType
backOutfit[pid].lookAddons = outBack.lookAddons
dancer({cid, events[pid]})
messager({cid, events[pid]})
outfitChanger({cid, events[pid]})
elseif string.lower(param) == "stop" and events[pid].dancer then
stopEvent(events[pid].dancer)
stopEvent(events[pid].messager)
stopEvent(events[pid].outfitChanger)
events[pid] = {}
doCreatureChangeOutfit(cid, backOutfit[pid])
end
return TRUE
end
y luego se van a ot/data/talkactions/talkactions.xml Y pegan
- Código:
<talkaction words="!dance" event="script" value="dancing.lua"/>
Nota para aquitivarlo es !dance start y para detenerlo es !dance stop
Última edición por ~*~[Dark]~[Tibia]~*~ el Sáb Ene 29, 2011 2:39 pm, editado 1 vez
Re: [Talkation] Comando Para Bailar :D By ~*~[Dark]~[Tibia]~*~
Porfavor corrigue donde pone: /data/talkactions/talkactions.xml
Temas similares
» [Talkation] Backpack Random Command !bp by ~*~[Dark]~[Tibia]~*~
» [Talkation] Teletransportarse con comando
» [Talkation] comando !jail
» [Talkation] Comando /r Mui Practico
» [Spell] Paralyze Muy Buena (: By ~*~[Dark]~[Tibia]~*~
» [Talkation] Teletransportarse con comando
» [Talkation] comando !jail
» [Talkation] Comando /r Mui Practico
» [Spell] Paralyze Muy Buena (: By ~*~[Dark]~[Tibia]~*~
Página 1 de 1.
Permisos de este foro:
No puedes responder a temas en este foro.
|
|
Lun Jun 08, 2015 12:08 pm por keishmer91
» [ACTION] God/GM da item a un player
Mar Dic 02, 2014 12:53 pm por hecmanos
» [8.60] Nuevo War Thais By TheRobertxon
Vie Jun 20, 2014 10:56 am por luismc
» [7.92]Naruto Final Story!
Dom Mayo 26, 2013 2:40 am por ricardotuck
» [9.1] Fun Server
Mar Mayo 14, 2013 5:32 pm por skifer
» [9.1] The Forgotten Server v0.2.11pl2 (Mystic Spirit)
Mar Mayo 14, 2013 5:29 pm por skifer
» New Map 8.60 (Darksystem) By: Turock & Gilio LIsto Arreglado El
Mar Mayo 07, 2013 5:27 pm por tonyso
» Ocean Clasic Global Map 8.6
Miér Mayo 01, 2013 11:19 pm por maganiua
» ayuda a abrir puertos
Lun Abr 29, 2013 5:58 pm por XxStroksxX
» [8.60] Speedy War
Dom Abr 28, 2013 5:51 pm por Sunnade'Audio