Jump to content

Question

Posted

Hi Guyz Exw enan Buffer kai 9elw osi ine vip chars na borun na xrisimopioun auton tn buffer ti prepi na ala3w sto script sto arxio __init__.py

import sys
from com.l2jfrozen.gameserver.model.actor.instance import L2PcInstance
from java.util import Iterator
from com.l2jfrozen.gameserver.datatables import SkillTable
from com.l2jfrozen.util.database import L2DatabaseFactory
from com.l2jfrozen.gameserver.model.quest import State
from com.l2jfrozen.gameserver.model.quest import QuestState
from com.l2jfrozen.gameserver.model.quest.jython import QuestJython as JQuest

qn = "15010_NPCBuffer"

NPC=[40008]
ADENA_ID=57
QuestId     = 15010
QuestName   = "NPCBuffer"
QuestDesc   = "custom"
InitialHtml = "1.htm"

print "NPC Buffer VIP: By DS - Dazzel"

class Quest (JQuest) :

def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)


def onEvent(self,event,st):
	htmltext = event
	if st.getPlayer().getAccessLevel() < 10 :
		htmltext = "vip-no.htm"
	else:
		st.takeItems(ADENA_ID,0)
		st.getPlayer().setTarget(st.getPlayer())

		if event == "2":
			st.takeItems(ADENA_ID,0)
			st.getPlayer().stopAllEffects()

6 answers to this question

Recommended Posts

  • 0
Posted

Hi Guyz Exw enan Buffer kai 9elw osi ine vip chars na borun na xrisimopioun auton tn buffer ti prepi na ala3w sto script sto arxio __init__.py

import sys
from com.l2jfrozen.gameserver.model.actor.instance import L2PcInstance
from java.util import Iterator
from com.l2jfrozen.gameserver.datatables import SkillTable
from com.l2jfrozen.util.database import L2DatabaseFactory
from com.l2jfrozen.gameserver.model.quest import State
from com.l2jfrozen.gameserver.model.quest import QuestState
from com.l2jfrozen.gameserver.model.quest.jython import QuestJython as JQuest

qn = "15010_NPCBuffer"

NPC=[40008]
ADENA_ID=57
QuestId     = 15010
QuestName   = "NPCBuffer"
QuestDesc   = "custom"
InitialHtml = "1.htm"

print "NPC Buffer VIP: By DS - Dazzel"

class Quest (JQuest) :

def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)


def onEvent(self,event,st):
	htmltext = event
	if st.getPlayer().getAccessLevel() < 10 :
		htmltext = "vip-no.htm"
	else:
		st.takeItems(ADENA_ID,0)
		st.getPlayer().setTarget(st.getPlayer())

		if event == "2":
			st.takeItems(ADENA_ID,0)
			st.getPlayer().stopAllEffects()

 

 

kati alo sto vip system oi chars dn pernun access...

  • 0
Posted

den kserw apo python ala tha kaneis to eksis:

otan kapios ginete VIP meso java tha tou dineis kai:

setAccessLevel(8) , 8 gia paradigma....

 

meta sto python tha valeis auto:

if st.getPlayer().getAccessLevel() < 8 :

  return;

kapos etsi..pisteuw.

 

Autos enas tropos...

Guest
This topic is now closed to further replies.


×
×
  • Create New...