[SERVICE] Die Questkontrolle

04/23/2016 23:20 gerald500#12301
Quote:
Originally Posted by Getreidekuchen66 View Post
Klappt leider auch nicht..Dann kommt: Calls uncleared funtcion!: pc2.set_level // Error occured on compile give_basic_weapon.quest
ich würds ja so machen :

Code:
quest give_basic_weapon begin  
    state start begin  
        when login begin  
            local item_job_table = {
			[0] = {299,11239,12229},
			[1] = {1179,11439,12369},
			[2] = {299,11639,12509},
			[3] = {5119,11839,12649}
			}
			local items_for_all = {
			{27003,200},{27006,200},{72702,1},{71050,200},{70038,200},
			{13009,1},{14009,1},{15009,1},{16009,1},{17009,1},{80008,1},
			{71084,200},{71085,200}}  
			local my_job_table = item_job_table[pc.get_job()]
			for _,v in ipairs(my_job_table) do
				pc.give_item2(v,1)
			end
			
			for _,v in ipairs(items_for_all) do
				pc.give_item2(v[1],v[2])
			end
			
			while pc.get_level() <= 29 do
				pc.give_exp(pc.get_next_exp())
			end
			pc.change_alignment(5000)
            horse.set_level(21)  
            horse.summon()  
            set_state(weiter)  
        end  
             
    end  
    state weiter begin  
        when letter begin  
             send_letter("Willkommen auf AcloriMt2!")  
        end  
        when button or info begin  
            say_title("Willkommen "..pc.get_name())  
            say("Das Team von AcloriMt2 heisst dich herzlich Willkommen und wuenscht dir viel Spass!")  
            say("Wenn du Fragen hast, melde dich bitte beim Team")  
            say("[GA]Ch4oS")  
            say("[GM]xNight")  
            say("Du erhälst ein paar Kleinigkeiten als Willkommensgeschenk.")  
            say("Viel Erfolg beim spielen!")  
            set_state(ende)  
        end  
    end  
    state ende begin  
    end  
end
und wenn du die funktionen die nicht in den quest functions vorhanden sind eintragst ist der fehler in der konsole zwar weg aber es kann genau so gut sein das du diese funktion garnicht hast, sowie das bei der pc2.set_level funktion sein wird.

mfg
04/24/2016 16:16 Getreidekuchen66#12302
Will das die Quest dauerhaft angezeigt wird, sie soll Yangspeicher erstellen, sobald man draufklickt, soll sie immernoch angezeigt bleiben, damit man ihn immer wieder erstellen kann, dennoch wird sie leider gar nicht angezeigt: (VNUM ist 80008)

quest yangspeicher begin
state start begin
when 10.use begin
say("Du möchtest also einen Yangspeicher erstellen?")
local s = select("500kk", "Abbrechen")
if s == 4 then
return
elseif s == 1 and pc.get_money() >= 500000000 then
pc.give_item2(1, 1)
pc.change_money(-500000000)
else
say("Du hast nicht genug Yang.")
end
end
end
end
04/24/2016 20:42 Rofelmau#12303
Quote:
Originally Posted by Getreidekuchen66 View Post
Will das die Quest dauerhaft angezeigt wird, sie soll Yangspeicher erstellen, sobald man draufklickt, soll sie immernoch angezeigt bleiben, damit man ihn immer wieder erstellen kann, dennoch wird sie leider gar nicht angezeigt: (VNUM ist 80008)

quest yangspeicher begin
state start begin
when 10.use begin
say("Du möchtest also einen Yangspeicher erstellen?")
local s = select("500kk", "Abbrechen")
if s == 4 then
return
elseif s == 1 and pc.get_money() >= 500000000 then
pc.give_item2(1, 1)
pc.change_money(-500000000)
else
say("Du hast nicht genug Yang.")
end
end
end
end
PHP Code:
quest yangspeicher begin
    state start begin
        when 80008.
use begin
            repeat
                say
("Du möchtest also einen Yangspeicher erstellen?")
                
local s select("500kk""Abbrechen")
                if 
== 2 then
                    
return
                elseif 
== and pc.get_money() >= 500000000 then
                    pc
.give_item2(11)
                    
pc.change_money(-500000000)
                else
                    
say("Du hast nicht genug Yang.")
                
end
            until false
        end
    end
