Orb seller

12/09/2012 00:27 mlejnek2#1
how to make a NPC sell items for orb's or edit the orb seller shop to sell what we want it to ? tyvm in advance
12/09/2012 00:36 c1ph3r#2
lua-scripting?!?!? I do not understand the real problem could you pls descripe the issue a little bit more

because the creature orb seller is in the .lua scripts...
12/09/2012 01:57 mlejnek2#3
i have the 7.4 and 8.1 files i dont see the orb seller we are trying to add thing's to the orb seller to buy with the orbs
12/09/2012 12:43 mongreldogg#4
try to search it in 7.1 GS or elder scripts folders. i found it once there
12/09/2012 21:24 mlejnek2#5
still havent seen any files with the Ord trader so if anyone has it pls send me tyvm ive been through all the posted server files here
12/09/2012 21:46 Superbuu.#6
Quote:
Originally Posted by mlejnek2 View Post
still havent seen any files with the Ord trader so if anyone has it pls send me tyvm ive been through all the posted server files here
I think you can found it on Infinite Files 7.3 ! :)
12/22/2012 02:54 mlejnek2#7
Ok so can anyone send me the Lua needed for the ord trader plz and ty ive looking in every repack and cant seem to find it anywere unless its in with other NPC lua.
12/22/2012 06:49 gavsta#8
An example of how to make the Orb trader.


Code:
function NPC_US_2010_medal_trade_start()

			dlg_title( "Orb Trader" )
			dlg_text( "Hello, I am here take to your orbs.." )
			dlg_menu( "Bronze Orbs", "bronze_orb()" )	
		
			dlg_menu( "@90010002", "" )	
			dlg_show()
			
		return
		
end


function bronze_orb() 
dlg_title( "Bronze" )
dlg_text("Hello I am here to give you cool things for bronze Orbs.")

dlg_menu("Somecoolthings", "br_cool()")

dlg_menu("Goodbye","")
dlg_show()


return
end


function br_cool()
dlg_title("Cool Stuff")
dlg_text( "Some cool stuff I have here")
dlg_menu("A carrot 2 Bronze Orbs","br_cool_1()")
dlg_menu("A Pear. 2 Bronze Orbs","br_cool_2()")

dlg_menu("Goodbye","")
dlg_show()
return
end




function br_cool_1()
	local borb_count = find_item( 2011307 )

		if borb_count >= 2 then
		delete_item (get_item_handle(2011307), 2 )
		insert_item(540019, 1)
		insert_item(540019, 1, 0, 0, 0)
		insert_item(710003, 1)
		cprint("<#FFC125> You Traded 2 Bronze Orbs for something cool")
		return
		else
		dlg_text( "You need more Bronze Orbs" )
		dlg_menu( "@90010002", "" )

	end
end