antiblock
Elveron
  • Chatbox

    You don't have permission to chat.
    Load More
Sign in to follow this  
carlos9534

[Release]Special Pvp-Quest

2 posts in this topic

http://cyber-gamers.org/public/style_emoticons/default/Espi54.gif , Hoje venho apresentar uma quest em que :

Você mata um jogador. Isso agora solta um item ou Exp que sai e quanto EXP que você recebe é aleatória. Um, então o jogador não pode mais matar por uma hora, mas você ainda pode matar outros jogadores.

quest kill_event begin	state start begin		function give_kill_event_price()			local prices = {27990, 27992, 27993, 27994}			pc.give_item2(prices[number(1, table.getn(prices))], 1)		end		when kill with npc.is_pc() begin -- alle Kills 1%			if get_time() < pc.getqf(tostring(npc.get_vid()).."_time") then				return			else				if pc.getqf(tostring(npc.get_vid()).."_kill") >= 5 then					pc.setqf(tostring(npc.get_vid()).."_time", get_time()+60*60*1)					say_title("PvP - Dropblock!")					say("Hallo , du hast den Spieler "..pc.get_name().." bereits 5 mal getötet.")					say("Um Bugusing zu vermeiden, wirst du von "..pc.get_name().." eine Stunde")					say("lang nichts mehr droppen! Du kannst jedoch von anderen Spielern")					say("weiterhin Items droppen. ")					say("")					say_reward("Du kannst erst in 60 Min. von "..pc.get_name().." wieder etwas droppen!")				else					pc.setqf(tostring(npc.get_vid()).."_kill", pc.getqf(tostring(npc.get_vid()).."_kill")[img]http://cyber-gamers.org/public/style_emoticons/<#EMO_DIR#>/451960.gif[/img])				end			end			local exp = math.random(1, 10)			if exp == 1 then				pc.give_exp2(7777777)			elseif exp == 2 then				pc.give_exp2(5555555)			elseif exp == 3 then				pc.give_exp2(4444444)			elseif exp == 4 then				pc.give_exp2(6666666)			elseif exp == 5 then				pc.give_exp2(2222222)			elseif exp == 6 then				pc.give_exp2(3333333)			elseif exp == 7 then				pc.give_exp2(4444444)			elseif exp == 8 then				pc.give_exp2(5555555)			elseif exp == 9 then				pc.give_exp2(6666666)			elseif exp == 10 then				syschat("Du hast keine Erfahrungspunkte erhalten.")			end			local a = math.random(1, 100)			if a < 1 then				kill_event.give_kill_event_price()			end			if pc.get_empire() ~= npc.get_empire() then -- fremdes Reich 25%				local a = math.random(1, 100)				if a < 25 then					kill_event.give_kill_event_price()				end			end			if pc.get_empire() == npc.get_empire() then -- gleiches Reich 75%				local a = math.random(1, 100)				if a < 75 then					kill_event.give_kill_event_price()				end			end			if guild.is_war() and (npc.get_guild() ~= pc.get_guild()) then -- Gildenkrieg 50%				local a = math.random(1, 100)				if a < 50 then					kill_event.give_kill_event_price()				end			end		end	endend
Créditos : epvp

Share this post


Link to post
Share on other sites
antiblock
Cyphriun

Google Tradutor fiquei sem perceber o que faz a quest :S

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this