Jump to content

l2fire

Members
  • Posts

    87
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

1 Follower

About l2fire

Profile Information

  • Gender
    Male
  • Country
    Lithuania

Recent Profile Visitors

1,027 profile views

l2fire's Achievements

  1. I know this. I must to add something in java but idk what code... l2jfrozen. characters.sql have name_color
  2. Hello guys. I downloaded from this site color manager npc and added to the server. After characters restart don't stay name color. Just title color work perfect. E.x. : You buy color: 00000, and when you do relogin after relogin your color: FF0000(white). import sys from com.l2jfrozen.gameserver.datatables.sql import CharNameTable from com.l2jfrozen.gameserver.model import L2World from com.l2jfrozen.gameserver.model.quest import State from com.l2jfrozen.gameserver.model.quest import QuestState from com.l2jfrozen.gameserver.model.quest.jython import QuestJython as JQuest from com.l2jfrozen.gameserver.util import Util; from java.util.regex import Pattern; NPC = 45555 ITEM_ID = 20003 NAME_COUNT = 200 COLOR_COUNT = 200 class Quest (JQuest) : def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr) def onEvent(self,event,st) : if event == "1": return "1.htm" if event == "2": return "2.htm" if event == "3": return "3.htm" if event == "200": if st.getQuestItemsCount(ITEM_ID) >= COLOR_COUNT: st.takeItems(ITEM_ID,COLOR_COUNT) st.getPlayer().getAppearance().setNameColor(0x000000) st.getPlayer().broadcastUserInfo(); return "4.htm" else: return u"<html><head><body><center>Check if you have all items you need!</center></body></html>" if event == "201": if st.getQuestItemsCount(ITEM_ID) >= COLOR_COUNT: st.takeItems(ITEM_ID,COLOR_COUNT) st.getPlayer().getAppearance().setNameColor(0x000090) st.getPlayer().broadcastUserInfo(); return "4.htm" else: return u"<html><head><body><center>Check if you have all items you need! </center></body></html>" if event == "202": if st.getQuestItemsCount(ITEM_ID) >= COLOR_COUNT: st.takeItems(ITEM_ID,COLOR_COUNT) st.getPlayer().getAppearance().setNameColor(0x0000ff) st.getPlayer().broadcastUserInfo(); return "4.htm" else: return u"<html><head><body><center>Check if you have all items you need!</center></body></html>" if event == "203": if st.getQuestItemsCount(ITEM_ID) >= COLOR_COUNT: st.takeItems(ITEM_ID,COLOR_COUNT) st.getPlayer().getAppearance().setNameColor(0x009000) st.getPlayer().broadcastUserInfo(); return "4.htm" else: return u"<html><head><body><center>Check if you have all items you need!</center></body></html>" if event == "204": if st.getQuestItemsCount(ITEM_ID) >= COLOR_COUNT: st.takeItems(ITEM_ID,COLOR_COUNT) st.getPlayer().getAppearance().setNameColor(0x00ff00) st.getPlayer().broadcastUserInfo(); return "4.htm" else: return u"<html><head><body><center>Check if you have all items you need!</center></body></html>" if event == "205": if st.getQuestItemsCount(ITEM_ID) >= COLOR_COUNT: st.takeItems(ITEM_ID,COLOR_COUNT) st.getPlayer().getAppearance().setNameColor(0x900000) st.getPlayer().broadcastUserInfo(); return "4.htm" else: return u"<html><head><body><center>Check if you have all items you need!</center></body></html>" if event == "206": if st.getQuestItemsCount(ITEM_ID) >= COLOR_COUNT: st.takeItems(ITEM_ID,COLOR_COUNT) st.getPlayer().getAppearance().setNameColor(0xff0000) st.getPlayer().broadcastUserInfo(); return "4.htm" else: return u"<html><head><body><center>Check if you have all items you need!</center></body></html>" if event == "207": if st.getQuestItemsCount(ITEM_ID) >= COLOR_COUNT: st.takeItems(ITEM_ID,COLOR_COUNT) st.getPlayer().getAppearance().setNameColor(0x009090) st.getPlayer().broadcastUserInfo(); return "4.htm" else: return u"<html><head><body><center>Check if you have all items you need!</center></body></html>" if event == "208": if st.getQuestItemsCount(ITEM_ID) >= COLOR_COUNT: st.takeItems(ITEM_ID,COLOR_COUNT) st.getPlayer().getAppearance().setNameColor(0x0090ff) st.getPlayer().broadcastUserInfo(); return "4.htm" else: return u"<html><head><body><center>Check if you have all items you need!</center></body></html>" if event == "209": if st.getQuestItemsCount(ITEM_ID) >= COLOR_COUNT: st.takeItems(ITEM_ID,COLOR_COUNT) st.getPlayer().getAppearance().setNameColor(0x00ffff) st.getPlayer().broadcastUserInfo(); return "4.htm" else: return u"<html><head><body><center>Check if you have all items you need\u0435\u0442\u0430!</center></body></html>" if event == "210": if st.getQuestItemsCount(ITEM_ID) >= COLOR_COUNT: st.takeItems(ITEM_ID,COLOR_COUNT) st.getPlayer().getAppearance().setNameColor(0x900090) st.getPlayer().broadcastUserInfo(); return "4.htm" else: return u"<html><head><body><center>Check if you have all items you need\u0435\u0442\u0430!</center></body></html>" if event == "211": if st.getQuestItemsCount(ITEM_ID) >= COLOR_COUNT: st.takeItems(ITEM_ID,COLOR_COUNT) st.getPlayer().getAppearance().setNameColor(0x9000ff) st.getPlayer().broadcastUserInfo(); return "4.htm" else: return u"<html><head><body><center>Check if you have all items you need\u0435\u0442\u0430!</center></body></html>" if event == "212": if st.getQuestItemsCount(ITEM_ID) >= COLOR_COUNT: st.takeItems(ITEM_ID,COLOR_COUNT) st.getPlayer().getAppearance().setNameColor(0xff00ff) st.getPlayer().broadcastUserInfo(); return "4.htm" else: return u"<html><head><body><center>Check if you have all items you need\u0435\u0442\u0430!</center></body></html>" if event == "213": if st.getQuestItemsCount(ITEM_ID) >= COLOR_COUNT: st.takeItems(ITEM_ID,COLOR_COUNT) st.getPlayer().getAppearance().setNameColor(0x909000) st.getPlayer().broadcastUserInfo(); return "4.htm" else: return u"<html><head><body><center>Check if you have all items you need\u0435\u0442\u0430!</center></body></html>" if event == "214": if st.getQuestItemsCount(ITEM_ID) >= COLOR_COUNT: st.takeItems(ITEM_ID,COLOR_COUNT) st.getPlayer().getAppearance().setNameColor(0xffff00) st.getPlayer().broadcastUserInfo(); return "4.htm" else: return u"<html><head><body><center>Check if you have all items you need\u0435\u0442\u0430!</center></body></html>" if event == "215": if st.getQuestItemsCount(ITEM_ID) >= COLOR_COUNT: st.takeItems(ITEM_ID,COLOR_COUNT) st.getPlayer().getAppearance().setNameColor(0xffffff) st.getPlayer().broadcastUserInfo(); return "4.htm" else: return u"<html><head><body><center>Check if you have all items you need\u0435\u0442\u0430!</center></body></html>" if event == "300": if st.getQuestItemsCount(ITEM_ID) >= COLOR_COUNT: st.takeItems(ITEM_ID,COLOR_COUNT) st.getPlayer().getAppearance().setTitleColor(0x000000) st.getPlayer().broadcastUserInfo(); return "4.htm" else: return u"<html><head><body><center>Check if you have all items you need\u0435\u0442\u0430!</center></body></html>" if event == "301": if st.getQuestItemsCount(ITEM_ID) >= COLOR_COUNT: st.takeItems(ITEM_ID,COLOR_COUNT) st.getPlayer().getAppearance().setTitleColor(0x000090) st.getPlayer().broadcastUserInfo(); return "4.htm" else: return u"<html><head><body><center>Check if you have all items you need\u0435\u0442\u0430!</center></body></html>" if event == "302": if st.getQuestItemsCount(ITEM_ID) >= COLOR_COUNT: st.takeItems(ITEM_ID,COLOR_COUNT) st.getPlayer().getAppearance().setTitleColor(0x0000ff) st.getPlayer().broadcastUserInfo(); return "4.htm" else: return u"<html><head><body><center>Check if you have all items you need\u0435\u0442\u0430!</center></body></html>" if event == "303": if st.getQuestItemsCount(ITEM_ID) >= COLOR_COUNT: st.takeItems(ITEM_ID,COLOR_COUNT) st.getPlayer().getAppearance().setTitleColor(0x009000) st.getPlayer().broadcastUserInfo(); return "4.htm" else: return u"<html><head><body><center>Check if you have all items you need\u0435\u0442\u0430!</center></body></html>" if event == "304": if st.getQuestItemsCount(ITEM_ID) >= COLOR_COUNT: st.takeItems(ITEM_ID,COLOR_COUNT) st.getPlayer().getAppearance().setTitleColor(0x00ff00) st.getPlayer().broadcastUserInfo(); return "4.htm" else: return u"<html><head><body><center>Check if you have all items you need\u0435\u0442\u0430!</center></body></html>" if event == "305": if st.getQuestItemsCount(ITEM_ID) >= COLOR_COUNT: st.takeItems(ITEM_ID,COLOR_COUNT) st.getPlayer().getAppearance().setTitleColor(0x900000) st.getPlayer().broadcastUserInfo(); return "4.htm" else: return u"<html><head><body><center>Check if you have all items you need\u0435\u0442\u0430!</center></body></html>" if event == "306": if st.getQuestItemsCount(ITEM_ID) >= COLOR_COUNT: st.takeItems(ITEM_ID,COLOR_COUNT) st.getPlayer().getAppearance().setTitleColor(0xff0000) st.getPlayer().broadcastUserInfo(); return "4.htm" else: return u"<html><head><body><center>Check if you have all items you need\u0435\u0442\u0430!</center></body></html>" if event == "307": if st.getQuestItemsCount(ITEM_ID) >= COLOR_COUNT: st.takeItems(ITEM_ID,COLOR_COUNT) st.getPlayer().getAppearance().setTitleColor(0x009090) st.getPlayer().broadcastUserInfo(); return "4.htm" else: return u"<html><head><body><center>Check if you have all items you need\u0435\u0442\u0430!</center></body></html>" if event == "308": if st.getQuestItemsCount(ITEM_ID) >= COLOR_COUNT: st.takeItems(ITEM_ID,COLOR_COUNT) st.getPlayer().getAppearance().setTitleColor(0x0090ff) st.getPlayer().broadcastUserInfo(); return "4.htm" else: return u"<html><head><body><center>Check if you have all items you need\u0435\u0442\u0430!</center></body></html>" if event == "309": if st.getQuestItemsCount(ITEM_ID) >= COLOR_COUNT: st.takeItems(ITEM_ID,COLOR_COUNT) st.getPlayer().getAppearance().setTitleColor(0x00ffff) st.getPlayer().broadcastUserInfo(); return "4.htm" else: return u"<html><head><body><center>Check if you have all items you need\u0435\u0442\u0430!</center></body></html>" if event == "310": if st.getQuestItemsCount(ITEM_ID) >= COLOR_COUNT: st.takeItems(ITEM_ID,COLOR_COUNT) st.getPlayer().getAppearance().setTitleColor(0x900090) st.getPlayer().broadcastUserInfo(); return "4.htm" else: return u"<html><head><body><center>Check if you have all items you need\u0435\u0442\u0430!</center></body></html>" if event == "311": if st.getQuestItemsCount(ITEM_ID) >= COLOR_COUNT: st.takeItems(ITEM_ID,COLOR_COUNT) st.getPlayer().getAppearance().setTitleColor(0x9000ff) st.getPlayer().broadcastUserInfo(); return "4.htm" else: return u"<html><head><body><center>Check if you have all items you need\u0435\u0442\u0430!</center></body></html>" if event == "312": if st.getQuestItemsCount(ITEM_ID) >= COLOR_COUNT: st.takeItems(ITEM_ID,COLOR_COUNT) st.getPlayer().getAppearance().setTitleColor(0xff00ff) st.getPlayer().broadcastUserInfo(); return "4.htm" else: return u"<html><head><body><center>Check if you have all items you need\u0435\u0442\u0430!</center></body></html>" if event == "313": if st.getQuestItemsCount(ITEM_ID) >= COLOR_COUNT: st.takeItems(ITEM_ID,COLOR_COUNT) st.getPlayer().getAppearance().setTitleColor(0x909000) st.getPlayer().broadcastUserInfo(); return "4.htm" else: return u"<html><head><body><center>Check if you have all items you need\u0435\u0442\u0430!</center></body></html>" if event == "314": if st.getQuestItemsCount(ITEM_ID) >= COLOR_COUNT: st.takeItems(ITEM_ID,COLOR_COUNT) st.getPlayer().getAppearance().setTitleColor(0xffff00) st.getPlayer().broadcastUserInfo(); return "4.htm" else: return u"<html><head><body><center>Check if you have all items you need\u0435\u0442\u0430!</center></body></html>" if event == "315": if st.getQuestItemsCount(ITEM_ID) >= COLOR_COUNT: st.takeItems(ITEM_ID,COLOR_COUNT) st.getPlayer().getAppearance().setTitleColor(0xffffff) st.getPlayer().broadcastUserInfo(); return "4.htm" else: return u"<html><head><body><center>Check if you have all items you need\u0435\u0442\u0430!</center></body></html>" if not CharNameTable.getInstance().doesCharNameExist(event): if len(event) >= 3 and len(event) <= 16 and Pattern.matches("[A-Za-z0-9\`\~\!\@\#\$\%\^\*\(\)\_\-\=\[\]\'\.\,\:\;]*", event): if st.getPlayer().isClanLeader(): return u"<html><head><body><center>You are clan leader. Can't change the name!</center></body></html>" if st.getPlayer().getClan(): return u"<html><head><body><center>You are clan member, can't change the name!</center></body></html>" if st.getQuestItemsCount(ITEM_ID) >= NAME_COUNT: st.takeItems(ITEM_ID,NAME_COUNT) L2World.getInstance().removeFromAllPlayers(st.getPlayer()); st.getPlayer().setName(event); st.getPlayer().store(); L2World.getInstance().addToAllPlayers(st.getPlayer()); st.getPlayer().broadcastUserInfo(); return "4.htm" else: return u"<html><head><body><center>You don't have the necesary items!</center></body></html>" else: return u"<html><head><body><center>Try again!</center></body></html>" else: return u"<html><head><body><center>Try again!</center></body></html>" return u"<html><head><body><center>Check if you have all items you need!</center></body></html>" def onTalk (self,npc,player): return "0.htm" QUEST = Quest(8833, "8833_Name", "custom") CREATED = State('Start',QUEST) QUEST.setInitialState(CREATED) QUEST.addStartNpc(NPC) QUEST.addTalkId(NPC)
  3. public int calculateTimeBetweenAttacks(final L2Character target, final L2Weapon weapon) { double atkSpd = 0; if (weapon != null) { switch (weapon.getItemType()) { case BOW: atkSpd = getStat().getPAtkSpd(); return (int) (1500 * 345 / atkSpd); case DAGGER: atkSpd = getStat().getPAtkSpd(); // atkSpd /= 1.15; break; default: atkSpd = getStat().getPAtkSpd(); } } else { atkSpd = getPAtkSpd(); } return Formulas.getInstance().calcPAtkSpd(this, target, atkSpd); } Maybe in here problem? L2Character.java
  4. Can you help in private?
  5. P.S. Video not my, but bug working same.
  6. i want highest atk.spd than 1500 in server
  7. newest version of 1132
  8. Anyone can fix this bug in l2jfrozen, i can pay for this. :)
  9. Yes, i fixed it. LOCK TOPIC.
  10. Hello, maybe someone have a code show npc crest for l2jfrozen newest rev (1132)? and can share with me
  11. u can write in my skype where i'm online everytime. : dualclass
  12. We can make backup, and then do something.
  13. small npc doesn't go. Just biggest, and jus where is grass
  14. And how i can create a patch of my changes?
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock