Ir para conteúdo
  • 0

[Pedidos De Script] Mudar Script De Versão


MatheusVidaLoka

Pergunta

Fala galera do Xtibia , vi um script legal e gostaria de mudar a versão do script alguém pode me ajudar ? Gostaria de mudar para a versão 8.60 , quem me ajudar rep + . ^^

 

Aqui vai o script :

 

titles = {

[99] = "Private First Class",

[102] = "Specialist",

[104] = "Corporal",

[106] = "Sergeant",

[108] = "Staff Sergeant",

[110] = "Sergeant First Class",

[115] = "Master Sergeant",

[120] = "First Sergeant",

[125] = "Sergeant Major",

[130] = "Command Sergeant Major",

[135] = "Sergeant Major of the Army",

[140] = "Second Lieutenant",

[145] = "First Lieutenant",

[150] = "Captain",

[160] = "Major",

[170] = "Lieutenant Colonel",

[180] = "Colonel",

[190] = "Brigadier General",

[200] = "Major General",

[220] = "Lieutenant General",

[240] = "General",

[260] = "General of the Army"

}

fragsStorage = 600

]]>

domodlib("ranks")

function onLook(cid, thing, position, lookDistance)

if(isPlayer(thing.uid)) then

local rank = {rank = "Private", frags = 0}

for k, v in pairs(titles) do

if(math.max(0, getPlayerStorageValue(thing.uid, fragsStorage)) > k - 1) then

if(k - 1 > rank.frags) then

rank.rank, rank.frags = v, k - 1

end

end

end

doPlayerSetSpecialDescription(thing.uid, "\n Military rank: " .. rank.rank)

end

return true

end

]]>

domodlib("ranks")

function onKill(cid, target)

if(isPlayer(target)) then

setPlayerStorageValue(cid, fragsStorage, math.max(0, getPlayerStorageValue(cid, fragsStorage) + 1))

if(titles[getPlayerStorageValue(cid, fragsStorage)]) then

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você subiu de patente: " .. titles[getPlayerStorageValue(cid, fragsStorage)] .. ". Parabéns " .. titles[getPlayerStorageValue(cid, fragsStorage)] .. "!")

end

end

return true

end

]]>

function onLogin(cid)

registerCreatureEvent(cid, "ranksKill")

registerCreatureEvent(cid, "ranksLook")

return true

end

]]>

Link para o comentário
Compartilhar em outros sites

2 respostass a esta questão

Posts Recomendados

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...