Quest Frage

11/23/2012 17:25 React™#1
Hey
Kann mir einer sagen was an dieser quest falsch ist ?!Nur der erste button funzt!!!

Code:
quest Questitem_erstellung begin
	state start begin
		when 50025.use begin
			say_title("Item Auswahl für GM´s")
			local ite = select("Schwarzstahl Schwert", "Schwarzstahl Klinge", "Schwarzstahl Dolche", "Schwarzstahl Bogen", "Schwarzstahl Stab", "Bye")
				if ite == 1 then
					pc.give_item2(9299, 1)
				if ite == 2 then
					pc.give_item2(9199, 1)
				if ite == 3 then
					pc.give_item2(9499, 1)
				if ite == 4 then
					pc.give_item2(9399, 1)
				if ite == 5 then
					pc.give_item2(9599, 1)
						end
					end
				end
			end
		end
	end
end
end
thx ist sicher!
11/23/2012 17:33 .Flammini™#2
Kommt hier rein: [Only registered and activated users can see links. Click Here To Register...]
11/23/2012 17:40 React™#3
Quote:
Kommt hier rein: [SERVICE] Die Questkontrolle
Ist die noch aktuell???
11/23/2012 17:43 .Flammini™#4
Quote:
Originally Posted by schnucki1999 View Post
Ist die noch aktuell???
Denke schon.
11/23/2012 17:47 React™#5
Jo probiers mal thx :D
11/23/2012 17:49 He3o Sippel#6
Quote:
Originally Posted by schnucki1999 View Post
Hey
Kann mir einer sagen was an dieser quest falsch ist ?!

Code:
quest Questitem_erstellung begin
	state start begin
		when 50025.use begin
			say_title("Item Auswahl für GM´s")
			local ite = select("Schwarzstahl Schwert", "Schwarzstahl Klinge", "Schwarzstahl Dolche", "Schwarzstahl Bogen", "Schwarzstahl Stab", "Bye")
				if ite == 1 then
					pc.give_item2(9299, 1)
				if ite == 2 then
					pc.give_item2(9199, 1)
				if ite == 3 then
					pc.give_item2(9499, 1)
				if ite == 4 then
					pc.give_item2(9399, 1)
				if ite == 5 then
					pc.give_item2(9599, 1)
						end
					end
				end
			end
		end
	end
end
end
thx im vorraus

So sollte es klappen
PHP Code:
quest Questitem_erstellung begin
    state start begin
        when 50025.
use begin
            say_title
("Item Auswahl für GM´s")
            
local ite select("Schwarzstahl Schwert""Schwarzstahl Klinge""Schwarzstahl Dolche""Schwarzstahl Bogen""Schwarzstahl Stab""Bye")
            if 
ite == 1 then
                pc
.give_item2(92991)
            elseif 
ite == 2 then
                pc
.give_item2(91991)
            elseif 
ite == 3 then
                pc
.give_item2(94991)
            elseif 
ite == 4 then
                pc
.give_item2(93991)
            elseif 
ite == 5 then
                pc
.give_item2(95991)
            
end
        end
    end
end 
11/23/2012 17:59 React™#7
bei meiner quest habe ich immer das erste item bekommen also schwarzstahl schwert und bei den anderen hat es sihc immer geschlossen

geh immer ncoh nicht -.-'


Code:
So sollte es klappen
PHP-Code:
quest Questitem_erstellung begin 
    state start begin 
        when 50025.use begin 
            say_title("Item Auswahl für GM´s") 
            local ite = select("Schwarzstahl Schwert", "Schwarzstahl Klinge", "Schwarzstahl Dolche", "Schwarzstahl Bogen", "Schwarzstahl Stab", "Bye") 
            if ite == 1 then 
                pc.give_item2(9299, 1) 
            elseif ite == 2 then 
                pc.give_item2(9199, 1) 
            elseif ite == 3 then 
                pc.give_item2(9499, 1) 
            elseif ite == 4 then 
                pc.give_item2(9399, 1) 
            elseif ite == 5 then 
                pc.give_item2(9599, 1) 
            end 
        end 
    end 
end  
__________________
11/23/2012 18:10 iSouli~#8
PHP Code:
quest Questitem_erstellung begin 
    state start begin 
        
function list_item() 
            return { 
                [
1] = {9299}, 
                [
2] = {9119}, 
                [
3] = {9499}, 
                [
4] = {9399}, 
                [
5] = {9599}, 
            } 
        
end 
         
        when 50025.
use begin 
            say_title
('Item Auswahl für GM´s'
            
local ite select(item_name(Questitem_erstellung.list_item()[1][1]),Questitem_erstellung.list_item()[2][1]),Questitem_erstellung.list_item()[3][1]),Questitem_erstellung.list_item()[4][1]),Questitem_erstellung.list_item()[5][1]),'Nichts'
            if 
