[SERVICE] Die Questkontrolle

08/30/2010 19:12 xIAMx#241
Nene
08/30/2010 19:14 TTapi#242
Quote:
Originally Posted by Yoshix3 View Post
Du musst machen with pc.get_level() = 80 then

wenns nicht klappt dann probier mal with pc.get_level() == 80 then
funzt net :S

sieht jtz so aus:

quest levelup begin
state start begin
when levelup begin with pc.get_level() == 80 then
notice_all(pc.get_name().. " hat level 80 erreicht.")
notice_all("Wir gratulieren.")
end
end
end

Fehler is immer noch der gleiche...
08/30/2010 20:34 Benhero#243
@LolIsBack Hier
PHP Code:
quest levelup_item begin
    state start begin
        when levelup begin
            chat
("Du wurdest gerade Levelup und hast ein Item bekommen!")
            if 
pc job == 0 then
                pc
.give_item2(229) -- Item für Krieger
            
elseif pc job == 1 then
                pc
.give_item2(229) -- Item für Ninja
            
elseif pc job == 2 then
                pc
.give_item2(229) -- Item für Sura
            
elseif pc job == 3 then
                pc
.give_item2(229) -- Item für Schamie
            end
        end
        when levelup with pc
.get_level() == 80 begin -- Wenn man lvl80 wird
            chat
("Du bist gerade Level 80 geworde, udn hat eine Lv80iger Waffe bekommen!")
            if 
pc job == 0 then
                pc
.give_item2(229) -- Item für Krieger
            
elseif pc job == 1 then
                pc
.give_item2(229) -- Item für Ninja
            
elseif pc job == 2 then
                pc
.give_item2(229) -- Item für Sura
            
elseif pc job == 3 then
                pc
.give_item2(229) -- Item für Schamie
            end
        end
        when levelup with pc
.get_level() == 120 begin -- Wenn man lvl 90 wird
            chat
("Du bist gerade Level 90 geworden und hast eine Lv90iger Waffe bekommen!")
            if 
pc job == 0 then
                pc
.give_item2(229) -- Item für Krieger
            
elseif pc job == 1 then
                pc
.give_item2(229) -- Item für Ninja
            
elseif pc job == 2 then
                pc
.give_item2(229) -- Item für Sura
            
elseif pc job == 3 then
                pc
.give_item2(229) -- Item für Schamie
            end
        end
    end
end 
-------------------
@TTapi
Hier...:
PHP Code:
quest levelup begin
    state start begin
        when levelup with pc
.get_level() == 80 begin
            notice_all
(pc.get_name().. " hat level 80 erreicht.")
            
notice_all("Wir gratulieren.")
        
end
    end
end 
-------------------
@kabel24 nein da ist Nichts falsch..
schaue sie mir nochmal an.. habe aber im mom einiges um die ohren...

Greatz Benhero (Quest Gott xD)
08/30/2010 20:59 TTapi#244
Quote:
Originally Posted by Benhero View Post
@TTapi
Hier...:
PHP Code:
quest levelup begin
    state start begin
        when levelup with pc
.get_level() == 80 begin
            notice_all
(pc.get_name().. " hat level 80 erreicht.")
            
notice_all("Wir gratulieren.")
        
end
    end
end 
funzt .thx!
08/31/2010 19:12 mollweide#245
PHP Code:
quest durchsage begin
    state start begin
        when 70001.
use with pc.is_gm() begin
            say_title
("Willst du eine Durchsage durchführen?")
            
say("Text der Durchsage?")
            
local sendtext input()
            
timer("devildown_time1"60*1)
        
end    
        when devildown_time1
.timer begin 
            notice_all
("###"..sendtext.."###"
            
notice_all(sendtext)             
            
timer("devildown_time2"60*1)
        
end
        when devildown_time2
.timer begin
            notice_all
("###"..sendtext.."###")
            
notice_all(sendtext)             
            
timer("devildown_time1"60*1)
        
end    
    end
end 
Kommt einfach keine notice nachdem der Timer abgelaufen ist.
Wenn ich es ohne Time versuche klappt alles... o.o
Bitte helfen..
08/31/2010 20:41 TTapi#246
Hab schon wieder ne quest :D


Problem: Monster spawnen nicht
08/31/2010 20:47 Benhero#247
@mollweide hier deine Quest:
PHP Code:
quest durchsage begin
    state start begin
        when 70001.
use with pc.is_gm() begin
            say_title
("Willst du eine Durchsage durchführen?")
            
say("Text der Durchsage?")
            
local sendtext input()
            
timer("msg_timer_1"60)
        
end    
        when msg_timer_1
.timer begin 
            notice_all
("###" ..sendtext.. "###"
            
notice_all(sendtext)             
            
timer("msg_timer_2"60)
        
end
        when msg_timer_2
.timer begin
            notice_all
("###" ..sendtext.. "###")
            
notice_all(sendtext)             
            
timer("msg_timer_1"60)
        
end    
    end
end 
----------------------------------------
@TTapi Hier deine Quest:
PHP Code:
quest dt begin
    state start begin
        when 20092.chat
."Boss Spawn Event bekannt geben." with pc.is_gm() begin
            local s
select("Wüste","Eisland")
            if 
s==1 then
                notice_all
("Jong-Pyung:")
                
notice_all("Hey Abenteurer,")
                
notice_all("Die Bosse haben *******")
                
notice_all("eingeholt.")
                
notice_all("Schaut doch mal")
                
notice_all("In der Mitte der Wüste nach.")
                
notice_all("Viel Spaß.")
                
d.set_regen_file("locale/english/map/metin2_map_sungzi_desert_01/regen.txt")
                
d.spawn_mob(10958656321)
                
d.spawn_mob(10938996941)
                
d.spawn_mob(10938126771)
                
d.spawn_mob(10939075561)
                
d.spawn_mob(6918975891)
                
d.spawn_mob(6918975891)
                
d.spawn_mob(6918975891)
                
d.spawn_mob(6918975891)
                
d.spawn_mob(6918975891)
                
d.spawn_mob(6919037031)
                
d.spawn_mob(6919037031)
                
d.spawn_mob(6919037031)
                
d.spawn_mob(6919037031)
                
d.spawn_mob(6919037031)
                
d.spawn_mob(6918126761)
                
d.spawn_mob(6918126761)
                
d.spawn_mob(6918126761)
                
d.spawn_mob(6918126761)
                
d.spawn_mob(6918126761)
                
d.spawn_mob(22918506491)
            elseif 
s==2 then
                notice_all
("Jong-Pyung:")
                
notice_all("Hey Abenteurer,")
                
notice_all("Die Bosse haben *******")
                
notice_all("eingeholt.")
                
notice_all("Schaut doch mal")
                
notice_all("In der Mitte des Eislands nach.")
                
notice_all("Erbeutet was ihr könnt.")
                
notice_all("Viel Spaß.")
                
d.set_regen_file("locale/english/map/map_n_snowm_01/regen.txt")
                
d.spawn_mob(10957226331)
                
d.spawn_mob(6917586491)
                
d.spawn_mob(6917586491)
                
d.spawn_mob(6917586491)
                
d.spawn_mob(6917586491)
                
d.spawn_mob(6917586491)
                
d.spawn_mob(6917586491)
                
d.spawn_mob(6917586491)
                
d.spawn_mob(6917586491)
                
d.spawn_mob(6917586491)
                
d.spawn_mob(6917586491)
                
d.spawn_mob(10937576031)
                
d.spawn_mob(10927845861)
                
d.spawn_mob(9937245431)
                
d.spawn_mob(11927225671)
                
d.spawn_mob(11927646131)
                
d.spawn_mob(13077896331)
            
end
        end    
    end
end 
08/31/2010 20:58 TTapi#248
ouh das ging aber fix :) mal testen :)

EDIT: hm leider immer noch keine mobs gespawnt ;) Na gut dann muss ich eben selber spawnen :)
08/31/2010 21:07 PangerLenis#249
Quote:
Originally Posted by mollweide View Post
PHP Code:
quest durchsage begin
    state start begin
        when 70001.
use with pc.is_gm() begin
            say_title
("Willst du eine Durchsage durchführen?")
            
say("Text der Durchsage?")
            
local sendtext input()
            
timer("devildown_time1"60*1)
        
end    
        when devildown_time1
.timer begin 
            notice_all
