Ir para conteúdo

[como Usa] Usando O Blacksmith System By Yunie (com Fotos)


Mesenga

Posts Recomendados

Olá. eu vi que no tópico do Blacksmith tinha muita gente na dúvida sobre como usar, se funciona ou não.

 

Bem...vamos ao que interessa!

 

 

 

1º - Criando o SCRIPT:

 

 

1 - Vá até a pasta Data/Actions do seu server

2 - Abra o Actions.xml como bloco de notas

3 - Adicione está linha: <action itemid="2557" script="blacksmith.lua" />

4 - Coloque o arquivo blacksmith.lua na pasta data/actions/scripts

5 - Coloque o NPC na devida pasta

 

Blacksmith.lua

 

function onUse(cid, item, frompos, item2, topos)

voc = getPlayerVocation(cid)
quest = getPlayerStorageValue(cid,21737)
clubskill = getPlayerSkill(cid,1)
chanceeasy = math.random(1, 100)
chanceeasy1 = math.random(1, 70)
chanceeasy2 = math.random(1, 120)
chanceeasy3 = math.random(1, 110)
chanceeasy4 = math.random(1, 125)
chanceeasy5 = math.random(1, 160)
chanceeasy6 = math.random(1, 111)
chanceeasy7 = math.random(1, 140)
chancemedium3 = math.random(1,330)
chancemedium2 = math.random(1,300)
chancemedium = math.random(1,250)
chancemedium1 = math.random(1,200)
chancehard1 = math.random(1,410)
chancehard = math.random(1,500)
chanceveryhard = math.random(1,700)
chanceexpert = math.random(1,900)

-----------------------------------------------------------------------
-- CALCAS
-- BRASS LEGS

basepos = {x = 59, y = 47, z = 4, stackpos = 2}
item2 = getThingfromPos(basepos)
item1pos = {x = 59, y = 47, z = 4, stackpos = 3}
item1 = getThingfromPos(item1pos)
item3pos = {x = 59, y = 47, z = 4, stackpos = 4}
item3 = getThingfromPos(item3pos)
item4pos = {x = 59, y = 47, z = 4, stackpos = 5}
item4 = getThingfromPos(item4pos)
item5pos = {x = 59, y = 47, z = 4, stackpos = 6}
item5 = getThingfromPos(item5pos)
item6pos = {x = 59, y = 47, z = 4, stackpos = 7}
item6 = getThingfromPos(item6pos)
item7pos = {x = 59, y = 47, z = 4, stackpos = 8}
item7 = getThingfromPos(item7pos)


if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 2154 and item3.itemid == 2649 then
if clubskill >= chanceeasy then
doPlayerAddItem(cid,2478,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 1)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 1)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end
---------------------------------------------------------------------------------
-- PLATE LEGS

if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 5468 and item3.itemid == 2478 then
if clubskill >= chanceeasy2 then
doPlayerAddItem(cid,2647,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 1)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 1)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end
---------------------------------------------------------------------------------
-- KNIGHT LEGS
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 2647 and item3.itemid == 5468 and item4.itemid == 5914 and item4.type >= 10 then
if clubskill >= chancemedium1 then
doPlayerAddItem(cid,2477,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 1)
doRemoveItem(item4.uid, 10)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 1)
doRemoveItem(item4.uid, 10)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end

---------------------------------------------------------------------------------

-- CROWN LEGS
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 2647 and item3.itemid == 5911 and item3.type >= 15 and item4.itemid == 2147 and item4.type >= 10 then
if clubskill >= chancemedium then
doPlayerAddItem(cid,2488,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 15)
doRemoveItem(item4.uid, 10)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 15)
doRemoveItem(item4.uid, 10)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end

---------------------------------------------------------------------------------

-- GOLDEN LEGS
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 2478 and item3.itemid == 5880 and item3.type >= 20 and item4.itemid == 5914 and item4.type >= 50 then
if clubskill >= chancehard then
doPlayerAddItem(cid,2470,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 20)
doRemoveItem(item4.uid, 50)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 20)
doRemoveItem(item4.uid, 50)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end

---------------------------------------------------------------------------------

