Multiple Shop in one npc

02/03/2011 12:15 mircy96#1
How can I make an npc with 3-4 shops in it ? Please show me a guide or somethin ( doesn't matter language ) Here is a photo :

[Only registered and activated users can see links. Click Here To Register...]
02/03/2011 13:14 Inѕane#2
wrong section!

#moverequest
02/03/2011 16:48 Crank#3
#moved
02/03/2011 16:53 3jfx#4
local s = select("shop a", "shop b", "shop c", "cancel")
if s == 4 then
return
end

local sl = {50, 51, 52} -- shop vnums
npc.open_shop(sl[s])
02/03/2011 17:19 Chill3rux#5
sufu :D there are many Thread about it
02/03/2011 17:25 Sir eb#6
like this

Code:
quest gemischtwaren begin
	state start begin
	
		when 9003.chat."Potts/Steinshop" begin
	        npc . open_shop( 3 )
		setskin(NOWINDOW)
		end

		when 9003.chat."Uppitems" begin
	    	npc . open_shop( 3 )
		setskin(NOWINDOW)
		end
		
		when 9003.chat."kommt noch" begin
	    	npc . open_shop( 200 )
		setskin(NOWINDOW)
		end
		
		when 9003.chat."kommt noch" begin
	    	npc . open_shop( 201 )
		setskin(NOWINDOW)
		end
		
	end
end