Thx, its work ;)
Wenn ich das schon wieder sehn arbeitet doch mit SetParent oh gottQuote:
self.PetGuiBg.SetPosition[COLOR="rgb(139, 0, 0)"](wndMgr.GetScreenWidth()-460,0)[/COLOR]
self.PetName = ui.TextLine()
self.PetName.SetDefaultFontName()
self.PetName.SetPosition(([COLOR="rgb(139, 0, 0)"]wndMgr.GetScreenWidth()-460)+120, 35)[/COLOR]
self.PetName.SetText("Haustierbesitzer: NONE")
self.PetName.SetOutline()
self.PetLevel = ui.TextLine()
self.PetLevel.SetDefaultFontName()
self.PetLevel.SetPosition((wndMgr.GetScreenWidth()-460)+120, 55)
self.PetLevel.SetText("Haustierlevel: NONE")
self.PetLevel.SetOutline()
self.PetBonus1 = ui.TextLine()
self.PetBonus1.SetDefaultFontName()
self.PetBonus1.SetPosition((wndMgr.GetScreenWidth( )-460)+120, 75)
self.PetBonus1.SetText("1. Bonus: NONE")
self.PetBonus1.SetOutline()
self.PetBonus2 = ui.TextLine()
self.PetBonus2.SetDefaultFontName()
self.PetBonus2.SetPosition((wndMgr.GetScreenWidth( )-460)+120, 95)
self.PetBonus2.SetText("2. Bonus: NONE")
self.PetBonus2.SetOutline()
1222 16:13:11851 ::
networkModule.py(line:194) SetSelectCharacterPhase
system.py(line:130) __pack_import
system.py(line:110) _process_result
introSelect.py(line:23) ?
system.py(line:130) __pack_import
networkModule.SetSelectCharacterPhase - exceptions.SyntaxError:invalid syntax (line 524)
1222 16:13:11852 :: ============================================================================================================
1222 16:13:11852 :: Abort!!!!
DasKuchen ich habe ein Problem.Quote:
Ist ein altes Video da hab ich getestet wie das leveln geht.
1222 16:13:11851 ::
networkModule.py(line:194) SetSelectCharacterPhase
system.py(line:130) __pack_import
system.py(line:110) _process_result
introSelect.py(line:23) ?
system.py(line:130) __pack_import
networkModule.SetSelectCharacterPhase - exceptions.SyntaxError:invalid syntax (line 524)
1222 16:13:11852 :: ============================================================================================================
1222 16:13:11852 :: Abort!!!!
quest pets begin
state start begin
function givebonus(x)
local y,boni = {53,54,1},pets.bonusliste()
table.foreach(boni[x],function(i,l) cmdchat("HaustierBonus"..i.." "..l.."") affect.add_collect(y[i],l,60*60*24*365*60) end )
cmdchat("HaustierLevel "..pc.getqf('petlevel').."")
cmdchat("HaustierName "..pc.get_name().."")
pc.setqf("petruf",1)
end
function bonusliste()
return {
[1] = {200,100,500},
[2] = {250,150,1000},
[3] = {300,200,1500},
[4] = {350,250,2000},
[5] = {400,300,3000},
}
end
function removebonus(x)
local y,boni = {53,54,1},pets.bonusliste()
table.foreach(boni[x],function(i,l) affect.remove_collect(y[i],l,60*60*24*365*60) end )
horse.unsummon()
pc.setqf("petruf",0)
horse.set_level("21")
cmdchat("HidePetGui")
cleartimer("bugcheck")
end
when 53001.use begin
if pc.is_mount() then
say_title("Entschuldigung")
say("Bitte steige von deinem Mount ab!")
return
end
if pc.getqf('petlevel') == 0 then
pc.setqf('petlevel',1)
end
if pc.getqf("petruf") == 0 then
local Horselevel = 29-pc.getqf('petlevel')
horse.set_level(Horselevel)
horse.unsummon() horse.summon()
chat("Dein Haustier wurde gerufen.")
pets.givebonus(pc.getqf('petlevel'))
local expprocent1 = {20, 80, 160, 350, 400}
cmdchat("PetProcentExp "..(pc.getqf("exp")/expprocent1[pc.getqf("petlevel")]).."")
cmdchat("ShowPetGui")
loop_timer("bugcheck", 0.2)
elseif pc.getqf("petruf") == 1 then
pets.removebonus(pc.getqf('petlevel'))
chat("Dein Haustier verabschiedet sich nun.")
end
end
when kill with pc.getqf("petruf") == 1 begin
if pc.getqf("petlevel") == 5 then
return
end
if not npc.is_pc() then
pc.setqf("exp",pc.getqf("exp")+1)
local exp2up = {2000, 8000, 16000, 35000, 40000}
local expprocent = {20, 80, 160, 350, 400}
cmdchat("PetProcentExp "..(pc.getqf("exp")/expprocent[pc.getqf("petlevel")]).."")
if pc.getqf("exp") == exp2up[pc.getqf("petlevel")] then
if pc.getqf("petlevel") == 4 then
say_title("Herzlichen Glückwunsch")
say("Dein Haustier erreicht Level "..(pc.getqf("petlevel")+1).."")
say_reward("Dies war das letzte Level!")
end
say_title("Herzlichen Glückwunsch")
say("Dein Haustier erreicht Level "..(pc.getqf("petlevel")+1).."")
say("Rufe dein Pet bitte erneut!")
pc.setqf("petlevel",pc.getqf("petlevel")+1)
pc.setqf("exp",0)
pets.removebonus(pc.getqf('petlevel'))
end
end
end
-- Bugschutz
when bugcheck.timer begin
if pc.is_mount() then
horse.unride()
end
if pc.count_item(53001) == 0 then
say_title("Buguser")
say("Bugusing festgestellt!")
pets.removebonus(pc.getqf('petlevel'))
end
end
when login or logout or disconnect with pc.getqf("petruf") == 1 begin
pets.removebonus(pc.getqf('petlevel'))
chat("Dein Haustier ist nicht mitgekommen...")
chat("Rufe es erneut!")
end
end
end
Quote:
PACK
*
metin2_patch_nz
*
metin2_patch_w20_etc
*
devilscatacomb
*
patch_pets
*
patch1
*
patch2
*
skilSupremekill
*
costum_pack
*
season3_eu
pack/
metin2_patch_xmas
pack/
metin2_patch_eu3
pack/
metin2_patch_eu4
d:/ymir work/pc/
pc
d:/ymir work/pc2/
pc2
d:/ymir work/monster/
monster
d:/ymir work/monster2/
monster2
d:/ymir work/effect/
effect
d:/ymir work/zone/
zone
d:/ymir work/terrainmaps/
terrain
d:/ymir work/npc/
npc
d:/ymir work/npc2/
npc2
d:/ymir work/tree/
tree
d:/ymir work/guild/
guild
d:/ymir work/item/
item
textureset/
textureset
property/
property
icon/
icon
season1/
season1
season2/
season2
metin2_map_a1/
outdoora1
map_a2/
outdoora2
metin2_map_a3/
outdoora3
metin2_map_b1/
outdoorb1
metin2_map_b3/
outdoorb3
metin2_map_c1/
outdoorc1
metin2_map_c3/
outdoorc3
map_n_snowm_01/
outdoorsnow1
metin2_map_n_desert_01/
outdoordesert1
metin2_map_n_flame_01/
outdoorflame1
map_b_fielddungeon/
outdoorfielddungeon1
metin2_map_t1/
outdoort1
metin2_map_t2/
outdoort2
metin2_map_t3/
outdoort3
metin2_map_t4/
outdoort4
metin2_map_wedding_01/
outdoorwedding
metin2_map_milgyo/
outdoormilgyo1
metin2_map_spiderdungeon/
indoorspiderdungeon1
metin2_map_spiderdungeon030/
metin2_patch_sd
metin2_map_spiderdungeon_03/
metin2_patch_sd
metin2_map_deviltower1/
indoordeviltower1
metin2_mapbayblacksand/
metin2_patch_mz
metin2_map_capedragonhead/
metin2_patch_mz
metin2_map_dawnmistwood/
metin2_patch_mz
metin2_mat_mt_thunder/
metin2_patch_nz
metin2_map_monkeydungeon/
indoormonkeydungeon1
metin2_map_monkeydungeon_02/
indoormonkeydungeon2
metin2_map_monkeydungeon_03/
indoormonkeydungeon3
metin2_map_trent02/
outdoortrent02
metin2_map_guild_01/
outdoorguild1
metin2_map_guild_02/
outdoorguild2
metin2_map_guild_03/
outdoorguild3
metin2_map_trent/
outdoortrent
metin2_map_trent02/
outdoortrent02
metin2_map_duel/
outdoorduel
metin2_map_devilscatacomb
outdoordevilscatacomb
gm_guild_build/
outdoorgmguildbuild
metin2_map_skipia_dungeon_boss
outdoorbossroom
sound/ambience/
sound
sound/common/
sound
sound/effect/
sound
sound/monster/
sound
sound/npc/
sound
sound/pc/
sound
sound/ui/
sound
sound/monster2/
sound2
sound/pc2/
sound2
bgm/
bgm
d:/ymir work/special/
ETC
d:/ymir work/environment/
ETC
locale/ae/
locale_ae
locale/de/
locale_de
locale/es/
locale_es
locale/fr/
locale_fr
locale/gr/
locale_gr
locale/it/
locale_it
locale/nl/
locale_nl
locale/pl/
locale_pl
locale/pt/
locale_pt
locale/tr/
locale_tr
locale/uk/
locale_uk
locale/bg/
locale_bg
locale/en/
locale_en
locale/mx/
locale_mx
locale/ro/
locale_ro
locale/ru/
locale_ru
locale/dk/
locale_dk
locale/cz/
locale_cz
locale/hu/
locale_hu
locale/us/
locale_us
locale/pa/
locale_pa
uiscript/
uiscript
d:/ymir work/ui/
ETC
d:/ymir work/uiloading/
uiloading
petgui
*