-- DRAGON SCALE LEGS
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 5919 and item3.itemid == 1294 and item3.type == 100 and item4.itemid == 5920 and item4.type == 100 then
if clubskill >= chanceveryhard then
doPlayerAddItem(cid,2469,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 100)
doRemoveItem(item4.uid, 100)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 100)
doRemoveItem(item4.uid, 100)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- ESPADAS
-- SPIKE SWORD
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 2376 and item3.itemid == 1294 and item3.type >= 50 and item4.itemid == 2158 then
if clubskill >= chanceeasy then
doPlayerAddItem(cid,2383,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 50)
doRemoveItem(item4.uid, 1)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 50)
doRemoveItem(item4.uid, 1)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- SERPENT SWORD
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 2376 and item3.itemid == 1294 and item3.type >= 50 and item4.itemid == 5877 and item4.type >= 5 and item5.itemid == 5920 and item5.type >= 1 then
if clubskill >= chanceeasy3 then
doPlayerAddItem(cid,2409,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 50)
doRemoveItem(item4.uid, 5)
doRemoveItem(item5.uid, 1)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 50)
doRemoveItem(item4.uid, 5)
doRemoveItem(item5.uid, 1)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- CRIMSOM SWORD
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 2376 and item3.itemid == 1294 and item3.type >= 70 and item4.itemid == 5901 and item4.type >= 30 then
if clubskill >= chanceeasy2 then
doPlayerAddItem(cid,7385,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 70)
doRemoveItem(item4.uid, 30)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 70)
doRemoveItem(item4.uid, 30)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- TWO HANDED SWORD
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 2376 and item3.itemid == 2376 and item4.itemid == 1294 and item4.type == 100 then
if clubskill >= chanceeasy4 then
doPlayerAddItem(cid,2377,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 1)
doRemoveItem(item4.uid, 100)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 1)
doRemoveItem(item4.uid, 100)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- FIRE SWORD
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 2376 and item3.itemid == 1294 and item3.type == 100 and item4.itemid == 5468 and item5.itemid == 5911 and item5.type >= 5 then
if clubskill >= chanceeasy5 then
doPlayerAddItem(cid,2392,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 100)
doRemoveItem(item4.uid, 1)
doRemoveItem(item5.uid, 5)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 100)
doRemoveItem(item4.uid, 1)
doRemoveItem(item5.uid, 5)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- HAUNTED BLADE
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 2376 and item3.itemid == 5898 and item3.type >= 20 and item4.itemid == 5468 and item5.itemid == 1294 and item5.type >= 50 and item6.itemid == 2158 then
if clubskill >= chanceeasy5 then
doPlayerAddItem(cid,7407,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 20)
doRemoveItem(item4.uid, 1)
doRemoveItem(item5.uid, 50)
doRemoveItem(item6.uid, 1)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 20)
doRemoveItem(item4.uid, 1)
doRemoveItem(item5.uid, 50)
doRemoveItem(item6.uid, 1)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- ASSASSIN DAGGER
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 2376 and item3.itemid == 1294 and item3.type == 100 and item4.itemid == 2156 and item5.itemid == 5906 and item5.type >= 3 then
if clubskill >= chancemedium1 then
doPlayerAddItem(cid,7404,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 100)
doRemoveItem(item4.uid, 1)
doRemoveItem(item5.uid, 3)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 100)
doRemoveItem(item4.uid, 1)
doRemoveItem(item5.uid, 3)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- DRAGON SLAYER
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 2376 and item3.itemid == 1294 and item3.type == 100 and item4.itemid == 2154 and item5.itemid == 5901 and item5.type >= 50 and item6.itemid == 5880 and item6.type >= 10 then
if clubskill >= chancemedium2 then
doPlayerAddItem(cid,7402,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 100)
doRemoveItem(item4.uid, 1)
doRemoveItem(item5.uid, 50)
doRemoveItem(item6.uid, 10)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 100)
doRemoveItem(item4.uid, 1)
doRemoveItem(item5.uid, 50)
doRemoveItem(item6.uid, 10)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- GIANT SWORD
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 2376 and item3.itemid == 5895 and item3.type >= 40 and item4.itemid == 5893 and item4.type >= 20 and item5.itemid == 5906 and item5.type >= 2 and item6.itemid == 2158 and item7.itemid == 1294 and item7.type == 100 then
if clubskill >= chancehard then
doPlayerAddItem(cid,2393,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 40)
doRemoveItem(item4.uid, 20)
doRemoveItem(item5.uid, 2)
doRemoveItem(item6.uid, 1)
doRemoveItem(item7.uid, 100)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 40)
doRemoveItem(item4.uid, 20)
doRemoveItem(item5.uid, 2)
doRemoveItem(item6.uid, 1)
doRemoveItem(item7.uid, 100)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- MACHADOS
-- ORCISH AXE
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 5901 and item1.type == 50 and item3.itemid == 1294 and item3.type == 10 then
if clubskill >= chanceeasy then
doPlayerAddItem(cid,2428,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 50)
doRemoveItem(item3.uid, 10)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 50)
doRemoveItem(item3.uid, 10)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- BARBARIAN AXE
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 5901 and item1.type >= 70 and item3.itemid == 1294 and item3.type >= 30 and item4.itemid == 5898 and item4.type >= 3 then
if clubskill >= chanceeasy6 then
doPlayerAddItem(cid,2429,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 70)
doRemoveItem(item3.uid, 30)
doRemoveItem(item4.uid, 3)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 70)
doRemoveItem(item3.uid, 30)
doRemoveItem(item4.uid, 3)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- KNIGHT AXE
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 5901 and item1.type == 100 and item3.itemid == 1294 and item3.type >= 50 and item4.itemid == 2156 and item5.itemid == 2147 and item5.type >= 50 then
if clubskill >= chanceeasy5 then
doPlayerAddItem(cid,2430,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 100)
doRemoveItem(item3.uid, 50)
doRemoveItem(item4.uid, 1)
doRemoveItem(item5.uid, 50)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 100)
doRemoveItem(item3.uid, 50)
doRemoveItem(item4.uid, 1)
doRemoveItem(item5.uid, 50)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- HALBERD
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 5901 and item1.type == 100 and item3.itemid == 2158 and item4.itemid == 1294 and item4.type >= 30 then
if clubskill >= chanceeasy7 then
doPlayerAddItem(cid,2381,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 100)
doRemoveItem(item3.uid, 1)
doRemoveItem(item4.uid, 30)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 100)
doRemoveItem(item3.uid, 1)
doRemoveItem(item4.uid, 30)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- FIRE AXE
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 1294 and item1.type == 100 and item3.itemid == 5468 and item4.itemid == 5911 and item4.type >= 20 and item5.itemid == 2156 then
if clubskill >= chancemedium1 then
doPlayerAddItem(cid,2432,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 100)
doRemoveItem(item3.uid, 1)
doRemoveItem(item4.uid, 20)
doRemoveItem(item5.uid, 1)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 100)
doRemoveItem(item3.uid, 1)
doRemoveItem(item4.uid, 20)
doRemoveItem(item5.uid, 1)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- TITAN AXE
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 1294 and item1.type == 100 and item3.itemid == 5901 and item3.type == 100 and item4.itemid == 5909 and item4.type >= 30 and item5.itemid == 2145 and item5.type >= 25 then
if clubskill >= chancemedium3 then
doPlayerAddItem(cid,7413,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 100)
doRemoveItem(item3.uid, 100)
doRemoveItem(item4.uid, 30)
doRemoveItem(item5.uid, 25)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 100)
doRemoveItem(item3.uid, 100)
doRemoveItem(item4.uid, 30)
doRemoveItem(item5.uid, 25)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- VILE AXE
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 1294 and item1.type == 100 and item3.itemid == 1294 and item3.type == 100 and item4.itemid == 5468 and item5.itemid == 5880 and item5.type >= 20 and item6.itemid == 5893 and item6.type >= 5 then
if clubskill >= chancehard1 then
doPlayerAddItem(cid,7388,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 100)
doRemoveItem(item3.uid, 100)
doRemoveItem(item4.uid, 1)
doRemoveItem(item5.uid, 20)
doRemoveItem(item6.uid, 5)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 100)
doRemoveItem(item3.uid, 100)
doRemoveItem(item4.uid, 1)
doRemoveItem(item5.uid, 20)
doRemoveItem(item6.uid, 5)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- DRAGON LANCE
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 1294 and item1.type == 100 and item3.itemid == 5882 and item3.type >= 30 and item4.itemid == 2156 and item5.itemid == 5906 and item5.type >= 1 and item6.itemid == 5913 and item6.type >= 10 and item7.itemid == 5901 and item7.type >= 20 then
if clubskill >= chancehard then
doPlayerAddItem(cid,2414,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 100)
doRemoveItem(item3.uid, 30)
doRemoveItem(item4.uid, 1)
doRemoveItem(item5.uid, 1)
doRemoveItem(item6.uid, 10)
doRemoveItem(item7.uid, 20)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 100)
doRemoveItem(item3.uid, 30)
doRemoveItem(item4.uid, 1)
doRemoveItem(item5.uid, 1)
doRemoveItem(item6.uid, 10)
doRemoveItem(item7.uid, 20)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- CLAVAS
-- STAFF
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5901 and item2.type >= 30 then
if clubskill >= chanceeasy then
doPlayerAddItem(cid,2401,1)
doRemoveItem(item2.uid, 30)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 30)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- CLERICAL MACE
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item3.itemid == 2398 and item1.itemid == 5901 and item1.type >= 40 and item4.itemid == 1294 and item4.type >= 5 then
if clubskill >= chanceeasy then
doPlayerAddItem(cid,2423,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 40)
doRemoveItem(item3.uid, 1)
doRemoveItem(item4.uid, 5)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 40)
doRemoveItem(item3.uid, 1)
doRemoveItem(item4.uid, 5)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- DRAGON HAMMER
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item3.itemid == 5901 and item3.type == 60 and item1.itemid == 1294 and item1.type >= 10 and item4.itemid == 5920 and item4.type >= 5 and item5.itemid == 5877 and item5.type >= 5 then
if clubskill >= chanceeasy4 then
doPlayerAddItem(cid,2434,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 10)
doRemoveItem(item3.uid, 60)
doRemoveItem(item4.uid, 5)
doRemoveItem(item5.uid, 5)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 10)
doRemoveItem(item3.uid, 60)
doRemoveItem(item4.uid, 5)
doRemoveItem(item5.uid, 5)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- BRUTETAMER'S STAFF
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 5901 and item1.type == 70 and item3.itemid == 1294 and item3.type == 40 and item4.itemid == 2401 and item5.itemid == 2156 then
if clubskill >= chanceeasy7 then
doPlayerAddItem(cid,7379,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 70)
doRemoveItem(item3.uid, 40)
doRemoveItem(item4.uid, 1)
doRemoveItem(item5.uid, 1)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 70)
doRemoveItem(item3.uid, 40)
doRemoveItem(item4.uid, 1)
doRemoveItem(item5.uid, 1)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- SKULL STAFF
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item3.itemid == 5901 and item3.type == 100 and item1.itemid == 2401 and item4.itemid == 5911 and item4.type >= 10 and item5.itemid == 5468 then
if clubskill >= chanceeasy5 then
doPlayerAddItem(cid,2436,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 100)
doRemoveItem(item4.uid, 10)
doRemoveItem(item5.uid, 1)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 100)
doRemoveItem(item4.uid, 10)
doRemoveItem(item5.uid, 1)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- Spiked Squelcher
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item6.itemid == 5901 and item6.type == 100 and item3.itemid == 1294 and item3.type >= 70 and item4.itemid == 5912 and item4.type >= 10 and item5.itemid == 2158 and item1.itemid == 5468 then
if clubskill >= chancemedium3 then
doPlayerAddItem(cid,7452,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 70)
doRemoveItem(item4.uid, 10)
doRemoveItem(item5.uid, 1)
doRemoveItem(item6.uid, 100)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 70)
doRemoveItem(item4.uid, 10)
doRemoveItem(item5.uid, 1)
doRemoveItem(item6.uid, 100)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- War Hammer
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item5.itemid == 5901 and item5.type >= 70 and item3.itemid == 5468 and item4.itemid == 1294 and item4.type >= 40 and item1.itemid == 2154 and item6.itemid == 5913 and item6.type >= 30 then
if clubskill >= chancehard then
doPlayerAddItem(cid,2391,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 1)
doRemoveItem(item4.uid, 40)
doRemoveItem(item5.uid, 70)
doRemoveItem(item6.uid, 30)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 1)
doRemoveItem(item4.uid, 40)
doRemoveItem(item5.uid, 70)
doRemoveItem(item6.uid, 30)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- ARMORS
-- PLATE ARMOR
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item5.itemid == 5909 and item5.type >= 40 and item3.itemid == 2145 and item3.type == 77 and item4.itemid == 5468 and item1.itemid == 2465 and item6.itemid == 5890 and item6.type == 26 then
if clubskill >= chanceeasy4 then
doPlayerAddItem(cid,2463,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 77)
doRemoveItem(item4.uid, 1)
doRemoveItem(item5.uid, 40)
doRemoveItem(item6.uid, 26)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 77)
doRemoveItem(item4.uid, 1)
doRemoveItem(item5.uid, 40)
doRemoveItem(item6.uid, 26)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- BRASS ARMOR
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 2467 and item3.itemid == 2154 and item4.itemid == 5914 and item4.type == 40 and item5.itemid == 5880 and item5.type == 5 then
if clubskill >= chanceeasy then
doPlayerAddItem(cid,2465,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 1)
doRemoveItem(item4.uid, 40)
doRemoveItem(item5.uid, 5)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 1)
doRemoveItem(item4.uid, 40)
doRemoveItem(item5.uid, 5)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- KNIGHT ARMOR
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 2463 and item3.itemid == 5468 and item4.itemid == 5894 and item4.type == 100 and item5.itemid == 5899 and item5.type == 50 and item6.itemid == 5913 and item6.type == 5 then
if clubskill >= chanceeasy5 then
doPlayerAddItem(cid,2476,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 1)
doRemoveItem(item4.uid, 100)
doRemoveItem(item5.uid, 50)
doRemoveItem(item6.uid, 5)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 1)
doRemoveItem(item4.uid, 100)
doRemoveItem(item5.uid, 50)
doRemoveItem(item6.uid, 5)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- CROWN ARMOR
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 2147 and item1.type == 20 and item3.itemid == 5911 and item3.type == 30 and item4.itemid == 5882 and item4.type == 52 and item5.itemid == 5877 and item5.type == 57 and item6.itemid == 2463 then
if clubskill >= chancemedium1 then
doPlayerAddItem(cid,2487,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 20)
doRemoveItem(item3.uid, 30)
doRemoveItem(item4.uid, 52)
doRemoveItem(item5.uid, 57)
doRemoveItem(item6.uid, 1)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 20)
doRemoveItem(item3.uid, 30)
doRemoveItem(item4.uid, 52)
doRemoveItem(item5.uid, 57)
doRemoveItem(item6.uid, 1)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- GOLDEN ARMOR
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 2148 and item1.type == 100 and item3.itemid == 5914 and item3.type == 80 and item4.itemid == 2465 and item5.itemid == 6541 and item5.type == 5 and item6.itemid == 1689 then
if clubskill >= chancemedium3 then
doPlayerAddItem(cid,2466,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 100)
doRemoveItem(item3.uid, 80)
doRemoveItem(item4.uid, 1)
doRemoveItem(item5.uid, 5)
doRemoveItem(item6.uid, 1)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 100)
doRemoveItem(item3.uid, 80)
doRemoveItem(item4.uid, 1)
doRemoveItem(item5.uid, 5)
doRemoveItem(item6.uid, 1)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- MAGIC PLATE ARMOR
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 2160 and item1.type == 5 and item3.itemid == 2158 and item4.itemid == 2146 and item4.type == 89 and item5.itemid == 5906 and item5.type == 42 and item6.itemid == 5912 and item6.type == 83 and item7.itemid == 5913 and item7.type == 65 then
if clubskill >= chancehard then
doPlayerAddItem(cid,2472,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 5)
doRemoveItem(item3.uid, 1)
doRemoveItem(item4.uid, 89)
doRemoveItem(item5.uid, 42)
doRemoveItem(item6.uid, 83)
doRemoveItem(item7.uid, 65)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 5)
doRemoveItem(item3.uid, 1)
doRemoveItem(item4.uid, 89)
doRemoveItem(item5.uid, 42)
doRemoveItem(item6.uid, 83)
doRemoveItem(item7.uid, 65)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- BLUE ROBE
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 5912 and item1.type == 80 and item3.itemid == 2143 and item3.type == 45 and item4.itemid == 2153 and item5.itemid == 6543 and item5.type == 5 then
if clubskill >= chancemedium then
doPlayerAddItem(cid,2656,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 80)
doRemoveItem(item3.uid, 45)
doRemoveItem(item4.uid, 1)
doRemoveItem(item5.uid, 5)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 80)
doRemoveItem(item3.uid, 45)
doRemoveItem(item4.uid, 1)
doRemoveItem(item5.uid, 5)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- DRAGON SCALE MAIL
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 5910 and item1.type == 47 and item3.itemid == 2155 and item4.itemid == 5877 and item4.type == 72 and item5.itemid == 2149 and item5.type == 77 and item6.itemid == 5899 and item6.type == 13 then
if clubskill >= chancemedium3 then
doPlayerAddItem(cid,2492,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 47)
doRemoveItem(item3.uid, 1)
doRemoveItem(item4.uid, 72)
doRemoveItem(item5.uid, 77)
doRemoveItem(item6.uid, 13)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 47)
doRemoveItem(item3.uid, 1)
doRemoveItem(item4.uid, 72)
doRemoveItem(item5.uid, 77)
doRemoveItem(item6.uid, 13)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- ELMOS
-- WARRIOR HELMET
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 5878 and item1.type == 70 and item3.itemid == 2145 and item3.type == 53 and item4.itemid == 5909 and item4.type == 17 and item5.itemid == 5880 and item5.type == 6 then
if clubskill >= chanceeasy5 then
doPlayerAddItem(cid,2475,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 70)
doRemoveItem(item3.uid, 53)
doRemoveItem(item4.uid, 17)
doRemoveItem(item5.uid, 6)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 70)
doRemoveItem(item3.uid, 53)
doRemoveItem(item4.uid, 17)
doRemoveItem(item5.uid, 6)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- CROWN HELMET
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 5911 and item1.type == 42 and item3.itemid == 2156 and item4.itemid == 5468 and item5.itemid == 6542 and item5.type == 8 then
if clubskill >= chanceeasy7 then
doPlayerAddItem(cid,2491,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 42)
doRemoveItem(item3.uid, 1)
doRemoveItem(item4.uid, 1)
doRemoveItem(item5.uid, 8)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 42)
doRemoveItem(item3.uid, 1)
doRemoveItem(item4.uid, 1)
doRemoveItem(item5.uid, 8)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- ROYAL HELMET
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 5882 and item1.type == 81 and item3.itemid == 2154 and item4.itemid == 5920 and item4.type == 48 and item5.itemid == 5899 and item5.type == 21 and item6.itemid == 5895 and item6.type == 13 then
if clubskill >= chancemedium then
doPlayerAddItem(cid,2498,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 81)
doRemoveItem(item3.uid, 1)
doRemoveItem(item4.uid, 48)
doRemoveItem(item5.uid, 21)
doRemoveItem(item6.uid, 13)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 81)
doRemoveItem(item3.uid, 1)
doRemoveItem(item4.uid, 48)
doRemoveItem(item5.uid, 21)
doRemoveItem(item6.uid, 13)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- DRAGON SCALE HELMET
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 5920 and item1.type == 89 and item3.itemid == 5919 and item4.itemid == 5910 and item4.type == 21 and item5.itemid == 5468 and item6.itemid == 2155 and item7.itemid == 2149 and item7.type == 79 then
if clubskill >= chancehard then
doPlayerAddItem(cid,2506,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 89)
doRemoveItem(item3.uid, 1)
doRemoveItem(item4.uid, 21)
doRemoveItem(item5.uid, 1)
doRemoveItem(item6.uid, 1)
doRemoveItem(item7.uid, 79)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 89)
doRemoveItem(item3.uid, 1)
doRemoveItem(item4.uid, 21)
doRemoveItem(item5.uid, 1)
doRemoveItem(item6.uid, 1)
doRemoveItem(item7.uid, 79)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- ESCUDOS
-- DRAGON SHIELD
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 5877 and item1.type == 53 and item3.itemid == 2156 and item4.itemid == 5468 then
if clubskill >= chanceeasy4 then
doPlayerAddItem(cid,2516,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 53)
doRemoveItem(item3.uid, 1)
doRemoveItem(item4.uid, 1)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 53)
doRemoveItem(item3.uid, 1)
doRemoveItem(item4.uid, 1)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- TOWER SHIELD
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 5882 and item1.type == 46 and item3.itemid == 5913 and item3.type == 31 and item4.itemid == 5878 and item4.type == 42 and item5.itemid == 5880 and item5.type == 18 then
if clubskill >= chanceeasy7 then
doPlayerAddItem(cid,2528,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 46)
doRemoveItem(item3.uid, 31)
doRemoveItem(item4.uid, 42)
doRemoveItem(item5.uid, 18)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 46)
doRemoveItem(item3.uid, 31)
doRemoveItem(item4.uid, 42)
doRemoveItem(item5.uid, 18)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- CROWN SHIELD
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 5911 and item1.type == 71 and item3.itemid == 5468 and item4.itemid == 2156 and item5.itemid == 2147 and item5.type == 74 then
if clubskill >= chanceeasy5 then
doPlayerAddItem(cid,2519,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 71)
doRemoveItem(item3.uid, 1)
doRemoveItem(item4.uid, 1)
doRemoveItem(item5.uid, 74)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 71)
doRemoveItem(item3.uid, 1)
doRemoveItem(item4.uid, 1)
doRemoveItem(item5.uid, 74)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- VAMPIRE SHIELD
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 2158 and item3.itemid == 5905 and item3.type == 78 and item4.itemid == 5912 and item4.type == 61 and item5.itemid == 2146 and item5.type == 97 then
if clubskill >= chanceeasy5 then
doPlayerAddItem(cid,2534,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 78)
doRemoveItem(item4.uid, 61)
doRemoveItem(item5.uid, 97)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 78)
doRemoveItem(item4.uid, 61)
doRemoveItem(item5.uid, 97)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- DEMON SHIELD
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 2156 and item3.itemid == 5906 and item3.type == 51 and item4.itemid == 5893 and item4.type == 32 and item5.itemid == 5468 and item6.itemid == 5911 and item6.type == 13 then
if clubskill >= chancemedium then
doPlayerAddItem(cid,2520,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 51)
doRemoveItem(item4.uid, 32)
doRemoveItem(item5.uid, 1)
doRemoveItem(item6.uid, 13)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 51)
doRemoveItem(item4.uid, 32)
doRemoveItem(item5.uid, 1)
doRemoveItem(item6.uid, 13)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- MASTERMIND SHIELD
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 5468 and item3.itemid == 5930 and item3.type == 3 and item4.itemid == 5878 and item4.type == 66 and item5.itemid == 5913 and item5.type == 82 and item6.itemid == 5899 and item6.type == 46 and item7.itemid == 2154 then
if clubskill >= chancehard then
doPlayerAddItem(cid,2514,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 3)
doRemoveItem(item4.uid, 66)
doRemoveItem(item5.uid, 82)
doRemoveItem(item6.uid, 46)
doRemoveItem(item7.uid, 1)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 1)
doRemoveItem(item3.uid, 3)
doRemoveItem(item4.uid, 66)
doRemoveItem(item5.uid, 82)
doRemoveItem(item6.uid, 46)
doRemoveItem(item7.uid, 1)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- UTILITARIOS
-- FIRE BUG
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 2156 then
if clubskill >= chanceeasy then
doPlayerAddItem(cid,5468,1)
doRemoveItem(item2.uid, 1)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- CHUNK OF CRUDE IRON
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 1294 and item2.type == 10 then
if clubskill >= chanceeasy then
doPlayerAddItem(cid,5892,1)
doRemoveItem(item2.uid, 10)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end


