EnergySistemi Full Dosya Ücretsiz Paylaşım

24 Kasım 2012 Cumartesi yazildi.

* Kostüm Sistemi Full Dosya Ücretsiz Paylaşım * ZariFDesinq Farkı İle

QUESTTE SORUN YAŞAYANLAR TIKLAYIN

Bu konumda bahsettiğim gibi buyrun size Enerji Sistemi  Yapmasını Bilen sorunsuz ekler elimden gelen bu benim size kolay gele 

Enerji Sistemi 2 Saat Sürmektedir 2 Saat boyunca farklı özellikler verir kritik, yansıtma v.s

Not :Konu Orjinali :http://www.elitepvpers.com/forum/metin2-pserver-guides-strategies/2107051-release-energy-system.html
< Evet Öncelikle Gerekli Dosyalar >
Gerekli dosyalar :TIKLA İNDİR
Virüs Taraması :TIKLA GÖR 

<> Oyundan Görüntüler <>

By 
zarifdesinq at 2012-09-18

By 
zarifdesinq at 2012-09-18

By 
zarifdesinq at 2012-09-18

By 
zarifdesinq at 2012-09-18

* Enerji Sistemi İtemleri *


By 
zarifdesinq at 2012-09-18


* Enerji Sistemi Button Görünümü *
Boş Hali : 


By 
zarifdesinq at 2012-09-18
Özellik Eklendikten Sonraki Görünüm


By 
zarifdesinq at 2012-09-18

Şimdi Anltıma Geçelim : 1. İşlem Pack Editleme

Öncelikle
 Root.epk-eix dosyasını açın

Arkadaşlar Verdiğim dosya içindeki 
interfacemodule.py Ve uitaskbar.py direk root'a atınız sonra
Game.py dosyasını acın
Aratılacak kod :

PHP- Kodu:
def __ServerCommand_Build(self):  
Eklenecek Kod :

PHP- Kodu:
"energysystem"            self.__energysystem,  
Ardından game.py 'nin en alt kısmına gelip şu kodları ekleyiniz

Kod:
# Energy System Anfang      
    def __energysystem(self, value): 
        import constinfo 
        constinfo.ENERGY_TYPE = int(value[:value.find("|")]) 
        constinfo.ENERGY = int(value[value.find("|") + 1:value.find("#")]) 
        constinfo.ENERGY_END_TIME = long((value[value.find("#") + 1:])) 


    # Energy System Ende

game.py Bitti Şimdi 
constinfo.py açınız bu kodun altına
Kod:
PVPMODE_ENABLE = 1
PVPMODE_TEST_ENABLE = 0
PVPMODE_ACCELKEY_ENABLE = 1
PVPMODE_ACCELKEY_DELAY = 0.5
PVPMODE_PROTECTED_LEVEL = 30

Bu kodu Ekleyiniz

PHP- Kodu:
ENERGY 0
ENERGY_END_TIME 
0
ENERGY_TYPE 
0
ENABLE_ENERGY_SYSTEM 
1  
Enerji Sistemi Yapılışı : 2. Kısım Filezilla
Filezilla : usr/game/share/locale/turkey/quest dizinine gidiniz.
Kod:
* energy_system.quest
 
* energy_system1.quest
bu dizine atınız. Sonra 
quest functions dosyasını açın en alt kısma şu kodu ekleyin
Kod:
getenergytime
getenergytyp
getenergyvalue
mysql_query
setenergy
setenergytime
string.trim



