Ir para conteúdo

Desintegrate,destroyfield E Animate Dead Runes


Jvchequer

Posts Recomendados

Desintegrate Items Rune

Crie um Arquivo na pasta \data\actions\scripts... chame-o de Desintegrate.lua, nele coloque isto:

 

-- Desintegrate Items Rune by Cury~ for OTServer 7.6function onUse(cid, item, frompos, item2, topos) desintegrateablepos = topos desintegrateablepos.stackpos = 255 desintegrateableitem = getThingfromPos(desintegrateablepos) if getPlayerMagLevel(cid) >= 4 then  if desintegrateableitem.itemid > 0 then   doSendMagicEffect(topos,2)   doRemoveItem(desintegrateableitem.uid,100)   if item.type > 1 then    doChangeTypeItem(item.uid,item.type-1)   else    doRemoveItem(item.uid,1)   end  else   doSendMagicEffect(frompos,2)   return 0  end else  doSendMagicEffect(frompos,2)  doPlayerSendCancel(cid,"You don't have the required magic level to use that rune.") end return 1end

 

Animate Dead Rune

Crie um Arquivo na pasta \data\actions\scripts... chame-o de AnimateDead.lua, nele coloque isto:

 

-- Animate Dead Rune by Cury~ for OTServer 7.6function onUse(cid, item, frompos, item2, topos) corpsepos = topos corpsepos.stackpos = 1 corpseitem = getThingfromPos(corpsepos)random = math.random(1,3) if getPlayerMagLevel(cid) >= 4 then  if item2.itemid == 3114 or item2.itemid == 3115 or item2.itemid == 3116 or item2.itemid == 2854  or item2.itemid == 2855 or item2.itemid == 2856 or item2.itemid == 2977 or item2.itemid == 2978 or item2.itemid == 3032 or item2.itemid == 3033 or item2.itemid == 3129 or item2.itemid == 3130 or item2.itemid == 3060 or item2.itemid == 3061 or item2.itemid == 3062 or item2.itemid == 3063 or item2.itemid == 3064 or item2.itemid == 3133 or item2.itemid == 3134 or item2.itemid == 3026 or item2.itemid == 3027 or item2.itemid == 2950 or item2.itemid == 2951 or item2.itemid == 2958 or item2.itemid == 2959 or item2.itemid == 3018 or item2.itemid == 3000 or item2.itemid == 3029 or item2.itemid == 3030 or item2.itemid == 2975 or item2.itemid == 2976 or item2.itemid == 2922 or item2.itemid == 2923 then   doSendMagicEffect(topos,14)   doRemoveItem(corpseitem.uid,1)  if random == 1 then  doSummonCreature("Ghoul",corpsepos)  end  if random == 2 then  doSummonCreature("Skeleton",corpsepos)  end  if random == 3 then  doSummonCreature("Demon Skeleton",corpsepos)  end   if item.type > 1 then    doChangeTypeItem(item.uid,item.type-1)   else    doRemoveItem(item.uid,1)   end  else   doSendMagicEffect(frompos,2)   return 0  end else  doSendMagicEffect(frompos,2)  doPlayerSendCancel(cid,"You don't have the required magic level to use that rune.") end return 1end

 

Destroy-Field Rune

Crie um Arquivo na pasta \data\actions\scripts... chame-o de DestroyField.lua, nele coloque isto:

 

-- Destroy Field Rune by Cury~ for OTServer 7.6function onUse(cid, item, frompos, item2, topos) fieldpos = topos fieldpos.stackpos = 254 fielditem = getThingfromPos(fieldpos) if getPlayerMagLevel(cid) >= 3 then  if fielditem.itemid > 0 and fielditem.itemid ~= 1497 and fielditem.itemid ~= 1498 then   doSendMagicEffect(topos,2)   doRemoveItem(fielditem.uid,1)   if item.type > 1 then    doChangeTypeItem(item.uid,item.type-1)   else    doRemoveItem(item.uid,1)   end  else   doSendMagicEffect(frompos,2)   return 0  end else  doSendMagicEffect(frompos,2)  doPlayerSendCancel(cid,"You don't have the required magic level to use that rune.") end return 1end

 

Agora abra o arquivo action.xml que está na pasta \data\actions

Nele adicione essas linhas:

 

<action itemid="2261" script="destroyfield.lua" allowfaruse="1" blockwalls="0"/><action itemid="2316" script="animatedead.lua"  allowfaruse="1" blockwalls="0"/><action itemid="2310" script="desintegrate.lua" allowfaruse="0" blockwalls="0"/>

 

OBS:Caso tenha algo parecido com isso no seu OT,delete:

 

<rune name="desintegrate"     id="2310" charges="2" maglv="4" mana="0" enabled="1"></rune><rune name="animate dead"     id="2316" charges="1" maglv="4" mana="0" enabled="1"></rune>

 

Creditos:

100% por Cury(Lucas Terra)

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...