Jump to content

[L2jFrozen] Npc AioSeller e VipSeller.


Cheed

Recommended Posts


ola a respeito do npc vip como uso a frozen nao tem o //setvip +dias mais la seria //setdonator . o npc vip que esta aqui teria como mostrar a linha pra eu poder usar ele . usando //setdonator

obrigado.!

L2j

Link to comment
Share on other sites

 

 

#Created By Cheed!!!

import sys
from com.l2jfrozen.gameserver.model.actor.instance import L2PcInstance
from com.l2jfrozen.gameserver.model.actor.instance import L2NpcInstance
from java.util import Iterator
from com.l2jfrozen.util.database import L2DatabaseFactory
from com.l2jfrozen.gameserver.model.quest import State
from com.l2jfrozen.gameserver.model.quest import QuestState
from com.l2jfrozen import Config
from com.l2jfrozen.gameserver.model.quest.jython import QuestJython as JQuest
from com.l2jfrozen.gameserver.datatables import SkillTable
from com.l2jfrozen.gameserver.network.serverpackets import SocialAction
from com.l2jfrozen.gameserver.model.quest.jython import QuestJython as JQuest

qn = "5556_VipSeller"

NPC=[555556]

#iD do item que sera a moeda.
Moeda= 57

#Quantidade de dias e item para a opcao 1.
ItemCount1=30000000
#Quantidade de dias e item para a opcao 2.
ItemCount2=60000000
#Quantidade de dias e item para a opcao 3.
ItemCount3=90000000

QuestId     = 5556
QuestName   = "VipSeller"
QuestDesc   = "custom"
InitialHtml = "1.htm"

print "INFO  VipSeller==> ON"

class Quest (JQuest) :

 def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)
 
 def onAdvEvent (self,event,npc,player) :
    htmltext = event
    st = player.getQuestState(qn)
    if not st: return

    def doVip(player) :
     st.getPlayer().setDonator(True)
     st.player.broadcastPacket(SocialAction(st.player.getObjectId(),16))	
     st.player.getAppearance().setNameColor(Config.VIP_NCOLOR)
     st.player.getAppearance().setTitleColor(Config.VIP_TCOLOR)

	 
    if event == "1" :
     if st.getPlayer().isDonator():
      return "no.htm"
     else :
        if st.getQuestItemsCount(Moeda) >= ItemCount1 :
                  st.takeItems(Moeda,ItemCount1)			  
                  doVip(st.player)				  
                  st.player.sendMessage("Parabens Voce Virou um Player Vip!")
                  return "1.htm"
        else:
         st.player.sendMessage("Voce Nao Tem Itens Suficiente!")
         return "1.htm"

    elif event == "2" :
     if st.getPlayer().isDonator():
      return "no.htm"
     else :
        if st.getQuestItemsCount(Moeda) >= ItemCount2 :
                  st.takeItems(Moeda,ItemCount2)				  
                  doVip(st.player);				  			  
                  st.player.sendMessage("Parabens Voce Virou um Player Vip!")				  
                  return "1.htm"
        else:
         st.player.sendMessage("Voce Nao Tem Itens Suficiente!")
         return "1.htm"

    elif event == "3" :
     if st.getPlayer().isDonator():
      return "no.htm"
     else :
        if st.getQuestItemsCount(Moeda) >= ItemCount3 :
                  st.takeItems(Moeda,ItemCount3)				  
                  doVip(st.player);				  			  
                  st.player.sendMessage("Parabens Voce Virou um Player Vip!")				  
                  return "1.htm"
        else:
         st.player.sendMessage("Voce Nao Tem Itens Suficiente!")
         return "1.htm"
		 
    return htmltext		
	
 def onTalk (self,npc,player):
		htmltext = "<html><head><body>You can't buy while you are</body></html>"
		st = player.getQuestState(qn)
		if not st : return htmltext
		npcId = npc.getNpcId()		
		if st.player.getPvpFlag() > 0 :#Player Flag
			htmltext = "<html><head><body>You can't buy 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 buy while you are attacking!<br>Stop your fight and try again!</body></html>"
		else:
			
			return InitialHtml
		return htmltext

QUEST = Quest(5556,qn,"custom")
CREATED     = State('Start', QUEST)
STARTING    = State('Starting', QUEST)
STARTED     = State('Started', QUEST)
COMPLETED   = State('Completed', QUEST)
QUEST.setInitialState(CREATED)

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

 

 

 