("###"..sendtext.."###"
            
notice_all(sendtext)             
            
timer("devildown_time2"60*1)
        
end
        when devildown_time2
.timer begin
            notice_all
("###"..sendtext.."###")
            
notice_all(sendtext)             
            
timer("devildown_time1"60*1)
        
end    
    end
end 
Kommt einfach keine notice nachdem der Timer abgelaufen ist.
Wenn ich es ohne Time versuche klappt alles... o.o
Bitte helfen..
Hab dir was in dienen Thread geschirben!
08/31/2010 21:26 Benhero#250
Wie in meinen Therad?

Greatz Benhero

@TTapi
hier nochmal: Diesmal sollte es aber gehen!
PHP Code:
quest dt begin
    state start begin
        when 20092.chat
."Boss Spawn Event bekannt geben." with pc.is_gm() begin
            local s
select("Wüste","Eisland")
            if 
s==1 then
                notice_all
("Jong-Pyung:")
                
notice_all("Hey Abenteurer,")
                
notice_all("Die Bosse haben *******")
                
notice_all("eingeholt.")
                
notice_all("Schaut doch mal")
                
notice_all("In der Mitte der Wüste nach.")
                
notice_all("Viel Spaß.")
                
d.set_regen_file("locale/english/map/metin2_map_sungzi_desert_01/regen.txt")
                
spawn_mob(10958656321)
                
spawn_mob(10938996941)
                
spawn_mob(10938126771)
                
spawn_mob(10939075561)
                
spawn_mob(6918975891)
                
spawn_mob(6918975891)
                
spawn_mob(6918975891)
                
spawn_mob(6918975891)
                
spawn_mob(6918975891)
                
spawn_mob(6919037031)
                
spawn_mob(6919037031)
                
spawn_mob(6919037031)
                
spawn_mob(6919037031)
                
spawn_mob(6919037031)
                
spawn_mob(6918126761)
                
spawn_mob(6918126761)
                
spawn_mob(6918126761)
                
spawn_mob(6918126761)
                
spawn_mob(6918126761)
                
spawn_mob(22918506491)
            elseif 
s==2 then
                notice_all
("Jong-Pyung:")
                
notice_all("Hey Abenteurer,")
                
notice_all("Die Bosse haben *******")
                
notice_all("eingeholt.")
                
notice_all("Schaut doch mal")
                
notice_all("In der Mitte des Eislands nach.")
                
notice_all("Erbeutet was ihr könnt.")
                
notice_all("Viel Spaß.")
                
d.set_regen_file("locale/english/map/map_n_snowm_01/regen.txt")
                
spawn_mob(10957226331)
                
spawn_mob(6917586491)
                
spawn_mob(6917586491)
                
spawn_mob(6917586491)
                
spawn_mob(6917586491)
                
spawn_mob(6917586491)
                
spawn_mob(6917586491)
                
spawn_mob(6917586491)
                
spawn_mob(6917586491)
                
spawn_mob(6917586491)
                
spawn_mob(6917586491)
                
spawn_mob(10937576031)
                
spawn_mob(10927845861)
                
spawn_mob(9937245431)
                
spawn_mob(11927225671)
                
spawn_mob(11927646131)
                
spawn_mob(13077896331)
            
end
        end    
    end
end 
08/31/2010 23:19 xIvan4ikx#251
Banhero könntest die Quest nochmal überarbeiten?

PHP Code:
quest mob_kill begin
    state start begin
        when 2095.kill begin
            notice_all
(pc.get_name().. " hat " ..mob_name(2095).. " getötet!")
            
pc.setqf("count_" ..mob_name(2095), pc.getqf("count_" ..mob_name(2095)+1))
            
notice_all("Herzlichen Glückwunsch!")
            
notice_all(mob_name(2095).. " wurde schon " ..pc.getqf("count_" ..mob_name(2095)).. " mal getötet!")
        
end
    end
end 
08/31/2010 23:33 Benhero#252
dann musst du schon sagen was passiert wenn du sie startetst..

Greatz Benhero
08/31/2010 23:39 xIvan4ikx#253
Quote:
Originally Posted by Benhero View Post
dann musst du schon sagen was passiert wenn du sie startetst..

Greatz Benhero
Habe ich doch auf Seite 23..
Die Quest geht nicht ganz, also es kommt nur der Name
und das man den Mob gekillt hat, aber kein counter wie oft
man den Mob gekillt hat.
Auch, wenn ich den Mob mehrmals kille.
08/31/2010 23:43 Benhero#254
Kommt "Herzlichen Glückwunsch"?

Wenn nicht teste die:
PHP Code:
quest mob_kill begin
    state start begin
        when 2095.kill begin
            notice_all
(pc.get_name().. " hat " ..mob_name(2095).. " getötet!")
            
pc.setqf("count_" ..mob_name(2095), pc.getqf("count_" ..mob_name(2095))+1)
            
notice_all("Herzlichen Glückwunsch!")
            
notice_all(mob_name(2095).. " wurde schon " ..pc.getqf("count_" ..mob_name(2095)).. " mal getötet!")
        
end
    end
end 
2x KILLEN!
09/01/2010 12:27 The Bull#255
Hab hier auch ne kleine Herausforderung.


PHP Code:
quest adminrelog begin
     state start begin
                
        when 20083.chat
."admin-Reload" begin
            say_title
("GM-NPC:")
            
say ("Du benötigst das Passwort,")
            
say ("das nur GM's wissen")
            
say("Gib Das Passwort ein.")
            
local sname input()
            if 
sname == "Passwort" then
            command
("reload a")
            
end
        end
    end
    end 
Meine Frage nun:
Welcher Quest Befehl muss kommen, damit reload a anerkannt wird?
So nach dem Motto >> "sprich wie ein GM"
Dort hast du ja auch eine Funktion, die eig nur GM's nutzen können.
Deshalb denke ich, das es möglich ist, auch hier sowas ein zu bauen.

Wenn das klappt, wäre die Proxy Sache usw. erledigt

MfG Bull