[Hilfe]Questprobleme

11/24/2012 10:41 Kevin93xx#1
Hallo zusammen,

habe gerade Quests eingefügt und leider funktioniert diese Quest nicht.
PHP Code:
quest fbtruhe begin 
    state start begin 
        when 50127.
use begin 
            chat
("Du hast die Truhe geöffnet!") 
                
local r = math.random(1, 43) 
            if 
1==r then 
                pc
.give_item2(50401, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
2==r then 
                pc
.give_item2(50402, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
3==r then 
                pc
.give_item2(50403, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
4==r then 
                pc
.give_item2(50404, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
5==r then 
                pc
.give_item2(50405, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
6==r then 
                pc
.give_item2(50416, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
7==r then 
                pc
.give_item2(50417, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
8==r then 
                pc
.give_item2(50418, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
9==r then 
                pc
.give_item2(50419, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
10==r then 
                pc
.give_item2(50420, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
11==r then 
                pc
.give_item2(50431, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
12==r then 
                pc
.give_item2(50432, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
13==r then 
                pc
.give_item2(50433, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
14==r then 
                pc
.give_item2(50434, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
15==r then 
                pc
.give_item2(50435, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
16==r then 
                pc
.give_item2(50446, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
17==r then 
                pc
.give_item2(50447, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
18==r then 
                pc
.give_item2(50448, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
19==r then 
                pc
.give_item2(50449, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
20==r then 
                pc
.give_item2(50450, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
21==r then 
                pc
.give_item2(50461, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
22==r then 
                pc
.give_item2(50462, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
23==r then 
                pc
.give_item2(50463, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
24==r then 
                pc
.give_item2(50464, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
25==r then 
                pc
.give_item2(50465, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
26==r then 
                pc
.give_item2(50466, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
27==r then 
                pc
.give_item2(50476, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
28==r then 
                pc
.give_item2(50477, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
29==r then 
                pc
.give_item2(50478, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
30==r then 
                pc
.give_item2(50479, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
31==r then 
                pc
.give_item2(50480, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
32==r then 
                pc
.give_item2(50481, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
33==r then 
                pc
.give_item2(50491, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
34==r then 
                pc
.give_item2(50492, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
35==r then 
                pc
.give_item2(50493, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
36==r then 
                pc
.give_item2(50494, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
37==r then 
                pc
.give_item2(50495, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
38==r then 
                pc
.give_item2(50496, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
39==r then 
                pc
.give_item2(50506, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
40==r then 
                pc
.give_item2(50507, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
41==r then 
                pc
.give_item2(50508, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
42==r then 
                pc
.give_item2(50509, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
43==r then 
                pc
.give_item2(50510, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
44==r then 
                pc
.give_item2(50511, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
45==r then 
                pc
.give_item2(50508, 1) 
                
pc.remove_item(50134, 1) 
            elseif 
46==r then 
                pc
.give_item2(50508, 1) 
                
pc.remove_item(50134, 1) 
            
end 
        end 
    end 
end 
Ich denke es liegt nicht an der Quest sondern das ich Iwas falsch gemacht habe. Habe die Quest diesem Item zugeordnet
[Only registered and activated users can see links. Click Here To Register...]
habe das Item neu eingefügt. Kann es sein das es der Falsche Type ist? oder was könnte das Problem sein?
11/24/2012 11:08 .TRON™#2
Auch hier würde ich dir gerne helfen, leider antwortest du nicht ihn Skype.
Sind ziemlich leichte Probleme die du da hast, einfach mich anschreiben.

Mfg
11/24/2012 11:39 skurto#3
Is this item type 18 in your database?
11/24/2012 11:48 .TRON™#4
Hat sich bereits geklärt konnte ihm helfen.
Somit wünsche ich dir viel Spaß mit deinen Drops.

Mfg
06/13/2013 22:31 hihuho#5
habe das selbe Problem was muss ich machen?
06/13/2013 22:42 Coniesan#6
hier lag das Problem daran, dass das Item den Type 18 brauchte (so weit ich das entnehmen kann) ps. s.h. Datum...!
06/14/2013 03:30 lfcmaus#7
typ 18 und subtype 10