Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Main
- {
- questname "Mining Quest"
- version 1.0
- }
- state Begin
- {
- desc "Talk to Nidhi"
- action AddNpcText(76, "Hello,[c-name] I can smith metal bars if you give me metal ores!!!!");
- action AddNpcInput(76,1,"Sure");
- action AddNpcInput(76,2,"No thanks");
- action AddNpcInput(76,3,"Milestone");
- rule InputNpc(1) goto Metal
- rule InputNpc(2) goto Reset
- rule InputNpc(3) goto Milestone
- }
- state Metal
- {
- desc "Smithing Amount"
- action AddNpcText(76, "How many metal bars do you want me to smith?");
- action AddNpcInput(76,1,"25 Metal Bars");
- action AddNpcInput(76,2,"50 Metal Bars");
- action AddNpcInput(76,3,"75 Metal Bars");
- action AddNpcInput(76,4,"100 Metal Bars");
- rule InputNpc(1) goto MB25
- rule InputNpc(2) goto MB50
- rule InputNpc(3) goto MB75
- rule InputNpc(4) goto MB100
- }
- state MB25
- {
- action AddNpcText(76, "Please get 375 metal ores to purchase.");
- action AddNpcInput(76, 1, "Alright");
- rule InputNpc(1) goto Metal
- rule GotItems(694,375) goto Give25
- }
- state Give25
- {
- action RemoveItem(694,375);
- action GiveItem(693,25);
- action ShowHint("You have smithed 25 metal bars");
- action Reset();
- }
- state MB50
- {
- action AddNpcText(76, "Please get 750 metal ores.");
- action AddNpcInput(76, 1, "Alright");
- rule InputNpc(1) goto Metal
- rule GotItems(694,750) goto Give50
- }
- state Give50
- {
- action RemoveItem(694,750);
- action GiveItem(693,50);
- action ShowHint("You have smithed 50 metal bars.");
- action Reset();
- }
- state MB75
- {
- action AddNpcText(76, "Please get 1125 metal ores.");
- action AddNpcInput(76, 1, "Alright");
- rule InputNpc(1) goto Metal
- rule GotItems(694,1125) goto Give75
- }
- state Give75
- {
- action RemoveItem(694,1125);
- action GiveItem(693,75);
- action ShowHint("You have smithed 75 metal bars.");
- action Reset();
- }
- state MB100
- {
- action AddNpcText(76, "Please get 1500 metal ores.");
- action AddNpcInput(76, 1, "Alright");
- rule InputNpc(1) goto Metal
- rule GotItems(694,1500) goto Give100
- }
- state Give100
- {
- action RemoveItem(694,1500);
- action GiveItem(693,100);
- action ShowHint("You have smithed 100 metal bars.");
- action Reset();
- }
- state Reset
- {
- action Reset();
- }
- State Milestone
- {
- desc "Talk to Nidhi the miner"
- action AddNpcText(76, "Hello, if you get level 100 in mining, then you will get an armor having 100 damage");
- action AddNpcInput(76, 1, "oh i see");
- rule InputNpc(1) goto Reset
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement