Ir para conteúdo
  • 0

Frag Look [Frags: -1]


Trivelatos

Pergunta

Coloquei frags look no meu ot, só que os kra tem 5 frags e no look fica só

 

17:43 You see Pedrin druid (Level 101). He is a druid [Frags: -1].

 

alguém arruma pra mim?

 

 

-- Original script edited by MaxLinux or Sciter -- Look Frags --

function onLogin(cid)

registerCreatureEvent(cid, "fraglook")

return true

end

 

function onLook(cid, thing, position, lookDistance)

if isPlayer(thing.uid) and thing.uid ~= cid then

doPlayerSetSpecialDescription(thing.uid,' [Frags: '..getPlayerStorageValue(thing.uid, 90190)..']')

return true

elseif thing.uid == cid then

doPlayerSetSpecialDescription(cid,' [Frags: '..getPlayerStorageValue(cid, 90190)..']')

local string = 'Você vê a si mesmo.'

if getPlayerFlagValue(cid, PLAYERFLAG_SHOWGROUPINSTEADOFVOCATION) then

string = string..' You are '.. getPlayerGroupName(cid) ..'.'

elseif getPlayerVocation(cid) ~= 0 then

string = string..' You are '.. getPlayerVocationName(cid) ..'.'

else

string = string..' You have no vocation.'

end

string = string..getPlayerSpecialDescription(cid)..''

 

if getPlayerNameByGUID(getPlayerPartner(cid), false, false) ~= nil then

string = string..' You are '.. (getPlayerSex(cid) == 0 and 'wife' or 'husband') ..' of '.. getPlayerNameByGUID(getPlayerPartner(cid)) ..'.'

end

 

if getPlayerGuildId(cid) > 0 then

string = string..' You are ' .. (getPlayerGuildRank(cid) == '' and 'a member' or getPlayerGuildRank(cid)) ..' of '.. getPlayerGuildName(cid)

string = getPlayerGuildNick(cid) ~= '' and string..' ('.. getPlayerGuildNick(cid) ..').' or string..'.'

end

 

if getPlayerFlagValue(cid, PLAYERCUSTOMFLAG_CANSEECREATUREDETAILS) then

string = string..'Health: ['.. getCreatureHealth(cid) ..' / '.. getCreatureMaxHealth(cid) ..'], Mana: ['.. getCreatureMana(cid) ..' / '.. getCreatureMaxMana(cid) ..'].'

string = string..'IP: '.. doConvertIntegerToIp(getPlayerIp(cid)) ..'.'

end

 

if getPlayerFlagValue(cid, PLAYERCUSTOMFLAG_CANSEEPOSITION) then

string = string..'Position: [X:'.. position.x..'] [Y:'.. position.y..'] [Z:'.. position.z..'].'

end

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, string)

return false

end

return true

end

Link para o comentário
Compartilhar em outros sites

4 respostass a esta questão

Posts Recomendados

  • 0

data/creaturescripts/scripts/gardenal.lua

function onLogin(cid)
   if getPlayerStorageValue(cid,23435) == -1 then
       setPlayerStorageValue(cid,90190,0)
       setPlayerStorageValue(cid,23435,1)
       registerCreatureEvent(cid, "fragk")
   end
   return true
end

function onKill(cid, target)
   if isPlayer(target) then
       setPlayerStorageValue(cid,90190,getPlayerStorageValue(cid,90190)+1)
   end
   return true
end

 

creaturescripts.xml:

<event type="login" name="fragl" event="script" value="gardenal.lua"/>
<event type="kill" name="fragk" event="script" value="gardenal.lua"/>

 

o que acontece é q vc só adicionou o look do sistema, nao as outras scripts

criei entao 1 basico flww

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...