---------------------------------------------------------------------------------
-- YELLOW GEM
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 2145 and item1.type >= 30 and item3.itemid == 5914 and item3.type >= 1 then
if clubskill >= chanceeasy1 then
doPlayerAddItem(cid,2154,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 30)
doRemoveItem(item3.uid, 1)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 30)
doRemoveItem(item3.uid, 1)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end



-----------------------------------------------------------------------------------

-- BLUE GEM
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 2145 and item1.type >= 10 and item3.itemid == 2146 and item3.type >= 30 then
if clubskill >= chanceeasy1 then
doPlayerAddItem(cid,2158,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 10)
doRemoveItem(item3.uid, 30)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 10)
doRemoveItem(item3.uid, 30)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end



-----------------------------------------------------------------------------------

-- GREEN GEM
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 2145 and item1.type >= 10 and item3.itemid == 2149 and item3.type >= 30 then
if clubskill >= chanceeasy1 then
doPlayerAddItem(cid,2155,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 10)
doRemoveItem(item3.uid, 30)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 10)
doRemoveItem(item3.uid, 30)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end



-----------------------------------------------------------------------------------

-- RED GEM
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 2145 and item1.type >= 10 and item3.itemid == 2147 and item3.type >= 30 then
if clubskill >= chanceeasy1 then
doPlayerAddItem(cid,2156,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 10)
doRemoveItem(item3.uid, 30)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 10)
doRemoveItem(item3.uid, 30)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end



