Postado Janeiro 13, 2015 10 anos Gostaria Que Alguém Me Ajudasse a Instalar Esses Dois Scripts No Meu OTServer Eu Sei As Funções De Cada Um + Não Consigo Instalar Eles ! Rep+ 1° Script: A Função Dele é Que Quando o Player Tiver a Storage "13340" o Player Fica Piscando o Outfit. local events = {} function newColor(n) local n = tonumber(n) or 0 local n = n - 19 return tonumber(n) or 0 end -- comentario: se a cor for preta o addon vai para branco sendo que o certo é diminuir 19.. function changeOutfit(cid) local sec = 0.5if (isPlayer(cid) == FALSE) then return falseend local temp = getCreatureOutfit(cid) if type(temp) == "number" then return true end local outfit = { lookType=temp.lookType, lookHead=newColor(temp.lookHead), lookBody=newColor(temp.lookBody), lookLegs=newColor(temp.lookLegs), lookFeet=newColor(temp.lookFeet), lookAddons = getCreatureOutfit(cid).lookAddons } doSetCreatureOutfit(cid, outfit, sec) local event = addEvent(changeOutfit, 3.0*sec*450, cid) events[cid] = event return true end function onLogin(cid) local storage = getGlobalStorageValue(13340)if storage == getPlayerGuildId(cid) then local event = addEvent(changeOutfit, 0, cid) events[cid] = event end return TRUE end function onLogout(cid) if events[cid] then stopEvent(events[cid]) end return TRUE end2° Script: A Função Dele é Ficar Girando Shurikens Em Volta Do Player Após Dar o Ultimo Hit Em "x" Monster ! function loopEffect(uid, effect, tempo)local pos = getPlayerPosition(uid) local effectPositions = { [1] = {x = pos.x + 1, y = pos.y, z = pos.z, stackpos = 0}, [2] = {x = pos.x + 1, y = pos.y - 1, z = pos.z, stackpos = 0} } doSendDistanceShoot(effectPositions[math.random(#effectPositions)], effectPositions[math.random(#effectPositions)], effect) addEvent(function() if (isPlayer(cid) == FALSE) then loopEffect(uid, effect, tempo) end end, 1000 * tempo)return trueend
Postado Janeiro 16, 2015 10 anos Autor Em 14/01/2015 em 22:47, danihcv disse: Onde vc pegou esses scripts? Pelo forum mesmo... duvidas dos players :S
Postado Janeiro 16, 2015 10 anos Seria bom eu saber o contexto desses scripts... :s Poderia mandar os links?
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.