[Release]Neue Quest!

03/20/2012 11:39 .HC'Destrox#16
Der Mapindex ist nicht 200 im Dungeon.
Wie √π. schon sagte, ist der Mapindex von 2000000 bis 2009999,
sieht man auch in der DT-Quest (Deviltowerzone.quest).
Schreib:
Code:
when login with pc.in_dungeon() and pc.get_map_index() >= 2000000 and pc.get_map_index() <= 2009999 begin
Mfg, Destroyer446
03/20/2012 11:49 Prince-Samu#17
Und gibts eine erklährung wieso das so ist??
03/20/2012 14:31 Zymos#18
Quest umschreiben ist kein ding.
Ich frage mich eher welche Map hier benötigt wird?
03/20/2012 15:53 Prince-Samu#19
Zymos ist gm_guild_build oder so warp befehle 832 0 (83200,0)
03/20/2012 16:19 Zymos#20
eui, is meine tanaka map.. Hmm

Wie genau soll diese aussehen? Wenn ich daheim bin kann ich sie mir mal genauer anschauen und umschreiben ^^

EDIT:

Hab sie etwas angepasst, so das sie keine Quest mehr blockt und code etwas ansehnlicher gemacht.. Aber nur on Notepad angepasst..

PHP Code:
quest pvp begin
    state start begin
        when login begin
            
if pc.get_map_index() == 200 then
                set_state
(information)
            else
                
end
            
        end
    end
    state information begin
        when letter begin
            send_letter
("Ein Metin bedroht uns!")
        
end
        when button 
or info begin
            say_title
("Eine schlimme Bedrohung!")
            
say("Soeben ist ein Metin aufgetaucht.")
            
say("Bitte töte den Metin")
            
say("")
        
end
        when kill begin
            
if npc.get_race() == 8003 then
                mob
.spawn151 103 136 111)
                
mob.spawn152 111 97 111)
                
mob.spawn153 171 94 111)
                
mob.spawn154 169 157 111)
                
mob.spawn155 116 164 111)
                
mob.spawn191 116 165 111)
                
mob.spawn192 103 136 111)
                
mob.spawn193 171 94 111)
                
mob.spawn194 116 164 111)
                
pc.setqf("state"9)
                
q.set_counter("Monster"9)
            elseif 
npc.get_race() >= 151 and npc.get_race <= 155 or npc.get_race() >= 191 and npc.get_race <= 194 then
                local count 
pc.getqf("state") - 1
                
if count == 0 then
                    mob
.spawn8005 139 123 111)
                else
                    
pc.setqf("state",count)
                    
q.set_counter("9"count)
                    
chat("Ihr habt ein Monster getötet")
                
end
            
elseif npc.get_race() == 8005 then
                mob
.spawn331 103 136 111)
                
mob.spawn332 111 97 111)
                
mob.spawn333 171 94 111)
                
mob.spawn334 169 157 111)
                
mob.spawn391 116 164 111)
                
mob.spawn392 116 165 111)
                
mob.spawn393 103 136 111)
                
mob.spawn394 171 94 111)
                
pc.setqf("state"8)
                
q.set_counter("Monster"8)
            elseif 
npc.get_race() >= 331 and npc.get_race <= 334 or npc.get_race() >= 391 and npc.get_race <= 394 then
                local count 
pc.getqf("state") - 1
                
if count == 0 then
                    mob
.spawn8007 139 123 111)
                else
                    
pc.setqf("state",count)
                    
q.set_counter("8"count)
                    
chat("Ihr habt ein Monster getötet")
                
end
            
elseif npc.get_race() == 8007 then
                mob
.spawn491 103 136 111)
                
mob.spawn492 111 97 111)
                
mob.spawn493 171 94 111)
                
mob.spawn494 169 157 111)
                
mob.spawn591 116 164 111)
                
mob.spawn595 116 165 111)
                
mob.spawn531 103 136 111)
                
mob.spawn532 171 94 111)
                
mob.spawn533 103 136 111)
                
mob.spawn534 111 94 111)
                
pc.setqf("state"10)
                
q.set_counter("Monster"10)
            elseif 
npc.get_race() >= 491 and npc.get_race <= 494 or npc.get_race() >= 591 and npc.get_race <= 534 then
                local count 
pc.getqf("state") - 1
                
if count == 0 then
                    mob
.spawn8009 139 123 111)
                else
                    
pc.setqf("state",count)
                    
q.set_counter("10"count)
                
