From 15777a938d38e7f9e46c347395a1a313953c2031 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 16 May 2020 13:05:27 -0300 Subject: Aurora Events Framework --- Makefile | 2 ++ client/aurora.py | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100755 client/aurora.py diff --git a/Makefile b/Makefile index 9f8c648..c94f855 100644 --- a/Makefile +++ b/Makefile @@ -63,9 +63,11 @@ news: client: @cd client ; ./weapons.py @cd client ; ./dailylogin.py + @cd client ; ./aurora.py @cd client ; ./skills.py @cd client ; mv weapons.tmp ../../client-data/weapons.xml @cd client ; mv daily.tmp ../../client-data/graphics/images/daily.xml + @cd client ; mv aurora.tmp ../../client-data/graphics/images/aurora.xml @cd client ; mv skills.tmp ../../client-data/mana_skills.xml @cd client ; ./minimap-render.py all @cd client ; ./minimap-dyecmd.py ; ./minimap-dyecmd.sh diff --git a/client/aurora.py b/client/aurora.py new file mode 100755 index 0000000..95f356b --- /dev/null +++ b/client/aurora.py @@ -0,0 +1,33 @@ +#!/usr/bin/python2.7 + +# Setup +events=["Expo", "Fishing", "Kamelot", "Regnum"] + +# Functions +def headers(val): + return '\n\t\n\t\t\n' % val + +def navigation(): + return '\t\t\t\n\t\n' + +def data(val): + bf='\t\t\t' % val + return bf + +# Begin +f=open("aurora.tmp", "w") + +f.write('\n\n') + +for evtc in sorted(events): + f.write(headers(evtc)) + f.write(data(evtc)) + f.write(navigation()) + f.write(tail()) + +f.write('\n') +f.close() + -- cgit v1.2.3-70-g09d2