Quest Suche

10/21/2015 00:22 xXT4fuXx#1
Hay Leute

Ich suche nach einer Bestimmten quest
Sufu hab ich bereits genutzt aber keine Quest gefunden die passt

Ich brauche:
Z.ß wenn man ein Metin zerstört das man 6 Items droppt ( Die items sollen ein Zufall sein )

Kein Random Dropp wo man Zwichen 1 und 6 items bekommt sondern wo man Direkt 6 bekommt.

Danke
10/21/2015 01:03 -!Kontra!-#2
PHP Code:
quest deinequest start
    state start begin
        when kill with npc
.get_race() == 8001 then
            game
.drop_item_with_ownership(vnum1)
            
game.drop_item_with_ownership(vnum1)
            
game.drop_item_with_ownership(vnum1)
            
game.drop_item_with_ownership(vnum1)
            
game.drop_item_with_ownership(vnum1)
            
game.drop_item_with_ownership(vnum1)
        
end
    end
end 
10/21/2015 01:06 Nick#3
-> [Only registered and activated users can see links. Click Here To Register...]

Bitte beachte und nutze die Sammelthemen. (closerequested)

lg
10/21/2015 02:55 Mr. 'Avenue™#4
PHP Code:
quest metinkill begin
    state start begin
        
-- lv 5 metin
        when kill with npc
.get_race() == 8001 begin
            local items 
= {{vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl}
            }
            for 
1do
                
local rnditem number(1table.getn(items))
                
game.drop_item_with_ownership(items[rnditem][1], items[rnditem][2])
            
end
        end
    end
end 
10/21/2015 03:10 -!Kontra!-#5
Quote:
Originally Posted by Mr. 'Avenue™ View Post
PHP Code:
quest metinkill begin
    state start begin
        
-- lv 5 metin
        when kill with npc
.get_race() == 8001 begin
            local items 
= {{vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl}
            }
            
local rnditem number(1table.getn(items))
            for 
1do
                
game.drop_item_with_ownership(items[rnditem][1], items[rnditem][2])
            
end
        end
    end
end 
wenn ich das richtig sehe ist das ein random drop? Wollte er nicht ein normalen dropp? Also alle 6 auf einmal? :D

Edit1:
Ah ok doch ist richtig ^^ sorrey :)
10/21/2015 10:46 rollback#6
Quote:
Originally Posted by Mr. 'Avenue™ View Post
PHP Code:
quest metinkill begin
    state start begin
        
-- lv 5 metin
        when kill with npc
.get_race() == 8001 begin
            local items 
= {{vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl}
            }
            
local rnditem number(1table.getn(items))
            for 
1do
                
game.drop_item_with_ownership(items[rnditem][1], items[rnditem][2])
            
end
        end
    end
end 
Damit würde man 6x das gleiche item droppen, weiss nicht ob er das so möchte. Wenn nicht einfach randomzahl innerhalb der schleife erzeugen.
10/21/2015 11:35 Mr. 'Avenue™#7
Quote:
Originally Posted by Seחsi View Post
Damit würde man 6x das gleiche item droppen, weiss nicht ob er das so möchte. Wenn nicht einfach randomzahl innerhalb der schleife erzeugen.
War etwa zu müde :o Habs bearbeitet
10/21/2015 14:23 xXT4fuXx#8
Ich wollte das man auf dieser Liste hier

Genau 6 Items droppt , kein random xD
Sondern immer nur 6 nach jeden kill
10/21/2015 14:28 Mr. 'Avenue™#9
PHP Code:
quest metinkill begin
    state start begin
        
-- lv 5 metin
        when kill with npc
.get_race() == 8001 begin
            local items 
= {{vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl}
            }
            for 
1table.getn(items) do
                
game.drop_item_with_ownership(items[a][1], items[a][2])
            
end
        end
    end
end 
10/21/2015 14:35 xXT4fuXx#10
Quote:
Originally Posted by Mr. 'Avenue™ View Post
PHP Code:
quest metinkill begin
    state start begin
        
-- lv 5 metin
        when kill with npc
.get_race() == 8001 begin
            local items 
= {{vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl},
                           {
vnumanzahl}
            }
            for 
1table.getn(items) do
                
game.drop_item_with_ownership(items[a][1], items[a][2])
            
end
        end
    end
end 
Danke <3
Hab was ich brauche Thx bist der Beste.

#CLOSEd