Pets Sind reitbar !

12/27/2012 20:21 .Sento™#1
Hallo com. Hab ein problem mit den pets ich ruf die und kann reiten hab das soga gemacht hier und mann kan immer noch mit Strg h reiten -.-

def __PressJKey(self):
if app.IsPressed(app.DIK_LCONTROL) or app.IsPressed(app.DIK_RCONTROL):
if player.IsMountingHorse():
net.SendChatPacket("/unmount")
else:
#net.SendChatPacket("/user_horse_ride")
if not uiPrivateShopBuilder.IsBuildingPrivateShop():
for i in xrange(player.INVENTORY_PAGE_SIZE):
if player.GetItemIndex(i) in (71114, 71116, 71118, 71120):
net.SendItemUsePacket(i)
break
def __PressHKey(self):
if app.IsPressed(app.DIK_LCONTROL) or app.IsPressed(app.DIK_RCONTROL):
net.SendChatPacket("/user_horse_ride")
else:
self.interface.OpenHelpWindow()

def __PressBKey(self):
if app.IsPressed(app.DIK_LCONTROL) or app.IsPressed(app.DIK_RCONTROL):
net.SendChatPacket("/user_horse_back")
else:
state = "EMOTICON"
self.interface.ToggleCharacterWindow(state)

def __PressFKey(self):
if app.IsPressed(app.DIK_LCONTROL) or app.IsPressed(app.DIK_RCONTROL):
net.SendChatPacket("/user_horse_feed")
else:
app.ZoomCamera(app.CAMERA_TO_POSITIVE)

def __PressGKey(self):
if app.IsPressed(app.DIK_LCONTROL) or app.IsPressed(app.DIK_RCONTROL):
net.SendChatPacket("/unmount")
else:
12/27/2012 20:31 Ʀyuzaki#2
Benutzt das hier damit kann man sie nichtmehr reiten :P

[Only registered and activated users can see links. Click Here To Register...]
12/27/2012 20:34 .Sento™#3
Das Steht jetz das bei sysser ... nach char auswahl gehts net weiter

1227 20:49:25273 ::
1227 20:49:25273 :: def __PressBKey(self):

1227 20:49:25273 ::
1227 20:49:25273 ::
1227 20:49:25273 ::
1227 20:49:25273 ::
1227 20:49:25273 ::
1227 20:49:25273 ::
1227 20:49:25273 ::
1227 20:49:25273 ::
1227 20:49:25273 ::
1227 20:49:25273 ::
1227 20:49:25273 ::
1227 20:49:25273 ::
1227 20:49:25273 ::
1227 20:49:25273 ::
1227 20:49:25273 ::
1227 20:49:25273 ::
1227 20:49:25273 ::
1227 20:49:25273 ::
1227 20:49:25273 ::
1227 20:49:25273 ::
1227 20:49:25273 ::
1227 20:49:25273 ::
1227 20:49:25273 :: ^

1227 20:49:25273 :: IndentationError
1227 20:49:25273 :: :
1227 20:49:25273 :: unindent does not match any outer indentation level
12/27/2012 20:52 Ocelot2606#4
machs doch einfach per quest

PHP Code:
        when 53001.use begin
                local old_level 
= horse.get_level()
                
horse.set_level(22)
                
horse.summon()
                
horse.set_level(old_level) 
So wird dein Pferde Level automatisch nach rufen des Pets wieder auf das alte gesetzt und wenn man reiten will kommt man automatisch auf das Pferd was man vorher hatte
12/27/2012 21:02 .Sento™#5
Hab eine quest jetz erstellt da aber es gibt fehler

quest pets begin
state start begin
when 53001.use begin
local old_level = horse.get_level()
horse.set_level(22)
horse.summon()
horse.set_level(old_level)
end
end
state back begin
when 53002.use begin
local old_level = horse.get_level()
horse.set_level(22)
horse.summon()
horse.set_level(old_level)
end
end
state back begin
when 53003.use begin
local old_level = horse.get_level()
horse.set_level(22)
horse.summon()
horse.set_level(old_level)
end
end
state back begin
when 53004.use begin
local old_level = horse.get_level()
horse.set_level(22)
horse.summon()
horse.set_level(old_level)
end
end
state back begin
when 53005.use begin
local old_level = horse.get_level()
horse.set_level(22)
horse.summon()
horse.set_level(old_level)
end
end
state back begin
when 53006.use begin
local old_level = horse.get_level()
horse.set_level(22)
horse.summon()
horse.set_level(old_level)
end
end
state back begin
when 53007.use begin
local old_level = horse.get_level()
horse.set_level(22)
horse.summon()
horse.set_level(old_level)
end
end
state back begin
when 53008.use begin
local old_level = horse.get_level()
horse.set_level(22)
horse.summon()
horse.set_level(old_level)
end
end
state back begin
when 53009.use begin
local old_level = horse.get_level()
horse.set_level(22)
horse.summon()
horse.set_level(old_level)
end
end

