Ir para conteúdo
  • 0

Food Heala de Acordo com o Level


pvjf

Pergunta

Gostaria de saber se tem como configurar o

 

gainhpticks="3" gainhpamount="10"

 

Para healar de acordo ocm o level quando se come food.

 

Vlw pela atenção;

Link para o comentário
Compartilhar em outros sites

8 respostass a esta questão

Posts Recomendados

  • 0

@topic:

 

Vou testar

 

Edit: Mano n eh deste geito que quero.

 

Eu quero tipo assim: Sou lvl 20 Como a food healo de 20 em 20 ao invez de 10 em 10, mas msm assim vlw

 

@offtopic:

 

quem diz se a duvida esta sanada sou eu

Editado por KikimDaPadaria
Link para o comentário
Compartilhar em outros sites

  • 0

So você editar

 

no script quando eu fiz ele fiz de uma maneira muito fácil de configurar so mudar tudo la .

 

Esse tudo me preocupa, vc n consegue configurar pra mim? tipo como se foce uma food normal, vc come e ela vai helando sua vida soh q ao invez de ser de 1em 1 ser dolevel que o player está ex : tou lvl 20 heala de 20 em 20

 

A sua parece que heala + como uma potion.

 

Vlw a atenção

Link para o comentário
Compartilhar em outros sites

  • 0

Em data/actions/scripts crie um arquivo chamado food_level.lua e adicione dentro:

 

 

 


function onUse(cid, item, fromPosition, itemEx, toPosition)

local foods = {2328, 2668, 2672, 2676, 2680, 2684, 2688, 2695, 2788, 2792, 2796, 6278, 6501, 6544, 7158, 7374, 7963, 8841, 8845, 7245, 10454, 2362, 2669, 2673, 2677, 2681, 2685, 2689, 2696, 2789, 2793, 5097, 6279, 6541, 6545, 7159, 7375, 8838, 8842, 8847, 9996, 2666, 2670, 2674, 2678, 2682, 2678, 2690, 8112, 2790, 2794, 5678, 6393, 6542, 6569, 7372, 7376, 8839, 8841, 8114, 2667, 2671, 2675, 2679, 2683, 2678, 2691, 2769, 2791, 2795, 6125, 6394, 6543, 7373, 7377, 8840, 8844, 9005}

if isInArray(foods, item) then

for i = 1, 60 do
addEvent(doCreatureAddHealth, 2*1000, cid, getPlayerLevel(cid))
end
end
return true
end

 

 

Em actions.xml adicione a tag:

 

<action itemid="2328; 2668; 2672; 2676; 2680; 2684; 2688; 2695; 2788; 2792; 2796; 6278; 6501; 6544; 7158; 7374; 7963; 8841; 8845; 7245; 10454; 2362; 2669; 2673; 2677; 2681; 2685; 2689; 2696; 2789; 2793; 5097; 6279; 6541; 6545; 7159 7375; 8838; 8842; 8847; 9996; 2666; 2670; 2674; 2678; 2682; 2678; 2690; 8112; 2790; 2794; 5678; 6393; 6542; 6569; 7372; 7376; 8839; 8841; 8114; 2667; 2671; 2675; 2679; 2683; 2678; 2691; 2769; 2791; 2795; 6125; 6394; 6543; 7373; 7377; 8840; 8844; 9005" event="script" value="food_level.lua"/>

Editado por Roksas
Link para o comentário
Compartilhar em outros sites

  • 0

Em data/actions/scripts crie um arquivo chamado food_level.lua e adicione dentro:

 

 

 


function onUse(cid, item, fromPosition, itemEx, toPosition)

local foods = {2328, 2668, 2672, 2676, 2680, 2684, 2688, 2695, 2788, 2792, 2796, 6278, 6501, 6544, 7158, 7374, 7963, 8841, 8845, 7245, 10454, 2362, 2669, 2673, 2677, 2681, 2685, 2689, 2696, 2789, 2793, 5097, 6279, 6541, 6545, 7159, 7375, 8838, 8842, 8847, 9996, 2666, 2670, 2674, 2678, 2682, 2678, 2690, 8112, 2790, 2794, 5678, 6393, 6542, 6569, 7372, 7376, 8839, 8841, 8114, 2667, 2671, 2675, 2679, 2683, 2678, 2691, 2769, 2791, 2795, 6125, 6394, 6543, 7373, 7377, 8840, 8844, 9005}

if isInArray(foods, item) then

for i = 1, 60 do
addEvent(doCreatureAddHealth, 2*1000, cid, getPlayerLevel(cid))
end
end
return true
end

 

 

Em actions.xml adicione a tag:

 

