How to make multi-options to a NPC

07/29/2012 18:40 Skia08#1
Hey everybody.. My real life frien is working on creating a Metin2 P server.
Well, he has downloaded server-files made by Daroo ^^
Tho they are buggy but he's workin' on fixing them.. There're some stuff still hidden from him and which he doesn't know how to work on em.. one of em is, where to find the NPC files in the Server-files and how to make multi-options for em.. for example, if u click on the General-Store, I will show u some options like "Spirit stones, Itemshop, General shop, ect... "
Hope somebody is able to help me out with this .. I'm lookin forward for replies!
Thanks in advance !! <3
09/07/2012 17:43 blurgh#2
wat ur looking for is based on the quest file that are directed to that specific NPC, the files can be found in the forum.
09/07/2012 17:50 Ʀyuzaki#3
PHP Code:
quest multi_npc start
    state start begin
       when 
*Vnum*.Chat."Shops" begin
          say
("Blub")
          if 
select("Weapon""Armor""Equipment") == 1 then
             npc
.open_shop(shop_number)
         elseif 
select("Weapon""Armor""Equipment") == 2 then
              npc
.open_shop(shop_number)
         elseif 
select("Weapon""Armor""Equipment") == 3 then
              npc
.open_shop(shop_number)
         
end
    end
end 
Non-Tested !
09/07/2012 20:07 .Ziadd#4
Quote:
Originally Posted by Mr.Aw3s0me View Post
PHP Code:
quest multi_npc start
    state start begin
       when 
*Vnum*.Chat."Shops" begin
          say
("Blub")
          if 
select("Weapon""Armor""Equipment") == 1 then
             npc
.open_shop(shop_number)
         elseif 
select("Weapon""Armor""Equipment") == 2 then
              npc
.open_shop(shop_number)
         elseif 
select("Weapon""Armor""Equipment") == 3 then
              npc
.open_shop(shop_number)
         
end
    end
end 
Non-Tested !
Works! :)