Usa esse amigo , adaptei ele.

"Tente ser uma pessoa de valor , não de sucesso" - Albert Einstein

 

 

Link to comment
Share on other sites

#Created By Cheed!!!

import sys
from com.l2jfrozen.gameserver.model.actor.instance import L2PcInstance
from com.l2jfrozen.gameserver.model.actor.instance import L2NpcInstance
from java.util import Iterator
from com.l2jfrozen.util.database import L2DatabaseFactory
from com.l2jfrozen.gameserver.model.quest import State
from com.l2jfrozen.gameserver.model.quest import QuestState
from com.l2jfrozen import Config
from com.l2jfrozen.gameserver.model.quest.jython import QuestJython as JQuest
from com.l2jfrozen.gameserver.datatables import SkillTable
from com.l2jfrozen.gameserver.network.serverpackets import SocialAction
from com.l2jfrozen.gameserver.model.quest.jython import QuestJython as JQuest

qn = "5556_VipSeller"

NPC=[555556]

#iD do item que sera a moeda.
Moeda= 57

#Quantidade de dias e item para a opcao 1.
ItemCount1=30000000
#Quantidade de dias e item para a opcao 2.
ItemCount2=60000000
#Quantidade de dias e item para a opcao 3.
ItemCount3=90000000

QuestId     = 5556
QuestName   = "VipSeller"
QuestDesc   = "custom"
InitialHtml = "1.htm"

print "INFO  VipSeller==> ON"

class Quest (JQuest) :

 def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)
 
 def onAdvEvent (self,event,npc,player) :
    htmltext = event
    st = player.getQuestState(qn)
    if not st: return

    def doVip(player) :
     st.getPlayer().setDonator(True)
     st.player.broadcastPacket(SocialAction(st.player.getObjectId(),16))	
     st.player.getAppearance().setNameColor(Config.DONATOR_NAME_COLOR)
     st.player.getAppearance().setTitleColor(Config.DONATOR_TITLE_COLOR)

	 
    if event == "1" :
     if st.getPlayer().isDonator():
      return "no.htm"
     else :
        if st.getQuestItemsCount(Moeda) >= ItemCount1 :
                  st.takeItems(Moeda,ItemCount1)			  
                  doVip(st.player)				  
                  st.player.sendMessage("Parabens Voce Virou um Player Vip!")
                  return "1.htm"
        else:
         st.player.sendMessage("Voce Nao Tem Itens Suficiente!")
         return "1.htm"

    elif event == "2" :
     if st.getPlayer().isDonator():
      return "no.htm"
     else :
        if st.getQuestItemsCount(Moeda) >= ItemCount2 :
                  st.takeItems(Moeda,ItemCount2)				  
                  doVip(st.player);				  			  
                  st.player.sendMessage("Parabens Voce Virou um Player Vip!")				  
                  return "1.htm"
        else:
         st.player.sendMessage("Voce Nao Tem Itens Suficiente!")
         return "1.htm"

    elif event == "3" :
     if st.getPlayer().isDonator():
      return "no.htm"
     else :
        if st.getQuestItemsCount(Moeda) >= ItemCount3 :
                  st.takeItems(Moeda,ItemCount3)				  
                  doVip(st.player);				  			  
                  st.player.sendMessage("Parabens Voce Virou um Player Vip!")				  
                  return "1.htm"
        else:
         st.player.sendMessage("Voce Nao Tem Itens Suficiente!")
         return "1.htm"
		 
    return htmltext		
	
 def onTalk (self,npc,player):
		htmltext = "<html><head><body>You can't buy while you are</body></html>"
		st = player.getQuestState(qn)
		if not st : return htmltext
		npcId = npc.getNpcId()		
		if st.player.getPvpFlag() > 0 :#Player Flag
			htmltext = "<html><head><body>You can't buy 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 buy while you are attacking!<br>Stop your fight and try again!</body></html>"
		else:
			
			return InitialHtml
		return htmltext

QUEST = Quest(5556,qn,"custom")
CREATED     = State('Start', QUEST)
STARTING    = State('Starting', QUEST)
STARTED     = State('Started', QUEST)
COMPLETED   = State('Completed', QUEST)
QUEST.setInitialState(CREATED)

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

Amigo testa aí , é por que não tinha aquela config de nome e título.

"Tente ser uma pessoa de valor , não de sucesso" - Albert Einstein

 

 

