need a simple quest

08/13/2013 18:44 KUVANNO#1
Hi everyone

I don't know how to make a quest, that's why I'm looking 4 help, I need a quest very simple:

click on an NPC to talk, then to go to the map the character must have a determinated lvl and an item too

for example, must be lvl 90 and have a bloodstone to go to the map

Thanks
08/13/2013 18:55 Mijago#2
> [Only registered and activated users can see links. Click Here To Register...]

I needed ~ 2min 30s for this :D
PHP Code:
quest cookie begin
    state start begin
        when 12345.click begin
            local item 
1234
            say
("Hello, "..pc.get_name()..".")
            
say "So you want to go on Map XXX?"
            
local count pc.count_item(item)
            if 
count 0 then
                say 
"Your item will go away!"
                
if select("Yes","no") == 1 then
                    
if pc.count_item(item) == count then
                        say 
"Okay , i'll warp you."
                        
pc.remove_item(item,1) -- remove item
                        wait
()
                        
pc.warp(123,456)
                    else
                        
say "Buguser!!"
                    
end
                
else
                    
say "Bye"
                
end
            
else
                
say("You need this item:")
                
say_item(item)
            
end
        end
    end
end 
The same, just a little bit shorter .. hehehe :p


Next time, ask in the thread i noticed before!!
08/13/2013 21:57 KUVANNO#3
Quote:
Originally Posted by Mijago View Post
> [Only registered and activated users can see links. Click Here To Register...]

I needed ~ 2min 30s for this :D
PHP Code:
quest cookie begin
    state start begin
        when 12345.click begin
            local item 
1234
            say
("Hello, "..pc.get_name()..".")
            
say "So you want to go on Map XXX?"
            
local count pc.count_item(item)
            if 
count 0 then
                say 
"Your item will go away!"
                
if select("Yes","no") == 1 then
                    
if pc.count_item(item) == count then
                        say 
"Okay , i'll warp you."
                        
pc.remove_item(item,1) -- remove item
                        wait
()
                        
pc.warp(123,456)
                    else
                        
say "Buguser!!"
                    
end
                
else
                    
say "Bye"
                
end
            
else
                
say("You need this item:")
                
say_item(item)
            
end
        end
    end
end 
The same, just a little bit shorter .. hehehe :p


Next time, ask in the thread i noticed before!!
It is almost the quest I need but you forgot to put that the character must have a minimim lvl 2 go 2 the map, could you fix it 4 me? THANKS!!!
08/13/2013 23:01 AGU#4
Quote:
It is almost the quest I need but you forgot to put that the character must have a minimim lvl 2 go 2 the map, could you fix it 4 me? THANKS!!!
PHP Code:
quest cookie begin 
    state start begin 
        when 12345.click with pc
.get_level () > 1 begin 
            local item 
1234 
            say
("Hello, "..pc.get_name().."."
            
say "So you want to go on Map XXX?" 
            
local count pc.count_item(item
            if 
count 0 then 
                say 
"Your item will go away!" 
                
if select("Yes","no") == 1 then 
                    
if pc.count_item(item) == count then 
                        say 
"Okay , i'll warp you." 
                        
pc.remove_item(item,1) -- remove item 
                        wait
() 
                        
pc.warp(123,456
                    else 
                        
say "Buguser!!" 
                    
end 
                
else 
                    
say "Bye" 
                
end 
            
else 
                
say("You need this item:"
                
say_item(item
            
end 
        end 
    end 
end 
Like that?
08/14/2013 00:38 KUVANNO#5
Quote:
Originally Posted by AGU View Post
PHP Code:
quest cookie begin 
    state start begin 
        when 12345.click with pc
.get_level () > 1 begin 
            local item 
1234 
            say
("Hello, "..pc.get_name().."."
            
say "So you want to go on Map XXX?" 
            
local count pc.count_item(item
            if 
count 0 then 
                say 
"Your item will go away!" 
                
if select("Yes","no") == 1 then 
                    
if pc.count_item(item) == count then 
                        say 
"Okay , i'll warp you." 
                        
pc.remove_item(item,1) -- remove item 
                        wait
() 
                        
pc.warp(123,456
                    else 
                        
say "Buguser!!" 
                    
end 
                
else 
                    
say "Bye" 
                
end 
            
else 
                
say("You need this item:"
                
say_item(item
            
end 
        end 
    end 
end 
Like that?
Its like that but the NPC must say something about the character lvl, for example if character lvl < 95 then say "You need to be lvl 95 or more to travel" and it will be perfect, thanks again to alla of U
08/14/2013 00:42 Mijago#6
Code:
quest cookie begin
    state start begin
        when 12345.click begin
            if pc.get_level() < 95 then
                say "You need level 95 bla"
                return
            end
            local item = 1234
            say("Hello, "..pc.get_name()..".")
            say "So you want to go on Map XXX?"
            local count = pc.count_item(item)
            if count > 0 then
                say "Your item will go away!"
                if select("Yes","no") == 1 then
                    if pc.count_item(item) == count then
                        say "Okay , i'll warp you."
                        pc.remove_item(item,1) -- remove item
                        wait()
                        pc.warp(123,456)
                    else
                        say "Buguser!!"
                    end
                else
                    say "Bye"
                end
            else
                say("You need this item:")
                say_item(item)
            end
        end
    end
end
08/14/2013 09:30 AGU#7
Well i think you don't need it. Because player under level 95 can't see the quest and when they're 95 or higher then they knew by their own that they can't warp until their level 95
08/14/2013 12:56 Ocelot2606#8
@Mijago

Ist das Absischt das bei den meisten say´s keine Klammern sind oder ist dir da ein Fehler unterlaufen xD
08/14/2013 16:29 Mijago#9
Absicht, weil unnötig :D