Jump to content

Stev0

Members
  • Posts

    211
  • Credits

  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Everything posted by Stev0

  1. Fixed !! thanks! dude xD
  2. you are right my bad sorry xD i will try it right now
  3. you sayd the same code 3 times if st.getPlayer().getLevel() >= 70 and count > 1: should i delete it or something ? sorry about it im stil la newbie xD
  4. Hello guys i have a problem with my nobless trader, so the npc trades nobless status for 2 gold bars.. i want to make it to trade nobless status for a caradine's letter so here is the clean __init__.py 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.gameserver.model.quest.jython import QuestJython as JQuest qn = "6666_NoblessTrader" NPC=[66666] NOBLESS_TIARA=7694 GOLD_BAR=3470 QuestId = 6666 QuestName = "NoblessTrade" QuestDesc = "custom" InitialHtml = "31739-1.htm" print "Nobless Trader (66666) 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>" cond = st.getInt("cond") count=st.getQuestItemsCount(GOLD_BAR) if event == "31739-3.htm" : if cond == 0 and st.getPlayer().isSubClassActive() : if st.getPlayer().getLevel() >= 70 and count > 1: htmltext=event st.set("cond","0") st.getPlayer().setNoble(True) st.giveItems(NOBLESS_TIARA,1) st.playSound("ItemSound.quest_finish") st.setState(COMPLETED) st.takeItems(GOLD_BAR,2) else : htmltext="31739-2.htm" st.exitQuest(1) else : htmltext="31739-2.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 : st.set("cond","0") htmltext="31739-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(6666,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) so i changed the GOLD_BAR=3470 and the other 2 lines which say GOLD_BAR heres the edited __init__.py 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.gameserver.model.quest.jython import QuestJython as JQuest qn = "6666_NoblessTrader" NPC=[66666] NOBLESS_TIARA=7694 CARADINE'S_LETTER=7679 QuestId = 6666 QuestName = "NoblessTrade" QuestDesc = "custom" InitialHtml = "31739-1.htm" print "Nobless Trader (66666) 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>" cond = st.getInt("cond") count=st.getQuestItemsCount(CARADINE'S_LETTER) if event == "31739-3.htm" : if cond == 0 and st.getPlayer().isSubClassActive() : if st.getPlayer().getLevel() >= 70 and count > 1: htmltext=event st.set("cond","0") st.getPlayer().setNoble(True) st.giveItems(NOBLESS_TIARA,1) st.playSound("ItemSound.quest_finish") st.setState(COMPLETED) st.takeItems(CARADINE'S_LETTER,1) else : htmltext="31739-2.htm" st.exitQuest(1) else : htmltext="31739-2.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 : st.set("cond","0") htmltext="31739-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(6666,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) what did i did wrong can some1 explain it to me? Thanks!!!
  5. oriste merika orea megala RB Cherub Galaxia (ID 25450) Siren (ID 29065) Anakim's Nemesis Zakaron (ID 25281) ta parakato dn ine kai poli megala: Ketra's Hero Hekaton (ID 25299) Ketra's Chief Brakki (ID 25305) Roaring Skylancer (ID 25163) elpizo na sou arese kapio xD
  6. to problima ine sto eclipse As kani kapios lock !! thanks pedia gia to help!
  7. to ekana oriste pic pali to idio error m kani :S sorry p kano poles erotisis :/
  8. piga na kano edit to npcname-e kai otan to kanw save m vgazi afto to error ti na kanw ? episis to npcgrp.bat kai to npcname-e.bat dn boro na ta vro :S dn boro na vro kanena programa me to opio na boro na kano edit to npcname-e.dat :/ mipos kseri kanenas kapio programa gia afti ti doulia?? to file edit me to p paw na kano save m vgazi to parapano error
  9. ID NAME TITLE 0 FF FF -1 afto file p na to ri8miso? boris na mou eksigisis ligo pio analitika epidi ime newbie?
  10. To ekana pali to idio mipos prepi na pirakso tpt sto system i kati tetio ? :S
  11. Gia sas pedia! eftiaksa ena apc me name Dagger (an kai ine archer) oriste mia pic to problima mou ine pos boro na ftiakso na dixni to name tou apc otan me varai? apo oti vlepete lei None hit you for 1 damage -.-" pos to alazo na lei kanonika to name tou apc??? dn vrisko tpt sto database :S
  12. se enan server ixa di tous daggerades na skane pola dmg ala ta skill na exoun argo reuse gt dn kanis afto kai esu ? nmz alazis to val="10000"/> se ms prepi na ine <set name="reuseDelay" val="10000"/> (sorry an ipa malakia apla prospa8o na helparo me ta liga p gnorizo)
  13. nai to agorasa apo ena atomo apo to maxcheaters
  14. dn 8a ton kano report. to poso itan megaloutsiko (efoson dn exo doulia) ala ftew kai ego p ton ebisteutika...
  15. dn ksero an to exi ala to pack ine tou l2 Xerus
  16. apo ena pedi sto maxcheaters ala dn 8elo na po to name tou. (kai as m poulise pack xoris source) :/
  17. ti na po re file to kako egine dn boro na kano kati na to alakso -.-" tora i moni lisi ine na vro ena kalo pack :/ me diskolevi poli to balance re file dn katalaveno tpt kai dn exo kai poli xrono na asxoloume.
  18. ton rotisa gia to source m ipe pos dn to exi kai pso dn to xriazome gt ime newbie akoma kai dn ksero apo afta kia pso etc kai alios dn iparxi kati to opio 8eli alagma meso source
  19. distixos nai
  20. file 8elo na anikso server kai to sigekrimeno pack ine arketa kalo ala dn boro na exo to name enos alou server :S dn boro na vro alo pack p na ine balanced me kalo geodata kai orea features :S
  21. tecpa file euxaisto gia tin prospa8ia!
  22. s estila pm
  23. poo re file -.-" opote dn boro na kano tipota gia afto to 8ema... d boro na ftikso ego ena config i kati tetio ?
  24. dn exo source re file dn ginete na to kano kapos alios na zviso to .online i kati tetio ??
  25. gia sas pedia kai pali xD exo ena pack l2j esios interlude kai 8elo na ftiakso kati sto minima p vgazi otan pataw . online p.x dite stin pic players online:6 " ===== l2***>====== " afto boro na to zviso? i na to alakso ? psaxno 1 ora kai dn vrisko tpt. epita ipa na zviso to command .online ala oute afto vrisko m ine ligo periploko bori kapios na m eksigisi? exo psaksi config kai systemmsg-e.dat a dn exo eclipse m ine priploko kai dn to xrisimopio an bori kapios na me help 8a to ektimousa Thanks!
×
×
  • 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