Postado Novembro 24, 2014 10 anos Quando damos look no player aparece a vocação e o level dele.Eu queria botar pra aparecer também quanto de mana ele tem e de life como essa foto mostra. Rep+
Postado Novembro 24, 2014 10 anos playerinfo.lua (data/creaturescripts/scripts): function onLook(cid, thing, position, lookDistance) if thing.uid ~= cid and isPlayer(thing.uid) then string = 'You see '..getCreatureName(thing.uid)..'. '..(getPlayerSex(thing.uid) == 0 and 'She' or 'He')..' is a '..getPlayerVocationName(thing.uid)..'.\nInformação do jogador ('..getCreatureName(thing.uid)..')\nHealth: ['..getCreatureHealth(thing.uid)..'/'..getCreatureMaxHealth(thing.uid)..']\nMana: ['..getCreatureMana(thing.uid)..'/'..getCreatureMaxMana(thing.uid)..']' doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, string) elseif thing.uid == cid then string = 'You see yourself. You are '..getPlayerVocationName(cid)..'.\nInformação sua ('..getCreatureName(cid)..')\nHealth: ['..getCreatureHealth(cid)..'/'..getCreatureMaxHealth(cid)..']\nMana: ['..getCreatureMana(cid)..'/'..getCreatureMaxMana(cid)..']' doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, string) end return true end Tag - creaturescripts.xml (data/creaturescripts): <event type="look" name="PlayerInfo" event="script" value="playerinfo.lua"/> Registro do creature event em login.lua (data/creaturescripts/scripts): registerCreatureEvent(cid, "PlayerInfo") Editado Novembro 27, 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 Presta prestou ,mais bugou o sistema de look dos items eu dou look nos items é não mostra nada
Postado Novembro 25, 2014 10 anos Ajustei a checagem e simplifiquei o script, tente agora. The corrupt fear us. The honest support us. The heroic join us.
Postado Novembro 27, 2014 10 anos Autor Não deu certo e agora nem mostra quanto ele tem de life e mana.
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.