Jump to content
  • 0

[Help]Delevel manager!!!


Question

Posted

Kalhspera paidia....exo enan low rate server kai 8elo na peraso enan delevel manager...alla fovamai na ton peraso mhpos m dhmiourgisei kanena bug...exete na m proteinete kanena eseis?

6 answers to this question

Recommended Posts

  • 0
Posted

pane navicat

 

meta l2jdb

backup

new backup

 

kai ftiakse ena

 

kai meta perna to delevel

 

se periptwsi pou exeis kana problima

 

pas navicat

l2jdb

backup

markareis to backup pou sou ebgale prin

kai patas Restore backup

 

kai einai san na min to perases pote auto

to delevel manager

sbineis kai ta arxeia apo html kai

eisai ok

  • 0
Posted

Ayto einai.Kai den 8a exeis kanen abug min fobasai.

import sys
from net.sf.l2j.gameserver.network.serverpackets import CreatureSay
from java.lang import System
from net.sf.l2j.gameserver.model.actor.instance import L2PcInstance
from net.sf.l2j.gameserver.model.base import Experience
from net.sf.l2j.gameserver.model.quest import State
from net.sf.l2j.gameserver.model.quest import QuestState
from net.sf.l2j.gameserver.model.quest.jython import QuestJython as JQuest
from java.util import Iterator
from net.sf.l2j.gameserver.datatables import SkillTable
from net.sf.l2j import L2DatabaseFactory
from net.sf.l2j.gameserver.network.serverpackets import SetupGauge

qn = "7105_Delevel"

NPC=[7108]
MEDAL = 57
QuestId    = 7105
QuestName   = "Delevel"
QuestDesc   = "custom"
InitialHtml = "1.htm"

print "INFO Loaded: Delevel Manager by promo"

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().getLevel() < 41 :
		st.getPlayer().sendPacket(CreatureSay(st.getPlayer().getObjectId(), 2, "Delevel Manager", "Ban khong du level!"))

	elif st.getQuestItemsCount(MEDAL) < 10000000 :	
                       		 st.getPlayer().sendPacket(CreatureSay(st.getPlayer().getObjectId(), 2, "Delevel Manager", "Ban khong co du adena !"))

	elif st.getPlayer().getKarma() > 0 :
		st.getPlayer().sendPacket(CreatureSay(st.getPlayer().getObjectId(), 2, "Delevel Manager", "Diem karma cua ban qua cao!"))

	elif st.getPlayer().getPvpFlag() != 0 :
		st.getPlayer().sendPacket(CreatureSay(st.getPlayer().getObjectId(), 2, "Delevel Manager", "Ban dang trong tinh trang chien dau!"))

	elif st.getPlayer().isAttackingNow() == True :
		st.getPlayer().sendPacket(CreatureSay(st.getPlayer().getObjectId(), 2, "Delevel Manager", "Dont hit me, Plz!!!!"))

	elif st.getPlayer().getLevel() < 48 :
		SkillTable.getInstance().getInfo(1389,3).getEffects(st.getPlayer(),st.getPlayer())
		st.getPlayer().sendPacket(CreatureSay(st.getPlayer().getObjectId(), 2, "Delevel Manager", "Ban  khong the su dung tiep tuc neu ban duoi cap 48"))

	else:
		st.getPlayer().setTarget(st.getPlayer())

		if event == "2":
			st.takeItems(MEDAL,10000000)
                                st.getPlayer().getStat().removeExpAndSp((st.getPlayer().getExp() - Experience.LEVEL[st.getPlayer().getStat().getLevel() - 1]),0)
			st.getPlayer().sendPacket(CreatureSay(st.getPlayer().getObjectId(), 3, "Delevel Manager", "Ban da duoc giam di 1 level"))
			return "1.htm"
			st.setState(State.COMPLETED)
			st.exitQuest(1)


		if htmltext != event:
			st.setState(State.COMPLETED)
			st.exitQuest(1)
	return htmltext

def onTalk (self,npc,player):
   st = player.getQuestState(qn)
   htmltext = "<html><head><body> I dont have anything to say .</body></html>"
   st.setState(State.STARTED)
   return InitialHtml

QUEST       = Quest(QuestId,str(QuestId) + "_" + QuestName,QuestDesc)

for npcId in NPC:
QUEST.addStartNpc(npcId)
QUEST.addTalkId(npcId)

  • 0
Posted

Newbie erwtisi.

Kai sorry pou anastainw arxaia (sxetika) topics alla sikwsa enan low rate server kai mou zitisane Delevel NPC kai to monadiko post (swsto toulaxiston) pou vrika einai auto.

 

import sys
from net.sf.l2j.gameserver.network.serverpackets import CreatureSay
from java.lang import System
from net.sf.l2j.gameserver.model.actor.instance import L2PcInstance
from net.sf.l2j.gameserver.model.base import Experience
from net.sf.l2j.gameserver.model.quest import State
from net.sf.l2j.gameserver.model.quest import QuestState
from net.sf.l2j.gameserver.model.quest.jython import QuestJython as JQuest
from java.util import Iterator
from net.sf.l2j.gameserver.datatables import SkillTable
from net.sf.l2j import L2DatabaseFactory
from net.sf.l2j.gameserver.network.serverpackets import SetupGauge

qn = "7105_Delevel"

NPC=[7108]
MEDAL = 57
QuestId    = 7105
QuestName   = "Delevel"
QuestDesc   = "custom"
InitialHtml = "1.htm"

print "INFO Loaded: Delevel Manager by promo"

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().getLevel() < 41 :
		st.getPlayer().sendPacket(CreatureSay(st.getPlayer().getObjectId(), 2, "Delevel Manager", "Ban khong du level!"))

	elif st.getQuestItemsCount(MEDAL) < 10000000 :	
                       		 st.getPlayer().sendPacket(CreatureSay(st.getPlayer().getObjectId(), 2, "Delevel Manager", "Ban khong co du adena !"))

	elif st.getPlayer().getKarma() > 0 :
		st.getPlayer().sendPacket(CreatureSay(st.getPlayer().getObjectId(), 2, "Delevel Manager", "Diem karma cua ban qua cao!"))

	elif st.getPlayer().getPvpFlag() != 0 :
		st.getPlayer().sendPacket(CreatureSay(st.getPlayer().getObjectId(), 2, "Delevel Manager", "Ban dang trong tinh trang chien dau!"))

	elif st.getPlayer().isAttackingNow() == True :
		st.getPlayer().sendPacket(CreatureSay(st.getPlayer().getObjectId(), 2, "Delevel Manager", "Dont hit me, Plz!!!!"))

	elif st.getPlayer().getLevel() < 48 :
		SkillTable.getInstance().getInfo(1389,3).getEffects(st.getPlayer(),st.getPlayer())
		st.getPlayer().sendPacket(CreatureSay(st.getPlayer().getObjectId(), 2, "Delevel Manager", "Ban  khong the su dung tiep tuc neu ban duoi cap 48"))

	else:
		st.getPlayer().setTarget(st.getPlayer())

		if event == "2":
			st.takeItems(MEDAL,10000000)
                                st.getPlayer().getStat().removeExpAndSp((st.getPlayer().getExp() - Experience.LEVEL[st.getPlayer().getStat().getLevel() - 1]),0)
			st.getPlayer().sendPacket(CreatureSay(st.getPlayer().getObjectId(), 3, "Delevel Manager", "Ban da duoc giam di 1 level"))
			return "1.htm"
			st.setState(State.COMPLETED)
			st.exitQuest(1)


		if htmltext != event:
			st.setState(State.COMPLETED)
			st.exitQuest(1)
	return htmltext

def onTalk (self,npc,player):
   st = player.getQuestState(qn)
   htmltext = "<html><head><body> I dont have anything to say .</body></html>"
   st.setState(State.STARTED)
   return InitialHtml

QUEST       = Quest(QuestId,str(QuestId) + "_" + QuestName,QuestDesc)

for npcId in NPC:
QUEST.addStartNpc(npcId)
QUEST.addTalkId(npcId)

 

Mporei na akougete entelws xazo alla den exw kanei kati analogo opote den 3erw pws/pou.

Opote pou kai pws to pernaw to code ? :X

 

 

