Register for your free account! | Forgot your password?

You last visited: Today at 05:41

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Pflanzensystem

Discussion on Pflanzensystem within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
IceCreamx3's Avatar
 
elite*gold: 0
Join Date: Jun 2012
Posts: 845
Received Thanks: 112
Pflanzensystem

Hallo,

habe soeben versucht, dass Pflanzensystem einzufügen.
Probleme beim Einfügen gab es nicht.()

Nun zum Problem danach:
Wenn ich die Pflanze aufheben möchte steht im Chat "Du bist zu weit entfernt" und gleich danach "Du stehst zu nah an der Pflanze", er hebt aber die Pflanze ganz normal auf.

Auch bekomme ich jede Sekunde die Meldung "Du hast eine Pflanze gefunden".

Quest:

PHP Code:
quest blumensystem begin
    state start begin
        when login with pc
.getqf("pflanzen") != 1 begin
            pc
.setqf("pflanzen"1)
            
pc.set_skill_level(7,59)
        
end
        when 20093.click with pc
.getqf("pflanzen") == 1 begin --- Vnums von Pflanzen hier ändern
            
if pc.is_mount() != true then
                cmdchat
("Sistema_Objetos") -- Führt die animation ausnicht ändern.    
                
timer("Hierbas"1) -- Timer für die animation
            end
        end
        when Hierbas
.timer begin
            npc
.purge()
            
chat("Gratulation, Du hast eine Pflanze gefunden")
        
end
    end
end 
Eintrag in der game py:

PHP Code:
# Pflanzensystem
    
def __Sistema_Recoger_Objetos(self):
        
import player
        import herbology
        
        vid_mine 
player.GetTargetVID()
        
vid2 player.GetCharacterDistance(int(vid_mine))
        
        if 
int(vid2) >=165:
            
self.herbology_dialog herbology.Herbologia()
            
self.herbology_dialog.Open()
            
chat.AppendChat(chat.CHAT_TYPE_INFO"Du bist zu weit entfernt")
        else:
            
chat.AppendChat(chat.CHAT_TYPE_INFO"Du stehst zu nah an der Pflanze")
            if 
player.GetJob() >= 2:
                
player.ClickSkillSlot(10)
            else:
                
player.ClickSkillSlot(10)
            return
    
# END Pflanzensystem 

Die herbology.py:

PHP Code:
import app
import chr
import player
import time
import net
import ui
import chat

class Herbologia(ui.ScriptWindow):

    
def __init__(self):
        
ui.ScriptWindow.__init__(self)
        
self.activado FALSE
        self
.sistema FALSE

    def OnUpdate
(self):
        if 
self.sistema == FALSE:
            
self.herbologia()

    
def herbologia(self):
        
vid_mine player.GetTargetVID() 
        
xychr.GetPixelPosition(int(vid_mine))
        
distancia player.GetCharacterDistance(int(vid_mine))
        
my_vid player.GetMainCharacterIndex()

        if 
int(distancia) >=165:
            
chr.MoveToDestPosition(my_vid,int(x),int(y),int(z) )
            
self.sistema FALSE
        
else:    
            
x_ply_plz_pl chr.GetPixelPosition(int(my_vid))
            
chr.MoveToDestPosition(my_vid,int(x_pl),int(y_pl), int(z_pl))
            
chr.SetPixelPosition(int(x_pl),int(y_pl),int(z_pl) )
            
self.sistema TRUE
            
if self.activado == FALSE:
                
self.OnMouseLeftButtonDown(vid_mine)


                return 
self.sistema
            self
.Close()

    
def Open(self):
        
self.Show()
        
vid_mine player.GetTargetVID() 
        
distancia player.GetCharacterDistance(int(vid_mine))

        if 
int(distancia) <=165:
            
self.Close()


    
def OnMouseLeftButtonDown(selfvid_mine):
        
net.SendOnClickPacket(vid_mine)
        
self.activado TRUE

        
return self.activado


    def Destroy
(self):
        
self.Hide()    

    
def Close(self):
        
self.Hide() 
Ich hoffe auf Hilfe!

Danke
IceCreamx3 is offline  
Old 01/16/2015, 00:32   #2
 
IceCreamx3's Avatar
 
elite*gold: 0
Join Date: Jun 2012
Posts: 845
Received Thanks: 112
up
IceCreamx3 is offline  
Old 01/17/2015, 10:03   #3
 
IceCreamx3's Avatar
 
elite*gold: 0
Join Date: Jun 2012
Posts: 845
Received Thanks: 112
Up
IceCreamx3 is offline  
Old 01/18/2015, 10:27   #4
 
IceCreamx3's Avatar
 
elite*gold: 0
Join Date: Jun 2012
Posts: 845
Received Thanks: 112
up
IceCreamx3 is offline  
Old 01/19/2015, 23:38   #5
 
IceCreamx3's Avatar
 
elite*gold: 0
Join Date: Jun 2012
Posts: 845
Received Thanks: 112
Up - brauche hier noch Hilfe!
IceCreamx3 is offline  
Old 01/21/2015, 12:40   #6
 
IceCreamx3's Avatar
 
elite*gold: 0
Join Date: Jun 2012
Posts: 845
Received Thanks: 112
up^^
IceCreamx3 is offline  
Old 01/21/2015, 17:13   #7
 
elite*gold: 18
Join Date: Jan 2015
Posts: 47
Received Thanks: 61
frag doch mal Onyx™ der das realst hat. kann dir leider hier bei nicht helfen
LaKekksi is offline  
Reply




All times are GMT +1. The time now is 05:43.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.