[Hilfe]Questprobleme

11/24/2012 09: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(143
            if 
1==r then 
                pc
.give_item2(504011
                
pc.remove_item(501341
            elseif 
2==r then 
                pc
.give_item2(504021
                
pc.remove_item(501341
            elseif 
3==r then 
                pc
.give_item2(504031
                
pc.remove_item(501341
            elseif 
4==r then 
                pc
.give_item2(504041
                
pc.remove_item(501341
            elseif 
5==r then 
                pc
.give_item2(504051
                
pc.remove_item(501341
            elseif 
6==r then 
                pc
.give_item2(504161
                
pc.remove_item(501341
            elseif 
7==r then 
                pc
.give_item2(504171
                
pc.remove_item(501341
            elseif 
8==r then 
                pc
.give_item2(504181
                
pc.remove_item(501341
            elseif 
9==r then 
                pc
.give_item2(504191
                
pc.remove_item(501341
            elseif 
10==r then 
                pc
.give_item2(504201
                
pc.remove_item(501341
            elseif 
11==r then 
                pc
.give_item2(504311
                
pc.remove_item(501341
            elseif 
12==r then 
                pc
.give_item2(504321
                
pc.remove_item(501341
            elseif 
13==r then 
                pc
.give_item2(504331
                
pc.remove_item(501341
            elseif 
14==r then 
                pc
.give_item2(504341
                
pc.remove_item(501341
            elseif 
15==r then 
                pc
.give_item2(504351
                
pc.remove_item(501341
            elseif 
16==r then 
                pc
.give_item2(504461
                
pc.remove_item(501341
            elseif 
17==r then 
                pc
.give_item2(504471
                
pc.remove_item(501341
            elseif 
18==r then 
                pc
.give_item2(504481
                
pc.remove_item(501341
            elseif 
19==r then 
                pc
.give_item2(504491
                
pc.remove_item(501341
            elseif 
20==r then 
                pc
.give_item2(504501
                
pc.remove_item(501341
            elseif 
21==r then 
                pc
.give_item2(504611
                
pc.remove_item(501341
            elseif 
22==r then 
                pc
.give_item2(504621
                
pc.remove_item(501341
            elseif 
23==r then 
                pc
.give_item2(504631
                
pc.remove_item(501341
            elseif 
24==r then 
                pc
.give_item2(504641
                
pc.remove_item(501341
            elseif 
25==r then 
                pc
.give_item2(504651
                
pc.remove_item(501341
            elseif 
26==r then 
                pc
.give_item2(504661
                
pc.remove_item(501341
            elseif 
27==r then 
                pc
.give_item2(504761
                
pc.remove_item(501341
            elseif 
28==r then 
                pc
.give_item2(504771
                
pc.remove_item(501341
            elseif 
29==r then 
                pc
.give_item2(504781
                
pc.remove_item(501341
            elseif 
30==r then 
                pc
.give_item2(504791
                
pc.remove_item(501341
            elseif 
31==r then 
                pc
.give_item2(504801
                
pc.remove_item(501341
            elseif 
32==r then 
                pc
.give_item2(504811
                
pc.remove_item(501341
            elseif 
33==r then 
                pc
.give_item2(504911
                
pc.remove_item(501341
            elseif 
34==r then 
                pc
.give_item2(504921
                
pc.remove_item(501341
            elseif 
35==r then 
                pc
.give_item2(504931
                
pc.remove_item(501341
            elseif 
36==r then 
                pc
.give_item2(504941
                
pc.remove_item(501341
            elseif 
37==r then 
                pc
.give_item2(504951
                
pc.remove_item(501341
            elseif 
38==r then 
                pc
.give_item2(504961
                
pc.remove_item(501341
            elseif 
39==r then 
                pc
.give_item2(505061
                
pc.remove_item(501341
            elseif 
40==r then 
                pc
.give_item2(505071
                
pc.remove_item(501341
            elseif 
41==r then 
                pc
.give_item2(505081
                
pc.remove_item(501341
            elseif 
42==r then 
                pc
.give_item2(505091
                
pc.remove_item(501341
            elseif 
43==r then 
                pc
.give_item2(505101
                
pc.remove_item(501341
            elseif 
44==r then 
                pc
.give_item2(505111
                
pc.remove_item(501341
            elseif 
45==r then 
                pc
.give_item2(505081
                
pc.remove_item(501341
            elseif 
46==r then 
                pc
.give_item2(505081
                
pc.remove_item(501341
            
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 10: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 10:39 skurto#3
Is this item type 18 in your database?
11/24/2012 10: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 21:31 hihuho#5
habe das selbe Problem was muss ich machen?
06/13/2013 21: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 02:30 lfcmaus#7
typ 18 und subtype 10