[MINI-RELEASE]Begginer-Chest Unbugged

09/01/2013 13:04 s3da71v#1
Hello ..here is a little quest for begginer chest.
I mean chest who are on official servers(lv10,20,30,40,etc)
On a lot of servers this chest is bugged i mean you can open when you have full
inventory so ...item's drop on ground and next chest ...
Here is a quest who repair that bug
Quote:
--------------------------------
--Sedatu' Quest's
--------------------------------
quest beginner_chest begin
state start begin
when 50188.use begin
if pc.get_empty_inventory_count() <= 0 then ---how much space must be empty in inventory
say("Inventory is full.") ---------Chat message
return
end
pc.give_item2(19, 1) --------------Item drop from chest
pc.give_item2(50189, 1) --------Give next chest
pc.remove_item(50188, 1) -- Delete old chest
end
end
end
Something i've forgot ...if you want to make the chest work with quest you must change in item_proto
type 23 with type 18
type 23 is for chests
and type 18 for quests
09/01/2013 13:09 fox834#2
[Only registered and activated users can see links. Click Here To Register...]