Ir para conteúdo

Probleminha Com Potion


exevogranmasvis

Posts Recomendados

Meu problema eh o seguinte... Eu ja klokei o meu serv online e ele ta on a 2 dias

 

e a regeneração de mana eh health são lentas obrigando os players a compra

 

potions, mais quando eles healam o "Aaaah..." sai em vermelho e cansa todos

 

os dias fik escutando pow edita issu, edita issu... mais num sei edita

 

entaum queria saber como inverter a cor vermelha pro laranja,

 

alguem pode me ajuda??

 

 

OBS: tmb aproveita e ve como edita o "Munch." da meat, ham e etc.

 

vlws

Link para o comentário
Compartilhar em outros sites

tenta usar essas pot aki e essas meat

 

pot

local ultimateHealthPot = 8473
local greatHealthPot = 7591
local greatManaPot = 7590
local greatSpiritPot = 8472
local strongHealthPot = 7588
local strongManaPot = 7589
local healthPot = 7618
local manaPot = 7620
local smallHealthPot = 8704
local antidotePot = 8474
local greatEmptyPot = 7635
local strongEmptyPot = 7634
local emptyPot = 7636

local antidote = createCombatObject()
setCombatParam(antidote, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(antidote, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(antidote, COMBAT_PARAM_TARGETCASTERORTOPMOST, TRUE)
setCombatParam(antidote, COMBAT_PARAM_AGGRESSIVE, FALSE)
setCombatParam(antidote, COMBAT_PARAM_DISPEL, CONDITION_POISON)

local exhaust = createConditionObject(CONDITION_EXHAUST_HEAL)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, getConfigInfo('timeBetweenExActions'))

function onUse(cid, item, fromPosition, itemEx, toPosition)
if(itemEx.uid ~= cid or itemEx.itemid ~= 1) then
	return TRUE
end

if(getCreatureCondition(cid, CONDITION_EXHAUST_HEAL) == TRUE) then
	doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED)
	return TRUE
end

if(item.itemid == antidotePot) then
	if(doCombat(cid, antidote, numberToVariant(cid)) == LUA_ERROR) then
		return FALSE
	end
	doAddCondition(cid, exhaust)
	doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1)
	doTransformItem(item.uid, emptyPot)
elseif(item.itemid == smallHealthPot) then
	if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 50, 100, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
		return FALSE
	end
	doAddCondition(cid, exhaust)
	doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1)
	doTransformItem(item.uid, emptyPot)
elseif(item.itemid == healthPot) then
	if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 100, 200, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
		return FALSE
	end
	doAddCondition(cid, exhaust)
	doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1)
	doTransformItem(item.uid, emptyPot)
elseif(item.itemid == manaPot) then
	if(doTargetCombatMana(0, cid, 100, 180, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
		return FALSE
	end
	doAddCondition(cid, exhaust)
	doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1)
	doTransformItem(item.uid, emptyPot)
elseif(item.itemid == strongHealthPot) then
	if(not(isKnight(cid) or isPaladin(cid)) or (getPlayerLevel(cid) < 50)) and not(getPlayerGroupId(cid) >= 2) then
		doCreatureSay(cid, "This potion can only be consumed by paladins and knights of level 50 or higher.", TALKTYPE_ORANGE_1)
		return TRUE
	end

	if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 400, 500, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
		return FALSE
	end
	doAddCondition(cid, exhaust)
	doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1)
	doTransformItem(item.uid, strongEmptyPot)
elseif(item.itemid == strongManaPot) then
	if(not(isSorcerer(cid) or isDruid(cid) or isPaladin(cid)) or (getPlayerLevel(cid) < 50)) and not(getPlayerGroupId(cid) >= 2) then
		doCreatureSay(cid, "This potion can only be consumed by sorcerers, druids and paladins of level 50 or higher.", TALKTYPE_ORANGE_1)
		return TRUE
	end

	if(doTargetCombatMana(0, cid, 300, 400, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
		return FALSE
	end
	doAddCondition(cid, exhaust)
	doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1)
	doTransformItem(item.uid, strongEmptyPot)
elseif(item.itemid == greatSpiritPot) then
	if(not(isPaladin(cid)) or (getPlayerLevel(cid) < 80)) and not(getPlayerGroupId(cid) >= 2) then
		doCreatureSay(cid, "This potion can only be consumed by paladins of level 80 or higher.", TALKTYPE_ORANGE_1)
		return TRUE
	end

	if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 500, 650, CONST_ME_MAGIC_BLUE) == LUA_ERROR or doTargetCombatMana(0, cid, 300, 400, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
		return FALSE
	end
	doAddCondition(cid, exhaust)
	doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1)
	doTransformItem(item.uid, greatEmptyPot)
elseif(item.itemid == greatHealthPot) then
	if(not(isKnight(cid)) or (getPlayerLevel(cid) < 80)) and not(getPlayerGroupId(cid) >= 2) then
		doCreatureSay(cid, "This potion can only be consumed by knights of level 80 or higher.", TALKTYPE_ORANGE_1)
		return TRUE
	end

	if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 700, 900, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
		return FALSE
	end
	doAddCondition(cid, exhaust)
	doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1)
	doTransformItem(item.uid, greatEmptyPot)
elseif(item.itemid == greatManaPot) then
	if(not(isSorcerer(cid) or isDruid(cid)) or (getPlayerLevel(cid) < 80)) and not(getPlayerGroupId(cid) >= 2) then
		doCreatureSay(cid, "This potion can only be consumed by sorcerers and druids of level 80 or higher.", TALKTYPE_ORANGE_1)
		return TRUE
	end

	if(doTargetCombatMana(0, cid, 500, 600, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
		return FALSE
	end
	doAddCondition(cid, exhaust)
	doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1)
	doTransformItem(item.uid, greatEmptyPot)
elseif(item.itemid == ultimateHealthPot) then
	if(not(isKnight(cid)) or (getPlayerLevel(cid) < 130)) and not(getPlayerGroupId(cid) >= 2) then
		doCreatureSay(cid, "This potion can only be consumed by knights of level 130 or higher.", TALKTYPE_ORANGE_1)
		return TRUE
	end

	if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 1100, 1300, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
		return FALSE
	end
	doAddCondition(cid, exhaust)
	doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1)
	doTransformItem(item.uid, greatEmptyPot)
end
return TRUE
end

 

 

meat(foods em geral)

 

local food =
{
[2362] = {8, "Crunch."},
[2666] = {15, "Munch."},
[2667] = {12, "Munch."},
[2668] = {10, "Mmmm."},
[2669] = {17, "Munch."},
[2670] = {4, "Gulp."},
[2671] = {30, "Chomp."},
[2672] = {60, "Chomp."},
[2673] = {5, "Yum."},
[2674] = {6, "Yum."},
[2675] = {13, "Yum."},
[2676] = {8, "Yum."},
[2677] = {1, "Yum."},
[2678] = {18, "Slurp."},
[2679] = {1, "Yum."},
[2680] = {2, "Yum."},
[2681] = {9, "Yum."},
[2682] = {20, "Yum."},
[2683] = {17, "Munch."},
[2684] = {8, "Crunch."},
[2685] = {6, "Munch."},
[2686] = {9, "Crunch."},
[2687] = {2, "Crunch."},
[2688] = {9, "Munch."},
[2689] = {10, "Crunch."},
[2690] = {3, "Crunch."},
[2691] = {8, "Crunch."},
[2792] = {6, "Munch."},
[2793] = {9, "Munch."},
[2695] = {6, "Gulp."},
[2696] = {9, "Smack."},
[2787] = {9, "Munch."},
[2788] = {4, "Munch."},
[2789] = {22, "Munch."},
[2790] = {30, "Munch."},
[2791] = {30, "Munch."},
[2792] = {6, "Munch."},
[2794] = {3, "Munch."},
[2795] = {36, "Munch."},
[2796] = {5, "Munch."},
[2793] = {9, "Munch."},
[5097] = {4, "Yum."},
[6125] = {8, "Gulp."},
[6278] = {10, "Mmmm."},
[6279] = {15, "Mmmm."},
[6393] = {12, "Mmmm."},
[6394] = {15, "Mmmm."},
[6501] = {20, "Mmmm."},
[6541] = {6, "Gulp."},
[6542] = {6, "Gulp."},
[6543] = {6, "Gulp."},
[6544] = {6, "Gulp."},
[6545] = {6, "Gulp."},
[6569] = {1, "Mmmm."},
[6574] = {4, "Mmmm."},
[7158] = {15, "Munch."},
[7159] = {13, "Munch."},
[7372] = {7, "Yum."},
[7373] = {7, "Yum."},
[7374] = {7, "Yum."},
[7375] = {7, "Yum."},
[7376] = {7, "Yum."},
[7377] = {7, "Yum."}
}
function onUse(cid, item, frompos, item2, topos)
if(food[item.itemid] ~= nil) then
	if (getPlayerFood(cid) + food[item.itemid][1]) >= 400 then
		doPlayerSendCancel(cid, "You are full.")
	else
		doPlayerFeed(cid, food[item.itemid][1] * 4)
		doCreatureSay(cid, food[item.itemid][2], TALKTYPE_ORANGE_1)
		doRemoveItem(item.uid, 1)
	end
	return TRUE
end
return FALSE
end

 

se n souber onde por me manda pm ou eu passo aki amanha no topic flows

Link para o comentário
Compartilhar em outros sites

Abra seu global.lua localizado na pasta data.

 

Procure por TALKTYPE_ORANGE_1, vão ter vários TALKTYPE, pegue um da cor desejada, copie o nome...

 

Abra seu script, tanto da potion, quanto das foods, localize os TALKTYPE_ORANGE_1 e substitua pelo nome da nova cor =z

Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...