Postado Abril 18, 2015 10 anos Boa Tarde, Preciso de uma script de alavanca que teleporte uma Guild inteira e que mude a cor da roupa do personagem e que só o líder da Guild possa acionar essa alavanca. abs Bump
Postado Abril 18, 2015 10 anos local newColor = {lookBody = xxx, lookHead = xxx, lookLegs = xxx, lookFeet = xxx} --Configure aqui a cor da roupa dos membros da guild. function onUse(cid) if getPlayerGuildId(cid) > 0 then if getPlayerGuildRank(cid) == "leader" then for _, pid in pairs(getPlayersOnline()) do if getPlayerGuildId(pid) == getPlayerGuildId(cid) and pid ~= cid then newColor.lookType = getCreatureOutfit(pid).lookType doPlayerSendTextMessage(pid, 27, "Your guild leader ("..getCreatureName(cid)..") pulled you.") doTeleportThing(pid, getClosestFreeTile(cid, getThingPos(cid))) doSetCreatureOutfit(pid, newColor, -1) end end else doPlayerSendCancel(cid, "You aren't the guild leader.") end else doPlayerSendCancel(cid, "You don't have a guild.") end return true end Editado Abril 18, 2015 10 anos por zipter98 (veja o histórico de edições) não respondo pms solicitando suporte em programação/scripting
Postado Abril 20, 2015 10 anos Autor local newColor = {lookBody = xxx, lookHead = xxx, lookLegs = xxx, lookFeet = xxx} --Configure aqui a cor da roupa dos membros da guild. function onUse(cid) if getPlayerGuildId(cid) > 0 then if getPlayerGuildRank(cid) == "leader" then for _, pid in pairs(getPlayersOnline()) do if getPlayerGuildId(pid) == getPlayerGuildId(cid) and pid ~= cid then newColor.lookType = getCreatureOutfit(pid).lookType doPlayerSendTextMessage(pid, 27, "Your guild leader ("..getCreatureName(cid)..") pulled you.") doTeleportThing(pid, getClosestFreeTile(cid, getThingPos(cid))) doSetCreatureOutfit(pid, newColor, -1) end end else doPlayerSendCancel(cid, "You aren't the guild leader.") end else doPlayerSendCancel(cid, "You don't have a guild.") end return true end Pergunta, A onde eu configuro qual local a guild vai ser teleportada? Tem como Só teleportar guild que estão em guerra? "Cast System" bump
Postado Abril 21, 2015 10 anos Desculpe, você não havia sido muito específico. Não conheço este sistema que você mencionou. Poderia enviar os códigos dele? Ou, se houver algum tópico contendo-os, será ainda melhor. não respondo pms solicitando suporte em programação/scripting
Postado Abril 21, 2015 10 anos Autor Desculpe, você não havia sido muito específico. Não conheço este sistema que você mencionou. Poderia enviar os códigos dele? Ou, se houver algum tópico contendo-os, será ainda melhor. Se for mto difícil n precisa, só corrigi o primeiro pra eu colher o lugar a onde eles vão se teletransportar
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.