【l2jtw】怪物看穿靜行腳本
转自l2jtw原文如下
原作者:Smith
很簡單,只要設置NPC_id 該怪物可以看穿靜行術,而且出生時會說話
import sys
from com.l2jserver.gameserver.model.quest.jython import QuestJython as JQuest
from com.l2jserver.gameserver.network.serverpackets import NpcSay
from com.l2jserver.util import Rnd
QUEST_ID = 52081
QUEST_NAME = "52081_Smith"
QUEST_DESCRIPTION = "custom"
#設置會看穿靜行怪物編號
NPC_ID =
#設置看穿靜行怪物會說的話的機率 (百分之多少)
NPC_SAY_PERCENT = 20
#設置看穿靜行怪物會說的話
NPC_SAY_TEXT = ["你不要以為我好唬弄..","這種小把戲..你也想用在我身上..","這招對我沒用..","我能夠看穿透明人..","受死吧..","哇哈哈哈..","我重生啦..","老套了..","除了這招..難道就沒有其它招數了..?","太高估你了..","嘿嘿嘿..","我會證明你的無能..","使出你的絕招吧..","你的力氣只夠拿碗而已..","回家喝奶去吧..","我感覺到了..","唔..這附近有..?"]
class Quest (JQuest) :
def __init__(self,id,name,descr) :
JQuest.__init__(self,id,name,descr)
def onSpawn(self,npc) :
if npc.getNpcId() in NPC_ID :
npc.setSeeThroughSilentMove(True)
if Rnd.get(100) < NPC_SAY_PERCENT :
npc.broadcastPacket(NpcSay(npc.getObjectId(),30,npc.getNpcId(),NPC_SAY_TEXT))
return
QUEST = Quest(QUEST_ID,QUEST_NAME,QUEST_DESCRIPTION)
for MONSTER in NPC_ID :
QUEST.addSpawnId(MONSTER)
print "==========================="
print " "
print " LOADING .... 靜行設置 2010/09/20 MADE BY SMITH "
print " "
print "===========================" 路过顶一下!~
页:
[1]