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

  • 0
Posted

Kapios kalos sr python jython script paidia ??? Isoa kapios na protinei enan allon teleporter java poy na kanei akribos ayto to prama ?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock