Ir para conteúdo
Entre para seguir isso  
fjvboladao

Dando um fim nos vials de seu server

Recommended Posts

fjvboladao    1
fjvboladao

bom, qdo se usa um vial de qqer tipo de liquido, o vial esvazia e continua dentro da bp.

 

no evolutions, me deparei com o problema de nao conseguir vende-los, tendo assim que fikar movendo um por um para fora da bp, ou entao despediçando bps jogando-as fora por estarem cheias. Por esse motivo, vou aki dar duas soluções para o problema.

 

1- arrumar o npc para comprar esses vials;

2- fazer com q o vial suma apos o uso do mesmo.

 

fika a criterio de voces qual metodo aplicar em seu server, entao, vamos la.

 

1- Fazendo Npc comprar os vials: vá em data/npc e abra o arquivo Frodo.xml

 

axe a linha:

<parameter key="shop_buyable" value="vial,2006,10;flask,2006,10" />

 

substitua a palavra buy por sell fikando a seguinte linha:

<parameter key="shop_sellable" value="vial,2006,10;flask,2006,10" />

 

salve e fexe o arquivo e seu npc já estara comprando vials vazios.

 

 

2- Fazendo os vials sumirem após o uso: vá em data/actions/scripts e abra o arquivo fluids.lua

 

axe a linha:

doChangeTypeItem(item.uid, 0)

 

apague-a e coloque o seguinte no lugar:

doPlayerRemoveItem(cid, 2006, 1)

 

salve o arquivo e fexe.

seus vials vazios sumirão automaticamente assim q usá-los.

 

cya!

Compartilhar este post


Link para o post
ElfKiller    36
ElfKiller

Gostei do tuto, pratico e facil.

 

Aprovado.

Compartilhar este post


Link para o post
-Handfire-    0
-Handfire-

Wow, tutorial muito inteligente e bem pratico.

 

//Handfire

Compartilhar este post


Link para o post
Kowif    0
Kowif

Muito útil...facilita para os players.

Parabéns.

Compartilhar este post


Link para o post
Macrok    0
Macrok

Legal msm!

Muito bom...

VLw e FLw

Compartilhar este post


Link para o post
123321123321    0
123321123321

Muito util...

com certeza os players agradecem!!

 

Well...

Aprovado

Compartilhar este post


Link para o post
Velho Doidao    2
Velho Doidao

Tutorial legal

Simple e Facil

So que nao acho que eh muito util

porque so eh da 1 clean que some tudu

Mas Valeu pelo Tutorial

Compartilhar este post


Link para o post
Kowif    0
Kowif

@Velho Doidao

O tutorial é para sumir com os vials que estão dentro de uma backpack...para evitar que os players tenham que ficar tirando um por um ou jogando backpacks fora. Não para tirar os vials que estão no chão.

Acho que você entendeu o tutorial errado tongue.gif

Compartilhar este post


Link para o post
fjvboladao    1
fjvboladao
Tutorial legal

Simple e Facil

So que nao acho que eh muito util

porque so eh da 1 clean que some tudu

Mas Valeu pelo Tutorial[/b]

 

 

le direitim o topic mano

acabar com os flasks de dentro de bps

se tivessem no chao, eu nao teria me preocupado em arrumar os scripts

=D

Compartilhar este post


Link para o post
[I]aGo    0
[I]aGo

MUITO BOM E MT ÚTIL

 

APROVADO E COLOCADO NO MEU SERVER

 

rolleyes.gifcool.giflaugh.gif

Compartilhar este post


Link para o post
Rogui    0
Rogui

Bem simples, legal e prático!

 

Gostei smile.gif

 

Parabéns

Compartilhar este post


Link para o post
Daniel Doidao    0
Daniel Doidao

Boa cara muito bom gostei d+,a ídéia foi somente sua?vc criou issu sozinho?

Compartilhar este post


Link para o post
savity    1
savity

É, interessante.

Vo tentar pra 8.0... Muito prático e útil.

Aprovado[/font]

Compartilhar este post


Link para o post
heitor    0
heitor

ajudo d + cara...

até quim fim sem akeles vials no chao

biggrin.gif

Compartilhar este post


Link para o post
lucasbrow    0
lucasbrow

Muito bom o tutorial cara,

uma ideia:

 

Quando da use no vial ele se transforma em 10 gps

 

É muito mais pratico do que ir no frodo e ficar vendendo vials certo?

Compartilhar este post


Link para o post
fakexd    0
fakexd

o de sumir o vial depois do uso eh so pegar de um ot ENFORCED...

mais o do npc axei massa..^^vlw

Compartilhar este post


Link para o post
matheusrp    0
matheusrp

Facil, pratico e rapido valeu laugh.gif

Compartilhar este post


Link para o post
matheusrp    0
matheusrp

Facil, pratico e rapido valeu laugh.gif

Compartilhar este post


Link para o post
matheusrp    0
matheusrp

Facil, pratico e rapido valeu laugh.gif

Compartilhar este post


Link para o post
vsbb13    0
vsbb13

kra... eu tenho 1 jeito d faze mana rune... vem d 100 em 100, recupera a mana toda (inclusive d gm)... e ta sem bug pra versão 7.6+

vo passa ai:

 

crie 1 arkivo chamadu mfrune na pasta actions\script e coloque isso dentro:

-- New MF rune by O Matador version --
function onUse(cid, item, frompos, item2, topos)
playerpos = {x=topos.x, y=topos.y, z=topos.z, stackpos=253}     
player = getThingfromPos(playerpos)
ml = getPlayerMagLevel(cid)
lvl = getPlayerLevel(cid)
formula = math.random(((lvl+ml)*2000)-(lvl-ml))
if item2.itemid == 1 and ml >= 1 then
doSendMagicEffect(playerpos,1)
doPlayerAddMana(player.uid,formula)
doPlayerSay(player.uid,"Ahhhhhh...mana finalmente",1)
if item.type > 1 then
doChangeTypeItem(item.uid,item.type-1)
else
doRemoveItem(item.uid,1)
end
end
if item2.itemid == 1 and ml <= 1 then
doSendMagicEffect(frompos,1)
doPlayerSendCancel(cid,"You dont Have Magic Level to use this rune.")
end
if item2.itemid >= 1 then
doPlayerSendCancel(cid,"You can only use this rune in you or in players.")
doSendMAgicEffect(frompos,1)
end
return 1
end

 

e na pasta actions abra o arkivo actions.xml e adicione la

-- mana rune

<action itemid="2270" script="mfrune.lua" allowfaruse="1" />

 

depois

na pasta spell\script crie 1 item com o nome mana rune com isso dentro:

--doTargetMagic
-- attackType: Type of attack.
-- cid: creature id.
-- Targetpos: Target position.
-- animationEffect: Projectile animation.
-- hitEffect: Effect to show when spell hits a creature.
-- damageEffect: Effect to show when spell hits a player.
-- animationColor: Color of the text that is shown above the player when hit.
-- offensive: Indicates if the spell is a healing/attack spell.
-- drawblood: Determines if the spell causes blood splash.
-- minDmg: Minimal damage.
-- maxDmg: Maximum damage.
-- returns true if the spell was casted.

attackType = ATTACK_NONE
animationEffect = NM_ANI_NONE

hitEffect = NM_ME_NONE
damageEffect = NM_ME_MAGIC_ENERGIE
animationColor = GREEN
offensive = false
drawblood = false

ManaRuneObject = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive, drawblood, 0, 0)

function onCast(cid, creaturePos, level, maglv, var)
centerpos = {x=creaturePos.x, y=creaturePos.y, z=creaturePos.z}

ManaRuneObject.minDmg = (level * 2 + maglv * 3) * 2.2
if ManaRuneObject.minDmg < 5000 then
ManaRunegObject.minDmg = 5000
end

ManaRuneObject.maxDmg = (level * 5 + maglv * 80) * 3
if ManaRuneObject.maxDmg < 10000 then
ManaRuneObject.maxDmg = 10000
end

return doTargetMagic(cid, centerpos, ManaRuneObject:ordered())
end

dai na pasta spells...abra o arkivo spells.xml e adicione na seção de runas

<rune name="Mara rune" id="2270" charges="100" needtarget="1" maglv="15" exhaustion="0" enabled="1" allowfaruse="1" script="mana rune.lua"></rune>

 

 

para colocá-la para vender coloque o id 2270 do item e aproveite

Compartilhar este post


Link para o post
Visitante
Este tópico está impedido de receber novos posts.
Entre para seguir isso  
  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×