ite == 6 then return end 
            pc
.give_item2(Questitem_erstellung.list_item()[ite][1], 1
        
end 
    end 
end 
11/23/2012 18:35 React™#9
Bei mir kommt mit deiner quest souli
der fehler beim hochladen

Code:
syntax error : [string "start"]:2: unexpected symbol near ´)´
item_erstellung2.quest:18:Error occured on compile item_erstellung2.quest
11/23/2012 21:17 Clybawn#10
Code:
quest Questitem_erstellung begin
	state start begin
		when 50025.use begin
			say_title("Item Auswahl für GM´s")
			local item = select("Schwarzstahl Schwert", "Schwarzstahl Klinge", "Schwarzstahl Dolche", "Schwarzstahl Bogen", "Schwarzstahl Stab", "Bye")
				if item == 1 then
					pc.give_item2(9299)
				if item == 2 then
					pc.give_item2(9199)
				if item == 3 then
					pc.give_item2(9499)
				if item == 4 then
					pc.give_item2(9399)
				if item == 5 then
					pc.give_item2(9599)
						end
					end
				end
			end
		end
	end
end
Probiers mal...

MfG
11/23/2012 21:22 React™#11
Kommt Fehler meldung
11/23/2012 21:25 Sp0ngeb0b ist cool#12
PHP Code:
quest Questitem_erstellung begin 
    state start begin 
        
function list_item() 
            return { 
                [
1] = {9299}, 
                [
2] = {9119}, 
                [
3] = {9499}, 
                [
4] = {9399}, 
                [
5] = {9599}, 
            } 
        
end 
        when 50025.
use begin 
            say_title
('Item Auswahl für GM´s'
            
local a = {}
            
table.foreach(Questitem_erstellung.list_item(),function(i,ltable.insert(a,i,item_name(l)) end )
            
table.insert(a'Nichts')
            
local ite select_table(a
            if 
ite == table.getn(athen return end 
            pc
.give_item2(Questitem_erstellung.list_item()[ite], 1)
        
end 
    end 
end 
beachte:
questdateiname == questtitel
11/23/2012 21:33 Clybawn#13
Quote:
Originally Posted by Sp0ngeb0b ist cool View Post
PHP Code:
quest Questitem_erstellung begin 
    state start begin 
        
function list_item() 
            return { 
                [
1] = {9299}, 
                [
2] = {9119}, 
                [
3] = {9499}, 
                [
4] = {9399}, 
                [
5] = {9599}, 
            } 
        
end 
        when 50025.
use begin 
            say_title
('Item Auswahl für GM´s'
            
local a = {}
            
table.foreach(Questitem_erstellung.list_item(),function(i,ltable.insert(a,i,item_name(l)) end )
            
table.insert(a'Nichts')
            
local ite select_table(a
            if 
ite == table.getn(athen return end 
            pc
.give_item2(Questitem_erstellung.list_item()[ite], 1)
        
end 
    end 
end 
beachte:
questdateiname == questtitel
Ja stimmt das sollte man auch beachten^^
11/23/2012 21:39 Mr. 'Avenue™#14
PHP Code:
quest itemerstellung begin
    state start begin
        when 50025.
use begin
            say_title
("Item Auswahl für GM´s")
            
local item select("Schwarzstahl Schwert""Schwarzstahl Klinge""Schwarzstahl Dolche""Schwarzstahl Bogen""Schwarzstahl Stab""Bye")
            if 
item == 1 then
                pc
.give_item2(9299)
            elseif 
item == 2 then
                pc
.give_item2(9199)
            elseif 
item == 3 then
                pc
.give_item2(9499)
            elseif 
item == 4 then
                pc
.give_item2(9399)
            elseif 
item == 5 then
                pc
.give_item2(9599)
            elseif 
item == 6 then
                
return
            
end
        end
    end
end 
bitteschön.
11/24/2012 01:00 React™#15
Quote:
Code:
quest Questitem_erstellung begin 
    state start begin 
        function list_item() 
            return { 
                [1] = {9299}, 
                [2] = {9119}, 
                [3] = {9499}, 
                [4] = {9399}, 
                [5] = {9599}, 
            } 
        end 
        when 50025.use begin 
            say_title('Item Auswahl für GM´s') 
            local a = {}
            table.foreach(Questitem_erstellung.list_item(),function(i,l) table.insert(a,i,item_name(l)) end )
            table.insert(a, 'Nichts')
            local ite = select_table(a) 
            if ite == table.getn(a) then return end 
            pc.give_item2(Questitem_erstellung.list_item()[ite], 1)
        end 
    end 
end
spongebob! die quest wird geladen ohne fehler aber ich bekomme dann nicht wen ich den button im quest fenster drücke!