chat("Ihr habt ein Monster getötet")
                
end
            
elseif npc.get_race() == 8009 then
                mob
.spawn691 103 136 111)
                
mob.spawn692 111 97 111)
                
mob.spawn693 171 157 111)
                
mob.spawn791 169 165 111)
                
mob.spawn792 116 94 111)
                
mob.spawn793 103 136 111)
                
mob.spawn794 111 94 111)
                
pc.setqf("state"7)
                
q.set_counter("Monster"7)
            elseif 
npc.get_race() >= 791 and npc.get_race <= 794 or npc.get_race() == 614 or npc.get_race() == 692 or npc.get_race() == 693 then
                local count 
pc.getqf("state") - 1
                
if count == 0 then
                    mob
.spawn795 139 123 111)
                else
                    
pc.setqf("state",count)
                    
q.set_counter("7"count)
                    
chat("Ihr habt ein Monster getötet")
                
end
            
elseif npc.get_race() == 795 then
                mob
.spawn993 139 123 111)
            elseif 
npc.get_race() 993 then
                mob
.spawn1068 139 123 111)
            elseif 
npc.get_race() == 1068 then
                mob
.spawn1069 139 123 111)
            elseif 
npc.get_race() == 1069 then
                mob
.spawn1070 139 123 111)
            elseif 
npc.get_race() == 1070 then
                mob
.spawn1071 139 123 111)
            elseif 
npc.get_race() == 1071 then
                mob
.spawn11505 139 123 111)
            elseif 
npc.get_race() == 11505 then
                mob
.spawn1401 103 136 111)
                
mob.spawn1402 111 97 111)
                
mob.spawn1403 171 94 111)
                
mob.spawn1501 169 157 111)
                
mob.spawn1502 116 164 111)
                
mob.spawn1503 116 165 111)
                
mob.spawn1601 103 136 111)
                
mob.spawn1602 111 97 111)
                
mob.spawn1603 171 94 111)
                
mob.spawn7008 169 157 111)
                
mob.spawn7009 116 164 111)
                
mob.spawn7010 116 165 111)
                
pc.setqf("state"12)
                
q.set_counter("Monster"12)
            elseif 
npc.get_race() >= 1401 and npc.get_race <= 1403 or npc.get_race() >= 1501 and npc.get_race <= 1503 or
                
pc.get_race() >= 1601 and npc.get_race <= 1603 or pc.get_race() >= 7008 and npc.get_race <= 7010 then
                local count 
pc.getqf("state") - 1
                
if count == 0 then
                    mob
.spawn11510 139 123 111)
                else
                    
pc.setqf("state",count)
                    
q.set_counter("12"count)
                    
chat("Ihr habt ein Monster getötet")
                
end
            
elseif npc.get_race() == 11510 then
                mob
.spawn1095 103 136 111)
                
mob.spawn1094 111 97 111)
                
mob.spawn1093 171 94 111)
                
mob.spawn5002 169 157 111)
                
mob.spawn2594 116 164 112)
                
mob.spawn2402 116 165 112)
                
mob.spawn2403 103 136 112)
                
mob.spawn5162 111 97 112)
                
mob.spawn5163 171 94 112)
                
mob.spawn2306 169 157 111)
                
mob.spawn2191 116 164 111)
                
mob.spawn2091 116 165 112)
                
pc.setqf("state"12)
                
q.set_counter("Monster"12)
            elseif 
npc.get_race() >= 1093 and npc.get_race <= 1095 or npc.get_race() == 5002 or npc.get_race() == 2594 or npc.get_race() == 2402 or
                
npc.get_race() == 2403 or npc.get_race() == 5163 or npc.get_race() == 2306 or npc.get_race() == 2191 or npc.get_race() == 2091 then
                local count 
pc.getqf("state") - 1
                
if count == 0 then
                    mob
.spawn8024 139 123 111)
                else
                    
pc.setqf("state",count)
                    
q.set_counter("12"count)
                    
chat("Ihr habt ein Monster getötet")
                
end
            
elseif npc.get_race() == 8024 then
                say
("Du hast die Bedrohung beseitigt du wirst belohnt")
            
end
        end
        end
    end
end 
03/20/2012 22:42 Prince-Samu#21
Hmm hast du diese quest schon getestet ich versuch sie morgen
03/21/2012 00:46 Zymos#22
nöö habe ich nicht.
Kann metin hier nicht starten, da kein Grafikkartentreiber installiert ist
Also alles auf Theorie :)