új ércek diff Game rev. 34083 + quest hozzá +npclist.txt guildbuildinglist.txt

Indította skolsz, 2014-02-14, 16:53:37

Sziasztok e pvp találtam pár diffet Game rev. 34083  új ércek hez amit meg osztok veletek

diffThis difference file is created by IDA Pro. ~P3NG3R

game_r34083_32
Activate the new Ores
0012BE85: 0E 12
0012BED5: 0E 12
0012BF8F: A8 D8

Tables position fix
mining__GetFractionCount()
0012C004: 00 24
0012C030: 08 2C
0012C037: 04 28
mining__GetOrePct()
0012C4D2: 80 94

Table extending
005A6FE8: 00 5E
005A6FE9: 00 76
005A6FEC: 00 B7
005A6FED: 00 C5
005A6FF0: 00 CB
005A6FF1: 00 C5
005A6FF4: 00 5F
005A6FF5: 00 76
005A6FF8: 00 B8
005A6FF9: 00 C5
005A6FFC: 00 CC
005A6FFD: 00 C5
005A7000: 14 60
005A7001: 00 76
005A7004: 01 B9
005A7005: 00 C5
005A7008: 0A CD
005A7009: 00 C5
005A700C: 1E 61
005A700D: 00 76
005A7010: 0B BA
005A7011: 00 C5
005A7014: 14 CE
005A7015: 00 C5
005A7018: 14 00
005A701C: 15 00
005A7020: 1E 00
005A7024: 0F 14
005A7028: 1F 01
005A702C: 28 0A
005A7030: 05 1E
005A7034: 29 0B
005A7038: 32 14
005A703C: 04 14
005A7040: 33 15
005A7044: 3C 1E
005A7048: 03 0F
005A704C: 3D 1F
005A7050: 46 28
005A7054: 02 05
005A7058: 47 29
005A705C: 50 32
005A7060: 01 04
005A7064: 51 33
005A7068: 5A 3C
005A706C: 00 03
005A7070: 00 3D
005A7074: 00 46
005A7078: 00 02
005A707C: 00 47
005A7080: 03 50
005A7084: 05 01
005A7088: 08 51
005A708C: 0B 5A
005A7090: 0F 00
005A7094: 14 03
005A7098: 1A 05
005A709C: 20 08
005A70A0: 28 0B
005A70A4: 32 0F
005A70A8: 00 14
005A70AC: 00 1A
005A70B0: 00 20
005A70B4: 00 28
005A70B8: 00 32


itt van a quest hozzá

quest guild_building_melt begin
state start begin
function GetOreRefineCost(cost)
if pc.empire != npc.empire then
return 3 * cost
end
if pc.get_guild() == npc.get_guild() then
return cost * 0.9
end
return cost
end

function GetOreRefineGoodPct()
return 60
end

function GetOreRefineBadPct()
return 30
end

function GetMyRefineNum(race)
return({
[20060] = 50601,
[20061] = 50602,
[20062] = 50603,
[20063] = 50604,
[20064] = 50605,
[20065] = 50606,
[20066] = 50607,
[20067] = 50608,
[20068] = 50609,
[20069] = 50610,
[20070] = 50611,
[20071] = 50612,
[20072] = 50613,
[33009] = 50614,
[33010] = 50615,
[33011] = 50616,
[33012] = 50617,
[33013] = 50618
})[race]
--return race - 20060 + 50601 or race - 33009 + 50614
end

function IsRefinableRawOre(vnum)
return vnum >= 50601 and vnum <= 50618
end

function DoRefineDiamond(pct)
local from_postfix
local from_name = item_name(item.vnum)
local to_vnum = item.vnum + 20
local to_name = item_name(to_vnum)
local to_postfix

if under_han(from_name) then
from_postfix = "something"
else
from_postfix = "something"
end