Tekrar aynı dizinde bulunan 
questlib.lua'yı açın ve En alt kısma bunu ekleyin
Kod:
function setenergy(typ,value,timez) pc.setqf("energy_value", value) pc.setqf("energy_date", get_time() + timez) pc.setqf("energy_typ", typ) end function setenergytime(timez) pc.setqf("energy_date", timez) end function getenergytyp() return pc.getqf("energy_typ") end function getenergyvalue() return pc.getqf("energy_value") end function getenergytime() return pc.getqf("energy_date") end function split(str, delim, maxNb) if str == nil then return str end if string.find(str, delim) == nil then return { str } end if maxNb == nil or maxNb < 1 then maxNb = 0 end local result = {} local pat = "(.-)" .. delim .. "()" local nb = 0 local lastPos for part, pos in string.gfind(str, pat) do nb = nb + 1 result[nb] = part lastPos = pos if nb == maxNb then break end end if nb ~= maxNb then result[nb + 1] = string.sub(str, lastPos) end return result end mysql_query = function(query) local rt = io.open('CONFIG','r'):read('*all') local pre= string.gsub(rt,'.+PLAYER_SQL:%s(%S+)%s(%S+)%s(%S+)%s(%S+).+','-h%1 -u%2 -p%3 -D%4') math.randomseed(os.time()) local fi,t,out = 'mysql_data_'..math.random(10^9)+math.random(2^4,2^10),{},{} os.execute('mysql '..pre..' --e='..string.format('%q',query)..' > '..fi) for av in io.open(fi,'r'):lines() do table.insert(t,split(av,'\t')) end; os.remove(fi); for i = 2, table.getn(t) do table.foreach(t[i],function(a,b) out[i-1] = out[i-1] or {} out[i-1][a] = b out[t[1][a]] = out[t[1][a]] or {} out[t[1][a]][i-1] = b end) end return out end -- Entferne Leerzeichen vor und nach dem String function string.trim(str) return (string.gsub(str, "^%s*(.-)%s*$", "%1")) end -- String zu Array über Seperator function string.explode(str, sep) if sep == "" or str == "" then error("Fehlende Parameter") end local pos, t = 1, {} for s, e in function() return string.find(str, sep, pos) end do table.insert(t, string.trim(string.sub(str, pos, s-1))) pos = e+1 end table.insert(t, string.trim(string.sub(str, pos))) return t end


Son olarak putty'e girip login oluyoruz ve şu kodları yazıyoruz
Kod:
cd /usr/game/share/locale/turkey/quest

./qc energy_system.quest

./qc energy_system1.quest

Enerji Sistemi Yapılışı : 3. Kısım - Locale_tr - Navicat Kodu
Kod:
Locale_tr > İtem _protoya'eklenecek
Kod:
        <Item vnum="51001" hashName="Ȱ¼®" name="Enerji Parçası" type="0" subtype="0" weight="0" size="1" antiflag="0" flag="4" 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="0" socket2="0" socket3="0" socket4="0" socket5="0" refine_vnum="0" refine_set="0" magic_pct="0" specular="0" socket_pct="0" />
        <Item vnum="51002" hashName="Ãæ±âȯ" name="Enerji Kristali" type="27" subtype="0" weight="0" size="1" antiflag="0" flag="4" wearflag="0" immuneflag="0" gold="0" buy_price="0" limittype0="1" limitvalue0="35" 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="0" socket2="0" socket3="0" socket4="0" socket5="0" refine_vnum="0" refine_set="0" magic_pct="0" specular="0" socket_pct="0" />


        Locale_tr > İtemlist'e Eklenecek

        51001  ETC icon/item/51001.tga
        51002  ETC icon/item/51002.tga


        Navicat > Player > item_protoya Eklenecek

        INSERT INTO `item_proto` VALUES ('51001', 'Enerji Parcası', 'Enerji Parcası', '0', '0', '0', '1', '0', '4', '0', '', '1000000', '1000000', '0', '0', '0', '15', '0', '', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '-1', '-1', '-1', '-1', '-1', '-1', '0', '1', '0');
        INSERT INTO `item_proto` VALUES ('51002', 'Enerji Kristali', 'Enerji Kristali', '18', '0', '0', '1', '0', '4', '0', '', '1000000', '1000000', '0', '0', '0', '15', '1', '50', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '-1', '-1', '-1', '-1', '-1', '-1', '0', '1', '0');
< Videolu anlatım >



Alıntı Yapmamanız Önemle Rica olunur.Zaten konu mevcut 2. Defa açmayınız
Bir Teşekkürü Çok Görmeyiniz... *
 ZariFDesinq *

0 yorum: