Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 02/18/20 in Posts

  1. 2 points
    Hyroshima

    Barter shop doubt

    try this way: - trader Shop1 FAKE_NPC,{ OnInit: tradertype(NST_BARTER); sellitem White_Herb, 100, Red_Potion, 2; sellitem Blue_Herb, 200, Orange_Potion, 3; end; } - trader Shop2 FAKE_NPC,{ OnInit: tradertype(NST_BARTER); sellitem Green_Herb, 100, Red_Potion, 4; sellitem White_Herb, 100, Orange_Potion, 1; end; } - trader Shop3 FAKE_NPC,{ OnInit: tradertype(NST_BARTER); sellitem Apple, -1, Orange_Potion, 1; sellitem Praetorian_Shield, 100, Berserk_Potion, 10; end; } prontera,159,284,4 trader Barter Shop 4_M_KID1,{ mes "Select the shop for open!"; switch(select("Shop 1:Shop 2:Shop 3")) { case 1: close2; openshop "Shop1"; break; case 2: close2; openshop "Shop2"; break; case 3: close2; openshop "Shop3"; break; } end; }
  2. 1 point
    From last release in hercules was added new shop type: expanded barter shop. This shop allow buy item with different amount and pay with other items or with money. For removed items supported refine levels. Also this shop allow infinite or limited numbers in shop. Limited numbers saved into database. For use shop example script uncomment in file npc/scripts_custom.conf this line: //"npc/custom/expandedbartershop.txt", This shop supported from clients: Ragexe: 2019-11-20 and newer RagexeRE: 2019-11-06 and newer Ragexe zero: 2019-11-27 and newer Same sample images:
  3. 1 point
    Tio Akima

    Barter shop doubt

    @4144 @Hyroshima Thank you for your help! it worked. ty [SOLVED]
  4. 1 point
    4144

    Barter shop doubt

    try use two or more npcs. Even at same position if you want shops hidden. also for barter shops you must set shop type. in your example type is missing
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.