[FRAGE]quest drops

11/12/2011 16:44 xTheSoulutionxx3#1
hallo
wollte ma fragen wie mann in diesem quest abschnitt:

PHP Code:
                local rand number(0,99
                if 
pc.get_map_index() == 63 then
                
if rand<3 then pc.give_item2(301621
einbaut das mann nicht nur eins drop sondern 3 items also alle zusammen.
11/12/2011 16:56 xXKimariXx#2
PHP Code:
 local rand number(0,99)  
                if 
pc.get_map_index() == 63 then 
                
if rand<3 then pc.give_item2(301623
wenn ich es richtig verstanden hab dann sollte es so richtig sein
11/12/2011 17:12 xTheSoulutionxx3#3
ich meine drei verschiedene items
11/12/2011 17:17 xXKimariXx#4
PHP Code:
 local rand number(0,99)  
                if 
pc.get_map_index() == 63 then 
                
if rand<3 then pc.give_item2(301621
                
set_state(drop2)

                
state drop2 begin
                   when xxx
.kill begin
                        local rand 
number(0,99)
                         if 
pc.get_map_index() == 63 then
                         
if rand<3 then
                         pc
.give_item2(xxxxx)
                        
set_state(drop3)
                      
                   
state drop3 begin
                   when xxx
.kill begin
                        local rand 
number(0,99)
                         if 
pc.get_map_index() == 63 then
                         
if rand<3 then
                         pc
.give_item2(xxxxx
SO sollte es sein anders krieg ich es nicht hin
11/12/2011 17:18 xTheSoulutionxx3#5
werden die dann alle zusammen oder einzeln will das die einem nach dem anderen gedroppt wird .
11/12/2011 17:29 xXKimariXx#6
PHP Code:
 local rand number(0,99)   
                if 
pc.get_map_index() == 63 then  
                
if rand<3 then pc.give_item2(301621)  
                
set_state(drop2

                
state drop2 begin 
                   when xxx
.kill begin 
                        local rand 
number(0,99
                         if 
pc.get_map_index() == 63 then 
                         
if rand<3 then 
                         pc
.give_item2(xxxxx
                        
set_state(drop3
                       
                   
state drop3 begin 
                   when xxx
.kill begin 
                        local rand 
number(0,99
                         if 
pc.get_map_index() == 63 then 
                         
if rand<3 then 
                         pc
.give_item2(xxxxx
Sollte funktionieren :D ( ends musst du setzen :P)