Link to comment
Share on other sites

  • 2 weeks later...

assim que eu compro o char vira aio mais o "aio_end" que é o tempo do aio fica zerado ai perde o aio quase instantaneamente, acho que tem alguma coisa a ver com a estrutura da tabela, alguem entendido pode dar uma olhada?

 

 

minha tabela

 

-- ----------------------------
-- Table structure for characters
-- ----------------------------
DROP TABLE IF EXISTS `characters`;
CREATE TABLE `characters` (
`account_name` varchar(45) DEFAULT NULL,
`obj_Id` decimal(11,0) NOT NULL DEFAULT '0',
`char_name` varchar(35) NOT NULL,
`level` decimal(11,0) DEFAULT NULL,
`maxHp` decimal(11,0) DEFAULT '1',
`curHp` decimal(18,0) DEFAULT '1',
`maxCp` decimal(11,0) DEFAULT '1',
`curCp` decimal(18,0) DEFAULT '1',
`maxMp` decimal(11,0) DEFAULT '1',
`curMp` decimal(18,0) DEFAULT '1',
`acc` decimal(11,0) DEFAULT NULL,
`crit` decimal(10,0) DEFAULT NULL,
`evasion` decimal(11,0) DEFAULT NULL,
`mAtk` decimal(11,0) DEFAULT NULL,
`mDef` decimal(11,0) DEFAULT NULL,
`mSpd` decimal(11,0) DEFAULT NULL,
`pAtk` decimal(11,0) DEFAULT NULL,
`pDef` decimal(11,0) DEFAULT NULL,
`pSpd` decimal(11,0) DEFAULT NULL,
`runSpd` decimal(11,0) DEFAULT NULL,
`walkSpd` decimal(11,0) DEFAULT NULL,
`str` decimal(11,0) DEFAULT NULL,
`con` decimal(11,0) DEFAULT NULL,
`dex` decimal(11,0) DEFAULT NULL,
`_int` decimal(11,0) DEFAULT NULL,
`men` decimal(11,0) DEFAULT NULL,
`wit` decimal(11,0) DEFAULT NULL,
`face` decimal(11,0) DEFAULT NULL,
`hairStyle` decimal(11,0) DEFAULT NULL,
`hairColor` decimal(11,0) DEFAULT NULL,
`sex` decimal(11,0) DEFAULT NULL,
`heading` decimal(11,0) DEFAULT NULL,
`x` decimal(11,0) DEFAULT NULL,
`y` decimal(11,0) DEFAULT NULL,
`z` decimal(11,0) DEFAULT NULL,
`movement_multiplier` decimal(9,8) DEFAULT NULL,
`attack_speed_multiplier` decimal(10,9) DEFAULT NULL,
`colRad` decimal(10,3) DEFAULT NULL,
`colHeight` decimal(10,3) DEFAULT NULL,
`exp` decimal(20,0) DEFAULT NULL,
`expBeforeDeath` decimal(20,0) DEFAULT '0',
`sp` decimal(11,0) DEFAULT NULL,
`karma` decimal(11,0) DEFAULT NULL,
`pvpkills` decimal(11,0) DEFAULT NULL,
`pkkills` decimal(11,0) DEFAULT NULL,
`clanid` decimal(11,0) DEFAULT NULL,
`maxload` decimal(11,0) DEFAULT NULL,
`race` decimal(11,0) DEFAULT NULL,
`classid` decimal(11,0) DEFAULT NULL,
`base_class` int(2) NOT NULL DEFAULT '0',
`deletetime` decimal(20,0) DEFAULT NULL,
`cancraft` decimal(11,0) DEFAULT NULL,
`title` varchar(16) DEFAULT NULL,
`rec_have` int(3) NOT NULL DEFAULT '0',
`rec_left` int(3) NOT NULL DEFAULT '0',
`accesslevel` decimal(4,0) DEFAULT NULL,
`online` decimal(1,0) DEFAULT NULL,
`onlinetime` decimal(20,0) DEFAULT NULL,
`char_slot` decimal(1,0) DEFAULT NULL,
`newbie` decimal(1,0) DEFAULT '1',
`lastAccess` decimal(20,0) DEFAULT NULL,
`clan_privs` int(11) DEFAULT '0',
`wantspeace` decimal(1,0) DEFAULT '0',
`isin7sdungeon` decimal(1,0) NOT NULL DEFAULT '0',
`punish_level` tinyint(3) unsigned NOT NULL DEFAULT '0',
`punish_timer` int(10) unsigned NOT NULL DEFAULT '0',
`power_grade` decimal(11,0) DEFAULT NULL,
`nobless` decimal(1,0) NOT NULL DEFAULT '0',
`subpledge` int(1) NOT NULL DEFAULT '0',
`last_recom_date` decimal(20,0) NOT NULL DEFAULT '0',
`lvl_joined_academy` int(1) NOT NULL DEFAULT '0',
`apprentice` int(1) NOT NULL DEFAULT '0',
`sponsor` int(1) NOT NULL DEFAULT '0',
`varka_ketra_ally` int(1) NOT NULL DEFAULT '0',
`clan_join_expiry_time` decimal(20,0) NOT NULL DEFAULT '0',
`clan_create_expiry_time` decimal(20,0) NOT NULL DEFAULT '0',
`death_penalty_level` int(2) NOT NULL DEFAULT '0',
`pc_point` int(5) NOT NULL DEFAULT '0',
`name_color` varchar(8) NOT NULL DEFAULT '\0\0\0',
`title_color` varchar(8) NOT NULL DEFAULT '\0\0\0',
`first_log` int(11) DEFAULT '1',
`aio` decimal(1,0) NOT NULL DEFAULT '0',
`aio_end` decimal(20,0) NOT NULL DEFAULT '0',
`venda` decimal(1,0) NOT NULL DEFAULT '0',
`precochar` decimal(20,0) NOT NULL DEFAULT '0',
PRIMARY KEY (`obj_Id`),
KEY `clanid` (`clanid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

 

 

__init__.py

 

 

 

#Created By Cheed!!!

import sys
from com.l2jfrozen.gameserver.model.actor.instance import L2PcInstance
from com.l2jfrozen.gameserver.model.actor.instance import L2NpcInstance
from java.util import Iterator
from com.l2jfrozen.util.database import L2DatabaseFactory
from com.l2jfrozen.gameserver.model.quest import State
from com.l2jfrozen.gameserver.model.quest import QuestState
from com.l2jfrozen import Config
from com.l2jfrozen.gameserver.model.quest.jython import QuestJython as JQuest
from com.l2jfrozen.gameserver.datatables import SkillTable
from com.l2jfrozen.gameserver.network.serverpackets import SocialAction
from com.l2jfrozen.gameserver.model.quest.jython import QuestJython as JQuest

qn = "5555_AioSeller"

NPC=[555556]

#iD do item que sera a moeda.
Moeda= 57

#Quantidade de dias e item para a opcao 1.
DIAS_AIO1= 30
ItemCount1=30000000
#Quantidade de dias e item para a opcao 2.
DIAS_AIO2= 60
ItemCount2=60000000
#Quantidade de dias e item para a opcao 3.
DIAS_AIO3= 90
ItemCount3=90000000

QuestId = 5555
QuestName = "AioSeller"
QuestDesc = "custom"
InitialHtml = "1.htm"

print "INFO AioSeller==> ON"

class Quest (JQuest) :

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

def onAdvEvent (self,event,npc,player) :
htmltext = event
st = player.getQuestState(qn)
if not st: return

def doAio(player,days) :
st.getPlayer().setAio(True)
st.player.setEndTime("aio", days);
st.player.broadcastPacket(SocialAction(st.player.getObjectId(),16))
st.player.getAppearance().setNameColor(Config.AIO_NCOLOR)
st.player.getAppearance().setTitleColor(Config.AIO_TCOLOR)
st.player.rewardAioSkills()
st.player.sendSkillList()


if event == "1" :
if st.getPlayer().isAio():
return "no.htm"
else :
if st.getQuestItemsCount(Moeda) >= ItemCount1 :
st.takeItems(Moeda,ItemCount1)
doAio(st.player, DIAS_AIO1)
st.player.sendMessage("Parabens Voce Virou AioX!")
return "1.htm"
else:
st.player.sendMessage("Voce Nao Tem Itens Suficiente!")
return "1.htm"

elif event == "2" :
if st.getPlayer().isAio():
return "no.htm"
else :
if st.getQuestItemsCount(Moeda) >= ItemCount2 :
st.takeItems(Moeda,ItemCount2)
doAio(st.player, DIAS_AIO2);
st.player.sendMessage("Parabens Voce Virou AioX")
return "1.htm"
else:
st.player.sendMessage("Voce Nao Tem Itens Suficiente!")
return "1.htm"

elif event == "3" :
if st.getPlayer().isAio():
return "no.htm"
else :
if st.getQuestItemsCount(Moeda) >= ItemCount3 :
st.takeItems(Moeda,ItemCount3)
doAio(st.player, DIAS_AIO3);
st.player.sendMessage("Parabens Voce Virou AioX!")
return "1.htm"
else:
st.player.sendMessage("Voce Nao Tem Itens Suficiente!")
return "1.htm"

return htmltext

def onTalk (self,npc,player):
htmltext = "You can't buy while you are"
st = player.getQuestState(qn)
if not st : return htmltext
npcId = npc.getNpcId()
if st.player.getPvpFlag() > 0 :#Player Flag
htmltext = "You can't buy while you are flagged!
Wait some time and try again!"
st.exitQuest(1)
elif st.player.getKarma() > 0 :#Player com Karma
st.exitQuest(1)
htmltext = "You have too much karma!
Come back,
when you don't have any karma!"
elif st.player.isInCombat() :#Player modo de Combate
st.exitQuest(1)
htmltext = "You can't buy while you are attacking!
Stop your fight and try again!"
else:

return InitialHtml
return htmltext

QUEST = Quest(5555,qn,"custom")
CREATED = State('Start', QUEST)
STARTING = State('Starting', QUEST)
STARTED = State('Started', QUEST)
COMPLETED = State('Completed', QUEST)
QUEST.setInitialState(CREATED)

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

 

Edited by metz
Link to comment
Share on other sites

Não tem a ver com a tabela não, tem que ver se na sua rev o comando é esse aqui mesmo:

st.getPlayer().setAio(True)
st.player.setEndTime("aio", days);

Mas deve ser por que isso é mantido padrão.
Configurou os dias aqui ?


#Quantidade de dias e item para a opcao 1.
DIAS_AIO1= 30
ItemCount1=30000000
#Quantidade de dias e item para a opcao 2.
DIAS_AIO2= 60
ItemCount2=60000000
#Quantidade de dias e item para a opcao 3.
DIAS_AIO3= 90
ItemCount3=90000000
  • Like 1

"Tente ser uma pessoa de valor , não de sucesso" - Albert Einstein

 

 

Link to comment
Share on other sites

  • 3 weeks later...

nao sei quem mudo para a area mais as imagens ta tudo certa para mim vejo de boa

Atitudes Que Fazem A Diferença! 

Não vou dar suporte via mp e nem skype obrigado 

Eu não tenho mais arquivos antigos não tem como ajudar em questões antigas abrigado

Galera todos meus conteúdo estão no fórum..video do meu canal no youtube com revisão npc´s e etc.. estão aqui se não achar e pq não tem mais ...obrigado e espero que de tudo certo a vcs.....

 

Link to comment
Share on other sites

QdeD0ng.jpg

 

jZ97YAP.jpg

 

 

onm6XC9.png

1d4xObW.png

 

 

Atitudes Que Fazem A Diferença! 

Não vou dar suporte via mp e nem skype obrigado 

Eu não tenho mais arquivos antigos não tem como ajudar em questões antigas abrigado

Galera todos meus conteúdo estão no fórum..video do meu canal no youtube com revisão npc´s e etc.. estão aqui se não achar e pq não tem mais ...obrigado e espero que de tudo certo a vcs.....

 

Link to comment
Share on other sites

Foi testado por mim e outros dois membros da staff também e estava off para todos nós , bem estranho isso, mas como você postou o print você já contribuiu e não tem por que continuar na área de imagens off , obrigado Marcos.

  • Like 1

"Tente ser uma pessoa de valor , não de sucesso" - Albert Einstein

 

 

Link to comment
Share on other sites

  • 1 month later...

Não sei como resolver , eu troquei a moeda e coloquei só pra 30 dias , ai funciona direitinho mais os buffs não aparecem

 

L2jfrozen 1118

 

# -----------------------------------------
# Aio System -
# -----------------------------------------
# Enable / Disable Aion System
EnableAioSystem = True
# Enable / Disable Name Color
AllowAioNameColor = True
AioNameColor = 88AA88
# Enable / Disable Title Color
AllowAioTitleColor = True
AioTitleColor = 88AA88
# List of Aio Skills
# Format : skillid,skilllvl;skillid2,skilllvl2;....skillidn,skilllvln
AioSkills = 1323,10800;1068,10800;1085,10800;1204,10800;1035,10800;\
1243,10800;1240,10800;1048,10800;1036,10800;1389,10800;1259,10800;\
1397,10800;1059,10800;1040,10800;1078,10800;1077,10800;1062,10800;\
1242,10800;1045,10800;1086,10800;1388,10800;1087,10800;1304,10800;\
1303,10800;1268,10800;1257,10800;1073,10800;1044,10800;1010,10800;\
1033,10800;1032,10800;1352,10800;1392,10800;1393,10800;1354,10800;\
1191,10800;1182,10800;1353,10800;1189,10800;1043,10800;271,10800;\
273,10800;275,10800;277,10800;309,10800;311,10800;272,10800;274,10800;\
276,10800;307,10800;310,10800;365,10800;264,10800;266,10800;268,10800;\
270,10800;305,10800;308,10800;364,10800;265,10800;267,10800;269,10800;\
304,10800;306,10800;363,10800;349,10800;1363,10800;1413,10800;1356,10800;\
1357,10800;1355,10800;1416,10800;1414,10800;4699,10800;4700,10800;\
4702,10800;4703,10800;1007,10800;1009,10800;1252,10800;1310,10800;\
1251,10800;1391,10800;1284,10800;1006,10800;1002,10800;1253,10800;\
1309,10800;1308,10800;1390,10800;1362,10800;1003,10800;1005,10800;\
1008,10800;1260,10800;1004,10800;1250,10800;1261,10800;1249,10800;\
1282,10800;1364,10800;1365,10800;1415,10800;1416,10800;1414,10800
# Aio Buffers can use GK?
AllowAioUseGk = False
# Aio Buffers can speak to Class Master?
AllowAioUseClassMaster = False
# Allow AIO in events?
AllowAioInEvents = False

HdnyKRd.png

Edited by Revoltad0-
Link to comment
Share on other sites

Não sei como resolver , eu troquei a moeda e coloquei só pra 30 dias , ai funciona direitinho mais os buffs não aparecem

 

L2jfrozen 1118

 

# -----------------------------------------
# Aio System -
# -----------------------------------------
# Enable / Disable Aion System
EnableAioSystem = True
# Enable / Disable Name Color
AllowAioNameColor = True
AioNameColor = 88AA88
# Enable / Disable Title Color
AllowAioTitleColor = True
AioTitleColor = 88AA88
# List of Aio Skills
# Format : skillid,skilllvl;skillid2,skilllvl2;....skillidn,skilllvln
AioSkills = 1323,10800;1068,10800;1085,10800;1204,10800;1035,10800;\
1243,10800;1240,10800;1048,10800;1036,10800;1389,10800;1259,10800;\
1397,10800;1059,10800;1040,10800;1078,10800;1077,10800;1062,10800;\
1242,10800;1045,10800;1086,10800;1388,10800;1087,10800;1304,10800;\
1303,10800;1268,10800;1257,10800;1073,10800;1044,10800;1010,10800;\
1033,10800;1032,10800;1352,10800;1392,10800;1393,10800;1354,10800;\
1191,10800;1182,10800;1353,10800;1189,10800;1043,10800;271,10800;\
273,10800;275,10800;277,10800;309,10800;311,10800;272,10800;274,10800;\
276,10800;307,10800;310,10800;365,10800;264,10800;266,10800;268,10800;\
270,10800;305,10800;308,10800;364,10800;265,10800;267,10800;269,10800;\
304,10800;306,10800;363,10800;349,10800;1363,10800;1413,10800;1356,10800;\
1357,10800;1355,10800;1416,10800;1414,10800;4699,10800;4700,10800;\
4702,10800;4703,10800;1007,10800;1009,10800;1252,10800;1310,10800;\
1251,10800;1391,10800;1284,10800;1006,10800;1002,10800;1253,10800;\
1309,10800;1308,10800;1390,10800;1362,10800;1003,10800;1005,10800;\
1008,10800;1260,10800;1004,10800;1250,10800;1261,10800;1249,10800;\
1282,10800;1364,10800;1365,10800;1415,10800;1416,10800;1414,10800
# Aio Buffers can use GK?
AllowAioUseGk = False
# Aio Buffers can speak to Class Master?
AllowAioUseClassMaster = False
# Allow AIO in events?
AllowAioInEvents = False

HdnyKRd.png

 

Amigo sua lista de Buffs que não esta certa.

Use essa:

 

 

AioSkills = 1085,3;1304,3;1087,3;1354,1;1062,2;1005,3;1243,6;1045,6;1048,6;\

1311,6;168,3;213,8;1007,3;1309,3;1552,3;1006,3;1229,15;1308,3;1253,3;1284,3;\

1009,3;1310,4;1363,1;1362,1;1397,3;1292,6;1078,6;307,1;276,1;309,1;274,1;275,1;\

272,1;277,1;273,1;311,1;366,1;365,1;310,1;271,1;1242,3;1257,3;1353,3;1391,3;\

1352,1;229,7;228,3;1077,3;1218,33;1059,3;1219,33;1217,33;1388,3;1389,3;1240,3;\

1086,2;1032,3;1073,2;1036,2;1035,4;1068,3;1003,3;1282,2;1356,1;1355,1;1357,33;\

1044,3;1182,3;1191,3;1033,3;1189,3;1259,4;1306,6;234,23;1040,3;364,1;264,1;306,1;\

269,1;270,1;265,1;363,1;349,1;308,1;305,1;304,1;267,1;266,1;268,1;1390,3;1303,2;\

1204,2;1268,4;1413,1;4699,8;4700,8;4703,8

 

 

Link to comment
Share on other sites

 

sim , eu te passei o código completo para entender , então você não adicionou a linha do item para dar quando comprar o AIO que é essa linha postada logo abaixo

 st.giveItems(ITEM_ID,1)

O ID DE MINHA DUAL É 9967 AI NO CASO EU COLOCO st.giveItems(ITEM_9967,1) ?

CONSEGUIR OBRIGADO !

 

Amigo sua lista de Buffs que não esta certa.

Use essa:

 

 

AioSkills = 1085,3;1304,3;1087,3;1354,1;1062,2;1005,3;1243,6;1045,6;1048,6;\

1311,6;168,3;213,8;1007,3;1309,3;1552,3;1006,3;1229,15;1308,3;1253,3;1284,3;\

1009,3;1310,4;1363,1;1362,1;1397,3;1292,6;1078,6;307,1;276,1;309,1;274,1;275,1;\

272,1;277,1;273,1;311,1;366,1;365,1;310,1;271,1;1242,3;1257,3;1353,3;1391,3;\

1352,1;229,7;228,3;1077,3;1218,33;1059,3;1219,33;1217,33;1388,3;1389,3;1240,3;\

1086,2;1032,3;1073,2;1036,2;1035,4;1068,3;1003,3;1282,2;1356,1;1355,1;1357,33;\

1044,3;1182,3;1191,3;1033,3;1189,3;1259,4;1306,6;234,23;1040,3;364,1;264,1;306,1;\

269,1;270,1;265,1;363,1;349,1;308,1;305,1;304,1;267,1;266,1;268,1;1390,3;1303,2;\

1204,2;1268,4;1413,1;4699,8;4700,8;4703,8

 

 

Obrigado , tá faltando alguns buffs Acumem o nobles e se poder colocar os hots springs eu agradeço

Edited by Revoltad0-
Link to comment
Share on other sites

  • 3 weeks later...
    def doAio(player,days) :
     st.getPlayer().setAio(True)
     st.giveItems(ITEM_ID,1)
     st.player.setEndTime("aio", days);
     st.player.broadcastPacket(SocialAction(st.player.getObjectId(),16))	
     st.player.getAppearance().setNameColor(Config.AIO_NCOLOR)
     st.player.getAppearance().setTitleColor(Config.AIO_TCOLOR)
     st.player.rewardAioSkills()
     st.player.sendSkillList()

Amigo tente dessa forma no local de ITEM_ID coloque o ID do item que quer entregar ao player no caso o ID da sua Dual.

 

//EDIT Testa aí e me fala por que só uso minha rev aqui no pc e não tenho nenhuma outra.

 

Boa tarde amigo , tô com um erro aqui no aioseller eu troquei o itme e adicionei uma dual pra ganhar só que ai o npc aioseller não carrega a script

Link to comment
Share on other sites

Boa tarde amigo , tô com um erro aqui no aioseller eu troquei o itme e adicionei uma dual pra ganhar só que ai o npc aioseller não carrega a script

Manda print do erro que aparece. :aO

Edited by Cheed
Link to comment
Share on other sites

Olá pessoal o meu npc aio com esta linha "st.giveItems(ITEM_ID,1)" entrega o item para char que vira AIO, agora qual seria a linha para retirar o item quando o char deixar de ser AIO?

O Npc não retira o item que foi dado, para isso terá que fazer uma modificação no java ou colocar a dual como item temporário (não sei se item temporário funciona na frozen).

Link to comment
Share on other sites

  • 1 month later...



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Poh passa pra mim, eu não tenho interesse em nada sobre essas coisas, apenas estou rodando o forum que nem louco pra achar uma rev boa pra jogar só eu e minha esposa 😕 Dou minha palavra que não tenho vontade nenhuma de repassar ja que esse tipo de coisa anda rolando na comunidade 😕 Se puder eu agradeço,senao nao tem problema eu entendo completamente ^^ Meu Discord: xii_gaia_iix
    • Olá a todos gostaria de informa que demos um tempo no projeto mais já estamos voltando ativa com uma revisão estável e 100% limpa de mods. Não iremos disponibilizar a soucer do projeto devido a uns caras malandros aqui que já esta vendendo a revisão sem nem esta estável.
    • podes subir denuevo la data por favor 
    • UP!!! Vou Reupar em breve, tive que recriar o app... 
    • Sobre o rate limit. Antes de tudo, é importante entender o seguinte: o SphereAPI é um cluster — não é apenas um único servidor. Existe um servidor público por padrão, mas os outros IPs dos servidores da Sphere são ocultos por questões de segurança e são adicionados manualmente no painel de administração, especificando o IP e a PORTA. Dessa forma, evitamos ataques DDoS. O SphereAPI trabalha de forma paralela, mesmo que os servidores não estejam diretamente conectados entre si. Se alguém tentar fazer um ataque DDoS a um dos servidores da Sphere, isso não afetará os clientes do SphereWeb que estão em outros servidores. O próprio SphereAPI foi escrito na linguagem Golang para distribuir ao máximo a carga, utilizar concorrência e multiprocessamento. Atualmente, no servidor público, tenho dezenas e dezenas de sites conectados, e a cada segundo o Sphere executa requisições e gerencia conexões, enquanto o SphereAPI consome apenas 27MB de RAM. Eu considero isso um bom resultado do meu trabalho. Dos sites SphereWeb, só recebo requisições quando realmente necessário. Se algum site de servidor for alvo de um ataque DDoS, isso não afeta a Sphere de forma alguma.  
    • obg pelas, informações.  desculpe o excesso de perguntas. normalmente as pessoas nao fazem perguntas tao tecnicas, e acabam por desconherem o nivel grande do projeto que estao usando. gosto de fazer essas perguntas, para que fique registrado e as pessoas possam ver depois. sem precisar perguntar novamente : D vc fez algum tipo de ratelimit ?
    • SphereAPI (ela processa todas as conexões) faz consultas ao banco de dados somente quando necessário. Nós armazenamos todos os dados em cache, assim as consultas só são feitas quando o cache está desatualizado. Simplificando: se 100 pessoas acessarem sua página de estatísticas em 1 minuto, a consulta para obter os dados será feita apenas uma vez. E o resultado da consulta é armazenado tanto na memória da SphereAPI quanto da SphereWeb.
    • quais foram as tecnicas que vc usou para evitar excesso de consultas, tais como tops e afins que fazem JOIN nas tabelas, e podem causar lentidão ?
    • Se o servidor da Sphere não conseguir se conectar ou perder a conexão com o banco de dados do servidor de jogo, ou não conseguir executar uma consulta SQL, então o SphereWeb mostrará que o servidor está indisponível no painel de lista de servidores da administração. Na área administrativa será exibida a mensagem de erro, indicando a causa do problema. E se for um erro de consulta SQL, a consulta será pausada para evitar novas tentativas com erro no banco de dados do servidor. A Sphere aguardará até que o problema seja resolvido – ou seja, até que o erro seja corrigido. Depois disso, será possível limpar a lista de erros, e a Sphere tentará se conectar novamente.   Vale destacar que, para otimização, a API da Sphere mantém uma conexão permanente com o banco de dados do servidor de jogo enquanto o site estiver sendo acessado. Se ninguém acessar seu site por mais de 15 minutos, a Sphere se desconectará do banco de dados do jogo e só se reconectará quando alguém acessar novamente.   Provavelmente não expliquei tudo de forma clara, pois há muitos detalhes que não mencionei.
×
×
  • Create New...

Important Information

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.