-----------------------------------------------------------------------------------

-- VIOLET GEM
if voc == 7 or voc == 16 then
if quest == 1 then
if item2.itemid == 5892 and item1.itemid == 2145 and item1.type >= 10 and item3.itemid == 2150 and item3.type >= 30 then
if clubskill >= chanceeasy1 then
doPlayerAddItem(cid,2153,1)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 10)
doRemoveItem(item3.uid, 30)
doSendMagicEffect(topos,28)
doPlayerSendTextMessage(cid,19,"Congratulations.")


else
doSendMagicEffect(topos,2)
doRemoveItem(item2.uid, 1)
doRemoveItem(item1.uid, 10)
doRemoveItem(item3.uid, 30)
doPlayerSendTextMessage(cid,19,"Failed.")
end
end
end
end



-----------------------------------------------------------------------------------


end

 

Em NPC, crie um arquivo chamado Forjer.xml

 

coloque o seguinte conteúdo dentro:

 

<?xml version="1.0"?>

<npc name="Forjer" script="data/npc/scripts/blacksmith.lua" access="3" lookdir="3">
<health now="1000" max="1000"/>
<look type="134" head="114" body="115" legs="115" feet="0"/>
<parameters>

</parameters>
</npc>

 

Em Npc\Scripts crie um arquivo chamado blacksmith.lua e coloque o seguinte conteúdo:

 