und das steht bei putty
QUEST : pets
STATE : start
WHEN : 53001.use
STATE : back
WHEN : 53002.use
STATE : back
WHEN : 53003.use
STATE : back
WHEN : 53004.use
STATE : back
WHEN : 53005.use
STATE : back
WHEN : 53006.use
STATE : back
WHEN : 53007.use
STATE : back
WHEN : 53008.use
STATE : back
WHEN : 53009.use
assertion failure : nested==0
pets.quest:73:Abort trap (core dumped)
12/27/2012 21:04 .Remix#6
Quote:
pets.quest:73:Abort trap (core dumped)
In Zeile 73 gibt's 'nen Fehler.
12/27/2012 21:08 .Sento™#7
helft mir auch net viel
12/27/2012 21:16 .Remix#8
Was ist das für 'ne kack Quest? :facepalm:
Kann ja garnicht funktionieren.
Es werden States benutzt, die garnicht festgelegt wurden...

€: Hab die Quest mal berichtigt; geht kürzer, hatte aber kb und hab's verpeilt.

12/27/2012 21:32 .Sento™#9
Deins is auch besser xD guck was jetz kommt
QUEST : pets
STATE : start
WHEN : 53001.use
with pc . getqf ( "erstes" ) == 0
qc in malloc(): error: allocation failed
Abort trap (core dumped)
12/27/2012 21:35 .Remix#10
Irgendwo ist ein/mehrere end's zuviel/zu wenig ... Hab aber kb, jetzt nochmal drüber zu gucken xd...

€: Moment... mache neu.
12/27/2012 21:38 Ocelot2606#11
So müsste es gehen
12/27/2012 21:44 .Remix#12
Hab's mal kürzer gemacht..
Haben halt immer die end's gefehlt

PHP Code:
quest pets begin
    state start begin
        when 53001.
use begin
            
if pc.getqf("erstes") == 0 then
                local old_level 
= horse.get_level()
                
horse.set_level(22)
                
horse.summon()
                
horse.set_level(old_level)
                
set_state(back)
                
pc.setqf("erstes", 1)
            elseif 
pc.getqf("erstes") == 1 then
                horse
.unsummon()
                
pc.setqf("erstes", 0)
            
end
        when 53002.
use begin
            
if pc.getqf("zweites") == 0 then
                local old_level 
= horse.get_level()
                
horse.set_level(22)
                
horse.summon()
                
horse.set_level(old_level) 
                
pc.setqf("zweites", 1)
            elseif 
pc.getqf("zweites") == 1 then
                horse
.unsummon()
                
pc.setqf("zweites", 0)
            
end
        when 53003.
use begin
            
if pc.getqf("drittes") == 0 then
                local old_level 
= horse.get_level()
                
horse.set_level(22)
                
horse.summon()
                
horse.set_level(old_level) 
                
pc.setqf("drittes", 1)
            else
                
horse.unsummon()
                
pc.setqf("drittes", 0)
            
end
        when 53004.
use begin
            
if pc.getqf("viertes") == 0 then
                local old_level 
= horse.get_level()
                
horse.set_level(22)
                
horse.summon()
                
horse.set_level(old_level) 
                
pc.setqf("viertes", 1)
            else
                
horse.unsummon()
                
pc.setqf("viertes", 0)
            
end
        when 53005.
use begin
            
if pc.getqf("fuenftes") == 0 then
                local old_level 
= horse.get_level()
                
horse.set_level(22)
                
horse.summon()
                
horse.set_level(old_level) 
                
pc.setqf("fuenftes", 1)
            else
                
horse.unsummon()
                
pc.setqf("fuenftes", 0)
            
end
        when 53006.
use begin
            
if pc.getqf("sechstes") == 0 then
                local old_level 
= horse.get_level()
                
horse.set_level(22)
                
horse.summon()
                
horse.set_level(old_level) 
                
pc.setqf("sechstes", 1)
            else
                
horse.unsummon()
                
pc.setqf("sechstes", 0)
            
end
        when 53007.
use begin
            
if pc.getqf("siebtes") == 0 then
                local old_level 
= horse.get_level()
                
horse.set_level(22)
                
horse.summon()
                
horse.set_level(old_level) 
                
pc.setqf("siebtes", 1)
            else
                
horse.unsummon()
                
pc.setqf("siebtes", 0)
            
end
        when 53008.
use begin
            
if pc.getqf("achtes") == 0 then
                local old_level 
= horse.get_level()
                
horse.set_level(22)
                
horse.summon()
                
horse.set_level(old_level)
                
pc.setqf("achtes", 1)
            else
                
horse.unsummon()
                
pc.setqf("achtes", 0)
            
end
        when 53009.
use begin
            
if pc.getqf("neuntes") == 0 then
                local old_level 
= horse.get_level()
                
horse.set_level(22)
                
horse.summon()
                
pc.setqf("neuntes", 1)
            else
                
horse.unsummon()
                
pc.setqf("neuntes", 0)
            
end
        end
    end
end 
12/27/2012 21:46 .Sento™#13
syntax error : [string "startpc . getqf ( "achtes" ) == 0"]:6: unexpected symbol near `when'
pets.quest:101:Abort trap (core dumped)
fail :)
12/27/2012 22:03 .Remix#14
Kb mehr .. Bin schlafen.
Versuch die von Ocelot