I have been trying to add in a extra chance of random loot and my last thing I tried ended up in disaster. But now the back up files are loaded I ran across this thread and it was a bit more tailored for what I was interested in.
The first part I got done, made a plugin GetRandomLoot but I am having problems with the Python script. I have Python 2.7 and been getting invalid syntax.
python additem.py
SKIPPING: .keep [not a directory]
SKIPPING: .svn [hidden directory]
CURRENT ZONE: abysmal
Traceback (most recent call last):
File "additem.py", line 73, in <module>
parseScript(os.path.join(zone, script))
File "additem.py", line 45, in parseScript
modEventDeath(content)
NameError: global name 'modEventDeath' is not defined
That is what I get when the bottom Script is ran. Hmmmmm, trying to make heads or tails of code is tough this late at night. Maybe in the morning it will be a bit clearer.
Any clue to point me in the right direction would be much obliged.
I really want to thank you c0ncrete and all the others that post so many examples of code to help us nonprogrammers. I have been trying to pick up some now and then (I can do Hello World in Python) but hard to with family and work taking up much time.
Ruyen
|