Suche quest

03/20/2012 22:37 geurtz15#1
brauche ne quest wo man 3 gleiche items zu 1 item umtauscht

sie kann ganz schlicht sein

Problem ist es muss
für insgesamt 5 verschiedene Items das gleiche sein
also beispiel

3*a = 1*A
3*b = 1*B
3*c = 1*C
3*d = 1*D
3*e = 1*E
3*f = 1*F

Wäre voll cool wenn ihr mir da was geben könntet
03/20/2012 23:07 Prince-Samu#2
PHP Code:
quest item begin
    state start begin
        when xxx
.chat begin
            say
("text")
            
say("")
            
say("")
            
local s = select("Ja","Nein")
            if 
s == 2 then
            end
            
if s == 1 then
                say
("welches Item willst du haben")
                
local ss = select("item1","Item2","item3",
                
"item4","item5","item6")
                if 
ss == 1 then
                pc
.remove_item(Vnum)
                
pc.remove_item(Vnum)
                
pc.remove_item(Vnum)
                
pc.give_item(Vnum)
                
end
                
if ss == 2 then
                pc
.remove_item(Vnum)
                
pc.remove_item(Vnum)
                
pc.remove_item(Vnum)
                
pc.give_item(Vnum)
                
end
                
if ss == 3 then
                pc
.remove_item(Vnum)
                
pc.remove_item(Vnum)
                
pc.remove_item(Vnum)
                
pc.give_item(Vnum)
                
end
                
if ss == 4 then
                pc
.remove_item(Vnum)
                
pc.remove_item(Vnum)
                
pc.remove_item(Vnum)
                
pc.give_item(Vnum)
                
end
                
if ss == 5 then
                pc
.remove_item(Vnum)
                
pc.remove_item(Vnum)
                
pc.remove_item(Vnum)
                
pc.give_item(Vnum)
                
end
                
if ss == 6 then
                pc
.remove_item(Vnum)
                
pc.remove_item(Vnum)
                
pc.remove_item(Vnum)
                
pc.give_item(Vnum)
                
end
            end
        end
    end
end 
Sollte funktionieren einfach die vnums rein
03/20/2012 23:31 Mijago#3
oder einfach per Table & Schleife..
03/21/2012 09:37 Prince-Samu#4
Wie gesagt "Prince-Samu" versteht noch nix von Tabellen xD.