The following script emulates iRO's Weekly Turn-In Event (Gramps NPC). This was made by having direct interaction with Gramps npc ingame.
For more details please check: Weekly Turn-In Events - iRO Wiki
Special thanks to:
ZacktheBear from AtlantisRO.
This would not have been possible without his invaluable help by providing replay data and testing.
Resources:
Gramps_Weekly_TurnIn.txt
quest_db.txt
questid2display.txt
resnametable.txt
Some notes about this script:
This script uses special maps to warp players. Please prepare the map-cache according to data provided.
This script uses some arrays on the OnInit label to set the Turn-In quest and maps:
Arrays .Gramps_MapName$, .Gramps_MapWarp$, .Gramps_MapX and .Gramps_MapY defines the turn-in map where player will be warped.
Array .Gramps_Turn defines the questlog id and target monster for Tur-In in this order:
Low Maps:
Index 0 = Quest Id 1
Index 1 = Monster Id 1
Index 2 = Quest Id 2
Index 3 = Monster Id 2
Mid Maps:
Index 4 = Quest Id 1
Index 5 = Monster Id 1
Index 6 = Quest Id 2
Index 7 = Monster Id 2
High Maps:
Index 8 = Quest Id 1
Index 9 = Monster Id 1
Index 10 = Quest Id 2
Index 11 = Monster Id 2
Some quest gives Zeny reward, but it is not clear which one gives and which one doesn't. Please provide any data to know how does this works.
Since I have no way to know how much monsters have Turn-In maps, I didn't put monster spawn. Please configure it as your needs.
Please feel free to make any suggestion for improve this script and report any issue you may find.