Hello, again me, sorry for make a new Topic but i think this will be much different from other. So i will say thank you to everybody who can and could help me in 2 questions what I have bout scripting (i just started do my first server 1,5 weeks before so dont laugh alotif I have some errors :D). ok here I come:
1). First of all I would like to know how I can make my buffer remember and restore player's buff, I have a custom npc buffer but dont know how to make and option abous save/restore buffs.
2). I was tryin to make a NPC who enchant your Armor, Weapon, Jewel and so on +30 (while server max enchant is +25) to improve donations from people so I've done the code, tell me why doesn't work and what do I do bad? :
import sys
from com.l2jserver.gameserver.model.actor.instance import L2PcInstance
from java.util import Iterator
from com.l2jserver import L2DatabaseFactory
from com.l2jserver.gameserver.model.itemcontainer import Inventory
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= "99991_NpcEnchant"
NPC=[99991]
ADENA_ID=57
QuestId = 99991
QuestName = "NpcEnchant"
QuestDesc = "custom"
InitialHtml = "1.htm"
print "ENCHANT NPC LOADED"
class Quest (JQuest) :
def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)
def onEvent(self,event,st):
htmltext = event
#Helmet
if event == "1":
st.getPlayer().setTarget(st.getPlayer())
ench = 30
armorType = Inventory.PAPERDOLL_HEAD;
st.setEnchant(activeTarget, ench, armorType);
QUEST = Quest(QuestId,str(QuestId) + "_" + QuestName,QuestDesc)
for npcId in NPC:
QUEST.addStartNpc(npcId)
QUEST.addTalkId(npcId)
This is only for a Helmet but dont even work correctly :< "Your character dont ...blablalba... minimal quest requirements" = this.
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.
Hello. You may encounter the Push item fail error when trying to pick up an item dropped on the ground by a mob.
or
You can throw something out of your inventory and pick it up again, several times.
Probably this is a quantum dependency) I don't understand at what point this happens, sometimes two items one after another experience push item errors, and sometimes I don't have enough thousands of attempts to repeat this trick)
In any case, this is just a visual error and after the relog, the item appears in the inventory. I think first i need to disconnect the extender and check it on a bare server. I still need time to check this, maybe it's not even about the autoloot function.
https://youtu.be/6mcfmdImofE
-----------
In general, I would like to thank our wonderful Emca Eressea for her deep knowledge in programming and reverse engineering. And for the fact that her work is open to everyone, this is very amazing, and incredibly valuable.
ADENA
500 K = 40e
1kk = 70e
3kk = 190e
ITEMS
staff of life = 150e
karmian set = 90e
elven jewls top D = 30e
Orcish Poleaxe+1 best C pole = 680e
any D grade armor on demand
discord
wiz0642_81242
Question
fLx
Hello, again me, sorry for make a new Topic but i think this will be much different from other. So i will say thank you to everybody who can and could help me in 2 questions what I have bout scripting (i just started do my first server 1,5 weeks before so dont laugh alotif I have some errors :D). ok here I come:
1). First of all I would like to know how I can make my buffer remember and restore player's buff, I have a custom npc buffer but dont know how to make and option abous save/restore buffs.
2). I was tryin to make a NPC who enchant your Armor, Weapon, Jewel and so on +30 (while server max enchant is +25) to improve donations from people so I've done the code, tell me why doesn't work and what do I do bad? :
This is only for a Helmet but dont even work correctly :< "Your character dont ...blablalba... minimal quest requirements" = this.
Help me please and thanks all again!!
1 answer to this question
Recommended Posts
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.