Jump to content
  • 0

[HELP] Python teleporter


Question

Posted

Hi kai pali edw einai o teleporter :

 

import sys 
from com.l2jserver.gameserver.model.quest.jython   import QuestJython as JQuest 
from com.l2jserver.gameserver.ai                   import CtrlIntention 
from com.l2jserver.gameserver.network.serverpackets        import SocialAction 
from com.l2jserver.gameserver.instancemanager import FrintezzaManager
from com.l2jserver.gameserver.model import L2Skill
from com.l2jserver.gameserver.network.serverpackets import StopMove
from com.l2jserver.gameserver.model.actor import L2Character
from com.l2jserver.gameserver.network.serverpackets import AutoAttackStop
from com.l2jserver.gameserver.ai import CtrlIntention
from com.l2jserver.gameserver.network.serverpackets import MagicSkillUse
from com.l2jserver.gameserver.model.actor import L2Npc
from com.l2jserver.gameserver.instancemanager import GrandBossManager
from java.lang import System


ALIVE = 0  
FIGHTING = 1   
DEAD = 2    


class Frintezza(JQuest) : 

    def __init__(self,id,name,descr): 
        JQuest.__init__(self,id,name,descr) 
        self.isMorphed = False 
        self.FirstAttacked = False
        self.status = ALIVE

    def onAdvEvent(self,event,npc,player) :  
        if event == "start" :
            FrintezzaManager.getInstance().startBattle()
        return 


    def onTalk (self,npc,player):
        npcId = npc.getNpcId()
        htmltext = "1"
        if npcId == 31453 :
            if self.status == ALIVE :
                if FrintezzaManager.getInstance().telePlayers(player, npc) == True :
                    self.startQuestTimer("start", 180000, npc, player)
            if self.status == FIGHTING :
                htmltext = "<html><body>Some other group entered lair.</body></html>"
            if self.status == DEAD :
                htmltext = "<html><body>Frintezza is now busy.</body></html>"
        return htmltext

QUEST      = Frintezza(-1,"Frintezza","ai") 
QUEST.addStartNpc(31453)
QUEST.addTalkId(31453)

print "AI: individuals: Frintezza...loaded!"

 

Einai enas custom gk gia to halisha kai psaxnw to e3is. Me to self.status = ALIVE sthn arxh toy script to status toy boss einai panta alive

opote panta mporei na mpei kosmos sto lair. Pos mporo to statous toy boss na to diabazei apo thn db ?

Den 3erw ti moy ginete apo python kai epipleon den mporw na brw kapio kalo documentation gia python !

Giafto zitaw help !

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...