Jump to content
  • 0

[Help] Erwthsh Sxetika me Script Buffer


Question

Posted

Kalispera paidia,

 

Exw kanei ena script buffer gia l2j.

To script boreite na to deite parakatw.

 

import sys

from com.l2jserver.gameserver.model.actor.instance import L2PcInstance

from java.util import Iterator

from com.l2jserver.gameserver.datatables import SkillTable

from com.l2jserver import L2DatabaseFactory

from com.l2jserver.gameserver.model.quest import State

from com.l2jserver.gameserver.model.quest import QuestState

from com.l2jserver.gameserver.model.quest.jython import QuestJython as JQuest

 

qn = "9999_NPCBuffer"

 

NPC=[1000003]

QuestId    = 9999

QuestName  = "NPCBuffer"

QuestDesc  = "custom"

InitialHtml = "1.htm"

 

print "importing custom: 9999: NPCBuffer"

 

class Quest (JQuest) :

 

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

 

 

def onEvent(self,event,st):

htmltext = event

 

#Wind Walk

if event == "1":

SkillTable.getInstance().getInfo(1204,2).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

#Acumen

if event == "2":

SkillTable.getInstance().getInfo(1085,3).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

#Shield

if event == "3":

SkillTable.getInstance().getInfo(1040,3).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

#Blessed Body

if event == "4":

SkillTable.getInstance().getInfo(1045,6).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

#Might

if event == "5":

SkillTable.getInstance().getInfo(1068,3).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

#Resist Shock

if event == "6":

SkillTable.getInstance().getInfo(1259,4).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

#Guidance

if event == "7":

SkillTable.getInstance().getInfo(1240,3).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

#Blessed Soul

if event == "8":

SkillTable.getInstance().getInfo(1048,6).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

#Focus

if event == "9":

SkillTable.getInstance().getInfo(1077,3).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

#Vampiric Rage

if event == "10":

SkillTable.getInstance().getInfo(1268,4).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

#Death Whisper

if event == "11":

SkillTable.getInstance().getInfo(1242,3).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

#Berserker Spirit

if event == "12":

SkillTable.getInstance().getInfo(1062,2).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

#Empower

if event == "13":

SkillTable.getInstance().getInfo(1059,3).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

#Wild Magic

if event == "14":

SkillTable.getInstance().getInfo(1303,2).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

#Mental Shield

if event == "15":

SkillTable.getInstance().getInfo(1035,4).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

#Magic Barrier

if event == "16":

SkillTable.getInstance().getInfo(1036,2).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

#Agility

if event == "17":

SkillTable.getInstance().getInfo(1087,3).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

#Blessed Shield

if event == "18":

SkillTable.getInstance().getInfo(1243,6).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

#Haste

if event == "19":

SkillTable.getInstance().getInfo(1086,2).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

#Concentration

if event == "20":

SkillTable.getInstance().getInfo(1078,6).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

 

#Cancel Buffs

if event == "21":

st.getPlayer().stopAllEffects()

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "NpcBuffer.htm"

st.setState(COMPLETED)

 

#Song of Earth

if event == "22":

SkillTable.getInstance().getInfo(264,1).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

#Dance of the Warrior

if event == "23":

SkillTable.getInstance().getInfo(271,1).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

#Song of Life

if event == "24":

SkillTable.getInstance().getInfo(265,1).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

#Dance of Inspiration

if event == "25":

SkillTable.getInstance().getInfo(272,1).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

#Song of Water

if event == "26":

SkillTable.getInstance().getInfo(266,1).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

#Dance of the Mystic

if event == "27":

SkillTable.getInstance().getInfo(273,1).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

#Song of Warding

if event == "28":

SkillTable.getInstance().getInfo(267,1).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

#Dance of Fire

if event == "29":

SkillTable.getInstance().getInfo(274,1).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

#Song of Wind

if event == "30":

SkillTable.getInstance().getInfo(268,1).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

#Dance of Fury

if event == "31":

SkillTable.getInstance().getInfo(275,1).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

#Song of Hunter

if event == "32":

SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

#Dance of Concentration

if event == "33":

SkillTable.getInstance().getInfo(276,1).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

#Song of Vitality

if event == "34":

SkillTable.getInstance().getInfo(304,1).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

#Dance of Light

if event == "35":

SkillTable.getInstance().getInfo(277,1).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

#Song of Invocation

if event == "36":

SkillTable.getInstance().getInfo(270,1).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

#Dance of the Vampire

if event == "37":

SkillTable.getInstance().getInfo(310,1).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

#Fighter

if event == "38":

SkillTable.getInstance().getInfo(1204,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1040,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1068,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1045,6).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1240,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1077,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1242,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1086,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1062,2).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

