diff options
-rw-r--r-- | db/const.txt | 3 | ||||
-rw-r--r-- | db/item_db.txt | 1 | ||||
-rw-r--r-- | npc/001-1_Tulimshar/guide.txt | 2 | ||||
-rw-r--r-- | npc/010-2_Dimonds_Cove/dimonds.txt | 424 | ||||
-rw-r--r-- | npc/031-1_NivalisPort/angelaOutside.txt | 2 | ||||
-rw-r--r-- | npc/functions/game_rules.txt | 3 |
6 files changed, 431 insertions, 4 deletions
diff --git a/db/const.txt b/db/const.txt index 981031ed..cd756b84 100644 --- a/db/const.txt +++ b/db/const.txt @@ -249,6 +249,9 @@ MFLAG_ELANORE_OMAR 32768 // Told Omar about Elanore's involvement MFLAG_KNOWS_UNFOCUS_RECIPE 65536 // Luca told me about how to unfocus +//Flags set in the FLAGS variable: +FLAG_HAS_BOWLER_BURNSDAY 1 + DOCK_tulimshar 1 DOCK_hurnscald 2 DOCK_candor 3 diff --git a/db/item_db.txt b/db/item_db.txt index 1d8de26f..a73ad081 100644 --- a/db/item_db.txt +++ b/db/item_db.txt @@ -604,6 +604,5 @@ 4027, YetiMask, Yeti Mask, 5, 6000, 3000, 10, , 4, , -10, 0, 2, 256, , 0, 0, {}, {} 4028, WizardHat, Wizard Hat, 5, 5000, 2500, 20, , 5, , 5, 0, 2, 256, , 1, 0, {}, {bonus bInt, 3;} 4029, DementiaPotion, Dementia Potion, 3, 20, 10, 10, , , , , , 2, , , 0, , {}, {} -#ID, Name, Label, Type, Price, Sell, Weight, ATK, DEF, Range, Mbonus, Slot, Gender, Loc, wLV, eLV, View, {UseScript}, {EquipScript} 4030, BowlerHat, Bowler Hat, 5, 2500, 1250, 30, , 10, , 2, 0, 2, 256, , 0, 0, {}, {} diff --git a/npc/001-1_Tulimshar/guide.txt b/npc/001-1_Tulimshar/guide.txt index b7f999c7..651a658f 100644 --- a/npc/001-1_Tulimshar/guide.txt +++ b/npc/001-1_Tulimshar/guide.txt @@ -166,7 +166,7 @@ L_TooMany: return; OnTouch: - if (TUT_var & 1 == 1) close; + if (TUT_var != 0) close; callfunc "GameRules"; mes "Ian, the trainer, can help you get to know the game."; close; diff --git a/npc/010-2_Dimonds_Cove/dimonds.txt b/npc/010-2_Dimonds_Cove/dimonds.txt index fcf02125..a3027b47 100644 --- a/npc/010-2_Dimonds_Cove/dimonds.txt +++ b/npc/010-2_Dimonds_Cove/dimonds.txt @@ -38,6 +38,430 @@ close; } +010-2.gat,35,35,0 script Shannon 193,{ + set @month, 1; +//TODO: set start_day correct after testing + set @start_day, 10; + set @end_day, 26; + if (gettime(6) != @month) goto no_event; + if (gettime(5) < @start_day) goto no_event; + if (gettime(5) > @end_day) goto no_event; + if (gettimetick(2)-TUT_var < 2*7*86400 ) //player must be created at least 2 weeks ago + goto no_event; + if (FLAGS & FLAG_HAS_BOWLER_BURNSDAY ) goto event_done; + getinventorylist; + if (@inventorylist_count == 100) goto L_Full_Inv; + + mes "[Shanon]"; + mes "\"Welcome to Dimond's Cove. We are celebrating Robert Burns with supper and poems. You provide the supper and I'll provide a poem by Robert Burns. He was otherwise known as 'The Bard' and wrote many poems. The music of language is I love most. The language of poetry. While his accent is thick, his poems tell stories that stir the soul. I'll read a poem by him and you can tell me what you think.\""; + next; + mes "\"Before I start, it is traditional to eat, drink and be merry, so help from you will be great and keep me reading.\""; + next; + mes "\"O thou! whatever title suit thee,--\""; + mes "\"Auld Hornie, Satan, Nick, or Clootie!\""; + mes "\"Wha in yon cavern, grim an' sootie,\""; + mes "\"Clos'd under hatches,\""; + mes "\"Spairges about the brunstane cootie\""; + mes "\"To scaud poor wretches!\""; + callsub food_menu; + mes "\"Hear me, Auld Hangie, for a wee,\""; + mes "\"An' let poor damned bodies be;\""; + mes "\"I'm sure sma' pleasure it can gie,\""; + mes "\"E'en to a deil,\""; + mes "\"To skelp an' scaud poor dogs like me,\""; + mes "\"An' hear us squeel!\""; + callsub food_menu; + mes "\"Great is thy pow'r, an' great thy fame;\""; + mes "\"Far ken'd an' noted is thy name;\""; + mes "\"An' tho' yon lowin heugh's thy hame,\""; + mes "\"Thou travels far;\""; + mes "\"An' faith! thou's neither lag nor lame,\""; + mes "\"Nor blate nor scaur.\""; + callsub food_menu; + mes "\"Whyles, ranging like a roarin lion,\""; + mes "\"For prey a' holes an' corners tryin;\""; + mes "\"Whyles, on the strong-wing'd tempest flyin,\""; + mes "\"Tirlin' the kirks;\""; + mes "\"Whyles, in the human bosom pryin,\""; + mes "\"Unseen thou lurks.\""; + callsub food_menu; + mes "\"I've heard my rev'rend graunie say,\""; + mes "\"In lanely glens ye like to stray;\""; + mes "\"Or whare auld ruin'd castles gray\""; + mes "\"Nod to the moon,\""; + mes "\"Ye fright the nightly wand'rer's way\""; + mes "\"Wi' eldritch croon.\""; + callsub food_menu; + mes "\"When twilight did my graunie summon\""; + mes "\"To say her pray'rs, douce honest woman!\""; + mes "\"Aft yont the dike she's heard you bummin,\""; + mes "\"Wi' eerie drone;\""; + mes "\"Or, rustlin thro' the boortrees comin,\""; + mes "\"Wi' heavy groan.\""; + callsub food_menu; + mes "\"Ae dreary, windy, winter night,\""; + mes "\"The stars shot down wi' sklentin light,\""; + mes "\"Wi' you mysel I gat a fright,\""; + mes "\"Ayont the lough;\""; + mes "\"Ye like a rash-buss stood in sight,\""; + mes "\"Wi' waving sugh.\""; + callsub food_menu; + mes "\"The cudgel in my nieve did shake,\""; + mes "\"Each bristl'd hair stood like a stake,\""; + mes "\"When wi' an eldritch, stoor 'Quaick, quaick,'\""; + mes "\"Amang the springs,\""; + mes "\"Awa ye squatter'd like a drake,\""; + mes "\"On whistling wings.\""; + callsub food_menu; + mes "\"Let warlocks grim an' wither'd hags\""; + mes "\"Tell how wi' you on ragweed nags\""; + mes "\"They skim the muirs an' dizzy crags\""; + mes "\"Wi' wicked speed;\""; + mes "\"And in kirk-yards renew their leagues,\""; + mes "\"Owre howket dead.\""; + callsub food_menu; + mes "\"Thence, countra wives wi' toil an' pain\""; + mes "\"May plunge an' plunge the kirn in vain;\""; + mes "\"For oh! the yellow treasure's taen\""; + mes "\"By witchin skill;\""; + mes "\"An' dawtet, twal-pint hawkie's gaen\""; + mes "\"As yell's the bill.\""; + callsub food_menu; + mes "\"Thence, mystic knots mak great abuse,\""; + mes "\"On young guidmen, fond, keen, an' croose;\""; + mes "\"When the best wark-lume i' the house,\""; + mes "\"By cantraip wit,\""; + mes "\"Is instant made no worth a louse,\""; + mes "\"Just at the bit.\""; + callsub food_menu; + mes "\"When thowes dissolve the snawy hoord,\""; + mes "\"An' float the jinglin icy-boord,\""; + mes "\"Then water-kelpies haunt the foord\""; + mes "\"By your direction,\""; + mes "\"An' nighted trav'lers are allur'd\""; + mes "\"To their destruction.\""; + callsub food_menu; + mes "\"And aft your moss-traversing spunkies\""; + mes "\"Decoy the wight that late an drunk is:\""; + mes "\"The bleezin, curst, mischievous monkeys\""; + mes "\"Delude his eyes,\""; + mes "\"Till in some miry slough he sunk is,\""; + mes "\"Ne'er mair to rise.\""; + callsub food_menu; + mes "\"When Masons' mystic word an grip\""; + mes "\"In storms an' tempests raise you up,\""; + mes "\"Some cock or cat your rage maun stop,\""; + mes "\"Or, strange to tell!\""; + mes "\"The youngest brither ye wad whip\""; + mes "\"Aff straught to hell!\""; + callsub food_menu; + mes "\"Lang syne, in Eden'd bonie yard,\""; + mes "\"When youthfu' lovers first were pair'd,\""; + mes "\"An all the soul of love they shar'd,\""; + mes "\"The raptur'd hour,\""; + mes "\"Sweet on the fragrant flow'ry swaird,\""; + mes "\"In shady bow'r;\""; + callsub food_menu; + mes "\"Then you, ye auld snick-drawin dog!\""; + mes "\"Ye cam to Paradise incog,\""; + mes "\"And play'd on man a cursed brogue,\""; + mes "\"(Black be your fa'!)\""; + mes "\"An gied the infant warld a shog,\""; + mes "\"Maist ruin'd a'.\""; + callsub food_menu; + mes "\"D'ye mind that day, when in a bizz,\""; + mes "\"Wi' reeket duds an reestet gizz,\""; + mes "\"Ye did present your smoutie phiz\""; + mes "\"Mang better folk,\""; + mes "\"An' sklented on the man of Uz\""; + mes "\"Your spitefu' joke?\""; + callsub food_menu; + mes "\"An' how ye gat him i' your thrall,\""; + mes "\"An' brak him out o' house and hal',\""; + mes "\"While scabs and blotches did him gall,\""; + mes "\"Wi' bitter claw,\""; + mes "\"An' lows'd his ill-tongued, wicked scaul,\""; + mes "\"Was warst ava?\""; + callsub food_menu; + mes "\"But a' your doings to rehearse,\""; + mes "\"Your wily snares an' fechtin fierce,\""; + mes "\"Sin' that day Michael did you pierce,\""; + mes "\"Down to this time,\""; + mes "\"Wad ding a Lallan tongue, or Erse,\""; + mes "\"In prose or rhyme.\""; + callsub food_menu; + mes "\"An' now, Auld Cloots, I ken ye're thinkin,\""; + mes "\"A certain Bardie's rantin, drinkin,\""; + mes "\"Some luckless hour will send him linkin,\""; + mes "\"To your black pit;\""; + mes "\"But faith! he'll turn a corner jinkin,\""; + mes "\"An' cheat you yet.\""; + callsub food_menu; + mes "\"But fare you weel, Auld Nickie-ben!\""; + mes "\"O wad ye tak a thought an' men'!\""; + mes "\"Ye aiblins might--I dinna ken--\""; + mes "\"Still hae a stake:\""; + mes "\"I'm wae to think upo' yon den,\""; + mes "\"Ev'n for your sake!\""; + next; + mes "\"Well, that was the poem. What do you think of it?\""; + menu + "It was a bit long and kind of hard to understand, but thanks for reading.", -; + + mes "[Shanon]"; + mes "\"Well, thanks for coming to the supper. Also, thanks for helping me make it through the poem. Here, take this hat. When you wear it, wear it with the class you showed me today. Happy Burns' Supper!\""; + getinventorylist; + if (@inventorylist_count == 100) goto L_Full_Inv; + getitem "bowlerhat", 1; + set FLAGS, FLAGS | FLAG_HAS_BOWLER_BURNSDAY; + close; + +no_event: + mes "[Shanon]"; + mes "\"I'm a traveling poet and admirer of Robert Burns.\""; + close; + +event_done: + mes "[Shanon]"; + mes "\"Ah, my dear friend. Good to see you again in this remarkable time of the year.\""; + next; + mes "\"Welcome to Dimond's Cove. We are celebrating Robert Burns with supper and poems. You provide the supper and I'll provide a poem by Robert Burns. He was otherwise known as 'The Bard' and wrote many poems. The music of language is I love most. The language of poetry. While his accent is thick, his poems tell stories that stir the soul. I'll read a poem by him and you can tell me what you think.\""; + next; + mes "\"O thou! whatever title suit thee,--\""; + mes "\"Auld Hornie, Satan, Nick, or Clootie!\""; + mes "\"Wha in yon cavern, grim an' sootie,\""; + mes "\"Clos'd under hatches,\""; + mes "\"Spairges about the brunstane cootie\""; + mes "\"To scaud poor wretches!\""; + next; + mes "\"Hear me, Auld Hangie, for a wee,\""; + mes "\"An' let poor damned bodies be;\""; + mes "\"I'm sure sma' pleasure it can gie,\""; + mes "\"E'en to a deil,\""; + mes "\"To skelp an' scaud poor dogs like me,\""; + mes "\"An' hear us squeel!\""; + next; + mes "\"Great is thy pow'r, an' great thy fame;\""; + mes "\"Far ken'd an' noted is thy name;\""; + mes "\"An' tho' yon lowin heugh's thy hame,\""; + mes "\"Thou travels far;\""; + mes "\"An' faith! thou's neither lag nor lame,\""; + mes "\"Nor blate nor scaur.\""; + next; + mes "\"Whyles, ranging like a roarin lion,\""; + mes "\"For prey a' holes an' corners tryin;\""; + mes "\"Whyles, on the strong-wing'd tempest flyin,\""; + mes "\"Tirlin' the kirks;\""; + mes "\"Whyles, in the human bosom pryin,\""; + mes "\"Unseen thou lurks.\""; + next; + mes "\"I've heard my rev'rend graunie say,\""; + mes "\"In lanely glens ye like to stray;\""; + mes "\"Or whare auld ruin'd castles gray\""; + mes "\"Nod to the moon,\""; + mes "\"Ye fright the nightly wand'rer's way\""; + mes "\"Wi' eldritch croon.\""; + next; + mes "\"When twilight did my graunie summon\""; + mes "\"To say her pray'rs, douce honest woman!\""; + mes "\"Aft yont the dike she's heard you bummin,\""; + mes "\"Wi' eerie drone;\""; + mes "\"Or, rustlin thro' the boortrees comin,\""; + mes "\"Wi' heavy groan.\""; + next; + mes "\"Ae dreary, windy, winter night,\""; + mes "\"The stars shot down wi' sklentin light,\""; + mes "\"Wi' you mysel I gat a fright,\""; + mes "\"Ayont the lough;\""; + mes "\"Ye like a rash-buss stood in sight,\""; + mes "\"Wi' waving sugh.\""; + next; + mes "\"The cudgel in my nieve did shake,\""; + mes "\"Each bristl'd hair stood like a stake,\""; + mes "\"When wi' an eldritch, stoor 'Quaick, quaick,'\""; + mes "\"Amang the springs,\""; + mes "\"Awa ye squatter'd like a drake,\""; + mes "\"On whistling wings.\""; + next; + mes "\"Let warlocks grim an' wither'd hags\""; + mes "\"Tell how wi' you on ragweed nags\""; + mes "\"They skim the muirs an' dizzy crags\""; + mes "\"Wi' wicked speed;\""; + mes "\"And in kirk-yards renew their leagues,\""; + mes "\"Owre howket dead.\""; + next; + mes "\"Thence, countra wives wi' toil an' pain\""; + mes "\"May plunge an' plunge the kirn in vain;\""; + mes "\"For oh! the yellow treasure's taen\""; + mes "\"By witchin skill;\""; + mes "\"An' dawtet, twal-pint hawkie's gaen\""; + mes "\"As yell's the bill.\""; + next; + mes "\"Thence, mystic knots mak great abuse,\""; + mes "\"On young guidmen, fond, keen, an' croose;\""; + mes "\"When the best wark-lume i' the house,\""; + mes "\"By cantraip wit,\""; + mes "\"Is instant made no worth a louse,\""; + mes "\"Just at the bit.\""; + next; + mes "\"When thowes dissolve the snawy hoord,\""; + mes "\"An' float the jinglin icy-boord,\""; + mes "\"Then water-kelpies haunt the foord\""; + mes "\"By your direction,\""; + mes "\"An' nighted trav'lers are allur'd\""; + mes "\"To their destruction.\""; + next; + mes "\"And aft your moss-traversing spunkies\""; + mes "\"Decoy the wight that late an drunk is:\""; + mes "\"The bleezin, curst, mischievous monkeys\""; + mes "\"Delude his eyes,\""; + mes "\"Till in some miry slough he sunk is,\""; + mes "\"Ne'er mair to rise.\""; + next; + mes "\"When Masons' mystic word an grip\""; + mes "\"In storms an' tempests raise you up,\""; + mes "\"Some cock or cat your rage maun stop,\""; + mes "\"Or, strange to tell!\""; + mes "\"The youngest brither ye wad whip\""; + mes "\"Aff straught to hell!\""; + next; + mes "\"Lang syne, in Eden'd bonie yard,\""; + mes "\"When youthfu' lovers first were pair'd,\""; + mes "\"An all the soul of love they shar'd,\""; + mes "\"The raptur'd hour,\""; + mes "\"Sweet on the fragrant flow'ry swaird,\""; + mes "\"In shady bow'r;\""; + next; + mes "\"Then you, ye auld snick-drawin dog!\""; + mes "\"Ye cam to Paradise incog,\""; + mes "\"And play'd on man a cursed brogue,\""; + mes "\"(Black be your fa'!)\""; + mes "\"An gied the infant warld a shog,\""; + mes "\"Maist ruin'd a'.\""; + next; + mes "\"D'ye mind that day, when in a bizz,\""; + mes "\"Wi' reeket duds an reestet gizz,\""; + mes "\"Ye did present your smoutie phiz\""; + mes "\"Mang better folk,\""; + mes "\"An' sklented on the man of Uz\""; + mes "\"Your spitefu' joke?\""; + next; + mes "\"An' how ye gat him i' your thrall,\""; + mes "\"An' brak him out o' house and hal',\""; + mes "\"While scabs and blotches did him gall,\""; + mes "\"Wi' bitter claw,\""; + mes "\"An' lows'd his ill-tongued, wicked scaul,\""; + mes "\"Was warst ava?\""; + next; + mes "\"But a' your doings to rehearse,\""; + mes "\"Your wily snares an' fechtin fierce,\""; + mes "\"Sin' that day Michael did you pierce,\""; + mes "\"Down to this time,\""; + mes "\"Wad ding a Lallan tongue, or Erse,\""; + mes "\"In prose or rhyme.\""; + next; + mes "\"An' now, Auld Cloots, I ken ye're thinkin,\""; + mes "\"A certain Bardie's rantin, drinkin,\""; + mes "\"Some luckless hour will send him linkin,\""; + mes "\"To your black pit;\""; + mes "\"But faith! he'll turn a corner jinkin,\""; + mes "\"An' cheat you yet.\""; + next; + mes "\"But fare you weel, Auld Nickie-ben!\""; + mes "\"O wad ye tak a thought an' men'!\""; + mes "\"Ye aiblins might--I dinna ken--\""; + mes "\"Still hae a stake:\""; + mes "\"I'm wae to think upo' yon den,\""; + mes "\"Ev'n for your sake!\""; + next; + mes "\"Well, that was the poem. What do you think of it?\""; + menu + "It was a bit long and kind of hard to understand, but thanks for reading.", -; + close; + +L_Full_Inv: + mes "[Shanon]"; + mes "\"Your possessions seems to be a burden to you.\""; + next; + mes "\"Maybe you should turn away from the mundane world and get rid of this burden to change your view to the beauty of poetry.\""; + close; + +food_menu: + setarray @choice_idx, 0,0,0,0,0,0; + setarray @choice$, "","","","","",""; + + set @C_steak, 676; + set @C_chickenleg, 562; + set @C_redapple, 535; + set @C_greenapple, 719; + set @C_beer, 539; + + // counter of available answers + set @choices_nr, 0; + + if (countitem("Steak") == 0) goto L_nosteaks; + set @choice_idx[@choices_nr], @C_steak; + set @choice$[@choices_nr], "Offer him a steak."; + set @choices_nr, @choices_nr + 1; +L_nosteaks: + if (countitem("ChickenLeg") == 0) goto L_nochickenleg; + set @choice_idx[@choices_nr], @C_chickenleg; + set @choice$[@choices_nr], "Offer him a chicken leg."; + set @choices_nr, @choices_nr + 1; +L_nochickenleg: + if (countitem("RedApple") == 0) goto L_noredapple; + set @choice_idx[@choices_nr], @C_redapple; + set @choice$[@choices_nr], "Offer him a red apple."; + set @choices_nr, @choices_nr + 1; +L_noredapple: + if (countitem("RedApple") == 0) goto L_nogreenapple; + set @choice_idx[@choices_nr], @C_greenapple; + set @choice$[@choices_nr], "Offer him a green apple."; + set @choices_nr, @choices_nr + 1; +L_nogreenapple: + if (countitem("RedApple") == 0) goto L_nobeer; + set @choice_idx[@choices_nr], @C_beer; + set @choice$[@choices_nr], "Offer him a beer."; + set @choices_nr, @choices_nr + 1; +L_nobeer: + set @choice_idx[@choices_nr], @C_nevermind; + set @choice$[@choices_nr], "Leave"; + + menu + @choice$[0],-, + @choice$[1],-, + @choice$[2],-, + @choice$[3],-, + @choice$[4],-, + @choice$[5],-, + @choice$[6],-, + @choice$[7],-, + @choice$[8],-, + @choice$[9],-, + @choice$[10],-; + + set @choose, @menu - 1; + if (@choice_idx[@choose] == 0) + goto leave; + if ((countitem("Steak") != 0) && (@choice_idx[@choose] == @C_steak)) goto rem_item; + if ((countitem("ChickenLeg") != 0) && (@choice_idx[@choose] == @C_chickenleg)) goto rem_item; + if ((countitem("RedApple") != 0) && (@choice_idx[@choose] == @C_redapple)) goto rem_item; + if ((countitem("GreenApple") != 0) && (@choice_idx[@choose] == @C_greenapple)) goto rem_item; + if ((countitem("Beer") != 0) && (@choice_idx[@choose] == @C_beer)) goto rem_item; + + // fallthrough only when player remove the items while in menu, trying to cheat + // the quest will need to be started again + mes "\"Do not try to betray me. Come back when you have a better morale.\""; + close; + +rem_item: + delitem @choice_idx[@choose], 1; + return; + +leave: + close; +} + 010-2.gat,27,30,0 script Bar Rules 127,{ mes "Dimonds Cove Bar Rules"; next; diff --git a/npc/031-1_NivalisPort/angelaOutside.txt b/npc/031-1_NivalisPort/angelaOutside.txt index 1fbb90e2..d5775f2e 100644 --- a/npc/031-1_NivalisPort/angelaOutside.txt +++ b/npc/031-1_NivalisPort/angelaOutside.txt @@ -85,7 +85,7 @@ L_No_Potion: L_Please_Help: mes "[Angela]"; - mes "\"Please rescue my daughter!\""; + mes "\"Please go in that cave and rescue my daughter!\""; close; L_Please_Visit: diff --git a/npc/functions/game_rules.txt b/npc/functions/game_rules.txt index 1f127a29..d67887f3 100644 --- a/npc/functions/game_rules.txt +++ b/npc/functions/game_rules.txt @@ -149,6 +149,7 @@ L_Italian: L_End: set @read, 1; - set TUT_var, TUT_var | 1; + if (TUT_var == 0) + set TUT_var, gettimetick(2); return; } |