end 
VNUMS vlt nochmal anpassen,
04/24/2016 20:46 Getreidekuchen66#12304
Quote:
Originally Posted by Rofelmau View Post
PHP Code:
quest yangspeicher begin
    state start begin
        when 80008.
use begin
            repeat
                say
("Du möchtest also einen Yangspeicher erstellen?")
                
local s select("500kk""Abbrechen")
                if 
== 2 then
                    
return
                elseif 
== and pc.get_money() >= 500000000 then
                    pc
.give_item2(11)
                    
pc.change_money(-500000000)
                else
                    
say("Du hast nicht genug Yang.")
                
end
            until false
        end
    end
end 
VNUMS vlt nochmal anpassen,
Ich möchte nicht über ein Item Yang erstellen, sondern eine Quest haben, die mir 500kk abzieht & einen Goldklumpen (VNUM 80008) erstellt. // sprich : Mit einer Quest das Item Goldklumpen (80008) erstellen, und 500kk abgezogen bekommen.
04/24/2016 20:58 Rofelmau#12305
Quote:
Originally Posted by Getreidekuchen66 View Post
Ich möchte nicht über ein Item Yang erstellen, sondern eine Quest haben, die mir 500kk abzieht & einen Goldklumpen (VNUM 80008) erstellt. // sprich : Mit einer Quest das Item Goldklumpen (80008) erstellen, und 500kk abgezogen bekommen.
PHP Code:
quest yangspeicher begin
    state start begin
        when letter begin
            send_letter
("Yangspeicher")
        
end
        when button 
or info begin
            repeat
                say
("Du möchtest also einen Yangspeicher erstellen?")
                
local s select("500kk""Abbrechen")
                if 
== 2 then
                    
return
                elseif 
== and pc.get_money() >= 500000000 then
                    pc
.give_item2(800081)
                    
pc.change_money(-500000000)
                else
                    
say("Du hast nicht genug Yang.")
                
end
            until false
            send_letter
("Yangspeicher")
        
end
    end
end 
04/26/2016 17:08 Anonyme™#12306
Hey,
Gibt es die Möglichkeit bei einer Quest einzustellen, wenn man z.b AFK ist das man nicht Gekillt werden kann?
04/29/2016 21:26 TayzZ.?#12307
Hallo habe ein problem mit meiner quest:

ist nur ein abschnitt der quest aber hier muss der fehler sein.:mad:

der fehlercode: Error occured on compile name.quest
PHP Code:
when 51645.use begin
            chat
("Du hast die Truhe geöffnet!")
                
local g math.random(113)
                if 
== g then
                    local gg 
== math.random(115)
                    if 
== gg then
                        local ggg 
== math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68701)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69101)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69501)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69901)
                            
pc.remove_item(516451)
                        
end
                    
elseif == gg then
                        local ggg 
== math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68601)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69001)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69401)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69801)
                            
pc.remove_item(516451)
                        
end
                    
elseif == gg then
                        local ggg 
== math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68601)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69001)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69401)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69801)
                            
pc.remove_item(516451)
                        
end
                    
elseif == gg then
                        local ggg 
== math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68501)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(68901)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69301)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69701)
                            
pc.remove_item(516451)
                        
end
                    
elseif == gg then
                        local ggg 
== math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68501)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(68901)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69301)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69701)
                            
pc.remove_item(516451)
                        
end
                    
elseif == gg then
                        local ggg 
== math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68501)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(68901)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69301)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69701)
                            
pc.remove_item(516451)
                        
end
                    
elseif == gg then
                        local ggg 
== math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68501)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(68901)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69301)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69701)
                            
pc.remove_item(516451)
                        
end
                    
elseif == gg then
                        local ggg 
== math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68401)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(68801)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69201)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69601)
                            
pc.remove_item(516451)
                        
end
                    
elseif == gg then
                        local ggg 
== math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68401)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(68801)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69201)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69601)
                            
pc.remove_item(516451)
                        
end
                    
elseif 10 == gg then
                        local ggg 
== math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68401)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(68801)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69201)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69601)
                            
pc.remove_item(516451)
                        
end
                    
elseif 11 == gg then
                        local ggg 
== math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68401)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(68801)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69201)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69601)
                            
pc.remove_item(516451)
                        
end
                    
elseif 12 == gg then
                        local ggg 
== math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68401)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(68801)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69201)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69601)
                            
