AnonymousRO Super Moderator
Rasa : Razboinic Obiecte : Licori Full , Papuci De Vand , Inel De Experienta Arma : Arma 2011 +9 Armura : King 10 Yang : 900000000000000000000000 Fost Nume : F.B.I Avetismente : 0 din 3 Reputatie : S Moderator Mesaje : 43 Puncte : 61 Reputatie : 0 Varsta : 31 Localitate : Cluj-N
| Subiect: [RELEASE] Private Shop Sam Ian 28, 2012 3:19 pm | |
|
1. ServerSide PrivateShop.quest - Spoiler:
quest 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("Inchide magazinul") end when info or button begin say_title("Magazin:") say("Vrei sa inchizi magazinul ?") local s = select("Da","Nu") 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
Ne logam navicat mergem player/item_proto apasam CTRL+Q si introducem urmatoarele:
- Spoiler:
INSERT INTO `item_proto` VALUES ('50199', 0x5061636F7465202020202020202020202020202020202020, 0x5061636F7465202020202020202020202020202020202020, '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');
2 ClientSide item_proto - Spoiler:
Extractam root.epk/eix si mergem in fisierul uishop.py Mergem la linia 141 si schimbam:
- Spoiler:
def 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
Mergem locale/item_list.txt
- Spoiler:
50199 ETC icon/item/50200.tga
Mergem locale/itemdesc.txt
- Spoiler:
50199 Package Poti deschide un magazin privat si il poti inchide cu scrisoarea din stanga .
| |
|