You should really post questions like this in the help thread.
It takes a little bit more than just a script, but I can post an example script that I use for my NPC that was written by one of the first repack creators STARS online.
Code:
function get_module_name()
return "StarsOnlineShop"
end
function StarsOnlineShop_contact()
dlg_title("StarsOnline")
dlg_text("Welcome to the rappelz free convenient mart")
dlg_menu("Passes to the Hidden Village", "open_market( 'hv_pass' )" )
dlg_menu("Cash shop items list 1", "open_market( 'StarsDaily()' )" ) --10765
dlg_menu("Cash shop items list 2", "open_market( 'shop_mo3dat' )" )
dlg_menu("Armor and weapon supplies", "StarsOnline_tools()" )
dlg_menu("Decorative Items", "open_market( 'shop_zeena' )" )
dlg_menu("Wings", "open_market('starsnew()')" )
dlg_menu("Tear Drop Soul Stones", "open_market( 'StarsSoulstone' )" )
dlg_menu("Loot pets", "open_market( 'stars_pet' )" )
dlg_menu("+3 Skill Cards", "Stars_cards()" )
dlg_menu("Goodbye", '' )
dlg_show()
end
function StarsOnline_tools()
dlg_title("StarsOnline")
dlg_text("What type of equipment are you looking for")
dlg_menu("Rank 4", "Rank4()")
dlg_menu("Rank 5", "Rank5()")
dlg_menu("Rank 6", "Rank6()")
dlg_menu("Rank 7", "Rank7()")
dlg_menu("Helmets and cloaks", "open_market('shop_armor_others_1')" )
dlg_menu("Previous choices", "StarsOnlineShop_contact()" )
dlg_menu("Goodbye", '' )
dlg_show()
end
function Rank4()
dlg_title("StarsOnline")
dlg_text("All your rank 4 equipment needs")
dlg_menu("Rank 4 armor body", "open_market('shop_armor_body_4')" )
dlg_menu("Rank 4 belts", "open_market('shop_armor_belt_4')" )
dlg_menu("Rank 4 gloves", "open_market('shop_armor_gloves_4')" )
dlg_menu("Rank 4 boots", "open_market('shop_armor_shoes_4')" )
dlg_menu("Rank 4 one handed weapons", "open_market('shop_weapon_1hand_4')" )
dlg_menu("Rank 4 two handed weapons", "open_market('shop_weapon_2hand_4')" )
dlg_menu("Previous choices", "StarsOnline_tools()" )
dlg_menu("Goodbye", '' )
dlg_show()
end
function Rank5()
dlg_title("StarsOnline")
dlg_text("All your rank 5 equipment needs")
dlg_menu("Rank 5 armor body", "open_market('shop_armor_body_5')" )
dlg_menu("Rank 5 belts", "open_market('shop_armor_belt_5')" )
dlg_menu("Rank 5 gloves", "open_market('shop_armor_gloves_5')" )
dlg_menu("Rank 5 boots", "open_market('shop_armor_shoes_5')" )
dlg_menu("Rank 5 one handed weapons", "open_market('shop_weapon_1hand_5')" )
dlg_menu("Rank 5 two handed weapons", "open_market('shop_weapon_2hand_5')" )
dlg_menu("Previous choices", "StarsOnline_tools()" )
dlg_menu("Goodbye", '' )
dlg_show()
end
function Rank6()
dlg_title("StarsOnline")
dlg_text("All your rank 6 equipment needs")
dlg_menu("Rank 6 armor body", "open_market('shop_armor_body_6')" )
dlg_menu("Rank 6 belts", "open_market('shop_armor_belt_6')" )
dlg_menu("Rank 6 gloves", "open_market('shop_armor_gloves_6')" )
dlg_menu("Rank 6 boots", "open_market('shop_armor_shoes_6')" )
dlg_menu("Rank 6 one handed weapons", "open_market( 'shop_weapon_1hand_6' )" )
dlg_menu("Rank 6 two handed weapons", "open_market( 'shop_weapon_2hand_6' ) " )
dlg_menu("Previous choices", "StarsOnline_tools()" )
dlg_menu("Goodbye", '' )
dlg_show()
end
function Rank7()
dlg_title("StarsOnline")
dlg_text("All your rank 7 equipment needs")
dlg_menu("Rank 7 armor body", "open_market('shop_armor_body_7')" )
dlg_menu("Rank 7 belts", "open_market('shop_armor_belt_7')" )
dlg_menu("Rank 7 gloves", "open_market('shop_armor_gloves_7')" )
dlg_menu("Rank 7 boots", "open_market('shop_armor_shoes_7')" )
dlg_menu("Rank 7 one handed weapons", "open_market('shop_weapon_1hand_7')" )
dlg_menu("Rank 7 two handed weapons", "open_market('shop_weapon_2hand_7')" )
dlg_menu("Rank 7 accessory sets Epic 7.4", "open_market('KickAss7.4set')" )
dlg_menu("Previous choices", "StarsOnline_tools()" )
dlg_menu("Goodbye", '' )
dlg_show()
end
function Stars_cards()
dlg_title( "StarsOnline" )
dlg_text( "We carry +3 skill cards for all races and classes" )
dlg_menu( "Cards common to all races and classes", "open_market( 'shop_skill_all' )" )
dlg_menu( "Cards for the Deva classes", "open_market( 'shop_skill_deva' )" )
dlg_menu( "Cards for the Asura classes", "open_market( 'shop_skill_asura' )" )
dlg_menu( "Cards for the Gaia classes", "open_market( 'shop_skill_gaia' )" )
dlg_menu("Master class cards", "open_market( 'shop_skill_tp' )" )
dlg_menu("Previous choices", "StarsOnlineShop_contact()" )
dlg_menu( "Goodbye", '' )
dlg_show()
end
Now I have made my own edits to this script to improve on it and also my own edits to all of the markets that this script commands to open to either add or remove or order items better fit to my level of OCD.
Also my NPCs I use entered into arcadia.dbo.NPCResource
Code:
10042 100010042 105010042 99 0 7408 6853 0 180 0 -2 -5 15 npc_lamiagirl 10104 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 StarsOnlineShop_contact() -1 0
11555 100011555 105011555 99 0 152465 77138 0 0 0 3 -9 20 ain_fusion_partdevil 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 StarsOnlineShop_contact() -1 0
10042 100010042 105010042 99 0 116960 58263 0 180 0 -2 -5 15 npc_lamiagirl 10104 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 StarsOnlineShop_contact() -1 0
10042 100010042 105010042 99 0 137805 105393 0 180 0 -2 -5 15 npc_lamiagirl 10104 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 StarsOnlineShop_contact() -1 0
10042 100010042 105010042 99 0 221897 21350 0 180 0 -2 -5 15 npc_lamiagirl 10104 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 StarsOnlineShop_contact() -1 0
10042 100010042 105010042 99 0 153023 77140 0 180 0 -2 -5 15 npc_lamiagirl 10104 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 StarsOnlineShop_contact() -1 0
I can post my market resource entries that go with the script and NPCs but someone else has to reply to the thread first.
The Market entries are far too large to post in what I had already written but they will post in their own reply.