Jump to content
PENTAGRAMA

[AYUDA]Error Quest

Recommended Posts

Tengo los siguientes errores con estas quest.

 

1.- Kill Exp

Esta quest cuando mato a un pj

se supone que me tiene que dar exp 20000

y soltar un letrero que diga "mataste a un usuario resives 20.000 de exp/

 

Problema:

Cuando mato a un usuario solo sale el letrero

pero nunca da el exp

sale  2 veces el letrero 

bmiSC4u.png

quest kills begin
state start begin 
when kill with npc.is_pc 
begin pc.give_exp(20000)
chat(" Mataste a un usuario Resives 20.000 de exp")
end 
end
end

2.-Quest  Lista exp (no recuerdo el name)

 

esta quest es una lista

que se supone que cuando matas a un pj de el lvl de la lista (70-80-90-100)

te da un determinado numero de exp.

 

el problema:

esque cuando inicio con lvl 20-50-69

automaticamente me sube la exp asta llegar al lvl 70

H8S5fZw.png

uest 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] = {7731000},
                                [71] = {8504000},
                                [72] = {9354000},
                                [73] = {10290000},
                                [74] = {11350000},
                                [75] = {12100000},
                                [76] = {13700000},
                                [77] = {15070000},
                                [78] = {16570000},
                                [79] = {23699000},
                                [80] = {26065000},
                                [81] = {28678000},
                                [82] = {31500000},
                                [83] = {34697000},
                                [84] = {38168000},
                                [85] = {41977000},
                                [86] = {46176000},
                                [87] = {50804000},
                                [88] = {55874000},
                                [89] = {61464000},
                                [90] = {67613000},
                                [91] = {74373000},
                                [92] = {104122200},
                                [93] = {114534420},
                                [94] = {125987862},
                                [95] = {138586648},
                                [96] = {152445313},
                                [97] = {167689844},
                                [98] = {184458828},
                                [99] = {202904711},
                                [100] = {205000000},
                                [101] = {206000000},
                                [102] = {207000000},
                                [103] = {208000000},
                                [104] = {209000000},
                                [105] = {400000000}
                        }
                        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

Alguien sabe porque?

Share this post


Link to post
Share on other sites

Con esto sube 2 niveles por cada pj que mates

 

quest pjexp begin
state start begin
when kill with npc.is_pc() begin
local exp = pc.get_next_exp()
pc.give_exp2(exp)
end
end
end

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...