if under_han(to_name) then
to_postfix = "after"
else
to_postfix = "with"
end
say_title("Alchemist:")
say("")
say("You must collect 100 " .. from_name .." so I can")
say("produce "..to_name .. ".")
say("")
if item.count >= 100 then
say("The success rate is "..pct.."% and you need "..guild_building_melt.GetOreRefineCost(10000).." Yang.")
say("")
say("Do you want to try it?")
say("")
local s = select("Yes", "No")
if s == 1 then
if pc.get_gold() < guild_building_melt.GetOreRefineCost(10000) then
say_title("Alchemist:")
say("")
say("Sorry but you need more Yang. It's not free.")
say("")
return
end

if pc.diamond_refine(10000, pct) then
say_title("Alchemist:")
say("")
say("Congratulations - the refining was successful!")
say("")
say("You now have:")
say("")
say_item(to_name, to_vnum, "")
say("")
else
say_title("Alchemist:")
say("")
say("The refining was not successful. Sorry.")
say("")
end
end
else
say("First collect 100 ores.")
end
end
function DoRefine(pct)
local from_postfix
local from_name = item_name(item.vnum)
local to_vnum = item.vnum + 20
local to_name = item_name(to_vnum)
local to_postfix

if under_han(from_name) then
from_postfix = "Object"
else
from_postfix = "Object"
end

if under_han(to_name) then
to_postfix = "After"
else
to_postfix = "With"
end
say_title("Alchemist:")
say("")
say("You must collect 100 " .. from_name .." and a")
say("Spirit Stone +0, +1 or +2 to produce "..to_name..".")
say("")
if item.count >= 100 then
say("There is a "..pct.."% chance to succeed and you")
say("need "..guild_building_melt.GetOreRefineCost(3000).." Yang.")
say("")
say("Do you want to try it?")
say("")
local s = select("Yes", "No")
if s == 1 then
if pc.get_gold() < guild_building_melt.GetOreRefineCost(3000) then
say_title("Alchemist:")
say("")
say("Sorry, you need more Yang for this.")
say("")
return
end

local selected_item_cell = select_item()
if selected_item_cell == 0 then
say_title("Alchemist:")
say("")
say("Find the required materials and then talk to me.")
say("")
return
end
local old_item = item.get_id()

if not item.select_cell(selected_item_cell) then
say_title("Alchemist:")
say("")
say("That is not the item that is needed.")
say("")
return
end

-- check whether the material is
if item.vnum < 28000 or item.vnum >= 28300 then
say_title("Alchemist:")
say("")
say("You have chosen the wrong item.")
say("")
return
end

item.select(old_item)

if pc.ore_refine(3000, pct, selected_item_cell) then
----"123456789012345678901234567890123456789012345678901234567890"|
say_title("Alchemist:")
say("")
say("Congratulations - the refining was successful!")
say("")
say("You now have:")
say("")
say_item(to_name, to_vnum, "")
say("")
return
else
say_title("Alchemist:")
say("")
say("The refining was not successful. Sorry!")
say("")
return
end
end
else
wait()
say_title("Alchemist:")
say("")
say_reward("Collect the required materials first.")
say("")
return
end
end

when 20060.take or 20061.take or 20062.take or 20063.take or 20064.take or 20065.take or 20066.take or
20067.take or 20068.take or 20069.take or 20070.take or 20071.take or 20072.take or
33009.take or 33010.take or 33011.take or 33012.take or 33013.take
with guild_building_melt.IsRefinableRawOre(item.vnum) begin
--Good
if guild_building_melt.GetMyRefineNum(npc.race) == item.vnum then
if item.vnum == 50601 then
guild_building_melt.DoRefineDiamond(guild_building_melt.GetOreRefineGoodPct())
else
guild_building_melt.DoRefine(guild_building_melt.GetOreRefineGoodPct())
end
else--Bad
if item.vnum == 50601 then
guild_building_melt.DoRefineDiamond(guild_building_melt.GetOreRefineBadPct())
else
guild_building_melt.DoRefine(guild_building_melt.GetOreRefineBadPct())
end
end
end

