1. Despachetati root.eix/.epk2.Intrati in : inventorywindow.py si inlocuiti totul cu :
Cod: Selectaţi tot
import uiScriptLocale
import item
EQUIPMENT_START_INDEX = 180
window = {
"name" : "InventoryWindow",
## 600 - (width + ????? ?? ??? 24 px)
"x" : SCREEN_WIDTH - 340,
"y" : SCREEN_HEIGHT - 37 - 350,
"style" : ("movable", "float",),
"width" : 340,
"height" : 350,
"children" :
(
## Inventory, Equipment Slots
{
"name" : "board",
"type" : "board",
"style" : ("attach",),
"x" : 0,
"y" : 0,
"width" : 340,
"height" : 350,
"children" :
(
## Title
{
"name" : "TitleBar",
"type" : "titlebar",
"style" : ("attach",),
"x" : 8,
"y" : 7,
"width" : 325,
"color" : "yellow",
"children" :
(
{ "name":"TitleName", "type":"text", "x":155, "y":3, "text":uiScriptLocale.INVENTORY_TITLE, "text_horizontal_align":"center" },
),
},
## LagerButton
{
"name" : "LagerButton",
"type" : "button",
"x" : 10,
"y" : 265,
"tooltip_text": "Lager",
"default_image" : "d:/ymir work/ui/seonu2/lager_button.tga",
"over_image" : "d:/ymir work/ui/seonu2/lager_button_hover.tga",
"down_image" : "d:/ymir work/ui/seonu2/lager_button_hover.tga",
},
## Yang Anzeige
{
"name" : "YangAnzeige",
"type" : "button",
"x" : 50,
"y" : 265,
"tooltip_text" : "Yang-Anzeige",
"default_image" : "d:/ymir work/ui/seonu2/y_anzeige.tga",
"over_image" : "d:/ymir work/ui/seonu2/y_anzeige_hover.tga",
"down_image" : "d:/ymir work/ui/seonu2/y_anzeige_hover.tga",
},
## Anti Exp
{
"name" : "AntiEXP",
"type" : "button",
"x" : 90,
"y" : 265,
"tooltip_text" : "Anti-EXP",
"default_image" : "d:/ymir work/ui/seonu2/antiexp.tga",
"over_image" : "d:/ymir work/ui/seonu2/antiexp_hover.tga",
"down_image" : "d:/ymir work/ui/seonu2/antiexp_hover.tga",
},
## Portring
{
"name" : "Portring",
"type" : "button",
"x" : 130,
"y" : 265,
"tooltip_text" : "Warp-Ring",
"default_image" : "d:/ymir work/ui/seonu2/warpring.tga",
"over_image" : "d:/ymir work/ui/seonu2/warpring_hover.tga",
"down_image" : "d:/ymir work/ui/seonu2/warpring_hover.tga",
},
## Equipment Slot
{
"name" : "Equipment_Base",
"type" : "image",
"x" : 10,
"y" : 33,
"image" : "d:/ymir work/ui/game/windows/equipment_base.sub",
"children" :
(
{
"name" : "EquipmentSlot",
"type" : "slot",
"x" : 3,
"y" : 3,
"width" : 150,
"height" : 182,
"slot" : (
{"index":EQUIPMENT_START_INDEX+0, "x":39, "y":37, "width":32, "height":64},
{"index":EQUIPMENT_START_INDEX+1, "x":39, "y":2, "width":32, "height":32},
{"index":EQUIPMENT_START_INDEX+2, "x":39, "y":145, "width":32, "height":32},
{"index":EQUIPMENT_START_INDEX+3, "x":75, "y":67, "width":32, "height":32},
{"index":EQUIPMENT_START_INDEX+4, "x":3, "y":3, "width":32, "height":96},
{"index":EQUIPMENT_START_INDEX+5, "x":114, "y":84, "width":32, "height":32},
{"index":EQUIPMENT_START_INDEX+6, "x":114, "y":52, "width":32, "height":32},
{"index":EQUIPMENT_START_INDEX+7, "x":2, "y":113, "width":32, "height":32},
{"index":EQUIPMENT_START_INDEX+8, "x":75, "y":113, "width":32, "height":32},
{"index":EQUIPMENT_START_INDEX+9, "x":114, "y":1, "width":32, "height":32},
{"index":EQUIPMENT_START_INDEX+10, "x":75, "y":35, "width":32, "height":32},
## ? ??1
##{"index":item.EQUIPMENT_RING1, "x":2, "y":106, "width":32, "height":32},
## ? ??2
##{"index":item.EQUIPMENT_RING2, "x":75, "y":106, "width":32, "height":32},
## ? ??
),
},
## Dragon Soul Button
## MallButton
{
"name" : "MallButton",
"type" : "button",
"x" : 118,
"y" : 148,
"tooltip_text" : uiScriptLocale.MALL_TITLE,
"default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
"over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
"down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
},
## CostumeButton
{
"name" : "CostumeButton",
"type" : "button",
"x" : 78,
"y" : 5,
"tooltip_text" : uiScriptLocale.COSTUME_TITLE,
"default_image" : "d:/ymir work/ui/game/taskbar/costume_Button_01.tga",
"over_image" : "d:/ymir work/ui/game/taskbar/costume_Button_02.tga",
"down_image" : "d:/ymir work/ui/game/taskbar/costume_Button_03.tga",
},
{
"name" : "Equipment_Tab_01",
"type" : "radio_button",
"x" : 86,
"y" : 161,
"default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
"over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
"down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
"children" :
(
{
"name" : "Equipment_Tab_01_Print",
"type" : "text",
"x" : 0,
"y" : 0,
"all_align" : "center",
"text" : "I",
},
),
},
{
"name" : "Equipment_Tab_02",
"type" : "radio_button",
"x" : 86 + 32,
"y" : 161,
"default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
"over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
"down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
"children" :
(
{
"name" : "Equipment_Tab_02_Print",
"type" : "text",
"x" : 0,
"y" : 0,
"all_align" : "center",
"text" : "II",
},
),
},
),
},Cod: Selectaţi tot
def __ServerCommand_Build(self):Cod: Selectaţi tot
# LagerButton
"normal_mall" : self.__Opennormalmall,
#YangAnzeige
"YangAnzeige" : self.__MakeYangAnzeige,
#AntiEXP
"AntiEXP" : self.__MakeAntiEXP,
#Portring
"Portring" : self.__MakePortring,
#Seonu2 TalerCod: Selectaţi tot
def __Opennormalmall(self, qid):
constInfo.mallqin= int(qid)
def __MakeAntiEXP(self, qid):
constInfo.AntiEXPqin= int(qid)
def __MakePortring(self, qid):
constInfo.PortRingqin= int(qid)
def __MakeYangAnzeige(self, money):
if constInfo.pickInfo == 0:
constInfo.pickInfo = 1
chat.AppendChat(chat.CHAT_TYPE_INFO, "Yang drop a fost activat.")
elif constInfo.pickInfo == 1:
constInfo.pickInfo = 0
chat.AppendChat(chat.CHAT_TYPE_INFO, "Yang drop-- dezactivat")Cod: Selectaţi tot
self.wndMoneySlot = self.GetChild ("Money_Slot")'Cod: Selectaţi tot
self.YangAnzeige = self.GetChild2("YangAnzeige")
self.LagerButton = self.GetChild2("LagerButton")
self.AntiEXP = self.GetChild2("AntiEXP")
self.Portring = self.GetChild2("Portring")Cod: Selectaţi tot
if self.mallButton:Cod: Selectaţi tot
# LagerButton
if self.LagerButton:
self.LagerButton.SetEvent(ui.__mem_func__(self.ClickLagerButton))
#YangAnzeige
if self.YangAnzeige:
self.YangAnzeige.SetEvent(ui.__mem_func__(self.ClickYangAnzeige))
#AntiEXP
if self.AntiEXP:
self.AntiEXP.SetEvent(ui.__mem_func__(self.ClickAntiEXP))
#Portring
if self.Portring:
self.Portring.SetEvent(ui.__mem_func__(self.ClickPortring))Cod: Selectaţi tot
def ClickMallButton(self):Cod: Selectaţi tot
#LagerButton
def ClickLagerButton(self):
import event
qid = constInfo.mallqin
event.QuestButtonClick(qid)
#YangAnzeige
def ClickYangAnzeige(self):
if constInfo.pickInfo == 0:
constInfo.pickInfo = 1
chat.AppendChat(chat.CHAT_TYPE_INFO, "Deine Yangdropanzeige wurde aktiviert")
elif constInfo.pickInfo == 1:
constInfo.pickInfo = 0
chat.AppendChat(chat.CHAT_TYPE_INFO, "Deine Yangdropanzeige wurde deaktiviert")
#AntiEXP
def ClickAntiEXP(self):
import event
qid = constInfo.AntiEXPqin
event.QuestButtonClick(qid)
#Portring
def ClickPortring(self):
import event
qid = constInfo.PortRingqin
event.QuestButtonClick(qid)Cod: Selectaţi tot
mallqin = 0
yangeinzeigeqin = 0
AntiEXPqin = 0
PortRingqin = 0Anti exp :
Cod: Selectaţi tot
quest antiexp begin
state start begin
when login begin
if pc.getqf("antiexp") == 1 then
pc.block_exp()
chat("Anti EXP nu este activata.")
end
end
when letter begin
cmdchat("AntiEXP "..q.getcurrentquestindex())
end
when button or info begin
if pc.getqf("antiexp") == 0 then
pc.block_exp()
pc.setqf("antiexp", 1)
chat("Anti EXP a fost activata.")
elseif pc.getqf("antiexp") == 1 then
pc.unblock_exp()
pc.setqf("antiexp", 0)
chat("Anti EXP a fost dezactivata.")
end
end
end
endCod: Selectaţi tot
quest lager begin
state start begin
when letter begin
cmdchat("normal_mall "..q.getcurrentquestindex())
end
when button or info begin
game.open_safebox()
end
end
endCod: Selectaţi tot
quest warpring begin
state start begin
when letter begin
cmdchat("Portring "..q.getcurrentquestindex())
end
when button or info begin
end
end
endParola :

Tutorial instalare quest :
Tutorial instalare quest:
1. Salvaţi conţinutul quest-ului într-un fişier text numit de exemplu nume_quest.quest .
2. Vă conectaţi la filezilla / winscp şi întrati în /usr/home/game/share/locale/germany/quest (depinde ce server aveţi).
3. Îl puneţi acolo (să fie .quest) şi da-ţi permisiuni 777.
4. Te loghezi în FreeBSD / putty şi scrii în felul următor: cd /usr/home/game/share/locale/germany/quest apoi ./qc nume_quest.quest
5. Intraţi pe server şi scrieţi /reload q .
6. Testaţi quest-ul .










