|
You last visited: Today at 07:03
Advertisement
[SERVICE] Die Questkontrolle
Discussion on [SERVICE] Die Questkontrolle within the Metin2 Private Server forum part of the Metin2 category.
09/02/2013, 20:23
|
#8926
|
elite*gold: 0
Join Date: Sep 2012
Posts: 56
Received Thanks: 0
|
multrin.quest:157:Error occured on compile multirin.quest
|
|
|
09/02/2013, 20:33
|
#8927
|
elite*gold: 0
Join Date: Jun 2013
Posts: 558
Received Thanks: 215
|
Versuch mal am ende 1 end weniger^^
|
|
|
09/02/2013, 20:49
|
#8928
|
elite*gold: 0
Join Date: Sep 2012
Posts: 56
Received Thanks: 0
|
Klappt auch nicht ... :/
|
|
|
09/02/2013, 20:51
|
#8929
|
elite*gold: 0
Join Date: Jun 2013
Posts: 558
Received Thanks: 215
|
Moment ich schaue die quest mir mal genauer an
|
|
|
09/02/2013, 20:52
|
#8930
|
elite*gold: 0
Join Date: Sep 2012
Posts: 56
Received Thanks: 0
|
okay danke :-)
|
|
|
09/02/2013, 20:55
|
#8931
|
elite*gold: 0
Join Date: Jun 2013
Posts: 558
Received Thanks: 215
|
Code:
quest warpring begin
state start begin
when 70007.use begin
say_title("Warpring")
say("Wohin möchtest du Teleportiert werden?")
local empire = pc.get_empire()
local selectmap = select("Map1","Map2","Orktal","Wüste","Eisland","Feuerland","Weiter","Abbrechen")
if selectmap == 8 then
return
elseif selectmap == 7 then
say_title("Warpring")
say("Wohin möchtest du Teleportiert werden?")
local selectmap2 = select("Dämonenturm","Geisterwald","Roter Wald","Spinnendungeon","Grotte der Verbannung 2","FarmMap 1","FarmMap 2","Abbrechen")
if selectmap2 == 8 then
return
elseif selectmap2 == 1 then
say_title("Warpring")
say("Wohin möchtest du Teleportiert werden?")
pc.warp(590500,110800)
elseif selectmap2 == 2 then
say_title("Warpring")
say("Wohin möchtest du Teleportiert werden?")
local geisterselect = select("Anfang","Ende","Abbrechen")
if geisterselect == 3 then
return
elseif geisterselect == 1 then
pc.warp(290500,5700)
elseif geisterselect == 2 then
pc.warp(286400,44200)
end
elseif selectmap2 == 3 then
say_title("Warpring")
say("Wohin möchtest du Teleportiert werden?")
local roterselect = select("Anfang","Ende","Abbrechen")
if roterselect == 3 then
return
elseif roterselect == 1 then
pc.warp(1119900,70800)
elseif roterselect == 2 then
pc.warp(1119100,7700)
end
elseif selectmap2 == 4 then
say_title("Warpring")
say("Wohin möchtest du Teleportiert werden?")
pc.warp(91700, 525300)
elseif selectmap2 == 5 then
say_title("Warpring")
say("Wohin möchtest du Teleportiert werden?")
pc.warp(241300, 1275400)
elseif selectmap2 == 6 then
say_title("Warpring")
say("Wohin möchtest du Teleportiert werden?")
pc.warp(271800,13000)
elseif selectmap2 == 7 then
say_title("Warpring")
say("Wohin möchtest du Teleportiert werden?")
if pc.get_level() <= 75 then
pc.warp(2640700,2693900)
end
elseif selectmap == 1 then
say_title("Warpring")
say("Wohin möchtest du Teleportiert werden?")
local map1select = select("Rotes Reich","Gelbes Reich","Blaues Reich","Abbrechen")
if map1select == 4 then
return
elseif map1select == 1 then
pc.warp(474300, 954800)
elseif map1select == 2 then
pc.warp(63800, 166400)
elseif map1select == 3 then
pc.warp(959900, 269200)
end
elseif selectmap == 2 then
say_title("Warpring")
say("Wohin möchtest du Teleportiert werden?")
local map2select = select("Rotes Reich","Gelbes Reich","Blaues Reich","Abbrechen")
if map2select == 4 then
return
elseif map2select == 1 then
pc.warp(353100, 882900)
elseif map2select == 2 then
pc.warp(145500, 240000)
elseif map2select == 3 then
pc.warp(863900, 246000)
end
elseif selectmap == 3 then
say_title("Warpring")
say("Wohin möchtest du Teleportiert werden?")
local otselect = select("Anfang","Mitte","Abbrechen")
if otselect == 3 then
return
elseif otselect == 1 then
if empire == 1 then
pc.warp(402100, 673900)
elseif empire == 2 then
pc.warp(270400, 739900)
elseif empire == 3 then
pc.warp(321300, 808000)
end
elseif otselect == 2 then
pc.warp(332800, 745600)
end
elseif selectmap == 4 then
say_title("Warpring")
say("Wohin möchtest du Teleportiert werden?")
local wuesteselect = select("Anfang","Mitte","Abbrechen")
if wuesteselect == 3 then
return
elseif wuesteselect == 1 then
if empire == 1 then
pc.warp(217800, 627200)
elseif empire == 2 then
pc.warp(221900, 502700)
elseif empire == 3 then
pc.warp(344000, 502500)
end
elseif wuesteselect == 2 then
pc.warp(296800, 547100)
end
elseif selectmap == 5 then
say_title("Warpring")
say("Wohin möchtest du Teleportiert werden?")
local eisselect = select("Anfang","Mitte","Abbrechen")
if eisselect == 3 then
return
elseif eisselect == 1 then
if empire == 1 then
pc.warp(434200, 290600)
elseif empire == 2 then
pc.warp(375200, 174900)
elseif empire == 3 then
pc.warp(491800, 173600)
end
elseif eisselect == 2 then
pc.warp(436500, 215400)
end
elseif selectmap == 6 then
say_title("Warpring")
say("Wohin möchtest du Teleportiert werden?")
local feuerselect = select("Anfang","Mitte","Abbrechen")
if feuerselect == 3 then
return
elseif feuerselect == 1 then
if empire == 1 then
pc.warp(599400, 756300)
elseif empire == 2 then
pc.warp(597800, 622200)
elseif empire == 3 then
pc.warp(730700, 689800)
elseif feuerselect == 2 then
pc.warp(600800, 687100)
end
end
end
end
end
Teste sie mal so. Kann sie grade selber nicht testen aber ich hab einfach ein End mitten drinnen entdeckt wo es eig nicht hingehört ^^
|
|
|
09/02/2013, 21:01
|
#8932
|
elite*gold: 0
Join Date: Sep 2012
Posts: 56
Received Thanks: 0
|
jetzt kommt multrin.quest:157:Error occured on compile multirin.quest
|
|
|
09/02/2013, 21:24
|
#8933
|
elite*gold: 313
Join Date: Apr 2013
Posts: 585
Received Thanks: 122
|
Quote:
Originally Posted by KaffeePausex3
jetzt kommt multrin.quest:157:Error occured on compile multirin.quest
|
PHP Code:
quest warpring begin
state start begin
when 70007.use begin
say_title("Warpring")
say("Wohin möchtest du Teleportiert werden?")
local empire = pc.get_empire()
local selectmap = select("Map1","Map2","Orktal","Wüste","Eisland","Feuerland","Weiter","Abbrechen")
if selectmap == 8 then
return
elseif selectmap == 7 then
say_title("Warpring")
say("Wohin möchtest du Teleportiert werden?")
local selectmap2 = select("Dämonenturm","Geisterwald","Roter Wald","Spinnendungeon","Grotte der Verbannung 2","FarmMap 1","FarmMap 2","Abbrechen")
if selectmap2 == 8 then
return
elseif selectmap2 == 1 then
say_title("Warpring")
say("Wohin möchtest du Teleportiert werden?")
pc.warp(590500,110800)
elseif selectmap2 == 2 then
say_title("Warpring")
say("Wohin möchtest du Teleportiert werden?")
local geisterselect = select("Anfang","Ende","Abbrechen")
if geisterselect == 3 then
return
elseif geisterselect == 1 then
pc.warp(290500,5700)
elseif geisterselect == 2 then
pc.warp(286400,44200)
end
elseif selectmap2 == 3 then
say_title("Warpring")
say("Wohin möchtest du Teleportiert werden?")
local roterselect = select("Anfang","Ende","Abbrechen")
if roterselect == 3 then
return
elseif roterselect == 1 then
pc.warp(1119900,70800)
elseif roterselect == 2 then
pc.warp(1119100,7700)
end
elseif selectmap2 == 4 then
say_title("Warpring")
say("Wohin möchtest du Teleportiert werden?")
pc.warp(91700, 525300)
elseif selectmap2 == 5 then
say_title("Warpring")
say("Wohin möchtest du Teleportiert werden?")
pc.warp(241300, 1275400)
elseif selectmap2 == 6 then
say_title("Warpring")
say("Wohin möchtest du Teleportiert werden?")
pc.warp(271800,13000)
elseif selectmap2 == 7 then
say_title("Warpring")
say("Wohin möchtest du Teleportiert werden?")
if pc.get_level() <= 75 then
pc.warp(2640700,2693900)
end
elseif selectmap == 1 then
say_title("Warpring")
say("Wohin möchtest du Teleportiert werden?")
local map1select = select("Rotes Reich","Gelbes Reich","Blaues Reich","Abbrechen")
if map1select == 4 then
return
elseif map1select == 1 then
pc.warp(474300, 954800)
elseif map1select == 2 then
pc.warp(63800, 166400)
elseif map1select == 3 then
pc.warp(959900, 269200)
end
elseif selectmap == 2 then
say_title("Warpring")
say("Wohin möchtest du Teleportiert werden?")
local map2select = select("Rotes Reich","Gelbes Reich","Blaues Reich","Abbrechen")
if map2select == 4 then
return
elseif map2select == 1 then
pc.warp(353100, 882900)
elseif map2select == 2 then
pc.warp(145500, 240000)
elseif map2select == 3 then
pc.warp(863900, 246000)
end
elseif selectmap == 3 then
say_title("Warpring")
say("Wohin möchtest du Teleportiert werden?")
local otselect = select("Anfang","Mitte","Abbrechen")
if otselect == 3 then
return
elseif otselect == 1 then
if empire == 1 then
pc.warp(402100, 673900)
elseif empire == 2 then
pc.warp(270400, 739900)
elseif empire == 3 then
pc.warp(321300, 808000)
end
elseif otselect == 2 then
pc.warp(332800, 745600)
end
elseif selectmap == 4 then
say_title("Warpring")
say("Wohin möchtest du Teleportiert werden?")
local wuesteselect = select("Anfang","Mitte","Abbrechen")
if wuesteselect == 3 then
return
elseif wuesteselect == 1 then
if empire == 1 then
pc.warp(217800, 627200)
elseif empire == 2 then
pc.warp(221900, 502700)
elseif empire == 3 then
pc.warp(344000, 502500)
end
elseif wuesteselect == 2 then
pc.warp(296800, 547100)
end
elseif selectmap == 5 then
say_title("Warpring")
say("Wohin möchtest du Teleportiert werden?")
local eisselect = select("Anfang","Mitte","Abbrechen")
if eisselect == 3 then
return
elseif eisselect == 1 then
if empire == 1 then
pc.warp(434200, 290600)
elseif empire == 2 then
pc.warp(375200, 174900)
elseif empire == 3 then
pc.warp(491800, 173600)
end
elseif eisselect == 2 then
pc.warp(436500, 215400)
end
elseif selectmap == 6 then
say_title("Warpring")
say("Wohin möchtest du Teleportiert werden?")
local feuerselect = select("Anfang","Mitte","Abbrechen")
if feuerselect == 3 then
return
elseif feuerselect == 1 then
if empire == 1 then
pc.warp(599400, 756300)
elseif empire == 2 then
pc.warp(597800, 622200)
elseif empire == 3 then
pc.warp(730700, 689800)
end
elseif feuerselect == 2 then
pc.warp(600800, 687100)
end
end
end
end
end
reih die Zeilen mal ordentlich ein..
MfG
|
|
|
09/03/2013, 16:51
|
#8934
|
elite*gold: 0
Join Date: Aug 2012
Posts: 66
Received Thanks: 2
|
Hi I have a problem with this quest:
P.S: I have to mention that I have not changed at all, this is original quest SG
Sorry for my bad english...
Code:
quest ring_detect begin
state say_ring_of_ipkn begin
when letter begin
setskin(NOWINDOW)
makequestbutton("The ring talked to me")
q.set_title("The ring talked to me")
q.start()
end
when button begin
say(locale.NOTICE_COLOR.."The ring talked to me"..locale.NORMAL_COLOR)
say("You must be surprised to see talking ring?")
say("Well.. good. Do you want to have a deal?")
say("I want to go out of here. But to do that")
say("I need your help.")
say("That's nothing much. But if you do it for me")
say("I will reward you")
say("What do you say?")
say("")
local b=select("Listen to the ring", "Refuse")
if 1==b then
say("Good. Very good. Of course")
say("I want your Good/evil points. If you can give me[ENTER]I will make you invisible for one hour")
say("What a good deal. Isn't it?")
local b=select("Accept", "Refuse")
if 1==b then
elseif 2==b then
setstate(start)
q.done()
else
say("UNKNOWN BUTTON ["..b.."]")
end
elseif 2==b then
say("Can you do this next time?")
say("why did you throw me into fire if you were going to refuse?")
say("Don't you think? Before the fire goes out")
say("think one more time")
say("")
if pc.getf("ring_first_detect", "__status")==ring_first_detect.complete then
say("Do you want to destroy the ring?")
local b=select("Yes", "No")
if 1==b then
if pc.getf("ring_destroy", "__status")!=ring_destroy.start then
say("You are already in the middle of the quest")
say("Go to Infernal Flame Field and destroy the ring !")
else
setstate(start)
q.done()
end
elseif 2==b then
setstate(start)
q.done()
else
say("UNKNOWN BUTTON ["..b.."]")
end
end
else
say("UNKNOWN BUTTON ["..b.."]")
end
end
when info begin
say(locale.NOTICE_COLOR.."The ring talked to me"..locale.NORMAL_COLOR)
say("You must be surprised to see talking ring?")
say("Well.. good. Do you want to have a deal?")
say("I want to go out of here. But to do that")
say("I need your help.")
say("That's nothing much. But if you do it for me")
say("I will reward you")
say("What do you say?")
say("")
local b=select("Listen to the ring", "Refuse")
if 1==b then
say("Good. Very good. Of course")
say("I want your Good/evil points. If you can give me[ENTER]I will make you invisible for one hour")
say("What a good deal. Isn't it?")
local b=select("Accept", "Refuse")
if 1==b then
elseif 2==b then
setstate(start)
q.done()
else
say("UNKNOWN BUTTON ["..b.."]")
end
elseif 2==b then
say("Can you do this next time?")
say("why did you throw me into fire if you were going to refuse?")
say("Don't you think? Before the fire goes out")
say("think one more time")
say("")
if pc.getf("ring_first_detect", "__status")==ring_first_detect.complete then
say("Do you want to destroy the ring?")
local b=select("Yes", "No")
if 1==b then
if pc.getf("ring_destroy", "__status")!=ring_destroy.start then
say("You are already in the middle of the quest")
say("Go to Infernal flame field and destroy the ring !")
else
setstate(start)
q.done()
end
elseif 2==b then
setstate(start)
q.done()
else
say("UNKNOWN BUTTON ["..b.."]")
end
end
else
say("UNKNOWN BUTTON ["..b.."]")
end
end
end
state say_ring_of_thor begin
when letter begin
setskin(NOWINDOW)
makequestbutton("The ring talked to me")
q.set_title("The ring talked to me")
q.start()
end
when button begin
say(locale.NOTICE_COLOR.."The ring talked to me"..locale.NORMAL_COLOR)
say("You must be surprised to see talking ring?")
say("Well.. good. Do you want to have a deal?")
say("I want to go out of here. But to do that")
say("I need your help.")
say("That's nothing much. But if you do it for me")
say("I will reward you")
say("What do you say?")
say("")
local b=select("Listen to the ring", "Refuse")
if 1==b then
say("Good. Very good. Of course")
say("I want your Good/evil points. If you can give me[ENTER]I will make you have bonus on duel for an hour")
say("What a good deal. Isn't it?")
local b=select("Accept", "Refuse")
if 1==b then
elseif 2==b then
setstate(start)
q.done()
else
say("UNKNOWN BUTTON ["..b.."]")
end
elseif 2==b then
say("Can you do this next time?")
say("why did you throw me into fire if you were going to refuse?")
say("Don't you think? Before the fire goes out")
say("think one more time")
say("")
if pc.getf("ring_first_detect", "__status")==ring_first_detect.complete then
say("Do you want to destroy the ring?")
local b=select("Yes", "No")
if 1==b then
if pc.getf("ring_destroy", "__status")!=ring_destroy.start then
say("You are already in the middle of the quest")
say("Go to Infernal Flame Field and destroy the ring !")
else
setstate(start)
q.done()
end
elseif 2==b then
setstate(start)
q.done()
else
say("UNKNOWN BUTTON ["..b.."]")
end
end
else
say("UNKNOWN BUTTON ["..b.."]")
end
end
when info begin
say(locale.NOTICE_COLOR.."The ring talked to me"..locale.NORMAL_COLOR)
say("You must be surprised to see talking ring?")
say("Well.. good. Do you want to have a deal?")
say("I want to go out of here. But to do that")
say("I need your help.")
say("That's nothing much. But if you do it for me")
say("I will reward you")
say("What do you say?")
say("")
local b=select("Listen to the ring", "Refuse")
if 1==b then
say("Good. Very good. Of course")
say("I want your Good/evil points. If you can give me[ENTER]I will make you have bonus on duel for an hour")
say("What a good deal. Isn't it?")
local b=select("Accept", "Refuse")
if 1==b then
elseif 2==b then
setstate(start)
q.done()
else
say("UNKNOWN BUTTON ["..b.."]")
end
elseif 2==b then
say("Can you do this next time?")
say("why did you throw me into fire if you were going to refuse?")
say("Don't you think? Before the fire goes out")
say("think one more time")
say("")
if pc.getf("ring_first_detect", "__status")==ring_first_detect.complete then
say("Do you want to destroy the ring?")
local b=select("Yes", "No")
if 1==b then
if pc.getf("ring_destroy", "__status")!=ring_destroy.start then
say("You are already in the middle of the quest")
say("Go to Infernal flame field and destroy the ring !")
else
setstate(start)
q.done()
end
elseif 2==b then
setstate(start)
q.done()
else
say("UNKNOWN BUTTON ["..b.."]")
end
end
else
say("UNKNOWN BUTTON ["..b.."]")
end
end
end
state say_ring_of_levi begin
when letter begin
setskin(NOWINDOW)
makequestbutton("The ring talked to me")
q.set_title("The ring talked to me")
q.start()
end
when button begin
say(locale.NOTICE_COLOR.."The ring talked to me"..locale.NORMAL_COLOR)
say("You must be surprised to see talking ring?")
say("Well.. good. Do you want to have a deal?")
say("I want to go out of here. But to do that")
say("I need your help.")
say("That's nothing much. But if you do it for me")
say("I will reward you")
say("What do you say?")
say("")
local b=select("Listen to the ring", "Refuse")
if 1==b then
say("Good. Very good. Of course")
say("I want your Good/evil points. If you can give me[ENTER]I will give you double EXP points for an hour")
say("What a good deal. Isn't it?")
local b=select("Accept", "Refuse")
if 1==b then
elseif 2==b then
setstate(start)
q.done()
else
say("UNKNOWN BUTTON ["..b.."]")
end
elseif 2==b then
say("Can you do this next time?")
say("why did you throw me into fire if you were going to refuse?")
say("Don't you think? Before the fire goes out")
say("think one more time")
say("")
if pc.getf("ring_first_detect", "__status")==ring_first_detect.complete then
say("Do you want to destroy the ring?")
local b=select("Yes", "No")
if 1==b then
if pc.getf("ring_destroy", "__status")!=ring_destroy.start then
say("You are already in the middle of the quest")
say("Go to Infernal flame field and destroy the ring !")
else
setstate(start)
q.done()
end
elseif 2==b then
setstate(start)
q.done()
else
say("UNKNOWN BUTTON ["..b.."]")
end
end
else
say("UNKNOWN BUTTON ["..b.."]")
end
end
when info begin
say(locale.NOTICE_COLOR.."The ring talked to me"..locale.NORMAL_COLOR)
say("You must be surprised to see talking ring?")
say("Well.. good. Do you want to have a deal?")
say("I want to go out of here. But to do that")
say("I need your help.")
say("That's nothing much. But if you do it for me")
say("I will reward you")
say("What do you say?")
say("")
local b=select("Listen to the ring", "Refuse")
if 1==b then
say("Good. Very good. Of course")
say("I want your Good/evil points. If you can give me[ENTER]I will give you double EXP points for an hour")
say("What a good deal. Isn't it?")
local b=select("Accept", "Refuse")
elseif 2==b then
setstate(start)
q.done()
else
say("UNKNOWN BUTTON ["..b.."]")
end
elseif 2==b then
say("Can you do this next time?")
say("why did you throw me into fire if you were going to refuse?")
say("Don't you think? Before the fire goes out")
say("think one more time")
say("")
if pc.getf("ring_first_detect", "__status")==ring_first_detect.complete then
say("Do you want to destroy the ring?")
local b=select("Yes", "No")
if 1==b then
if pc.getf("ring_destroy", "__status")!=ring_destroy.start then
say("You are already in the middle of the quest")
say("Go to Infernal flame field and destroy the ring !")
else
setstate(start)
q.done()
end
elseif 2==b then
setstate(start)
q.done()
else
say("UNKNOWN BUTTON ["..b.."]")
end
end
else
say("UNKNOWN BUTTON ["..b.."]")
end
end
end
state start begin
when 12000.take with is_test_server() and item.vnum==40002 and item.count>=1 begin
setstate(say_ring_of_levi)
end
when 12000.take with is_test_server() and item.vnum==40003 and item.count>=1 begin
setstate(say_ring_of_thor)
end
when 12000.take with is_test_server() and item.vnum==40004 and item.count>=1 begin
setstate(say_ring_of_ipkn)
end
when 40002.use with is_test_server() begin
say("I was trying to wear the ring")
say("I fell it on the ground cause it was too cold")
say("Somehow this ring is trying to tell me ")
say("to put it back into the fire.")
say("")
say("I don¡¯t think it really did talked to me...")
end
when 40003.use with is_test_server() begin
say("I was trying to wear the ring")
say("I fell it on the ground cause it was too cold")
say("Somehow this ring is trying to tell me ")
say("to put it back into the fire.")
say("")
say("I don¡¯t think it really did talked to me...")
end
when 40004.use with is_test_server() begin
say("I was trying to wear the ring")
say("I fell it on the ground cause it was too cold")
say("Somehow this ring is trying to tell me ")
say("to put it back into the fire.")
say("")
say("I don¡¯t think it really did talked to me...")
end
end
state __COMPLETE__ begin
when enter begin
q.done()
end
end
end
this is installation error:
PHP Code:
ring_use.quest:330:syntax error : [string "say_ring_of_levi"]:22: <eof> expected near `elseif' Abort (core dumped)
|
|
|
09/04/2013, 13:24
|
#8935
|
elite*gold: 2
Join Date: Nov 2008
Posts: 628
Received Thanks: 1,633
|
Bin dabei eine Capture the Flag Quest zu schreiben. Läuft auch alles super derzeit.
Jedoch habe ich ein Problem:
PHP Code:
when kill begin --with npc.is_pc() and npc.get_empire() != pc.get_empire() and npc.get_vid() == game.get_event_flag("Roteflagge") begin game.set_event_flag("Roteflagge", 0) notice_all("Der Träger der roten Flagge wurde getötet!") mob.spawn(30001, pc.get_local_x(), pc.get_local_y(), 1) -- Rote Flagge -- return end
Egal ob ich die Abfragen hinten auskommentiere oder nicht, er führt alles darunter 2mal aus!
Sprich : Wenn ich einen Spieler kille, gibt er mir den notice_all 2mal aus.
Und spawnt die Flagge 2 mal, obwohl sie ja nur 1mal aufgenommen wurde :/
Wenn ich aber beispielsweise:
PHP Code:
when 101.kill begin
Mache zum test, gibt er es nur einmal aus.
Meine Frage nun: Wieso gibt er mir bei einem Spieler alles doppelt aus? :x
|
|
|
09/04/2013, 13:59
|
#8936
|
elite*gold: 50
Join Date: Mar 2013
Posts: 2,401
Received Thanks: 1,613
|
Warum? Keine Ahnung
Wie verhindern? Gameflag Roteflagge wird ja auf 0 gesetzt:
PHP Code:
when kill begin --with npc.is_pc() and npc.get_empire() != pc.get_empire() and npc.get_vid() == game.get_event_flag("Roteflagge") begin if game.get_event_flag("Roteflagge") > 0 then game.set_event_flag("Roteflagge", 0) notice_all("Der Träger der roten Flagge wurde getötet!") mob.spawn(30001, pc.get_local_x(), pc.get_local_y(), 1) -- Rote Flagge -- return end end
Dann sollte alles nur 1x ausgeführt werden
|
|
|
09/04/2013, 17:17
|
#8937
|
elite*gold: 0
Join Date: Aug 2013
Posts: 301
Received Thanks: 88
|
Kann mir einer was hinzufügen?
PHP Code:
quest blutstein_grotte begin state start begin when 20091.chat. "In die Grotte" with pc.get_level() >= 75 begin say_title("Seon-Pyeong") say("") say("Hallo "..pc.get_name().."") say("Du möchtest in die Grotte?") say("Ich kann dich gerne hinein") say("lassen, jedoch musst du mir ein") say("Blutstein besorgen, damit ich sehen") say("kann das du auch würdig genug bist,") say("um die Grotte zu überstehen!") say("") say("Hast du einen dabei?") if select("Ja", "Nein") == 2 then return end if pc.countitem(30190) != 0 then pc.remove_item(30190, 1) pc.warp(10000, 1208000) else say_titel("Seon-Pyeong") say("") say("Du hast kein Blutstein dabei") say("Ich kann dich daher nicht") say("in die Grotte Lassen") say("") end end end end
Es soll auch ein Button kommen, wenn man noch unter Level75 ist, und sagt das man nicht in die Grotte rein kommt weil Lv zu niedrig.
Wäre sehr nett, und hoffe es ist Richtige Section
MFG
Fitchi
|
|
|
09/04/2013, 17:29
|
#8938
|
elite*gold: 210
Join Date: Jun 2013
Posts: 1,203
Received Thanks: 390
|
Quote:
Originally Posted by ©Fitchi
Kann mir einer was hinzufügen?
PHP Code:
quest blutstein_grotte begin state start begin when 20091.chat. "In die Grotte" with pc.get_level() >= 75 begin say_title("Seon-Pyeong") say("") say("Hallo "..pc.get_name().."") say("Du möchtest in die Grotte?") say("Ich kann dich gerne hinein") say("lassen, jedoch musst du mir ein") say("Blutstein besorgen, damit ich sehen") say("kann das du auch würdig genug bist,") say("um die Grotte zu überstehen!") say("") say("Hast du einen dabei?") if select("Ja", "Nein") == 2 then return end if pc.countitem(30190) != 0 then pc.remove_item(30190, 1) pc.warp(10000, 1208000) else say_titel("Seon-Pyeong") say("") say("Du hast kein Blutstein dabei") say("Ich kann dich daher nicht") say("in die Grotte Lassen") say("") end end end end
Es soll auch ein Button kommen, wenn man noch unter Level75 ist, und sagt das man nicht in die Grotte rein kommt weil Lv zu niedrig.
Wäre sehr nett, und hoffe es ist Richtige Section
MFG
Fitchi
|
Bitteschön
PHP Code:
quest blutstein_grotte begin state start begin when 20091.chat. "In die Grotte" begin if pc.get_level >= 75 then say_title("Seon-Pyeong") say("") say("Hallo "..pc.get_name().."") say("Du möchtest in die Grotte?") say("Ich kann dich gerne hinein") say("lassen, jedoch musst du mir ein") say("Blutstein besorgen, damit ich sehen") say("kann das du auch würdig genug bist,") say("um die Grotte zu überstehen!") say("") say("Hast du einen dabei?") if select("Ja", "Nein") == 2 then return end if pc.countitem(30190) != 0 then pc.remove_item(30190, 1) pc.warp(10000, 1208000) else say_title("Seon-Pyeong") say("") say("Du hast kein Blutstein dabei") say("Ich kann dich daher nicht") say("in die Grotte Lassen") say("") end else say_title("Sean-Pyeong") say("") say("Dein Level ist zu Niedrig!") say("Du musst Level 75 erreicht haben") say("um in die Grotte zu kommen.") end end end end
|
|
|
09/04/2013, 18:23
|
#8939
|
elite*gold: 0
Join Date: Aug 2013
Posts: 301
Received Thanks: 88
|
Quote:
Originally Posted by .LuckyStrike
Bitteschön
PHP Code:
quest blutstein_grotte begin
state start begin
when 20091.chat. "In die Grotte" begin
if pc.get_level >= 75 then
say_title("Seon-Pyeong")
say("")
say("Hallo "..pc.get_name().."")
say("Du möchtest in die Grotte?")
say("Ich kann dich gerne hinein")
say("lassen, jedoch musst du mir ein")
say("Blutstein besorgen, damit ich sehen")
say("kann das du auch würdig genug bist,")
say("um die Grotte zu überstehen!")
say("")
say("Hast du einen dabei?")
if select("Ja", "Nein") == 2 then return end
if pc.countitem(30190) != 0 then
pc.remove_item(30190, 1)
pc.warp(10000, 1208000)
else
say_title("Seon-Pyeong")
say("")
say("Du hast kein Blutstein dabei")
say("Ich kann dich daher nicht")
say("in die Grotte Lassen")
say("")
end
else
say_title("Sean-Pyeong")
say("")
say("Dein Level ist zu Niedrig!")
say("Du musst Level 75 erreicht haben")
say("um in die Grotte zu kommen.")
end
end
end
end
|
Der OT-Sura lässt sich anklicken, und wenn ich den Button drücke schließt sich alles. Also kommt sozusagen garnichts.
|
|
|
09/04/2013, 18:27
|
#8940
|
elite*gold: 210
Join Date: Jun 2013
Posts: 1,203
Received Thanks: 390
|
Quote:
Originally Posted by ©Fitchi
Der OT-Sura lässt sich anklicken, und wenn ich den Button drücke schließt sich alles. Also kommt sozusagen garnichts.
|
PHP Code:
quest blutstein_grotte begin
state start begin
when 20091.chat. "In die Grotte" begin
say_title("Seon-Pyeong")
say("")
say("Hallo "..pc.get_name().."")
say("Du möchtest in die Grotte?")
say("Ich kann dich gerne hinein")
say("lassen, jedoch musst du mir ein")
say("Blutstein besorgen, damit ich sehen")
say("kann das du auch würdig genug bist,")
say("um die Grotte zu überstehen!")
say("")
say("Hast du einen dabei?")
local x = select("Ja", "Nein")
if x == 1 and pc.get_level >= 75 then
if pc.countitem(30190) != 0 then
pc.remove_item(30190, 1)
pc.warp(10000, 1208000)
else
say_title("Seon-Pyeong")
say("")
say("Du hast kein Blutstein dabei")
say("Ich kann dich daher nicht")
say("in die Grotte Lassen")
say("")
end
else
say_title("Sean-Pyeong")
say("")
say("Dein Level ist zu Niedrig!")
say("Du musst Level 75 erreicht haben")
say("um in die Grotte zu kommen.")
end
end
end
end
|
|
|
All times are GMT +1. The time now is 07:04.
|
|