when 20060.click or 20061.click or 20062.click or 20063.click or 20064.click or 20065.click or 20066.click or
20067.click or 20068.click or 20069.click or 20070.click or 20071.click or 20072.click or
33009.click or  33010.click or 33011.click or  33012.click or 33013.click begin
if npc.get_guild() == pc.get_guild() and pc.isguildmaster() then
say_title("Alchemist:")
say("")
say("If you own 3.000.000 Yang, you can replace your ")
say("current alchemist with a different one.")
say("")
wait()
if pc.get_gold() < 3000000 then
say_title("Alchemist:")
say("")
say_reward("Bring me 3.000.000 Yang.")
say("")
return
end

local sel = 0
local timetable1 = {"Diamonds", "Fossils", "Copper", "Silver", "Gold", "Jade", "Next", "Close"}
local valuetable1 = {14043, 14045, 14046, 14047, 14048, 14049, 1, 3}
local timetable2 = {"Ebony", "Pearls", "White Gold", "Crystal", "Amethyst", "Next", "Back", "Close"}
local valuetable2 = {14050, 10451, 14052, 14053, 14054, 2, 0, 3}
local timetable3 = {"Heaven's Tear", "Soul Crystal", "Ruby", "Garnet", "Emerald", "Sapphire", "Back", "Close"}
local valuetable3 = {14055, 26992, 26993, 26994, 26995, 26996, 1, 3}
repeat
say_size(300, 350)
say_title("System:")
say("Which Alchemist do you want to create?")
if sel == 0 then
local s = select_table(timetable1)
sel = valuetable1[s]
elseif sel == 1 then
local s = select_table(timetable2)
sel = valuetable2[s]
elseif sel == 2 then
local s = select_table(timetable3)
sel = valuetable3[s]
end
until sel > 2
if sel != 3 then
npc_num = sel + 20060 - 14043
--chat("#debug#sel:"..sel.."#npc_num:"..npc_num)
if npc_num == npc.get_race() then
say("This Alchemist is working already.")
else
pc.changegold(-3000000)
building.reconstruct(sel)
end
end
else
say_title("Alchemist:")
say("")
----"12345678901234567890123456789012345678901234567890"|
say("Hello, I am the guild alchemist. If you bring 100")
say("raw ores and a Spirit Stone +0, +1 or +2,")
say("I can try to refine them into a Gem.")
say("")
say("Refined gems can boost the properties of your")
say("accessories when inserted into sockets.")
say("")
say("To create a socket in an accessory, you will first")
say("need a refined Diamond.")
say("")
say("Come back anytime!")
say("")
end
end
end
end


npclist.txt

33009 alchemist
33010 alchemist
33011 alchemist
33012 alchemist
33013 alchemist

Raw:
33009[TAB]alchemist[TAB]
33010[TAB]alchemist[TAB]
33011[TAB]alchemist[TAB]
33012[TAB]alchemist[TAB]
33013[TAB]alchemist[TAB]


guildbuildinglist.txt

26992 FACILITY yonggwangro Lélekkristály kohó -179.63 -199.89 179.63 199.89 0 0 360 20000000 90010,15/90011,20/90012,25 20072 3 1 1
26993 FACILITY yonggwangro Rubin kohó -179.63 -199.89 179.63 199.89 0 0 360 20000000 90010,15/90011,20/90012,25 20072 3 1 1
26994 FACILITY yonggwangro Gránát kohó -179.63 -199.89 179.63 199.89 0 0 360 20000000 90010,15/90011,20/90012,25 20072 3 1 1
26995 FACILITY yonggwangro Smaragd kohó -179.63 -199.89 179.63 199.89 0 0 360 20000000 90010,15/90011,20/90012,25 20072 3 1 1
26996 FACILITY yonggwangro Zafír kohó -179.63 -199.89 179.63 199.89 0 0 360 20000000 90010,15/90011,20/90012,25 20072 3 1 1


akinek esetleg 100% jó lenne az privát üzenetbe írjon rám + egy képet küldhetne hozzá

Eredeti téma http://www.elitepvpers.com/forum/metin2-pserver-guides-strategies/2702961-sammelthread-difs-f-r-game-rev-34083-daily-updated.html