pc.remove_item(516451)
                        
end
                    
elseif 13 == gg then
                        local ggg 
== math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68401)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(68801)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69201)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69601)
                            
pc.remove_item(516451)
                        
end
                    
elseif 14 == gg then
                        local ggg 
== math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68401)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(68801)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69201)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69601)
                            
pc.remove_item(516451)
                        
end
                    
elseif 15 == gg then
                        local ggg 
== math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68401)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(68801)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69201)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69601)
                            
pc.remove_item(516451)
                        
end
                    end
                
elseif == g then
                    local gg 
== math.random(18)
                    if 
== gg then
                        pc
.give_item2(516432)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(289501)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020341)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020321)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020311)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800141)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800142)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800143)
                        
pc.remove_item(516451)
                    
end
                
elseif == g then
                    local gg 
== math.random(14)
                    if 
== gg then
                        pc
.give_item2(68002)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(68102)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(68202)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(68302)
                        
pc.remove_item(516451)
                    
end
                
elseif == g then
                    local gg 
== math.random(18)
                    if 
== gg then
                        pc
.give_item2(516432)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(289501)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020341)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020321)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020311)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800141)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800142)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800143)
                        
pc.remove_item(516451)
                    
end
                
elseif == g then
                    local gg 
== math.random(18)
                    if 
== gg then
                        pc
.give_item2(516432)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(289501)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020341)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020321)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020311)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800141)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800142)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800143)
                        
pc.remove_item(516451)
                    
end
                
elseif == g then
                    local gg 
== math.random(18)
                    if 
== gg then
                        pc
.give_item2(516432)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(289501)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020341)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020321)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020311)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800141)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800142)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800143)
                        
pc.remove_item(516451)
                    
end
                
elseif == g then
                    local gg 
== math.random(18)
                    if 
== gg then
                        pc
.give_item2(516432)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(289501)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020341)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020321)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020311)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800141)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800142)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800143)
                        
pc.remove_item(516451)
                    
end
                
elseif == g then
                    local gg 
== math.random(18)
                    if 
== gg then
                        pc
.give_item2(516432)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(289501)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020341)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020321)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020311)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800141)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800142)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800143)
                        
pc.remove_item(516451)
                    
end
                
elseif == g then
                    local gg 
== math.random(18)
                    if 
== gg then
                        pc
.give_item2(516432)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(289501)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020341)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020321)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020311)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800141)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800142)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800143)
                        
pc.remove_item(516451)
                    
end
                
elseif 10 == g then
                    local gg 
== math.random(18)
                    if 
== gg then
                        pc
.give_item2(516432)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(289501)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020341)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020321)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020311)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800141)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800142)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800143)
                        
pc.remove_item(516451)
                    
end
                
elseif 11 == g then
                    local gg 
== math.random(18)
                    if 
== gg then
                        pc
.give_item2(516432)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(289501)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020341)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020321)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020311)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800141)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800142)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800143)
                        
pc.remove_item(516451)
                    
end
                
elseif 12 == g then
                    local gg 
== math.random(18)
                    if 
== gg then
                        pc
.give_item2(516432)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(289501)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020341)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020321)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020311)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800141)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800142)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800143)
                        
pc.remove_item(516451)
                    
end
                
elseif 13 == g then
                    local gg 
== math.random(18)
                    if 
== gg then
                        pc
.give_item2(516432)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(289501)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020341)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020321)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020311)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800141)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800142)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800143)
                        
pc.remove_item(516451)
                    
end
                end
            end
        end
    end
end 
04/30/2016 20:26 gerald500#12308
Quote:
Originally Posted by TayzZ.? View Post
Hallo habe ein problem mit meiner quest:

ist nur ein abschnitt der quest aber hier muss der fehler sein.:mad:

der fehlercode: Error occured on compile name.quest
PHP Code:
when 51645.use begin
            chat
("Du hast die Truhe geöffnet!")
                
local g math.random(113)
                if 
== g then
                    local gg 
== math.random(115)
                    if 
== gg then
                        local ggg 
== math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68701)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69101)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69501)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69901)
                            
pc.remove_item(516451)
                        
end
                    
elseif == gg then
                        local ggg 
== math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68601)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69001)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69401)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69801)
                            
pc.remove_item(516451)
                        
end
                    
elseif == gg then
                        local ggg 
