Jump to content

properbow

Members
  • Posts

    8
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

About properbow

Profile Information

  • Gender
    Not Telling

properbow's Achievements

Newbie

Newbie (1/16)

0

Reputation

  1. must be good to know everything
  2. hi would would i have to change in java.properties to make it work in l2jhellas interlude thx
  3. hi im trying to add clan rep npc into a server i download one think was origanal from frozen,and im trying to put it in a different pack l2jhellas,but cant get it to work ,just wondered what i have to change thx im a newbie trying to learn so any help would be nice thx inadvance. import sys from com.l2jhellas.gameserver.model.actor.instance import L2PcInstance from com.l2jhellas.gameserver.model.actor.instance import L2NpcInstance from java.util import Iterator from com.l2jhellas.util.database import L2DatabaseFactory from com.l2jhellas.gameserver.model.quest import State from com.l2jhellas.gameserver.model.quest import QuestState from com.l2jhellas.gameserver.model.quest.jython import QuestJython as JQuest qn = "6667_ClanManager" NPC=[66667] REQUESTED_ITEM=3470 REQUESTED_AMOUNT=2 NEW_REP_SCORE=3000000 QuestId = 6667 QuestName = "ClanManager" QuestDesc = "custom" InitialHtml = "66667-1.htm" print "Clan Manager (66667) Enabled..." class Quest (JQuest) : def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr) def onEvent(self,event,st): htmltext = "<html><head><body>I have nothing to say you</body></html>" count=st.getQuestItemsCount(REQUESTED_ITEM) if event == "66667-clanOk.htm" : if st.getPlayer().isClanLeader() and st.getPlayer().getClan().getLevel()<8: if st.getPlayer().isNoble() and count >= REQUESTED_AMOUNT: htmltext=event st.getPlayer().getClan().changeLevel(8) st.playSound("ItemSound.quest_finish") st.takeItems(REQUESTED_ITEM,REQUESTED_AMOUNT) else : htmltext="66667-no_clan.htm" st.exitQuest(1) else : htmltext="66667-no_clan.htm" st.exitQuest(1) elif event == "66667-repOk.htm" : if st.getPlayer().isClanLeader() and st.getPlayer().getClan().getLevel() >= 5 and st.getPlayer().getClan().getReputationScore() < NEW_REP_SCORE : if st.getPlayer().isNoble() and count > REQUESTED_AMOUNT: htmltext=event st.getPlayer().getClan().setReputationScore(NEW_REP_SCORE, 1); st.playSound("ItemSound.quest_finish") st.takeItems(REQUESTED_ITEM,REQUESTED_AMOUNT) else : htmltext="66667-no_points.htm" st.exitQuest(1) else : htmltext="66667-no_points.htm" st.exitQuest(1) return htmltext def onTalk (self,npc,player): htmltext = "<html><head><body>I have nothing to say you</body></html>" st = player.getQuestState(qn) if not st : return htmltext npcId = npc.getNpcId() id = st.getState() if id == CREATED : htmltext="66667-1.htm" elif id == COMPLETED : htmltext = "<html><head><body>This quest have already been completed.</body></html>" else : st.exitQuest(1) return htmltext QUEST = Quest(6667,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)
  4. hi im nickname properbow from sheffield england. just started messing about with a few interlude packs and learning how to get a test server up :) so pretty newbie.
  5. thx got it working now :)
  6. thx got it working now :)
  7. looks good but i'm bit of a newbie how do i install it :)
  8. looks good but i'm bit of a newbie how do i install it :)
  9. yes im having same trouble as above post by Lacrafarai showing no errors in console,just announces that its starting in 15 mins etc then freezes client have to crit out. server 4515 dp 7821
×
×
  • Create New...