Jump to content

Experiencia PvP - Tabla de exp


PACI

Recommended Posts

Bueno pues nada, que anduve inventando un poco la cosa y nada que hice 1 quest de esas que matas un personaje y te da exp, pero con una "tabla" de experiencia, o sea, la experiencia de cada nivel se divide por X (en mi caso 50) y a cada nivel recibirás Y experiencia, y necesitaras esas X muertes para levear xD, hice dos, una con el npc.get_vid y otra sin pero bueno supongo que habrá sido solo pa complicar xD

 

La quest:

Debes iniciar sesión para ver el contenido del enlace en esta publicación.

 

Saludos.

 

PD: KeKo a ver si te animas y haces otro tema pa enseñarnos mas e.e Y sí, el function fué pa variar tbn xD

Link to comment
Share on other sites

  • 1 year later...

 

 

quest expvp begin
state start begin
function setLevel(lvl)
while pc.get_level() < lvl do
pc.give_exp2(pc.get_next_exp())
end
end
when login begin --with pc.getqf("nivel") == 0 begin
-- pc.setqf("nivel", 1)
expvp.setLevel(70)
end
when kill with npc.is_pc() begin
local tabela_exp = {
-- Nível Experiência
[70] = {77310000},
[71] = {85040000},
[72] = {93540000},
[73] = {102900000},
[74] = {113500000},
[75] = {121000000},
[76] = {137000000},
[77] = {150700000},
[78] = {165700000},
[79] = {236990000},
[80] = {260650000},
[81] = {286780000},
[82] = {315000000},
[83] = {346970000},
[84] = {381680000},
[85] = {419770000},
[86] = {461760000},
[87] = {508040000},
[88] = {558740000},
[89] = {614640000},
[90] = {676130000},
[91] = {743730000},
[92] = {1041222000},
[93] = {1145344200},
[94] = {1259878620},
[95] = {1385866482},
[96] = {1524453130},
[97] = {1676898443},
[98] = {1844588288},
[99] = {2029047116},
[100] = {2050000000},
[101] = {2060000000},
[102] = {2070000000},
[103] = {2080000000},
[104] = {2090000000},
[105] = {2100000000}
}
if pc.get_empire == npc.get_empire() then
if pc.get_real_alignment() >= 0 then
-- if pc.select(npc.get_vid()) != 0 then
-- local qf = pc.getqf("nivel")
-- local npc_alignment = pc.get_real_alignment()
-- pc.select(pc.select(npc.get_vid()))
-- if qf != 0 and npc_alignment >= 0 then
pc.give_exp2(tabela_exp[pc.get_level()][1] / 50)
-- end
-- end
end
end
end
end
end

 

 

 

No vale tu navegador.

._.  ._.  ._.  ._.

Link to comment
Share on other sites

 

 

quest expvp begin
state start begin
function setLevel(lvl)
while pc.get_level() < lvl do
pc.give_exp2(pc.get_next_exp())
end
end
when login begin --with pc.getqf("nivel") == 0 begin
-- pc.setqf("nivel", 1)
expvp.setLevel(70)
end
when kill with npc.is_pc() begin
local tabela_exp = {
-- Nível Experiência
[70] = {77310000},
[71] = {85040000},
[72] = {93540000},
[73] = {102900000},
[74] = {113500000},
[75] = {121000000},
[76] = {137000000},
[77] = {150700000},
[78] = {165700000},
[79] = {236990000},
[80] = {260650000},
[81] = {286780000},
[82] = {315000000},
[83] = {346970000},
[84] = {381680000},
[85] = {419770000},
[86] = {461760000},
[87] = {508040000},
[88] = {558740000},
[89] = {614640000},
[90] = {676130000},
[91] = {743730000},
[92] = {1041222000},
[93] = {1145344200},
[94] = {1259878620},
[95] = {1385866482},
[96] = {1524453130},
[97] = {1676898443},
[98] = {1844588288},
[99] = {2029047116},
[100] = {2050000000},
[101] = {2060000000},
[102] = {2070000000},
[103] = {2080000000},
[104] = {2090000000},
[105] = {2100000000}
}
if pc.get_empire == npc.get_empire() then
if pc.get_real_alignment() >= 0 then
-- if pc.select(npc.get_vid()) != 0 then
-- local qf = pc.getqf("nivel")
-- local npc_alignment = pc.get_real_alignment()
-- pc.select(pc.select(npc.get_vid()))
-- if qf != 0 and npc_alignment >= 0 then
pc.give_exp2(tabela_exp[pc.get_level()][1] / 50)
-- end
-- end
end
end
end
end
end

 

 

 

No vale tu navegador.

._.  ._.  ._.  ._.

Gracias nene, XD

no sé porque no funciona en Google Chrome

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...