Postado Setembro 7, 2017 7 anos Eu tenho essa parte de codigo no meu login.lua, o problema é que repete 5x a fala quando loga, tem como ser apenas 1 vez, e de preferencia animetext, tipo de magia. for i = 1, 5 do if getPlayerLevel(cid) < 250 then doPlayerAddBlessing(cid, i) doPlayerSendTextMessage(cid, 20, "Blessings free up to level 250.") end
Postado Setembro 7, 2017 7 anos Solução -- ASSIM if getPlayerLevel(cid) < 250 then doPlayerSendTextMessage(cid, 20, "Blessings free up to level 250.") for i = 1, 5 do doPlayerAddBlessing(cid, i) end end -- OU ASSIM if getPlayerLevel(cid) < 250 then doSendAnimatedText(getPlayerPosition(cid), "Bless!", COLOR_ORANGE) for i = 1, 5 do doPlayerAddBlessing(cid, i) end end Contato: Email: [email protected] Discord: Dwarfer#2715
Postado Setembro 7, 2017 7 anos Autor 59 minutos atrás, Dwarfer disse: -- ASSIM if getPlayerLevel(cid) < 250 then doPlayerSendTextMessage(cid, 20, "Blessings free up to level 250.") for i = 1, 5 do doPlayerAddBlessing(cid, i) end end -- OU ASSIM if getPlayerLevel(cid) < 250 then doSendAnimatedText(getPlayerPosition(cid), "Bless!", COLOR_ORANGE) for i = 1, 5 do doPlayerAddBlessing(cid, i) end end obrigado, eu so fiz uma pequena adaptação q n comentei if (string.find(tostring(getCreatureName(cid)),"Account Manager")) or getPlayerGroupId(cid) >= 3 then return true end if getPlayerLevel(cid) < 250 then doCreatureSay(cid, "you have blessings free to level 250!", TALKTYPE_ORANGE_1) for i = 1, 5 do doPlayerAddBlessing(cid, i) end end
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.