== math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68601)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69001)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69401)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69801)
                            
pc.remove_item(516451)
                        
end
                    
elseif == gg then
                        local ggg 
== math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68501)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(68901)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69301)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69701)
                            
pc.remove_item(516451)
                        
end
                    
elseif == gg then
                        local ggg 
== math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68501)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(68901)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69301)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69701)
                            
pc.remove_item(516451)
                        
end
                    
elseif == gg then
                        local ggg 
== math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68501)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(68901)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69301)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69701)
                            
pc.remove_item(516451)
                        
end
                    
elseif == gg then
                        local ggg 
== math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68501)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(68901)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69301)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69701)
                            
pc.remove_item(516451)
                        
end
                    
elseif == gg then
                        local ggg 
== math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68401)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(68801)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69201)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69601)
                            
pc.remove_item(516451)
                        
end
                    
elseif == gg then
                        local ggg 
== math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68401)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(68801)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69201)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69601)
                            
pc.remove_item(516451)
                        
end
                    
elseif 10 == gg then
                        local ggg 
== math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68401)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(68801)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69201)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69601)
                            
pc.remove_item(516451)
                        
end
                    
elseif 11 == gg then
                        local ggg 
== math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68401)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(68801)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69201)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69601)
                            
pc.remove_item(516451)
                        
end
                    
elseif 12 == gg then
                        local ggg 
== math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68401)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(68801)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69201)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69601)
                            
pc.remove_item(516451)
                        
end
                    
elseif 13 == gg then
                        local ggg 
== math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68401)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(68801)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69201)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69601)
                            
pc.remove_item(516451)
                        
end
                    
elseif 14 == gg then
                        local ggg 
== math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68401)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(68801)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69201)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69601)
                            
pc.remove_item(516451)
                        
end
                    
elseif 15 == gg then
                        local ggg 
== math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68401)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(68801)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69201)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69601)
                            
pc.remove_item(516451)
                        
end
                    end
                
elseif == g then
                    local gg 
== math.random(18)
                    if 
== gg then
                        pc
.give_item2(516432)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(289501)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020341)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020321)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020311)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800141)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800142)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800143)
                        
pc.remove_item(516451)
                    
end
                
elseif == g then
                    local gg 
== math.random(14)
                    if 
== gg then
                        pc
.give_item2(68002)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(68102)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(68202)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(68302)
                        
pc.remove_item(516451)
                    
end
                
elseif == g then
                    local gg 
== math.random(18)
                    if 
== gg then
                        pc
.give_item2(516432)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(289501)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020341)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020321)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020311)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800141)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800142)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800143)
                        
pc.remove_item(516451)
                    
end
                
elseif == g then
                    local gg 
== math.random(18)
                    if 
== gg then
                        pc
.give_item2(516432)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(289501)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020341)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020321)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020311)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800141)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800142)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800143)
                        
pc.remove_item(516451)
                    
end
                
elseif == g then
                    local gg 
== math.random(18)
                    if 
== gg then
                        pc
.give_item2(516432)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(289501)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020341)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020321)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020311)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800141)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800142)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800143)
                        
pc.remove_item(516451)
                    
end
                
elseif == g then
                    local gg 
== math.random(18)
                    if 
== gg then
                        pc
.give_item2(516432)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(289501)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020341)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020321)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020311)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800141)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800142)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800143)
                        
pc.remove_item(516451)
                    
end
                
elseif == g then
                    local gg 
== math.random(18)
                    if 
== gg then
                        pc
.give_item2(516432)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(289501)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020341)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020321)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020311)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800141)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800142)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800143)
                        
pc.remove_item(516451)
                    
end
                
elseif == g then
                    local gg 
== math.random(18)
                    if 
== gg then
                        pc
.give_item2(516432)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(289501)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020341)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020321)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020311)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800141)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800142)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800143)
                        
pc.remove_item(516451)
                    
end
                
elseif 10 == g then
                    local gg 
== math.random(18)
                    if 
== gg then
                        pc
.give_item2(516432)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(289501)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020341)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020321)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020311)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800141)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800142)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800143)
                        
pc.remove_item(516451)
                    
end
                
elseif 11 == g then
                    local gg 
== math.random(18)
                    if 
== gg then
                        pc
.give_item2(516432)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(289501)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020341)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020321)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020311)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800141)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800142)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800143)
                        
