Quest functions

01/24/2013 16:03 deyan4you#1
Hello,i need a quest functions for inventory full : when someoane try to open Truhen,and inventory is full,her not work to open truhen.


Sorry,for my bad Enghlish..
01/24/2013 16:46 ©by Noa#2
PHP Code:
quest treasure begin
    state start begin
        when id
.use begin
            
if pc.get_empty_inventory_count()>= count of empty slotzs then
                pc
.give_item2(id,count)
            else
                
say("you need more space")
            
end
        end
    end
end 
01/25/2013 14:06 deyan4you#3
Quote:
Originally Posted by ©by Noa View Post
PHP Code:
quest treasure begin
    state start begin
        when id
.use begin
            
if pc.get_empty_inventory_count()>= count of empty slotzs then
                pc
.give_item2(id,count)
            else
                
say("you need more space")
            
end
        end
    end
end 
Where i can put this function ? i make this quest ,and don't work ...
"syntax error : [string "start"]:1: `then' expected near `of'
treasure.quest:9:Abort (core dumped)"
01/26/2013 20:07 deyan4you#4
Upp !