Postado Novembro 24, 2014 10 anos Galera queria um script que ao dar look no player aparecesse se ele é VIP ou não .... to usando esse sistema VIP http://www.tibiaking.com/forum/topic/41508-tfs-10-vip-system-baseado-no-do-mocks/ Esse daqui não serve pro sistema VIP em questão http://www.tibiaking.com/forum/topic/37672-vip-no-look/page-2 mais deve ser facil arrumar .... e se possivel tambem aparecesse na frente do nome... tentei mecher nesse que aparece PREMIUM mais não deu certo, acho que eh por causa da versão do TFS http://www.tibiaking.com/forum/topic/39309-creaturescript-premium-no-nome/ Aguardo. Grato
Postado Novembro 24, 2014 10 anos queria um script que ao dar look no player aparecesse se ele é VIP ou não .... to usando esse sistema VIP http://www.tibiaking...do-no-do-mocks/ Se não me engano, a função doPlayerSetSpecialDescription é inexistente no TFS 1.0. Me corrijam se eu estiver errado. Enfim, por via das dúvidas..não custa nada tentar: lookvf.lua (data/creaturescripts/scripts): function onLook(cid, thing, position, lookDistance) if isPlayer(thing.uid) then if hasVip(thing.uid) then doPlayerSetSpecialDescription(thing.uid,'.\n'..(getPlayerSex(thing.uid) == 0 and 'She' or 'He')..' is Vip.') else doPlayerSetSpecialDescription(thing.uid,'.\n'..(getPlayerSex(thing.uid) == 0 and 'She' or 'He')..' is Free.') end end return true end Tag - creaturescripts.xml (data/creaturescripts): <event type="look" name="VipOrFree" event="script" value="lookvf.lua"/> Registre o creature event em login.lua (data/creaturescripts/scripts): registerCreatureEvent(cid, "VipOrFree") Se realmente não der, eu posso te passar os códigos da função e daí você compila na source do seu servidor. Editado Novembro 24, 2014 10 anos por Suicide (veja o histórico de edições) The corrupt fear us. The honest support us. The heroic join us.
Postado Novembro 24, 2014 10 anos Autor Se não me engano, a função doPlayerSetSpecialDescription é inexistente no TFS 1.0. Me corrijam se eu estiver errado. Enfim, por via das dúvidas..não custa nada tentar: lookvf.lua (data/creaturescripts/scripts): function onLook(cid, thing, position, lookDistance) if isPlayer(thing.uid) then if hasVip(thing.uid) then doPlayerSetSpecialDescription(thing.uid,'.\n'..(getPlayerSex(thing.uid) == 0 and 'She' or 'He')..' is Vip.') else doPlayerSetSpecialDescription(thing.uid,'.\n'..(getPlayerSex(thing.uid) == 0 and 'She' or 'He')..' is Free.') end end return true end Tag - creaturescripts.xml (data/creaturescripts): <event type="look" name="VipOrFree" event="script" value="lookvf.lua"/> Registre o creature event em login.lua (data/creaturescripts/scripts): registerCreatureEvent(cid, "VipOrFree") Se realmente não der, eu posso te passar os códigos da função e daí você compila na source do seu servidor. Nada feito amigo... beleza, se puder me enviar os codigos eu compilo e ja tento novamente.
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.