[Request] QUEST

04/29/2015 09:08 mortovivo13#1
Hello
I would like to ask you guys to help me create a quest with the follow steps:
When kill player with lv30 higher give (random item).
That random item is giving from a list of items.
Quest needs to have :
-only will be activated if the player is lv30 ou higher.
-List of items to give.
-percentage of drop.

I will appreciate that
Thank You.
04/29/2015 09:29 rollback#2
Please use the sticky Thread:
[Only registered and activated users can see links. Click Here To Register...]

and give some more Information. Which player must be Level 30 or higher? Must player b be at least 30 Levels higher than player a?
04/29/2015 12:21 mortovivo13#3
About the sticky Thread , I donīt understand.

The Objective of the Quest is
When player kill other player receive reward.
But the player only receives if he is Lv30 or higher.
"Like when lv30 begin " something like that."
and i also want in that quest a random list , just to not receive the same item every time.
04/29/2015 12:36 rollback#4
The sticky Thread should be used for quest requests.

Here is a quest that should do the thing you want:
Code:
quest pvpkills begin
	state start begin
		when kill with npc.is_pc() and pc.get_level() >= 30 begin
			local items = {--vnum, count
				{27001, 200},
				{180, 1},
				{187, 1}
			}
			if number(1, 100) <= xx then
				local rand = number(1, table.getn(items))
				pc.give_item2(items[rand][1], items[rand][2])
			end
		end
	end
end
replace "xx" with the percentage chance to drop anything (for example if you replace xx with 50 there will be a 50% chance of getting one of the items in the list)
04/29/2015 21:01 KΛIƬӨ#5
Quote:
Originally Posted by usr.setVnum(1093) View Post
The sticky Thread should be used for quest requests.

Here is a quest that should do the thing you want:
Code:
quest pvpkills begin
	state start begin
		when kill with npc.is_pc() and pc.get_level() >= 30 begin
			local items = {--vnum, count
				{27001, 200},
				{180, 1},
				{187, 1}
			}
			if number(1, 100) <= xx then
				local rand = number(1, table.getn(items)
				pc.give_item2(items[rand][1], items[rand][2])
			end
		end
	end
end
replace "xx" with the percentage chance to drop anything (for example if you replace xx with 50 there will be a 50% chance of getting one of the items in the list)
hast eine klammer vergessen in der variable
04/29/2015 21:56 mortovivo13#6
something is missing in that quest...

ERROR "expect to close"

Can you please fix it? thank you!
04/30/2015 06:38 rollback#7
Quote:
Originally Posted by mortovivo13 View Post
something is missing in that quest...

ERROR "expect to close"

Can you please fix it? thank you!
the quest works fine for me. did you replace the "xx" ?
04/30/2015 08:08 mortovivo13#8
It is working now, i left some blank spaces.

THANK YOU!