local focus = 0
local talk_start = 0
local target = 0
local following = false
local attacking = false

function onThingMove(creature, thing, oldpos, oldstackpos)

end


function onCreatureAppear(creature)

end


function onCreatureDisappear(cid, pos)
if focus == cid then
selfSay('Good bye then.')
focus = 0
talk_start = 0
end
end


function onCreatureTurn(creature)

end

function msgcontains(txt, str)
return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)'))
end


function onCreatureSay(cid, type, msg)
msg = string.lower(msg)

if (msgcontains(msg, 'hi') and focus == 0) and getDistanceToCreature(cid) < 4 then
selfSay('Hello! I can teach you how to be a forger.')
focus = cid
talk_start = os.clock()

elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then
selfSay('Sorry, ! I talk to you in a minute.')

elseif focus == cid then
talk_start = os.clock()

if msgcontains(msg, 'forger') then
selfSay('Eu posso lhe garantir o direito de Forjar armas por 2 crystal coin. Diga yes para aceitar')
talk_state = 1
queststatus1 = getPlayerStorageValue(cid,21735)
queststatus2 = getPlayerStorageValue(cid,21737)
queststatus3 = getPlayerStorageValue(cid,21739)
queststatus4 = getPlayerStorageValue(cid,21740)
queststatus5 = getPlayerStorageValue(cid,21734)
elseif msgcontains(msg, 'yes') and talk_state == 1 then
voc = getPlayerVocation(cid)
itemstatus = doPlayerRemoveItem(cid,2160,2) 
queststatus = getPlayerStorageValue(cid,21737)
if queststatus1 == -1 or queststatus1 == 0 and queststatus3 == -1 or queststatus3 == 0 and queststatus4 == -1 or queststatus4 == 0 and queststatus5 == -1 or queststatus5 == 0 then
if voc == 7 or voc == 16 then
if itemstatus == 1 then
if queststatus == - 1 or queststatus == 0 then
setPlayerStorageValue(cid,21737,1)
selfSay('You can forge equipments at the blacksmiths room. Good job!')
else
selfSay('You are already a blacksmith. Humph ...')
end
else
selfSay('Back here when you have the money.')
end
else
selfSay('Only Blacksmith can be a blacksmith forger.')
end
else
selfSay('You only can have 1 profession.')
end
talk_state = 0
elseif msgcontains(msg, 'no') and talk_state == 1 then
elseif talk_state == 1 then
selfSay('Ok, see you later.')
focus = 0


elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then
selfSay('Good bye!')
focus = 0
talk_start = 0
end
end
end


function onCreatureChangeOutfit(creature)

end


function onThink()
if (os.clock() - talk_start) > 30 then
if focus > 0 then
selfSay('Next Please...')
end
focus = 0
end
if focus ~= 0 then
if getDistanceToCreature(focus) > 5 then
selfSay('Good bye then.')
focus = 0
end
end
end

 

 

 

PRONTO! SISTEMA IMPLANTADO, AGORA VAMOS CONFIGURAR!

 

2º Passo - Configurando:

 

Vá na pasta Actions\Scripts e abra o blacksmith.lua que você criou pelo tutorial dele

 

procura esta parte:

 

basepos = {x = 92, y = 185, z = 8, stackpos = 2}
item2 = getThingfromPos(basepos)
item1pos = {x = 92, y = 185, z = 8, stackpos = 3}
item1 = getThingfromPos(item1pos)
item3pos = {x = 92, y = 185, z = 8, stackpos = 4}
item3 = getThingfromPos(item3pos)
item4pos = {x = 92, y = 185, z = 8, stackpos = 5}
item4 = getThingfromPos(item4pos)
item5pos = {x = 92, y = 185, z = 8, stackpos = 6}
item5 = getThingfromPos(item5pos)
item6pos = {x = 92, y = 185, z = 8, stackpos = 7}
item6 = getThingfromPos(item6pos)
item7pos = {x = 92, y = 185, z = 8, stackpos = 8}
item7 = getThingfromPos(item7pos)

 

