|
You last visited: Today at 17:56
Advertisement
need a simple quest
Discussion on need a simple quest within the Metin2 Private Server forum part of the Metin2 category.
08/13/2013, 18:44
|
#1
|
elite*gold: 0
Join Date: Dec 2009
Posts: 10
Received Thanks: 0
|
need a simple quest
Hi everyone
I don't know how to make a quest, that's why I'm looking 4 help, I need a quest very simple:
click on an NPC to talk, then to go to the map the character must have a determinated lvl and an item too
for example, must be lvl 90 and have a bloodstone to go to the map
Thanks
|
|
|
08/13/2013, 18:55
|
#2
|
elite*gold: 191
Join Date: May 2009
Posts: 1,214
Received Thanks: 2,594
|
>
I needed ~ 2min 30s for this
PHP Code:
quest cookie begin state start begin when 12345.click begin local item = 1234 say("Hello, "..pc.get_name()..".") say "So you want to go on Map XXX?" local count = pc.count_item(item) if count > 0 then say "Your item will go away!" if select("Yes","no") == 1 then if pc.count_item(item) == count then say "Okay , i'll warp you." pc.remove_item(item,1) -- remove item wait() pc.warp(123,456) else say "Buguser!!" end else say "Bye" end else say("You need this item:") say_item(item) end end end end
The same, just a little bit shorter .. hehehe
PHP Code:
quest cookie begin state start begin when 12345.click begin local item = 1234 local count = pc.count_item(item) say("Hello, "..pc.get_name()..".[ENTER]So you want to go on Map XXX?[ENTER]"..(count>0 and "Your item will go away!" or "You need this item:[ENTER]"..item_name(item))) if count > 0 and select("Yes","No") == 1 and count == pc.count_item(item) then say "Okay , i'll warp you." pc.remove_item(item,1) -- remove item wait() pc.warp(123,456) end end end end
Next time, ask in the thread i noticed before!!
|
|
|
08/13/2013, 21:57
|
#3
|
elite*gold: 0
Join Date: Dec 2009
Posts: 10
Received Thanks: 0
|
almost
Quote:
Originally Posted by Mijago
>
I needed ~ 2min 30s for this
PHP Code:
quest cookie begin state start begin when 12345.click begin local item = 1234 say("Hello, "..pc.get_name()..".") say "So you want to go on Map XXX?" local count = pc.count_item(item) if count > 0 then say "Your item will go away!" if select("Yes","no") == 1 then if pc.count_item(item) == count then say "Okay , i'll warp you." pc.remove_item(item,1) -- remove item wait() pc.warp(123,456) else say "Buguser!!" end else say "Bye" end else say("You need this item:") say_item(item) end end end end
The same, just a little bit shorter .. hehehe
PHP Code:
quest cookie begin state start begin when 12345.click begin local item = 1234 local count = pc.count_item(item) say("Hello, "..pc.get_name()..".[ENTER]So you want to go on Map XXX?[ENTER]"..(count>0 and "Your item will go away!" or "You need this item:[ENTER]"..item_name(item))) if count > 0 and select("Yes","No") == 1 and count == pc.count_item(item) then say "Okay , i'll warp you." pc.remove_item(item,1) -- remove item wait() pc.warp(123,456) end end end end
Next time, ask in the thread i noticed before!!
|
It is almost the quest I need but you forgot to put that the character must have a minimim lvl 2 go 2 the map, could you fix it 4 me? THANKS!!!
|
|
|
08/13/2013, 23:01
|
#4
|
elite*gold: 0
Join Date: Aug 2013
Posts: 117
Received Thanks: 23
|
Quote:
It is almost the quest I need but you forgot to put that the character must have a minimim lvl 2 go 2 the map, could you fix it 4 me? THANKS!!!
|
PHP Code:
quest cookie begin state start begin when 12345.click with pc.get_level () > 1 begin local item = 1234 say("Hello, "..pc.get_name()..".") say "So you want to go on Map XXX?" local count = pc.count_item(item) if count > 0 then say "Your item will go away!" if select("Yes","no") == 1 then if pc.count_item(item) == count then say "Okay , i'll warp you." pc.remove_item(item,1) -- remove item wait() pc.warp(123,456) else say "Buguser!!" end else say "Bye" end else say("You need this item:") say_item(item) end end end end
Like that?
|
|
|
08/14/2013, 00:38
|
#5
|
elite*gold: 0
Join Date: Dec 2009
Posts: 10
Received Thanks: 0
|
a little more
Quote:
Originally Posted by AGU
PHP Code:
quest cookie begin state start begin when 12345.click with pc.get_level () > 1 begin local item = 1234 say("Hello, "..pc.get_name()..".") say "So you want to go on Map XXX?" local count = pc.count_item(item) if count > 0 then say "Your item will go away!" if select("Yes","no") == 1 then if pc.count_item(item) == count then say "Okay , i'll warp you." pc.remove_item(item,1) -- remove item wait() pc.warp(123,456) else say "Buguser!!" end else say "Bye" end else say("You need this item:") say_item(item) end end end end
Like that?
|
Its like that but the NPC must say something about the character lvl, for example if character lvl < 95 then say "You need to be lvl 95 or more to travel" and it will be perfect, thanks again to alla of U
|
|
|
08/14/2013, 00:42
|
#6
|
elite*gold: 191
Join Date: May 2009
Posts: 1,214
Received Thanks: 2,594
|
Code:
quest cookie begin
state start begin
when 12345.click begin
if pc.get_level() < 95 then
say "You need level 95 bla"
return
end
local item = 1234
say("Hello, "..pc.get_name()..".")
say "So you want to go on Map ***?"
local count = pc.count_item(item)
if count > 0 then
say "Your item will go away!"
if select("Yes","no") == 1 then
if pc.count_item(item) == count then
say "Okay , i'll warp you."
pc.remove_item(item,1) -- remove item
wait()
pc.warp(123,456)
else
say "Buguser!!"
end
else
say "Bye"
end
else
say("You need this item:")
say_item(item)
end
end
end
end
|
|
|
08/14/2013, 09:30
|
#7
|
elite*gold: 0
Join Date: Aug 2013
Posts: 117
Received Thanks: 23
|
Well i think you don't need it. Because player under level 95 can't see the quest and when they're 95 or higher then they knew by their own that they can't warp until their level 95
|
|
|
08/14/2013, 12:56
|
#8
|
elite*gold: 0
Join Date: Oct 2009
Posts: 4,086
Received Thanks: 3,786
|
@Mijago
Ist das Absischt das bei den meisten say´s keine Klammern sind oder ist dir da ein Fehler unterlaufen xD
|
|
|
08/14/2013, 16:29
|
#9
|
elite*gold: 191
Join Date: May 2009
Posts: 1,214
Received Thanks: 2,594
|
Absicht, weil unnötig
|
|
|
|
Similar Threads
|
Simple Second reborn quest (NPC Scripts Only)
03/26/2019 - CO2 PServer Guides & Releases - 5 Replies
hello, i always wanted second reborn quest on my private server so, as i started working on my new project i made an simplified second reborn quest.
As most 5530+ sources have the NPCs already added to the database ill post only NPC Scripts:
in databse in entities add new row named SecondQuest
in entity.cs add
public uint SecondQuest = 0;
in monstertable add
|
Simple Quest [Level UP Message]
08/14/2012 - Metin2 PServer Guides & Strategies - 10 Replies
Heey Leute hier mal eine Quest die anzeigt wenn ein Spieler ein bestimmtes Level erreicht das eine Locale Nachricht an alle Spieler gesendet wird. Ich weiß es gibt bestimmt welche davon aber.... egal :)
quest levelup begin
state start begin
when levelup begin
if pc.get_level() == 75 then
notice_all("".. pc.get_name() .." hat gerade Level 75 erreicht")
notice_all("We love DeinNameMt2!")
elseif pc.get_level() == 100...
|
Computerkrank SF - root? // Simple port quest
04/02/2011 - Metin2 Private Server - 1 Replies
Hey,
ich wollte mal fragen ob es irgendwelche schwer wiegenden bugs bei den computerkrank v2 gibt, oder man sie als ausgangs Files für nen Root server nehmen kann.
Außerdem wollte ich fragen, ob mir jemand ne simple Portquest schreiben kann. Sprich -> ein item benutzen, dialog fenster öffnet sich, möchtest du zu diesem ort? Ja / nein , wenn nein, dann beenden, wenn ja, dann porten zu koordinaten x,y. Hatte selbst so ne quest geschrieben, bei der Questkontrolle kontrollieren lassen, klappt...
|
[Release] Simple Monster Quest (CoEmu v2)
08/29/2009 - CO2 PServer Guides & Releases - 5 Replies
hello...
this is not a BIG thing... so please... if you don't like... do no say anything about... i maked it just for give some reward for players!
(I take this idea from Kinshi88 MonsterHunter quest)
First: make this on the characters table:
Field: QuestKO
Type: INT
|
MoonBox Quest made simple!!!
08/21/2008 - CO2 Guides & Templates - 51 Replies
Yo Yo Yo wudup everybody...alright imma get this shit started with telling you that you will need this COMapReader made by ChrisR872....i give much thnx to him cuz this helped me alot ...COMapReader
IMPORTANT....CO MAP READER NO LONGER WORKS SO IF YOU HAPPEN TO FIND A NEW ONE THEN I WILL MUCH APPRECIATE IT IF YOU PM ME WITH A URL :D
Ok after you get that theres a few things you will need...
One: You will need 1 or more 110 trojans or warriors.. You can use archers and taos but i think...
|
All times are GMT +2. The time now is 17:56.
|
|