Page 1 of 1

Strange Bug for add quest on questpropriety

Posted: Fri Nov 12, 2010 2:18 pm
by wonderweiss
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Last:
L2JDP Revision Last:

So just incomprehensible
i need to add 1quest on quest propriety so when i add in config.java
quest was 692_Howtoopposeevil
So i go on quest script and add

Code: Select all

def onKill(self,npc,player,isPet):        partyMember = self.getRandomPartyMember(player,"3")        if not partyMember: return        st = partyMember.getQuestState(qn)        if st :            chance = DROP_CHANCE * Config.RATE_QUEST_DROP            numItems, chance = divmod(chance,1000)            if st.getRandom(1000) < chance :                numItems += 1            if numItems :                if npc.getNpcId() in DESTRUCTION_MOBS :                    st.giveItems(FLEET_STEED_TROUPS_CHARM,3)                else :                    st.giveItems(NUCLEUS_OF_A_FREED_SOUL,3)                st.playSound("ItemSound.quest_itemget")        return
After i go to quest.propriety and add

Code: Select all

# 692_How to Oppose Evil# Quest item drop rate# 1000 = 100%DROP_RATE_692 = 500
After i go to config.java and now i have a strange prob
When i copy past

Code: Select all

QUESTS_645 = getInt(properties, override, "DROP_RATE_645", 1);
and change to

Code: Select all

QUESTS_645 = getInt(properties, override, "DROP_RATE_692", 1);
I can Compiled
and when i change to

Code: Select all

QUESTS_692 = getInt(properties, override, "DROP_RATE_692", 1);
i get this error

Code: Select all

:3418: cannot find symbol    [javac] symbol  : variable QUESTS_692    [javac] location: class com.l2jserver.Config    [javac]QUESTS_692 = getInt(properties, override, "DROP_RATE_692", 1);    [javac]             ^    [javac] 1 error 
:cry:

anyone have idea :?:

Re: Strange Bug for add quest on questpropriety

Posted: Fri Nov 12, 2010 2:26 pm
by _DS_
Variable QUESTS_692 not found.

Re: Strange Bug for add quest on questpropriety

Posted: Fri Nov 12, 2010 2:36 pm
by wonderweiss
_DS_ wrote:Variable QUESTS_692 not found.
and how to do for add him :P i start on java
or i can use

Code: Select all

QUESTS_645 = getInt(properties, override, "DROP_RATE_692", 1);
and he gonna work for quest 692 :?:

Re: Strange Bug for add quest on questpropriety

Posted: Fri Nov 12, 2010 2:53 pm
by _DS_
public int QUESTS_692;

Also, this is a custom code (l2j does not contain such variables) so we can't give support.