<action itemid="2328; 2668; 2672; 2676; 2680; 2684; 2688; 2695; 2788; 2792; 2796; 6278; 6501; 6544; 7158; 7374; 7963; 8841; 8845; 7245; 10454; 2362; 2669; 2673; 2677; 2681; 2685; 2689; 2696; 2789; 2793; 5097; 6279; 6541; 6545; 7159 7375; 8838; 8842; 8847; 9996; 2666; 2670; 2674; 2678; 2682; 2678; 2690; 8112; 2790; 2794; 5678; 6393; 6542; 6569; 7372; 7376; 8839; 8841; 8114; 2667; 2671; 2675; 2679; 2683; 2678; 2691; 2769; 2791; 2795; 6125; 6394; 6543; 7373; 7377; 8840; 8844; 9005" event="script" value="food_level.lua"/>

 

Mano deu erro ta flando q duplico os ids mas n to achando onde...

 

 

[Warning - Actions::registerEvent] Duplicate registered item id: 2668

[Warning - Actions::registerEvent] Duplicate registered item id: 2672

[Warning - Actions::registerEvent] Duplicate registered item id: 2676

[Warning - Actions::registerEvent] Duplicate registered item id: 2680

[Warning - Actions::registerEvent] Duplicate registered item id: 2684

[Warning - Actions::registerEvent] Duplicate registered item id: 2688

[Warning - Actions::registerEvent] Duplicate registered item id: 2695

[Warning - Actions::registerEvent] Duplicate registered item id: 2788

[Warning - Actions::registerEvent] Duplicate registered item id: 2792

[Warning - Actions::registerEvent] Duplicate registered item id: 2796

[Warning - Actions::registerEvent] Duplicate registered item id: 6278

[Warning - Actions::registerEvent] Duplicate registered item id: 6501

[Warning - Actions::registerEvent] Duplicate registered item id: 6544

[Warning - Actions::registerEvent] Duplicate registered item id: 7158

[Warning - Actions::registerEvent] Duplicate registered item id: 7374

[Warning - Actions::registerEvent] Duplicate registered item id: 2362

[Warning - Actions::registerEvent] Duplicate registered item id: 2669

[Warning - Actions::registerEvent] Duplicate registered item id: 2673

[Warning - Actions::registerEvent] Duplicate registered item id: 2677

[Warning - Actions::registerEvent] Duplicate registered item id: 2681

[Warning - Actions::registerEvent] Duplicate registered item id: 2685

[Warning - Actions::registerEvent] Duplicate registered item id: 2689

[Warning - Actions::registerEvent] Duplicate registered item id: 2696

[Warning - Actions::registerEvent] Duplicate registered item id: 2789

[Warning - Actions::registerEvent] Duplicate registered item id: 2793

[Warning - Actions::registerEvent] Duplicate registered item id: 5097

[Warning - Actions::registerEvent] Duplicate registered item id: 6279

[Warning - Actions::registerEvent] Duplicate registered item id: 6541

[Warning - Actions::registerEvent] Duplicate registered item id: 6545

[Warning - Actions::registerEvent] Duplicate registered item id: 7159

[Warning - Actions::registerEvent] Duplicate registered item id: 2666

[Warning - Actions::registerEvent] Duplicate registered item id: 2670

[Warning - Actions::registerEvent] Duplicate registered item id: 2674

[Warning - Actions::registerEvent] Duplicate registered item id: 2678

[Warning - Actions::registerEvent] Duplicate registered item id: 2682

[Warning - Actions::registerEvent] Duplicate registered item id: 2678

[Warning - Actions::registerEvent] Duplicate registered item id: 2690

[Warning - Actions::registerEvent] Duplicate registered item id: 2790

[Warning - Actions::registerEvent] Duplicate registered item id: 2794

[Warning - Actions::registerEvent] Duplicate registered item id: 6542

[Warning - Actions::registerEvent] Duplicate registered item id: 6569

[Warning - Actions::registerEvent] Duplicate registered item id: 7372

[Warning - Actions::registerEvent] Duplicate registered item id: 7376

[Warning - Actions::registerEvent] Duplicate registered item id: 8841

[Warning - Actions::registerEvent] Duplicate registered item id: 2667

[Warning - Actions::registerEvent] Duplicate registered item id: 2671

[Warning - Actions::registerEvent] Duplicate registered item id: 2675

[Warning - Actions::registerEvent] Duplicate registered item id: 2679

[Warning - Actions::registerEvent] Duplicate registered item id: 2683

[Warning - Actions::registerEvent] Duplicate registered item id: 2678

[Warning - Actions::registerEvent] Duplicate registered item id: 2691

[Warning - Actions::registerEvent] Duplicate registered item id: 2791

[Warning - Actions::registerEvent] Duplicate registered item id: 2795

[Warning - Actions::registerEvent] Duplicate registered item id: 6125

[Warning - Actions::registerEvent] Duplicate registered item id: 6394

[Warning - Actions::registerEvent] Duplicate registered item id: 6543

[Warning - Actions::registerEvent] Duplicate registered item id: 7373

[Warning - Actions::registerEvent] Duplicate registered item id: 7377

[Warning - Actions::registerEvent] Duplicate registered item id: 8840

 

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...