VI
dúvida

[Creaturescript] Onlook Facil Facil

Por Victor8, 20 de ago. de 2012 em Scripts

script
4
1.4k
Victor8V
20 de agosto de 2012 às 12:50

<event type="look" name="repLook" event="script"><![CDATA[
domodlib('repSystem')
function onLook(cid, thing, position, lookDistance)
 if isPlayer(thing.uid) then
  doPlayerSetSpecialDescription(thing.uid,'.\n' .. (thing.uid == cid and 'You are' or rep.getArticle(thing.uid, true) .. ' is') .. ' ' .. rep.getRank(rep.getPoints(thing.uid)))
 end		  
return true
end]]>
</event>

 

Isso resulta nisso no jogo.

 

2:48 You see Oleer (Level 180). He is an elite knight.
He is Desconhecido (*<<==========).

 

Na segunda linha fica o nivel de respeito dele. (Todo mundo conhece o sistema de respeito)

 

Eu gostaria que só ficasse assim:

 

 

2:48 You see Oleer (Level 180). He is an elite knight.
Desconhecido (*<<==========).

 

 

Entende? Só o rank de respeito mesmo, sem o "he is" ou "she is" ou "you are"

 

Ja tentei de tudo ali cara, mas não sei nada sobre descrição e funções onlook.

E só buga o distro.

Editado Agosto 20 por Victor8

VodkartV
20 de agosto de 2012 às 13:06

já tentou usar

 

 doPlayerSetSpecialDescription(thing.uid,'.\n' .. rep.getRank(rep.getPoints(thing.uid)))

 

?

Victor8V
20 de agosto de 2012 às 13:20

já tentou usar

 

 doPlayerSetSpecialDescription(thing.uid,'.\n' .. rep.getRank(rep.getPoints(thing.uid)))

 

?

 

É isso ai mesmo. Eu tenho que quebrar mais uma linha.

Pq ele ta saindo junto com a guild.

 

 

13:17 You see Caasz (Level 227). He is an elite knight.
Desconhecido (*<<==========). He is General of the So Rushando (Human Wall).

 

Aonde eu coloco o \n?

 

 

 

 

 

 

Ah outra coisa Vodkart só uma duvida pessoal mesmo. Ali na parte :

13:17 You see Caasz (Level 227). He is an elite knight.

 

Para poder trocar o "you see" so no distro neh? :\

Se voce colocar um script creaturescripts onlook ele não sobrepoem ?

Eu sou maniaco por deixar tudo em portugues. hehe

Editado Agosto 20 por Victor8

brun123B
20 de agosto de 2012 às 13:32

Não precisa mudar as sources não, é só colocar return false no onLook (não vai mandar a mensagem verde) e ao mesmo tempo usar a função que manda a mensagem verde que seja: "Você vê Alguém (Level 10). Ele é um elite knight..."