Ir para conteúdo

CRITICAL POR NIVEIS ,POR TEMPO ,E APÓS NIVEL MAXIMO ACUMULAR O TEMPO !

Featured Replies

Postado

.Qual servidor ou website você utiliza como base? 

TFS 0.4 TIBIA 8.6

 

Qual o motivo deste tópico? 

ESTAVA PRECISANDO DE UM CRITICAL QUANDO ESTIVESSE "X "NIVEL TERIA 30 DIAS ATÉ ELE REGREDIR PARA NIVEL ANTERIOR ,

NO CASO APÓS 30 DIAS SUBTRAIRIA MENOS UM NIVEL E VOLTARIA PRA NIVEL ANTERIOR

A CADA NIVEL UPADO O  TEMPO VOLTARIA PARA 30 DIAS

EXEMPLO 1: ESTÁ NIVEL 1 FALTANDO 5 DIAS PARA REGREDIR O CRITICAL ,O PLAYER USASSE PRA NIVEL 2 , ELE  TERIA 30 DIAS PARA REGREDIR PARA O LVL 1 E ASSIM POR DIANTE .

EXEMPLO 2 :ESTÁ NIVEL 2 FALTANDO 10 DIAS PARA REGREDIR, SE O PLAYER USAR MAIS 1 CRITICAL UPARIA PARA NIVEL 3 E FALTANDO MAIS 30 DIAS PRA REGREDIR....

*MAXIMO DE NIVEL CONTINUARIA LVL 100.

*PORÉM APARTIR DO LVL 100 SE USAR MAIS 1 CRITICAL ADICIONARIA +30 DIAS PARA ELE NÃO REGREDIR .

*O TEMPO APÓS NIVEL 100 SERIA ACUMULATIVO CHEGANDO NO MAXIMO A 300 DIAS APOS ISSO O PLAYER NAO CONSEGUE USAR MAIS O ITEM .

*NA TALKACTION !CRITICAL MOSTRASSE O TEMPO PARA REGREDIR O CRITICAL

 

 

Você tem o código disponível? Se tiver publique-o aqui: 

USO O CRITICAL DO @xWhiteWolf
https://tibiaking.com/forums/topic/35663-critical-skill-system/?tab=comments#comment-201992

ESTAVA TENTANDO COM ESSAS FUNÇÃO

Spoiler




function onUse(cid, item, frompos, item2, topos)
	local config = {
		timeForUse = 1, -- tempo em horas que o player poderá entrar na cave.
		storage = 789450,
		toKnow = 456789,
		effect = 27 -- efeito que dará ao usar o item.
	}
	local time = getPlayerStorageValue(cid, config.storage) - os.time() <= 0 and (os.time() + config.timeForUse * 60) or (getPlayerStorageValue(cid, config.storage) + config.timeForUse * 60)
	setPlayerStorageValue(cid, config.storage, time)
	doRemoveItem(item.uid,1)
	setPlayerStorageValue(cid, config.toKnow, 1)
	doSendMagicEffect(getThingPos(cid), config.effect)
	doPlayerSendTextMessage(cid, 19, "Voce Usou a Bonus Area")
	return true
end

Essa função está nesse topico

Spoiler

talkaction usada

Spoiler










function onSay(cid, words, param)

local level = getPlayerLevel(cid)
local vocation = getPlayerVocationName(cid)
local health, maxhealth = getCreatureHealth(cid), getCreatureMaxHealth(cid)
local mana, maxmana = getCreatureMana(cid), getCreatureMaxMana(cid)
local fist, club, sword, axe = getPlayerSkillLevel(cid, 0), getPlayerSkillLevel(cid, 1), getPlayerSkillLevel(cid, 2), getPlayerSkillLevel(cid, 3)
local distance, shield, fishing, magic =  getPlayerSkillLevel(cid, 4), getPlayerSkillLevel(cid, 5), getPlayerSkillLevel(cid, 6), getPlayerMagLevel(cid)
local lvldodge, lvlcrit  = getPlayerStorageValue(cid, 48902),getPlayerStorageValue(cid, 48903)
local cap = getPlayerFreeCap(cid)
local text = "Vocation: "..vocation.."\nLevel: ".. level .."\nHP: ".. health .."/".. maxhealth .."\nMP: ".. mana .."/".. maxmana .."\nCapacity: ".. cap .."\n\nDodge Level: ".. lvldodge .."\nCritical Level: ".. lvlcrit .."\nMagic Level: ".. magic .."\n\nFist: ".. fist .."\nClub: ".. club .."\nSword: ".. sword .."\nAxe: ".. axe .."\nDistance: ".. distance .."\nShield: ".. shield .."\nFishing: ".. fishing ..""
doShowTextDialog(cid, 5808, text)
return true
end

Esta No Topico

 

 

 

Editado por carlos420
ajustando ortografia para que fique mas compreensivel (veja o histórico de edições)

  • 2 weeks later...

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Conteúdo Similar

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo