'CalcXP' Has errors

Results 1 to 3 of 3
  1. #1
    Elite Member iNViSiGOD is offline
    Member +Rank
    Apr 2006 Join Date
    129Posts

    'CalcXP' Has errors

    Love the repack, the funcionality is superb in Kobold, the question I have however is why am I getting this error when at Level 4 I kill a monster level 3, In which I get no exp for it and the message in the WS window says:

    Code:
    03 19:19:17 E Python: 'CalcXP' has errors, skipping execution...
    03 19:19:17 E Python: Traceback (most recent call last):
                E Python:
    03 19:19:17 E Python:   File "scripts\functions.py", line 77, in CalcXP
                E Python:
    03 19:19:17 E Python:
    03 19:19:17 E Python: if PLAYERLEVEL-MOBLEVEL < g: XP = (PLAYERLEVEL * 5 + 45) *
                E Python:  (1 - float(PLAYERLEVEL-MOBLEVEL)/z)
                E Python:
    03 19:19:17 E Python: UnboundLocalError
    03 19:19:17 E Python: :
    03 19:19:17 E Python: local variable 'g' referenced before assignment
    03 19:19:17 S Python: OnUnitDeath: unit[Small Crag Boar]
    03 19:23:48 V db: saving guid[2] name[Rally] >> DB
    03 19:24:41 V CHAT_MSG_AFK
    Also I've noticed that once your one level above the mob's your fighting that's when the error occures and you gain no experience for the kill.
    Last edited by iNViSiGOD; 04-11-06 at 01:40 AM.


  2. #2
    Member kam338uk is offline
    MemberRank
    Jun 2006 Join Date
    38Posts
    [Removed]
    Last edited by kam338uk; 1 Week Ago at 11:29 PM.

  3. #3
    Member kam338uk is offline
    MemberRank
    Jun 2006 Join Date
    38Posts
    [Removed]
    Last edited by kam338uk; 1 Week Ago at 11:29 PM.



Advertisement