Euxaristw ek twn proterwn gia opoiadipote voh8eia.

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.

  • Posts

    • Hello. This code works well. It removes buff with double click, but If you preffer remove buff with ALT + mouse click, place this code in AbnormalStatusWnd.uc   function OnLButtonDown(WindowHandle a_WindowHandle, int X, int Y) { local Rect windowBounds; local int targetRow; local int targetCol; local StatusIconInfo info; local SkillInfo skillInfo; if (IsKeyDown(IK_alt) == false) return; // Find window position windowBounds = Me.GetRect(); // Process clicks outside of window frame only if (X > (windowBounds.nX + NSTATUSICON_FRAMESIZE)) { // Calc row and col of targeted icon targetRow = (Y - windowBounds.nY) / NSTATUSICON_SIZE; targetCol = (X - windowBounds.nX - NSTATUSICON_FRAMESIZE) / NSTATUSICON_SIZE; // Store status info of targeted icon StatusIcon.GetItem(targetRow, targetCol, info); // Store actual skill info and make sure it is exists if (GetSkillInfo(info.ClassID, info.Level, skillInfo)) { // Request server to stop skill effect // Usage: _dispel:<int:skill_id>,<int :skill_level> // Example: _dispel:313,8 RequestBypassToServer ( "_dispel:" $ string ( skillInfo. SkillID ) $ "," $ string ( skillInfo. SkillLevel ) ) ) ; } } }  
    • We are excited to announce the open beta testing of the Fulgrim x4 server, starting November 29th, 2024, at 19:00 server time (19:00 по МСК). There will be an NPC available on the test server from whom you can purchase items, gain levels, professions, and other services.   More information at our >Forum
    • Server mid rate craft PvP   CLIENTE INTERLUDE Website server Discord olympus x25 &nbsp;server 🇧🇷🇦🇷🇨🇱🇬🇷🇲🇽🇵🇪🇸🇰🇪🇸🇺🇾 Server mid rate craft PvP 🔱CLIENTE INTERLUDE🔱 🔅xpx25 🔅Sp x25 🔅Adena x15 🔅Droop x2 🔅Spoil x2 🔅Raidboss xp x2 🔅Raidboss sp x2 🔅Raidboss droop x1 🔅All Rate quest reward  x1 ⚠️All Quest drop reward. x1 🔅Manor x 3 🔅Seal stone x1 🛡️🗡️INFO GRADO S🗡️🛡️ ⚠️Inicia desabilitado drop/spoil/quest. 🔱PROFESIONES/SUBCLASS🔱 🛡️1st profession - 50medal 🛡️2nd profession - 500 medal 🛡️3rd profession - 1k medal +30kk adena 🛡️Sub class - Quest. No necesita matar raids. ⚙️Configuraciones⚙️ 🛡️Gmshop  grade - B. 🛡️Grade A-S Craft - yes x1 chance 🛡️Globlal teleport - yes 🛡️Buffer 1hora. 🛡️Buffer slot 24(+4divine)+12 dances-song 🛡️Auto learn skils - yes 🛡️Autoloot - yes 🛡️Mana potion recarga 1000 ,9segundos delay. 🛡️Champions system:     ▫️lvl 30 - 76     ▫️chance respawn 0.5%.     ▫️adena x20 🛡️Max lvl party 14 lvl. 🛡️Festive sweeper on. 🛡️Max client pc 2. 🛡️Raid boss respawn retail. 🛡️Nobleza quest - yes. 🛡️Barakiel respawn 6 horas + -30 min. 🛡️Olimpiada duracion 14 dias. 🛡️Olimpiada de 18:00 a 00:00 🛡️Safe enchant +3 🛡️Normal enchant scroll 50% ⚠️+11-16 chance 30% 🛡️Bleesed enchant scroll 55% ⚠️+11-16 chance 35% 🛡️Rate dinamico x1 lvl 77-80   🛡️🗡️CLANES INFO🗡️🛡️ 🔅Crear clan min. level 20 🔅Max Alianzas 1 🔅Duracion penalidades clan / alianzas 8 horas. 🔅Cambio de lider 24 horas. 🛡️⚔️ ASEDIOS ⚔️🛡️ 🔅Cada 2 semanas. 🔅Proteccion hwid 1 pc. 🔅Clanes registrados. acceden a zona de asedio. 🔅Castillo asediable Aden. 🔅Reward 1000 FA 🔅Horario 16:00 GMT-3 🎊PACK DE INICIO🎊 🔅Start set - armor\weapon no grade. 🔅Level 20  - 5 shadow cuppon grado D 🔅Level 40 - 5 shadow cuppon grado C 🔅Free Autofarm 24 horas. 💰 INFO PREMIUM 💰 🔅Free autofarm. 🔅xp x30 🔅sp x30 🔅adena x17 🔅drop x4 🔅spoil x4 🔅enchant +2% 🔅seal stone x1 🔅Altb Gk-Gmshop/buffe ⚔️ RAID  BOSS INFO ⚔️ 🔅Raid boss 70 ++ respawn 5 días despues. 🔅Raid boss 75 ++ respawn 15 días despues 🔅Drop LETTER L2DAY para tradear en GMshop. ⚔️ INFO SEVEN SING ⚔️ 🔅Inicio del drop Seal stones dia 5 de iniciado el server. 🎊 EPIC RAID INFO 🎊 🔅Queen Ant (lvl 40)respawn Lunes a Viernes 22:00 GMT-3 drop chance 30%. 🔅Core (lvl 80)respawn Martes-miercoles 20:20 GMT-3 drop chance 100%. 🔅Orfen (lvl 80)respawn Martes-miercoles 21:00 GMT-3 drop chance 100%. 🔅Zaken (lvl 80)respawn Jueves 23:00 GMT-3 drop chance 100%. 🔅Frintezza (lvl 80)respawn Viernes 23:00 GMT-3 drop chance 100%. 🔅Baium (lvl 80)respawn Sabado 22:00 GMT-3 drop chance 100%. 🔅Valakas (lvl 80)respawn Domingo 20:00 GMT-3 drop chance 100%. 🔅Antharas (lvl 80)respawn Domingo 22:00 GMT-3 drop chance 100%.
  • Topics

×
×
  • Create New...