Observe que o x, y e z são no mesmo lugar, só mudando o stackpos, então só mude o X Y Z, de acordo com o local que queira.

 

E como fazer isso?

 

Procure um lugar no seu mapa para botar o NPC, juntamente com uma mesa ao seu lado então veja sua posição, ex: Position(X: 119 Y: 37 Z: 7) --> Local da mesa

 

então esta parte do meu script iria ficar assim

 

basepos = {x = 119, y = 37, z = 7, stackpos = 2}
item2 = getThingfromPos(basepos)
item1pos = {x = 119, y = 37, z = 7, stackpos = 3}
item1 = getThingfromPos(item1pos)
item3pos = {x = 119, y = 37, z = 7, stackpos = 4}
item3 = getThingfromPos(item3pos)
item4pos = {x = 119, y = 37, z = 7, stackpos = 5}
item4 = getThingfromPos(item4pos)
item5pos = {x = 119, y = 37, z = 7, stackpos = 6}
item5 = getThingfromPos(item5pos)
item6pos = {x = 119, y = 37, z = 7, stackpos = 7}
item6 = getThingfromPos(item6pos)
item7pos = {x = 119, y = 37, z = 7, stackpos = 8}
item7 = getThingfromPos(item7pos)

 

3º Passo: Configurando a vocação

 

