Türkiye'de ilk Mobil & PC Aynı Anda Metin2 Oyna. Triarchonline kalıcı ve uzun ömürlü yapısı ile 24 Temmuz'da açılıyor. | 1-99 Mobil Metin2 Triarch HEMEN TIKLA!
Merhaba arkadaşlar.Ejderha Ruleti Sistemi ni paylaşıcam.Sistemin hakkında bilgi verem.Bu sistemde 8 tane tüp vardır.Bu tüpleri slotları kesip doldurunca size rasgele bi eşya veriyor.Verilen eşyayı quest den ayarlaya bilirsiniz
Anlatım.
ConstInfo py Açın ve Ekleyın
Game py Açın Importlara Ekleyın
Aratın
En Altına Ekleyın
Aratın
En Altına Ekleyın
Aratın
Ekleyın
En Alta Ekleyın
Kodları ekledikten sonra Rar içindeki uiroulette.py yi rotta atıp paketleyin.roulette.epk,roulette.eix i packa atın ve Index e
roulette
pack/
ı ekleyin.Daha sonra drachenroulette.quest questi okutun
Index böyle olsun
KANIT
exp ve ödülleri questten ayarlıyabilirsinz exp şu anda 101 kodlu mobta yani köpekte
Güncelleme:
1. Open your questdirectory.
2. Insert there the drachenroulette.quest
3. Add the quest name to the quest_list/locale_list
4. Reload your quests and after that, restart the server
5. Prise
- In the quest you can find a function called config,
in this function are the following variables:
POINTS_FOR_SPHERE -> maximal points for one sphere
MAX_SPHERE_COUNT -> Don't change this, its constant.
MONSTER -> in this list, you can insert special monster, which should give more points than its level
REWARDS -> in this list, you can insert all items (stackable or not). These items will be randomly selected, if the button, when all spheres are full,
is clicked
6. the mob.level function:
Search in your .lua files eg your questlib.lua for the mysql_query function. Put under this function the following code
and add the function 'mob.level' to your quest_functions
Fonksiyon bu yabancı forumdan alıntırdır... ne yapıcağnız yazıyor
Anlatım.
ConstInfo py Açın ve Ekleyın
Kod:
uiRoulette = { "index" : 0, "kugel": 0, "max_points": 0, "points": 0}}
Game py Açın Importlara Ekleyın
Kod:
import uiRoulette
Aratın
Kod:
def __init__(self, stream):
En Altına Ekleyın
Kod:
self.Roulette = uiRoulette.RouletteWindow()
Aratın
Kod:
def Close(self):
En Altına Ekleyın
Kod:
if self.Roulette.IsShow():
self.Roulette.Open()
Aratın
Kod:
def __ServerCommand_Build(self):
Ekleyın
Kod:
"uiRoulette" : self.__uiRoulette,
"uiRoulette_open" : self.__uiRouletteOpen,
En Alta Ekleyın
Kod:
def __uiRoulette(self, info):
CMD = info.split("/")
if CMD[0]=="index":
constInfo.uiRoulette["index"] = int(CMD[1])
elif CMD[0]=="gui":
constInfo.uiRoulette["kugel"] = int(CMD[1])
constInfo.uiRoulette["max_points"] = int(CMD[2])
constInfo.uiRoulette["points"] = int(CMD[3])
def __uiRouletteOpen(self):
self.Roulette.Open()
Linkleri görebilmek için Turkmmo Forumuna ÜYE olmanız gerekmektedir.
Linkleri görebilmek için Turkmmo Forumuna ÜYE olmanız gerekmektedir.
Kodları ekledikten sonra Rar içindeki uiroulette.py yi rotta atıp paketleyin.roulette.epk,roulette.eix i packa atın ve Index e
roulette
pack/
ı ekleyin.Daha sonra drachenroulette.quest questi okutun
Index böyle olsun
KANIT
exp ve ödülleri questten ayarlıyabilirsinz exp şu anda 101 kodlu mobta yani köpekte
Güncelleme:
1. Open your questdirectory.
2. Insert there the drachenroulette.quest
3. Add the quest name to the quest_list/locale_list
4. Reload your quests and after that, restart the server
5. Prise
- In the quest you can find a function called config,
in this function are the following variables:
POINTS_FOR_SPHERE -> maximal points for one sphere
MAX_SPHERE_COUNT -> Don't change this, its constant.
MONSTER -> in this list, you can insert special monster, which should give more points than its level
REWARDS -> in this list, you can insert all items (stackable or not). These items will be randomly selected, if the button, when all spheres are full,
is clicked
6. the mob.level function:
Search in your .lua files eg your questlib.lua for the mysql_query function. Put under this function the following code
and add the function 'mob.level' to your quest_functions
Kod:
[COLOR=#000088][FONT=Verdana]out[/FONT][/COLOR][COLOR=#666600][FONT=Verdana]=[/FONT][/COLOR][COLOR=#000000][FONT=Verdana] mysql_query[/FONT][/COLOR][COLOR=#666600][FONT=Verdana]([/FONT][/COLOR][COLOR=#008800][FONT=Verdana]"SELECT * FROM player.mob_proto;"[/FONT][/COLOR][COLOR=#666600][FONT=Verdana])[/FONT][/COLOR]
[COLOR=#000000][FONT=Verdana]mob[/FONT][/COLOR][COLOR=#666600][FONT=Verdana].[/FONT][/COLOR][COLOR=#000000][FONT=Verdana]_data [/FONT][/COLOR][COLOR=#666600][FONT=Verdana]=[/FONT][/COLOR][COLOR=#000088][FONT=Verdana]out[/FONT][/COLOR]
[COLOR=#000000][FONT=Verdana]mob[/FONT][/COLOR][COLOR=#666600][FONT=Verdana].[/FONT][/COLOR][COLOR=#000000][FONT=Verdana]_idx [/FONT][/COLOR][COLOR=#666600][FONT=Verdana]={}[/FONT][/COLOR]
[COLOR=#000000][FONT=Verdana]table[/FONT][/COLOR][COLOR=#666600][FONT=Verdana].[/FONT][/COLOR][COLOR=#000088][FONT=Verdana]foreach[/FONT][/COLOR][COLOR=#666600][FONT=Verdana]([/FONT][/COLOR][COLOR=#000088][FONT=Verdana]out[/FONT][/COLOR][COLOR=#666600][FONT=Verdana].[/FONT][/COLOR][COLOR=#000000][FONT=Verdana]vnum[/FONT][/COLOR][COLOR=#666600][FONT=Verdana],[/FONT][/COLOR]
[COLOR=#000088][FONT=Verdana]function[/FONT][/COLOR][COLOR=#666600][FONT=Verdana]([/FONT][/COLOR][COLOR=#000000][FONT=Verdana]i[/FONT][/COLOR][COLOR=#666600][FONT=Verdana],[/FONT][/COLOR][COLOR=#000000][FONT=Verdana]p[/FONT][/COLOR][COLOR=#666600][FONT=Verdana])[/FONT][/COLOR]
[COLOR=#000000][FONT=Verdana] mob[/FONT][/COLOR][COLOR=#666600][FONT=Verdana].[/FONT][/COLOR][COLOR=#000000][FONT=Verdana]_idx[/FONT][/COLOR][COLOR=#666600][FONT=Verdana][[/FONT][/COLOR][COLOR=#000000][FONT=Verdana]p[/FONT][/COLOR][COLOR=#666600][FONT=Verdana]]=[/FONT][/COLOR][COLOR=#000000][FONT=Verdana]i [/FONT][/COLOR]
[COLOR=#000088][FONT=Verdana]end[/FONT][/COLOR]
[COLOR=#666600][FONT=Verdana])[/FONT][/COLOR]
[COLOR=#000000][FONT=Verdana]setmetatable[/FONT][/COLOR][COLOR=#666600][FONT=Verdana]([/FONT][/COLOR][COLOR=#000000][FONT=Verdana]mob[/FONT][/COLOR][COLOR=#666600][FONT=Verdana],{[/FONT][/COLOR]
[COLOR=#000000][FONT=Verdana] __index [/FONT][/COLOR][COLOR=#666600][FONT=Verdana]=[/FONT][/COLOR][COLOR=#000088][FONT=Verdana]function[/FONT][/COLOR][COLOR=#666600][FONT=Verdana]([/FONT][/COLOR][COLOR=#000088][FONT=Verdana]this[/FONT][/COLOR][COLOR=#666600][FONT=Verdana],[/FONT][/COLOR][COLOR=#000000][FONT=Verdana]idx[/FONT][/COLOR][COLOR=#666600][FONT=Verdana])[/FONT][/COLOR]
[COLOR=#000088][FONT=Verdana]ifthis[/FONT][/COLOR][COLOR=#666600][FONT=Verdana].[/FONT][/COLOR][COLOR=#000000][FONT=Verdana]_data[/FONT][/COLOR][COLOR=#666600][FONT=Verdana][[/FONT][/COLOR][COLOR=#000000][FONT=Verdana]idx[/FONT][/COLOR][COLOR=#666600][FONT=Verdana]]~=[/FONT][/COLOR][COLOR=#000088][FONT=Verdana]nilthen
returnfunction[/FONT][/COLOR][COLOR=#666600][FONT=Verdana]([/FONT][/COLOR][COLOR=#000000][FONT=Verdana]moid[/FONT][/COLOR][COLOR=#666600][FONT=Verdana])[/FONT][/COLOR]
[COLOR=#000088][FONT=Verdana]returnthis[/FONT][/COLOR][COLOR=#666600][FONT=Verdana].[/FONT][/COLOR][COLOR=#000000][FONT=Verdana]_data[/FONT][/COLOR][COLOR=#666600][FONT=Verdana][[/FONT][/COLOR][COLOR=#000000][FONT=Verdana]idx[/FONT][/COLOR][COLOR=#666600][FONT=Verdana]][[/FONT][/COLOR][COLOR=#000088][FONT=Verdana]this[/FONT][/COLOR][COLOR=#666600][FONT=Verdana].[/FONT][/COLOR][COLOR=#000000][FONT=Verdana]_idx[/FONT][/COLOR][COLOR=#666600][FONT=Verdana][[/FONT][/COLOR][COLOR=#000000][FONT=Verdana]moid[/FONT][/COLOR][COLOR=#666600][FONT=Verdana]]][/FONT][/COLOR]
[COLOR=#000088][FONT=Verdana]end
else
returnfunction[/FONT][/COLOR][COLOR=#666600][FONT=Verdana]()[/FONT][/COLOR][COLOR=#000088][FONT=Verdana]return[/FONT][/COLOR][COLOR=#006666][FONT=Verdana]0[/FONT][/COLOR][COLOR=#000088][FONT=Verdana]end
end
end[/FONT][/COLOR]
[COLOR=#666600][FONT=Verdana]}
)[/FONT][/COLOR]
Fonksiyon bu yabancı forumdan alıntırdır... ne yapıcağnız yazıyor
En Çok Reaksiyon Alan Mesajlar
yarka fılesı kullanmıyonmu sen bak ordan ? daha ayrıntılı olur senın ıcın
Test etmek ile kullanmak ayrıdır.
Ve test ettim şu anda kullanacaklar için önerebilirim oyuna ayrı bir renk katacaktır değişik bir sistem.
Öğeyi görmek için üye olmalısınız.
yarka fılesı kullanmıyonmu sen bak ordan ? daha ayrıntılı olur senın ıcınKonu için teşekkürler , nasıl bir şey bu sistem ne işe yariyor merak ettim :smile:
Basarılı Bir sistem eklemısssın Her zaman kı gıbı crtl c ++++crtl+ v heee unuttum bunda o kısmı bıle yapmadın dogru dırek ındır butonu devam sistemin mantıgını anladınmı neymıs ne ıse yarıyormus bende merak ettım acıkcası bıde fıles ındırme lınkını atta bende ındırem baya hos bır fıles hersey hazırTest etmek ile kullanmak ayrıdır.
Ve test ettim şu anda kullanacaklar için önerebilirim oyuna ayrı bir renk katacaktır değişik bir sistem.
Öğeyi görmek için üye olmalısınız.
thanks
yarka fılesı kullanmıyonmu sen bak ordan ? daha ayrıntılı olur senın ıcın
@ulubey4242; tesekkurler sistemleri iyi söküyorsunuz 

Moderatör tarafında düzenlendi:
sonuçda oda bir emek@ulubey4242; tesekkurler sistemleri iyi söküyorsunuz![]()
teşekkürlerKonu için teşekkürler , nasıl bir şey bu sistem ne işe yariyor merak ettim :smile:
- Durum
- Üzgünüz bu konu cevaplar için kapatılmıştır...
Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)
Benzer konular
- Cevaplar
- 5
- Görüntüleme
- 394
- Cevaplar
- 2
- Görüntüleme
- 140
- Cevaplar
- 1
- Görüntüleme
- 63
- Çözüldü
- Cevaplar
- 1
- Görüntüleme
- 437


