Strange Bug for add quest on questpropriety

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
wonderweiss
Posts: 16
Joined: Mon Aug 02, 2010 9:23 pm

Strange Bug for add quest on questpropriety

Post 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 :?:
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Strange Bug for add quest on questpropriety

Post by _DS_ »

Variable QUESTS_692 not found.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
wonderweiss
Posts: 16
Joined: Mon Aug 02, 2010 9:23 pm

Re: Strange Bug for add quest on questpropriety

Post 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 :?:
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Strange Bug for add quest on questpropriety

Post by _DS_ »

public int QUESTS_692;

Also, this is a custom code (l2j does not contain such variables) so we can't give support.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
Post Reply