Skip to content
Snippets Groups Projects
Commit 8a0bdce9 authored by Zoey76's avatar Zoey76
Browse files

Preventing NPE in quest Pursuit of Clan Ambition! (503)

Reported by: epu
Patch by: @Sdw-
parent 6c0b62af
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,7 @@ DROPLIST = {
}
def suscribe_members(st) :
clan=st.getPlayer().getClan().getId()
clan=st.getPlayer().getClanId()
con=L2DatabaseFactory.getInstance().getConnection()
offline=con.prepareStatement("SELECT charId FROM characters WHERE clanid=? AND online=0")
offline.setInt(1, clan)
......@@ -81,7 +81,7 @@ def suscribe_members(st) :
pass
def offlineMemberExit(st) :
clan=st.getPlayer().getClan().getClanId()
clan=st.getPlayer().getClanId()
con=L2DatabaseFactory.getInstance().getConnection()
offline=con.prepareStatement("DELETE FROM character_quests WHERE name = ? and charId IN (SELECT charId FROM characters WHERE clanId =? AND online=0")
offline.setString(1, qn)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment