Hello. So I need some help, who know Python. So I wan't to do seperate buffer to Summoners. I wan't to do what other classes except Warlock, Elemental Summoner, Phantom Summoner can't go to that buffer. And I don't know how to do that. Now it's like this:
def onTalk (self,npc,player):#verifica player se tem PET/Flag/Karma ou modo de combate.
htmltext = "<html><head><body>Vc naun tem requisitos para usar NPC</body></html>"
st = player.getQuestState(qn)
if not st : return htmltext
npcId = npc.getNpcId()
if player.getPet() == None :#Player sem Pet
htmltext = "<html><head><body>You Don't Have Summon or Pet!</body></html>"
st.exitQuest(1)
elif st.player.getPvpFlag() > 0 :#Player Flag
htmltext = "<html><head><body>You can't buff while you are <font color=\"800080\">flagged!</font><br>Wait some time and try again!</body></html>"
st.exitQuest(1)
elif st.player.getKarma() > 0 :#Player com Karma
st.exitQuest(1)
htmltext = "<html><head><body>You have too much <font color=\"FF0000\">karma!</font><br>Come back,<br>when you don't have any karma!</body></html>"
elif st.player.isInCombat() :#Player modo de Combate
st.exitQuest(1)
htmltext = "<html><head><body>You can't buff while you are attacking!<br>Stop your fight and try again!</body></html>"
else:
st.setState(State.STARTED)
return InitialHtml
return htmltext
And I think it's must be something like this:
def onTalk (self,npc,player):#verifica player se tem PET/Flag/Karma ou modo de combate.
htmltext = "<html><head><body>Vc naun tem requisitos para usar NPC</body></html>"
st = player.getQuestState(qn)
if not st : return htmltext
npcId = npc.getNpcId()
if player.getPet() == None :#Player sem Pet
htmltext = "<html><head><body>You Don't Have Summon or Pet!</body></html>"
st.exitQuest(1)
elif st.player.getPvpFlag() > 0 :#Player Flag
htmltext = "<html><head><body>You can't buff while you are <font color=\"800080\">flagged!</font><br>Wait some time and try again!</body></html>"
st.exitQuest(1)
elif st.player.getKarma() > 0 :#Player com Karma
st.exitQuest(1)
htmltext = "<html><head><body>You have too much <font color=\"FF0000\">karma!</font><br>Come back,<br>when you don't have any karma!</body></html>"
elif st.player.isInCombat() :#Player modo de Combate
st.exitQuest(1)
htmltext = "<html><head><body>You can't buff while you are attacking!<br>Stop your fight and try again!</body></html>"
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.
A New Chapter Begins
We're Rebuilding – Join Our Staff Team
After many years of activity, growth, and challenges, it’s finally time for our community to restructure and move forward. We’re ready to turn a new page and evolve into something greater — but we can’t do it without the help of passionate and committed people.
That’s why we’re now opening up staff applications for those who want to actively shape the future of our community.
If you have the motivation, time, and patience to contribute to something meaningful, this is your chance to step in and make a real impact.
What We're Looking For
We’re building a fresh and dedicated team of individuals who are ready to support and grow this project. Open roles include:
Moderators – to keep the forum clean, safe, and organized
Gaming Moderators – to help manage gaming boards (e.g., Lineage, GTA FiveM)
Content Creators – to post updates, guides, and articles
Community Managers – to engage users and drive activity
Technical Staff – for development, backend, and server work
We’re not focusing only on Lineage anymore. Our vision is expanding to new areas — including GTA FiveM and other multiplayer games you might have expertise in.
If you have a good idea, a server plan, or something new to suggest — we’re open to it. Now’s the time to bring it forward.
Requirements
We’re looking for individuals who have:
A history of activity on the forum (preferred)
Available time to contribute consistently
A sense of teamwork and responsibility
A genuine interest in gaming and community building
If you're interested, just send a private message to me or Celestine. (or just reply here)
Tell us a few things about yourself and how you’d like to contribute.
Let’s bring this community back to life.
Let’s rebuild something great — together.
M M G A
Question
feather57
Hello. So I need some help, who know Python. So I wan't to do seperate buffer to Summoners. I wan't to do what other classes except Warlock, Elemental Summoner, Phantom Summoner can't go to that buffer. And I don't know how to do that. Now it's like this:
def onTalk (self,npc,player):#verifica player se tem PET/Flag/Karma ou modo de combate.
htmltext = "<html><head><body>Vc naun tem requisitos para usar NPC</body></html>"
st = player.getQuestState(qn)
if not st : return htmltext
npcId = npc.getNpcId()
if player.getPet() == None :#Player sem Pet
htmltext = "<html><head><body>You Don't Have Summon or Pet!</body></html>"
st.exitQuest(1)
elif st.player.getPvpFlag() > 0 :#Player Flag
htmltext = "<html><head><body>You can't buff while you are <font color=\"800080\">flagged!</font><br>Wait some time and try again!</body></html>"
st.exitQuest(1)
elif st.player.getKarma() > 0 :#Player com Karma
st.exitQuest(1)
htmltext = "<html><head><body>You have too much <font color=\"FF0000\">karma!</font><br>Come back,<br>when you don't have any karma!</body></html>"
elif st.player.isInCombat() :#Player modo de Combate
st.exitQuest(1)
htmltext = "<html><head><body>You can't buff while you are attacking!<br>Stop your fight and try again!</body></html>"
else:
st.setState(State.STARTED)
return InitialHtml
return htmltext
And I think it's must be something like this:
def onTalk (self,npc,player):#verifica player se tem PET/Flag/Karma ou modo de combate.
htmltext = "<html><head><body>Vc naun tem requisitos para usar NPC</body></html>"
st = player.getQuestState(qn)
if not st : return htmltext
npcId = npc.getNpcId()
if player.getPet() == None :#Player sem Pet
htmltext = "<html><head><body>You Don't Have Summon or Pet!</body></html>"
st.exitQuest(1)
elif st.player.getPvpFlag() > 0 :#Player Flag
htmltext = "<html><head><body>You can't buff while you are <font color=\"800080\">flagged!</font><br>Wait some time and try again!</body></html>"
st.exitQuest(1)
elif st.player.getKarma() > 0 :#Player com Karma
st.exitQuest(1)
htmltext = "<html><head><body>You have too much <font color=\"FF0000\">karma!</font><br>Come back,<br>when you don't have any karma!</body></html>"
elif st.player.isInCombat() :#Player modo de Combate
st.exitQuest(1)
htmltext = "<html><head><body>You can't buff while you are attacking!<br>Stop your fight and try again!</body></html>"
elif player.getClassId().getId() == 93, player.getClassId().getId() == 15 :#What classes can't go here.
st.exitQuest(1)
htmltext = "<html><head><body>You can't buff while you are attacking!<br>Stop your fight and try again!</body></html>"
else:
st.setState(State.STARTED)
return InitialHtml
return htmltext
8 answers 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.