pc.remove_item(516451)
                    
end
                
elseif 12 == g then
                    local gg 
== math.random(18)
                    if 
== gg then
                        pc
.give_item2(516432)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(289501)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020341)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020321)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020311)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800141)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800142)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800143)
                        
pc.remove_item(516451)
                    
end
                
elseif 13 == g then
                    local gg 
== math.random(18)
                    if 
== gg then
                        pc
.give_item2(516432)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(289501)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020341)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020321)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020311)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800141)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800142)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800143)
                        
pc.remove_item(516451)
                    
end
                end
            end
        end
    end
end 
denke du hast am ende ein end zu viel

abgesehen davon ist das mit den ganzen elseifs terrible leg doch eine tabelle an dadurch wird die quest um 100 von zeilen kürzer und übersichtlicher
04/30/2016 21:50 TayzZ.?#12309
PHP Code:
        when 51645.use begin
            chat
("Du hast die Truhe geöffnet!")
                
local g math.random(113)
                if 
== g then
                    local gg 
math.random(115)
                    if 
== gg then
                        local ggg 
math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68701)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69101)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69501)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69901)
                            
pc.remove_item(516451)
                        
end
                    
elseif == gg then
                        local ggg 
math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68601)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69001)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69401)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69801)
                            
pc.remove_item(516451)
                        
end
                    
elseif == gg then
                        local ggg 
math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68601)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69001)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69401)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69801)
                            
pc.remove_item(516451)
                        
end
                    
elseif == gg then
                        local ggg 
math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68501)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(68901)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69301)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69701)
                            
pc.remove_item(516451)
                        
end
                    
elseif == gg then
                        local ggg 
math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68501)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(68901)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69301)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69701)
                            
pc.remove_item(516451)
                        
end
                    
elseif == gg then
                        local ggg 
math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68501)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(68901)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69301)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69701)
                            
pc.remove_item(516451)
                        
end
                    
elseif == gg then
                        local ggg 
math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68501)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(68901)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69301)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69701)
                            
pc.remove_item(516451)
                        
end
                    
elseif == gg then
                        local ggg 
math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68401)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(68801)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69201)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69601)
                            
pc.remove_item(516451)
                        
end
                    
elseif == gg then
                        local ggg 
math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68401)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(68801)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69201)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69601)
                            
pc.remove_item(516451)
                        
end
                    
elseif 10 == gg then
                        local ggg 
math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68401)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(68801)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69201)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69601)
                            
pc.remove_item(516451)
                        
end
                    
elseif 11 == gg then
                        local ggg 
math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68401)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(68801)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69201)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69601)
                            
pc.remove_item(516451)
                        
end
                    
elseif 12 == gg then
                        local ggg 
math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68401)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(68801)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69201)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69601)
                            
pc.remove_item(516451)
                        
end
                    
elseif 13 == gg then
                        local ggg 
math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68401)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(68801)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69201)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69601)
                            
pc.remove_item(516451)
                        
end
                    
elseif 14 == gg then
                        local ggg 
math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68401)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(68801)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69201)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69601)
                            
pc.remove_item(516451)
                        
end
                    
elseif 15 == gg then
                        local ggg 
math.random(14)
                        if 
== ggg then
                            pc
.give_item2(68401)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(68801)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69201)
                            
pc.remove_item(516451)
                        elseif 
== ggg then
                            pc
.give_item2(69601)
                            
pc.remove_item(516451)
                        
end
                    end
                
elseif == g then
                    local gg 
math.random(18)
                    if 
== gg then
                        pc
.give_item2(516432)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(289501)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020341)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020321)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020311)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800141)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800142)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800143)
                        
pc.remove_item(516451)
                    
end
                
elseif == g then
                    local gg 
math.random(14)
                    if 
== gg then
                        pc
.give_item2(68002)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(68102)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(68202)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(68302)
                        
pc.remove_item(516451)
                    
end
                
elseif == g then
                    local gg 
math.random(18)
                    if 
== gg then
                        pc
.give_item2(516432)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(289501)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020341)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020321)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020311)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800141)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800142)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800143)
                        
pc.remove_item(516451)
                    
end
                
elseif == g then
                    local gg 
math.random(18)
                    if 
== gg then
                        pc
.give_item2(516432)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(289501)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020341)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020321)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020311)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800141)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800142)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800143)
                        