#Mage

if event == "39":

SkillTable.getInstance().getInfo(1204,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1040,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1085,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1045,6).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1062,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1036,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1078,6).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1059,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1303,2).getEffects(st.getPlayer(),st.getPlayer())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "1.htm"

st.setState(COMPLETED)

 

 

#Heal

if event == "40":

st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

return "NpcBuffer.htm"

st.setState(COMPLETED)

 

if htmltext != event:

st.setState(COMPLETED)

st.exitQuest(1)

return htmltext

 

 

def onTalk (self,npc,player):

    return InitialHtml

 

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

 

for npcId in NPC:

QUEST.addStartNpc(npcId)

QUEST.addTalkId(npcId)

 

To script doulevei APSOGA.

Gia tin arkrivia to ekana mono kai mono gia to Cancel kai to Restore HP/MP/CP.

Parakatw einai to html code pou patane oi players gia to cancel

 

<button value="Other Functions" action="bypass -h Quest 9999_NPCBuffer 21" width=95 height=15 back="sek.cbui" fore="sek.cbui">

 

To provlima mou einai oti otan to pataw.. bgazei ola ta buffs alla kanei pop-up to arxiko html tou buffer kai periexei to Reward list pou blepete parakatw.

 

http://imageshack.us/photo/my-images/528/41175527.jpg/

 

Gnorizei kapoios pws borw na afairesw to "Reward"?

 

Euxaristw!!

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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

    • From Salvation onwards I think you need a patched nwindow.dll that allows such modifications, try to see if you get what you need here: https://drive.google.com/drive/u/1/folders/1LLbQFGf8KlR-O0Iv5umfF-pwZgrDh9bd
    • hello everyone! I am wanting to save the files (Ini. - Data - ) of the EP5 Client: Salvation... But they generate the error "corrupt files"... I tried several versions of L2FileEditor without good results. I need help! Thank you!
    • Opening December 6th at 19:00 (GMT +3)! Open Beta Test from November 30th!   https://l2soe.com/   🌟 Introducing L2 Saga of Eternia: A Revolution in Lineage 2 High Five! 🌟   Dear Lineage 2 enthusiasts, Prepare to witness the future of private servers! L2 Saga of Eternia is not just another High Five project—it’s a game-changing experience designed to compete with the giants of the Lineage 2 private server scene. Built for the community, by the community, we’re here to raise the bar in quality, innovation, and longevity. What Sets Us Apart? 💎 No Wipes, Ever Say goodbye to the fear of losing your progress. Our server is built to last and will never close. Stability and consistency are our promises to you. ⚔️ Weekly New Content Our dedicated development team ensures fresh challenges, events, and updates every week. From custom quests to exclusive features, there will always be something exciting to explore. 💰 No Pay-to-Win Skill and strategy matter most here. Enjoy a balanced gameplay environment where your achievements come from effort, not your wallet. 🌍 A Massive Community With 2000+ players expected, join a vibrant and active community of like-minded adventurers ready to conquer the world of Aden. 🏆 Fair and Competitive Gameplay Our systems are designed to promote healthy competition while avoiding abusive mechanics and exploits. 🔧 Professional Development From advanced bug fixes to carefully curated content, we pride ourselves on smooth performance, no lag, and unparalleled server quality. Key Features Chronicle: High Five with unique interface Rate: Dynamic x10 rates Class Balance: Carefully fine-tuned for a fair experience PvP Focused: PvP Ranking & aura display effect for 3 Top PvPers every week Custom Events: Seasonal and permanent events to keep you engaged Additional Features:   Custom Endgame Content: Introduce unique dungeons, raids, or zones unavailable in other servers. Player-Driven Economy: Implement a strong market system and avoid overinflated drops or rewards. Epic Siege Battles: Announce special large-scale sieges and PvP events. Incentives for Streamers and Clans: Attract influencers and big clans to boost server publicity. Roadmap Transparency: Share a public roadmap of planned updates to build trust and excitemen   Here you can read all the features: https://l2soe.com/features   Video preview: Join the Revolution! This is your chance to be part of something legendary. L2 Saga of Eternia is not just a server; it’s a movement to redefine what Lineage 2 can be. Whether you’re a seasoned veteran or a newcomer to the world of Aden, we invite you to experience Lineage 2 at its finest.   Official Launch Date: December 6th 2024 Website: https://l2soe.com/ Facebook: https://www.facebook.com/l2soe Discord: https://discord.com/invite/l2eternia   Let’s build the ultimate Lineage 2 experience together. See you in-game! 🎮
    • That's like a tutorial on how to run l2 on MacOS Xd but good job for the investigation. 
  • Topics

×
×
  • Create New...