Jump to content
  • 0

[Help] Buffer for Items...


Question

Posted

Well I would like to know as a buffer (phyton), buffe me but I get the item, which required bone but I did not serve.

"st.takeItems" -> Take the item.

As I do so I would not take him out?

Thanks beforehand.

Thus provide but does not walk

My CODE:

 

import sys

from net.sf.l2j.gameserver.model.actor.instance import L2PcInstance

from java.util import Iterator

from net.sf.l2j.gameserver.datatables import SkillTable

from net.sf.l2j import L2DatabaseFactory

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

 

qn = "8505_Buffer"

 

NPC=[85050]

GoldBar_ID  = 3470

QuestId    = 8505

QuestName  = "Buffer"

QuestDesc  = "custom"

InitialHtml = "1.htm"

 

print "importing custom: 8505: Buffer"

 

class Quest (JQuest) :

 

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

 

 

def onEvent(self,event,st):

htmltext = event[/color

count=st.getQuestItemsCount(GoldBar_ID)

if count < 0  or st.getPlayer().getLevel() < 1 :

htmltext = "<html><head><body>Minimum Level for Buff is 1.</body></html>"

else:

st.needItem(GoldBar_ID,1)

st.getPlayer().setTarget(st.getPlayer())

 

if event == "2":

st.needItem(GoldBar_ID,1)

st.getPlayer().stopAllEffects()

 

 

This: "st.needItem" don't work.. the yellow, LOOK!

please help me.

9 answers to this question

Recommended Posts

  • 0
Posted

Replace with :

 

st.takeItems(GoldBar_ID,1)

 

"Take the item, the item leave from ppl"

i need: I do not want the item is consumed, but with only 1 item,1 Gold bar, you can whenever you want..

  • 0
Posted

 

i need: I do not want the item is consumed, but with only 1 item,1 Gold bar, you can whenever you want..

 

I can't understand anything from your words.Try to explain it better.

  • 0
Posted

why dont you try to use google translator and explane us ?

 

He is using google translator , that's why i can't understand him with any way.

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


  • Posts

    • I buy Interface.u and compiler protocol 311 classic 
    • This document provides a structured and reproducible methodology for installing and running Lineage II on macOS using Lineage II through CrossOver.   The purpose of this guideline is to present a clear, technically sound procedure that allows macOS users to execute a Windows-native Lineage 2.   1. System Requirements 2.1 Hardware Mac with Intel or Apple Silicon (M1/M2/M3) Minimum 8 GB RAM (16 GB recommended)   2. Methodology 2.1 Installation of CrossOver Download CrossOver from the official CodeWeavers website. Install it via standard macOS installation procedure. Launch CrossOver and ensure it is updated to the latest build 2.2 Bottle Configuration In CrossOver terminology, a Bottle represents an isolated Windows environment. Click “Create a New Bottle.” Select: Windows 10 (recommended) Name the bottle: Lineage2 Wait for initialization to complete. Recommended Bottle Settings: Enable DXVK Enable High-Resolution Mode Install additional components if needed (you will be prompted): DirectX Visual C++ Redistributables (2015–2022) 2.3 Installing Lineage II Client Download the client: link In CrossOver: Open the Lineage2 bottle. Click Install Application → Select Installer. Choose the downloaded setup.exe. Follow standard Windows installation procedure.   In the end you will be able to utilize lineage 2 on MacOS  
    • L2 COVEN - ANIMATED BORDER   L2 LUNARIS - ANIMATED BORDER   L2 NOW - ANIMATED BORDER   L2 EUPHORIA - ANIMATED BORDER   L2 ECLIPSE - ANIMATED BANNERS     L2 NOOBWARS - ANIMATED BANNERS     L2 WARBORNE - COMMUNITY BOARD    
    • I ended up sorting a similar mess by working with a team that handled everything from discovery to launch and kept things super clear. Their business website design approach made it easy for me to get a site that actually fit my goals, plus I kept full ownership of everything. The long-term support and simple pricing structure saved me a ton of headaches down the road.
    • Online card acquiring for high-risk hosting projects We provide reliable payment processing for hosting platforms operating in high-risk sectors, including adult content and similar industries. Available payment methods: • Visa / Mastercard  • American Express (AMEX)  • Apple Pay / Google Pay We have strong experience processing payments from U.S. customers.  Fast onboarding with minimal docs.   https://laucharge.com/creditcard   Telegram: @Laucharge_Support  
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..