You can change time limits for timed items in the db, though I'm not going to show you how.
"If you give a man a fix, he can fix one thing; If you make a man figure it out he can fix many things"
I'm not gonna type a lengthy explanation so I'll show you my old npc that's set up kinda like this.
Code:
function NPC_aio_shop_init()
cprint( "AiO Shop" )
set_npc_name( "All in One Shop" )
end
function NPC_aio_shop_contact()
dlg_title( "All in One Shop" )
dlg_text( "Welcome to the All in One Shop. Please select a category." )
dlg_menu( "Usables", "open_market( 'crushop_etc' )" )
dlg_menu( "Cash Shop Decoration", "open_market( 'cashshop_deco' )" )
dlg_menu( "Cash Shop Equipment", "open_market( 'crushop_equip' )" )
dlg_menu( "Cash Shop Pet Items", "open_market( 'cs_pet' )" )
dlg_menu( "Creature Cards", "open_market( 'Creature_card' )" )
dlg_menu( "Stone Shop", "open_market( 'soul_stone' )" )
dlg_menu( "Crafting Shop", "open_market( 'enchant_items' )" )
dlg_menu( "Vulcanus Souls", "open_market( 'tiny_soul_shop' )")
dlg_menu( "Hair Stylists", "open_market( 'crushop_hair' )")
dlg_menu( "New Equipment", "new_equips()")
dlg_menu( "+1 Cards", "plus_five_cards()")
dlg_menu( "Summoning Scrolls", "open_market( 'Summoning_Scrolls' )")
dlg_menu( "Pet Artifacts", "open_market( 'Pet_artifacts' )")
if get_value("permission") == 100 then
dlg_menu( "GM Gifts", "gm_gifts()")
dlg_menu( "Boss Cards", "open_market( 'boss_cards' )")
end
dlg_menu( "@90010002", '' )
dlg_show()
end
function new_equips()
dlg_title( "All in One Shop")
dlg_text( "Items bought here are character bound! Be careful!")
dlg_menu( "Weapon/Mantle", "open_market( 'crushop_Newequip_weapon_mantle' )" )
dlg_menu( "Armors", "open_market( 'crushop_Newequip_armors' )" )
dlg_menu( "Helms", "New_helms()")
dlg_menu( "@90010002", '' )
end
function New_helms()
dlg_title( "All in One Shop")
dlg_text( "Items bought here are character bound! Be careful!")
dlg_menu( "Rank 7 Helms", "open_market( 'crushop_Newequip_helm_7rank' )" )
dlg_menu( "Rank 6 Helms", "open_market( 'crushop_Newequip_helm_6rank' )" )
dlg_menu( "Rank 5 Helms ", "open_market( 'crushop_Newequip_helm_5rank' )" )
dlg_menu( "Rank 4 Helms", "open_market( 'crushop_Newequip_helm_4rank' )" )
dlg_menu( "Rank 3 Helms", "open_market( 'crushop_Newequip_helm_3rank' )" )
dlg_menu( "Rank 2 Helms", "open_market( 'crushop_Newequip_helm_2rank' )" )
dlg_menu( "@90010002", '' )
end
function gm_gifts()
dlg_title( "All in One Shop")
dlg_text( "These items can be sold to players for shop prices - do not raise/lower prices!")
dlg_menu( "Usables", "open_market( 'gm_gifts_usables' )")
dlg_menu( "Swords", "open_market( 'swords' )")
dlg_menu( "Dirks", "open_market( 'dirks' )")
dlg_menu( "Spears", "open_market( 'spears' )")
dlg_menu( "Axes", "open_market( 'axes' )")
dlg_menu( "Maces", "open_market( 'maces' )")
dlg_menu( "Longbows", "open_market( 'longbo' )")
dlg_menu( "Crossbows", "open_market( 'crossbo' )")
dlg_menu( "1H Staffs", "open_market( '1staffs' )")
dlg_menu( "2H Staffs", "open_market( '2staffs' )")
dlg_menu( "Belts", "open_market( 'belts' )")
dlg_menu( "Master Hunter", "masterhunter()" )
dlg_menu( "Master Warrior", "masterwarrior()" )
dlg_menu( "Master Mage", "mastermage()" )
dlg_menu( "Master Summoner", "mastersummoner()" )
dlg_menu( "@90010002", '' )
end
function masterhunter()
dlg_title( "All in One Shop")
dlg_text( "The ultimate equipment...")
dlg_menu( "Armor", "open_market( 'hmasterarmor' )" )
dlg_menu( "Gloves", "open_market( 'hmastergloves' )" )
dlg_menu( "Boots", "open_market( 'hmasterboots' )" )
dlg_menu( "Helmets", "open_market( 'hmasterhelmets' )" )
dlg_menu( "@90010002", '' )
end
function masterwarrior()
dlg_title( "All in One Shop")
dlg_text( "The ultimate equipment...")
dlg_menu( "Armor", "open_market( 'wmasterarmor' )" )
dlg_menu( "Gloves", "open_market( 'wmastergloves' )" )
dlg_menu( "Boots", "open_market( 'wmasterboots' )" )
dlg_menu( "Helmets", "open_market( 'wmasterhelmets' )" )
dlg_menu( "@90010002", '' )
end
function mastermage()
dlg_title( "All in One Shop")
dlg_text( "The ultimate equipment...")
dlg_menu( "Armor", "open_market( 'mmasterarmor' )" )
dlg_menu( "Gloves", "open_market( 'mmastergloves' )" )
dlg_menu( "Boots", "open_market( 'mmasterboots' )" )
dlg_menu( "Helmets", "open_market( 'mmasterhelmets' )" )
dlg_menu( "@90010002", '' )
end
function mastersummoner()
dlg_title( "All in One Shop")
dlg_text( "The ultimate equipment...")
dlg_menu( "Armor", "open_market( 'smasterarmor' )" )
dlg_menu( "Gloves", "open_market( 'smastergloves' )" )
dlg_menu( "Boots", "open_market( 'smasterboots' )" )
dlg_menu( "Helmets", "open_market( 'smasterhelmets' )" )
dlg_menu( "@90010002", '' )
end
function plus_five_cards()
dlg_title( "All in One Shop")
dlg_text( "These cards make you stronger!")
dlg_menu( "Basic Skill Cards", "open_market( 'Basic_skill_cards' )" )
dlg_menu( "Asura Skill Cards", "Asura_skill_cards()" )
dlg_menu( "Gaia Skill Cards", "Gaia_skill_cards()" )
dlg_menu( "Deva Skill Cards", "Deva_skill_cards()" )
dlg_menu( "Master Skill Cards", "Master_skill_cards()" )
dlg_menu( "@90010002", '' )
end
function Asura_skill_cards()
dlg_title( "All in One Shop")
dlg_text( "These cards make you stronger!")
dlg_menu( "Strider Cards", "open_market( 'strider_cards' )" )
dlg_menu( "Dark Magician Cards", "open_market( 'dark_magician_cards' )" )
dlg_menu( "Sorcerer", "open_market( 'sorcerer_cards' )" )
dlg_menu( "Assassin Cards", "open_market( 'assassin_cards' )" )
dlg_menu( "Shadow Hunter Cards", "open_market( 'shadow_hunter_cards' )" )
dlg_menu( "Chaos Magician Cards", "open_market( 'chaos_magician_cards' )" )
dlg_menu( "Warlock", "open_market( 'warlock_cards' )" )
dlg_menu( "Battle Summoner Cards", "open_market( 'battle_summoner_cards' )" )
dlg_menu( "@90010002", '' )
end
function Gaia_skill_cards()
dlg_title( "All in One Shop")
dlg_text( "These cards make you stronger!")
dlg_menu( "Fighter Cards", "open_market( 'fighter_cards' )" )
dlg_menu( "Kahuna Cards", "open_market( 'kahuna_cards' )" )
dlg_menu( "Spell Singer", "open_market( 'spell_singer_cards' )" )
dlg_menu( "Champion Cards", "open_market( 'champion_cards' )" )
dlg_menu( "Archer Cards", "open_market( 'archer_cards' )" )
dlg_menu( "Druid Cards", "open_market( 'druid_cards' )" )
dlg_menu( "Battle Kahuna Cards", "open_market( 'battle_kahuna_cards' )" )
dlg_menu( "Evoker Cards", "open_market( 'evoker_cards' )" )
dlg_menu( "@90010002", '' )
end
function Deva_skill_cards()
dlg_title( "All in One Shop")
dlg_text( "These cards make you stronger!")
dlg_menu( "Holy Warrior Cards", "open_market( 'holy_warrior_cards' )" )
dlg_menu( "Cleric Cards", "open_market( 'cleric_cards' )" )
dlg_menu( "Breeder", "open_market( 'breeder_cards' )" )
dlg_menu( "Knight Cards", "open_market( 'knight_cards' )" )
dlg_menu( "Soldier Cards", "open_market( 'soldier_cards' )" )
dlg_menu( "Priest", "open_market( 'priest_cards' )" )
dlg_menu( "Bishop", "open_market( 'bishop_cards' )" )
dlg_menu( "Soul Breeder Cards", "open_market( 'soul_breeder_cards' )" )
dlg_menu( "@90010002", '' )
end
function Master_skill_cards()
dlg_title( "All in One Shop")
dlg_text( "These cards make you stronger!")
dlg_menu( "Asura Cards", "master_asura_cards()" )
dlg_menu( "Gaia Cards", "master_gaia_cards()" )
dlg_menu( "Deva", "master_deva_cards()" )
dlg_menu( "@90010002", '' )
end
function master_asura_cards()
dlg_title( "All in One Shop")
dlg_text( "These cards make you stronger!")
dlg_menu( "Slayer Cards", "open_market( 'slayer_cards' )")
dlg_menu( "Night Stalker Cards", "open_market( 'night_stalker_cards' )")
dlg_menu( "Lich Cards", "open_market( 'lich_cards' )")
dlg_menu( "Fiend Cards", "open_market( 'fiend_cards' )")
dlg_menu( "Necromancer Cards", "open_market( 'necromancer_cards' )")
dlg_menu( "@90010002", '' )
end
function master_gaia_cards()
dlg_title( "All in One Shop")
dlg_text( "These cards make you stronger!")
dlg_menu( "Berserker Cards", "open_market( 'berserker_cards' )")
dlg_menu( "Master Archer Cards", "open_market( 'master_archer_cards' )")
dlg_menu( "High Druid Cards", "open_market( 'high_druid_cards' )")
dlg_menu( "Great Kahuna Cards", "open_market( 'great_kahuna_cards' )")
dlg_menu( "Beast Master Cards", "open_market( 'beast_master_cards' )")
dlg_menu( "@90010002", '' )
end
function master_deva_cards()
dlg_title( "All in One Shop")
dlg_text( "These cards make you stronger!")
dlg_menu( "Crusader Cards", "open_market( 'crusader_cards' )")
dlg_menu( "Blader Cards", "open_market( 'blader_cards' )")
dlg_menu( "High Priest Cards", "open_market( 'high_priest_cards' )")
dlg_menu( "Arch Bishop Cards", "open_market( 'arch_bishop_cards' )")
dlg_menu( "Master Breeder Cards", "open_market( 'master_breeder_cards' )")
dlg_menu( "@90010002", '' )
end
Oh & for shops, just create a new market_name to put in your MarketResource when you're adding new entries.