[SUCHE] function

10/28/2013 16:01 giwrgos23#1
Hello epvp!
I'm searching a function for my quest to block some items in some maps!
Like this but this is not working :/

PHP Code:
quest rollenblock begin 
    state start begin 
        when 70302.
use with pc.get_map_index() == 12 or pc.get_map_index() == 79 or pc.get_map_index() == 26 or pc.get_map_index() == 73 begin
            chat
("you canot use ring of weding here.")
        
end
    end
end 
10/28/2013 16:22 nostradame37#2
Use this

PHP Code:
quest same begin
    state start begin
        when xxx
.use begin
            
if pc.get_map_index() == or pc.get_map_index() == 21 or pc.get_map_index() == 41 or pc.get_map_index() == or pc.get_map_index() == 23 or pc.get_map_index() == 43 then
                chat
("Den mas gamas re megale?")
            else
                
            
end
        end
    end
end 
10/28/2013 23:06 giwrgos23#3
Quote:
Originally Posted by nostradame37 View Post
Use this

PHP Code:
quest same begin
    state start begin
        when xxx
.use begin
            
if pc.get_map_index() == or pc.get_map_index() == 21 or pc.get_map_index() == 41 or pc.get_map_index() == or pc.get_map_index() == 23 or pc.get_map_index() == 43 then
                chat
("Den mas gamas re megale?")
            else
                
            
end
        end
    end
end 
Not working!
Paparia mentoles!
10/29/2013 09:22 .ProjektX²#4
PHP Code:
quest rollenblock begin
    state start begin
        when XXX
.use begin
            
if ({1,2,3,4,5,6,7})[pc.get_map_index()] then syschat'You cant use the item here.' return end --change 1,2,3.to the mapindexes you wantYou can add as many as you want.
            --
your code if its not on the blockedindex
        end
    end
end