pc.remove_item(516451)
                    
end
                
elseif == g then
                    local gg 
math.random(18)
                    if 
== gg then
                        pc
.give_item2(516432)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(289501)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020341)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020321)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020311)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800141)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800142)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800143)
                        
pc.remove_item(516451)
                    
end
                
elseif == g then
                    local gg 
math.random(18)
                    if 
== gg then
                        pc
.give_item2(516432)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(289501)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020341)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020321)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020311)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800141)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800142)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800143)
                        
pc.remove_item(516451)
                    
end
                
elseif == g then
                    local gg 
math.random(18)
                    if 
== gg then
                        pc
.give_item2(516432)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(289501)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020341)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020321)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020311)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800141)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800142)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800143)
                        
pc.remove_item(516451)
                    
end
                
elseif == g then
                    local gg 
math.random(18)
                    if 
== gg then
                        pc
.give_item2(516432)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(289501)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020341)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020321)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020311)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800141)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800142)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800143)
                        
pc.remove_item(516451)
                    
end
                
elseif 10 == g then
                    local gg 
math.random(18)
                    if 
== gg then
                        pc
.give_item2(516432)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(289501)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020341)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020321)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020311)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800141)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800142)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800143)
                        
pc.remove_item(516451)
                    
end
                
elseif 11 == g then
                    local gg 
math.random(18)
                    if 
== gg then
                        pc
.give_item2(516432)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(289501)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020341)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020321)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020311)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800141)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800142)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800143)
                        
pc.remove_item(516451)
                    
end
                
elseif 12 == g then
                    local gg 
math.random(18)
                    if 
== gg then
                        pc
.give_item2(516432)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(289501)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020341)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020321)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020311)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800141)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800142)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800143)
                        
pc.remove_item(516451)
                    
end
                
elseif 13 == g then
                    local gg 
math.random(18)
                    if 
== gg then
                        pc
.give_item2(516432)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(289501)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020341)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020321)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(1020311)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800141)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800142)
                        
pc.remove_item(516451)
                    elseif 
== gg then
                        pc
.give_item2(800143)
                        
pc.remove_item(516451)
                
end
            end
        end
    end
end 
so klappts leider auch nicht ;(
05/06/2016 14:02 DAS IST VEGAAZ#12310
Wenn ich ein Item gebe mit "pc.give_item2(vnum, 3)" z.B. dann erhalte ich trz das Item nur 1x. Wisst ihr woran es liegt?
Getestet mit Segi, gegenstand verz. und gegenstand verhex.
05/06/2016 14:22 Jantux#12311
Quote:
Originally Posted by DAS IST VEGAAZ View Post
Wenn ich ein Item gebe mit "pc.give_item2(vnum, 3)" z.B. dann erhalte ich trz das Item nur 1x. Wisst ihr woran es liegt?
Getestet mit Segi, gegenstand verz. und gegenstand verhex.

Du musst schauen,ob man diesen Gegenstand auch stapeln kann.
05/07/2016 11:09 DAS IST VEGAAZ#12312
Kann mir jemand schnell erklären wie man ä,ü,ö in den Quests richtig anzeigen lässt?
05/07/2016 12:08 #Metho#12313
Quote:
Originally Posted by DAS IST VEGAAZ View Post
Kann mir jemand schnell erklären wie man ä,ü,ö in den Quests richtig anzeigen lässt?
-> öffne die Quest in Notepad++
-> kopiere die Quest und lösche sie raus

Oben im Reiter:
-> Kodierung -> ANSI

-> Füge deine Quest wieder ein und dann gehen auch die ä ö ü.

Stelle sicher das dort auch üöä stehen, sonst musst du diese nochmals hinzufügen.
05/07/2016 12:14 DAS IST VEGAAZ#12314
Quote:
Originally Posted by #Metho View Post
-> öffne die Quest in Notepad++
-> kopiere die Quest und lösche sie raus

Oben im Reiter:
-> Kodierung -> ANSI

-> Füge deine Quest wieder ein und dann gehen auch die ä ö ü.

Stelle sicher das dort auch üöä stehen, sonst musst du diese nochmals hinzufügen.
Ah super geil! Dankeschön. :D
05/07/2016 23:26 .Noctem#12315
Quest

Fehler

Hoffe jemand kann mir weiter helfen.