Vá na pasta Npc/Script e abra o blacksmith.lua

 

Procure está linha:

 

if queststatus1 == -1 or queststatus1 == 0 and queststatus3 == -1 or queststatus3 == 0 and queststatus4 == -1 or queststatus4 == 0 and queststatus5 == -1 or queststatus5 == 0 then
[b]if voc == [u]X[/u] then[/b]
if itemstatus == 1 then
if queststatus == - 1 or queststatus == 0 then

 

Substitua o "X" pela(s) vocação(ões) que você quer que se torne(m) um Forjador

 

Ex:

 

if voc == 4 or voc == 8 then

(aqui eu escolhi Knight ou Elite Knight)

 

Após ter escolhido a vocação e a posição da mesa, abra seu OT e entre em um KNIGHT (no meu caso que escolhi voc == 4 ou voc == 8), (de preferencia god com essa vocação).

 

4º Passo - Fazendo o item BASE (Chunk of Crude Iron):

 

Já no seu OT, fale com o NPC Forger

 

17:09 GM Phoenix [200]: HI

17:09 Forger: Hello GM Phoenix! I can teach you how to be a forger.

17:09 GM Phoenix [200]: FORGER

17:09 Forger: Do you want to be a professional forger for 2 crystal coins?

17:09 GM Phoenix [200]: YES

 

screenshot001uf6.jpg

 

 

Agora faça um martelinho: ( /i 2557 1)

 

Com o martelinho coloque 10 small stone ( /i 1294 10) na mesa (onde você escolheu).

 

screenshot002rc1.jpg

 

Bata com o martelo, dependendo do seu SKILL DE CLUB E AXE, vai dar FAILED ou CONGRATULATIONS.

 

screenshot003kl5.jpg

 

Após você conseguir o ITEM Primário você poderá fazer outros items.

 

5º Passo - FAZENDO SEU PRIMEIRO ITEM:

 

Bom, escolha o item que quer fazer, veja na lista: Forging.xls

 

No meu caso, escolhi Fire Sword

 

Items:

 

Chunk of Crude Iron -- Item id = 5892
Sword -- Item id = 2376
100 Small Stones -- Item Id = 1294
Fire Bug -- Item Id = 5468
5 Red Piece of Cloths -- Item Id = 5911

 

Coloque os items de TRAZ PRA FRENTE NA MESA.

 

Como Assim?

 

Se o ultimo é RED PIECE OF CLOTHE (no caso da fire sword) ponha ele primeiro, pois o item que tenque ficar em cima é a matéria prima (Chunk of Crude Iron);

 

Assim:

 

screenshot004jf0.jpg

 

Agora o mais simples: Bata com o Martelo na Chunk of Crude Iron.

 

Se der FAILED, tente novamente, se der CONGRATULATIONS, meu parabéns.

 

screenshot005jh7.jpg

 

Bom, este é o fim do meu tutorial, até a proxima.

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

@Fua

Quanto maior o Skill de CLUB e AXE, maior a chance. A chance é contada com skill 100

Ex:

você tem skill 10, então sua chance está de 10 para 100 (10/100) = 10%

 

Não, Mesenga, cada equipamento tem sua taxa de chance, em alguns equips com skill 10 você não chega a 1% de chance hehe :D

Link para o comentário
Compartilhar em outros sites

  • 2 weeks later...
  • 3 weeks later...
  • 3 weeks later...
×
×
  • Criar Novo...