[QUEST] Anti Exp Ring & Voodoo Armband
[QUEST] Anti Exp Ring & Voodoo Armband
Boas,
Hoje trago-vos duas quests, uma delas que é um Anel Anti Exp e a outra é um item que transforma um player em um monstro por um breves instantes.
Goddess Doll - Anti Exp
Voodoo Armband - Transforma player em monstros durante uns momentos.
Espero que gostem destas duas quests,
Siuky
Hoje trago-vos duas quests, uma delas que é um Anel Anti Exp e a outra é um item que transforma um player em um monstro por um breves instantes.
Goddess Doll - Anti Exp
- Código:
quest exp_curse begin
state start begin
when 70210.use begin
pc.setqf("lastexp",pc.get_exp())
syschat("You are under the curse of the goddess. You will gain no experience.")
set_state(use)
end
end
state use begin
when 70210.use begin
syschat("You lifted the curse of the goddess. You gain experience again.")
set_state(start)
end
when login begin
syschat("You are currently under the curse of the goddess and gain no experience.")
end
when kill or party_kill begin
local current = pc.get_exp()
local doll = pc.count_item(70210)
if doll == 0 then
syschat("The curse of the Goddess has lifted. You will gain Experience again.")
set_state(start)
end
if current < pc.getqf("lastexp") then
pc.setqf("lastexp",current)
end
if not npc.is_pc() then
local dif = pc.get_exp()-pc.getqf("lastexp")
pc.give_exp2(-dif)
end
end
end
end
Voodoo Armband - Transforma player em monstros durante uns momentos.
- Código:
quest polyplayer begin
state start begin
when 70111.use begin
local start_count = pc.count_item(item.get_vnum()) -- to prevent usage of bugs only
say_title("Voodoo Armband:")
say("")
say("Enter the name of the player you want to curse:")
say("")
local name = input()
local vid = find_pc_by_name(name)
if name == "" then
return
elseif name == pc.get_name() then
say_title("Ring of Curse:")
say("")
say("You can not curse yourself.")
say("")
return
elseif vid == 0 then
say_title("Ring of Curse:")
say("")
say("This player is not online or does not exist.")
say("")
return
elseif not pc.is_near_vid(vid, 50) then
say_title("Ring of Curse:")
say("")
say("The player is too far away.")
say("")
return
end
if pc.count_item(item.get_vnum()) != start_count then
return
end
local myvid = pc.select(vid)
vnums = {2101, 20016, 20002, 11000, 5001, 992, 1301, 1303, 2191, 5161, 5162, 5163}
i = number(1,12)
pc.polymorph(vnums[i], 5*60)
syschat("You have been cursed.")
local victim = pc.get_name()
pc.select(myvid)
say_title("Voodoo Armband:")
say("")
say("The player "..victim.." is now cursed for 5 minutes.")
say("")
item.remove()
end
end
end
Espero que gostem destas duas quests,
Siuky
Permissões neste sub-fórum
Não podes responder a tópicos
|
|
Qui Ago 25, 2016 4:23 am por Siuky
» [ONLINE] MT2Portugalia - Mostrando Metin2 Desde 2011
Qua Ago 24, 2016 9:35 pm por Siuky
» [ONLINE]World Of Metin2 - Servidor Internacional
Qua Ago 24, 2016 9:19 pm por Siuky
» [QUEST] Anti Exp Ring & Voodoo Armband
Qua Ago 24, 2016 3:29 pm por Siuky
» Como adicionar Armaduras no metin2
Qua Ago 24, 2016 3:24 pm por Siuky
» Como adicionar armas no metin2
Qua Ago 24, 2016 3:23 pm por Siuky
» Como instalar files em tar.gz
Qua Ago 24, 2016 3:18 pm por Siuky
» Interface bonita
Qua Ago 24, 2016 2:55 pm por Siuky
» Serverfiles Maxmi 4.1 - Lycan
Qua Ago 24, 2016 2:47 pm por Siuky