noisiv 1
noisiv
Manwe Work 1
Manwe Work
romegames 1
romegames
kralhakan2009 1
kralhakan2009
Vahsi Uzman 1
Vahsi Uzman
Bvural41 1
Bvural41
NovaLst 1
NovaLst
bikral 1
bikral
Hikaye Ekle
Reklam vermek için turkmmo@gmail.com
Kaynak ikonu

ShopExRenewal 2020-11-14

indirmek için izniniz yok

ROHAN2 WORLD 1-120 TR TİPİ OFFICIAL YOHARA, BALATHOR VE AMON! 80. GÜNÜNDE! +10.000 ONLİNE! HİLE VE BOT %100 ENGELLİ HEMEN TIKLA!

Reload komutu ekledim
/reload x

questli npc'de npc.open_shop() komutuyla açılmıyo nasıl yapabiliriz.
 
Theowahdan mesela bu npc quest ile kombinasyon felan yapılıyor bu npcye ek quest ekledim içine npc.open_shop() komutunu ekledim fakat npc.open_shop() komutuyla bu sistem olmadı. sql dan shop ve shop_item e ekleyin oluyor oda bu sistemle çakışıyor bu sefer syserr veriyo girilmiyor.

[CODE title="sash.lua"]quest sash begin
state start begin
when 20406.chat."What is a Sash?" begin
say_title(mob_name(20406))
say("")
say("The sash offers you two options:")
say("Combination & Absorption.")
say("")
say("You can try combination with sash of same")
say("grade. Two sash combined can generate a")
say("sash of a biggest grade.")
say("")
say("In a absorption the sash take the bonus")
say("of a weapon or amour at a rate of your")
say("sash. The absorption rate varies between")
say("the sash grade, the weapon or amour")
say("absorbed will be destroyed.")
say("")
end

when 20406.chat."Combination" begin
say_title(mob_name(20406))
say("")
say("Would you like to combine two sashes?")
say("")
local confirm = select("Yes", "No")
if confirm == 2 then
return
end

setskin(NOWINDOW)
pc.open_sash(true)
end

when 20406.chat."Absorption of bonuses" begin
say_title(mob_name(20406))
say("")
say("Do you want to absorb bonuses from your weapon")
say("or amour?")
say("")
local confirm = select("Yes", "No")
if confirm == 2 then
return
end

setskin(NOWINDOW)
pc.open_sash(false)
end

when 20406.chat."Marketi AC" begin
setskin(NOWINDOW)
npc.open_shop(20406)
end
end
end[/CODE]

[CODE title="shop_table_ex.txt"]Group ShopNPC
{
#--# NPC Group
1 20406 TAB1
}

Group TAB1
{
Vnum 20406
Name KUSAK
sort Name
Group Items
{
#--# Vnum Count Price price_type price_vnum socket0 socket1 socket2 attr_type0 attr_value0 attr_type1 attr_value1 attr_type2 attr_value2 attr_type3 attr_value3 attr_type4 attr_value4 attr_type5 attr_value5 attr_type6 attr_value6
1 85001 1 40 3 85000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2 85005 1 40 3 85000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
3 85011 1 40 3 85000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
4 85015 1 40 3 85000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
}
}[/CODE]
 
Son düzenleme:
Theowahdan mesela bu npc quest ile kombinasyon felan yapılıyor bu npcye ek quest ekledim içine npc.open_shop() komutunu ekledim fakat npc.open_shop() komutuyla bu sistem olmadı. sql dan shop ve shop_item e ekleyin oluyor oda bu sistemle çakışıyor bu sefer syserr veriyo girilmiyor.

[CODE title="sash.lua"]quest sash begin
state start begin
when 20406.chat."What is a Sash?" begin
say_title(mob_name(20406))
say("")
say("The sash offers you two options:")
say("Combination & Absorption.")
say("")
say("You can try combination with sash of same")
say("grade. Two sash combined can generate a")
say("sash of a biggest grade.")
say("")
say("In a absorption the sash take the bonus")
say("of a weapon or amour at a rate of your")
say("sash. The absorption rate varies between")
say("the sash grade, the weapon or amour")
say("absorbed will be destroyed.")
say("")
end

when 20406.chat."Combination" begin
say_title(mob_name(20406))
say("")
say("Would you like to combine two sashes?")
say("")
local confirm = select("Yes", "No")
if confirm == 2 then
return
end

setskin(NOWINDOW)
pc.open_sash(true)
end

when 20406.chat."Absorption of bonuses" begin
say_title(mob_name(20406))
say("")
say("Do you want to absorb bonuses from your weapon")
say("or amour?")
say("")
local confirm = select("Yes", "No")
if confirm == 2 then
return
end

setskin(NOWINDOW)
pc.open_sash(false)
end

when 20406.chat."Marketi AC" begin
setskin(NOWINDOW)
npc.open_shop(20406)
end
end
end[/CODE]

[CODE title="shop_table_ex.txt"]Group ShopNPC
{
#--# NPC Group
1 20406 TAB1
}

Group TAB1
{
Vnum 20406
Name KUSAK
sort Name
Group Items
{
#--# Vnum Count Price price_type price_vnum socket0 socket1 socket2 attr_type0 attr_value0 attr_type1 attr_value1 attr_type2 attr_value2 attr_type3 attr_value3 attr_type4 attr_value4 attr_type5 attr_value5 attr_type6 attr_value6
1 85001 1 40 3 85000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2 85005 1 40 3 85000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
3 85011 1 40 3 85000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
4 85015 1 40 3 85000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
}
}[/CODE]
npc.open_shop() böyle dene
 

Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)

Geri
Üst