Hali Hát nem láttam fent EzérT Felteszem.
Remélem Nem fogják Törölni.
Elég Hasznos Lehet.
Hali Leirom hogy kell boltnyitáskor megcsinálni hogy szék legyen ne karakter.
Szerverbe:
PrivateShop.quest Idézquest PrivateShop begin
state start begin
when 50199.use begin
pc.remove_item(50199)
cmdchat("OpenPrivateShop")
pc.polymorph(30000,30758400)
command("unmount")
pc.give_item2(50200)
set_state("shop_opened")
end
end
state shop_opened begin
when letter begin
send_letter("Close Private shop")
end
when info or button begin
say_title("Private Shop")
say("Want close your private shop?")
local s = select("YES","NO")
if s == 1 then
command("close_shop")
pc.remove_polymorph()
set_state( __COMPLETE__ )
end
end
end
state __COMPLETE__ begin
when enter begin
clear_letter()
set_state( start )
end
end
end
[/I]
Navicat--> Player-->F6, console:IdézINSERT INTO `item_proto` VALUES ('50199', 0x5061636F746520202020202020202 0202020202020202020, 0x5061636F746520202020202020202 0202020202020202020, '18', '0', '0', '1', '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', '-1', '-1', '-1', '-1', '-1', '-1', '0', '0', '0');
Kliens:
item_proto:Idéz<Item vnum="50199" hashName="'Pacote'" name="Pacote" type="18" subtype="0" weight="0" size="1" antiflag="0" flag="0" wearflag="0" immuneflag="0" gold="0" buy_price="0" limittype0="0" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="0" applyvalue0="0" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="0" value2="0" value3="0" value4="0" value5="0" socket0="0" socket1="64896" socket2="127" socket3="65008" socket4="21631" socket5="4855" refine_vnum="0" refine_set="0" magic_pct="0" specular="0" socket_pct="0" />
root/uishop.py
141. sorban kell átírni pár sort.:
Idézdef Close(self):
self.OnCloseQuestionDialog()
shop.Close()
net.SendShopEndPacket()
self.CancelShopping()
self.tooltipItem.HideToolTip()
self.Hide()
def AskClosePrivateShop(self):
questionDialog = uiCommon.QuestionDialog()
questionDialog.SetText(locale.PRIVATE_SHOP_CLOSE_QUESTION)
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "to close the shop you need close on the QUEST")
return TRUE
def OnClosePrivateShop(self):
chat.AppendChat(chat.CHAT_TYPE_NOTICE, "to close the shop you need close on the QUEST")
self.OnCloseQuestionDialog()
return TRUE
def OnPressEscapeKey(self):
self.Close()
return TRUE
def OnPressExitKey(self):
self.Close()
return TRUE
locale_de/item_list.txtitemdesc.txtIdéz50199 Pacote Ezzel a tárggyal privát boltot nyithatsz.
Nem a legtökéletesebb, de ez van publikálva.
Videó:http://www.youtube.com/v/cGfNcRZ34Ss&feature=player_embedded