Jump to content

Kinx

Members
  • Posts

    106
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Kinx

  1. hello

    add pls, when you have killed all the Vitata 1x *you have killed all the vitata*, if you have killed all mobs 1x Player Annonce *you have done the quest*

    anthell02,170,165,3	script	Waffel#0	112,{ 
    mes "You have to kill:";
    mes "You have "+VitataKills+"/10 Vitata...";
    mes "You have "+AntEggKills+"/55 Ant Egg...";
    mes "You have "+FamiliarKills+"/5 Familiar";
    next;
    if(VitataKills < 10) goto l_nokills;
    if(AntEggKills < 55) goto l_nokills;
    if(FamiliarKills < 5) goto l_nokills;
    getitem 678,5 ;
    close;
    l_nokills:
    mes "You didn't kill enough monsters!";
    close;
    OnNPCKillEvent:
    if(killedrid == 1176) // = Vitata
    {
    set VitataKills,VitataKills + 1;
    dispbottom "You killed "+VitataKills+"/10 Vitata.";
    }else if (killedrid == 1097) // = Ant Egg
    {
    set AntEggKills,AntEggKills + 1;
    dispbottom "You killed "+AntEggKills+"/55 AntEgg.";
    }else if (killedrid == 1005) // = Familiar
    {
    set FamiliarKills,FamiliarKills + 1;
    dispbottom "You killed "+FamiliarKills+"/5 Familiar.";
    }
    end;
    }

     

    screenTest Server007.jpg

  2. Sorry for my Bad English...... :wacko:

     

     

    what doesn't work ?

    the new menu Warp to Acces Maps is bugy, i have Unlocked Bifrost Tower Dungeon ( Image 1), I use the warper and elect the Unlocked Dungeon. ( Image 2) 

     

    ( Image 1)

    http://www.bilder-upload.eu/show.php?file=d11f3e-1509004041.jpg

     

    ( Image 2)

    http://www.bilder-upload.eu/show.php?file=007c64-1509004121.jpg

     

     

     

    where did you download the script ?  

    is from Rathena npc/custom/etc/quest_warper.txt

     

    my npc Edit's

    I have added in the menu Warp to Acces Maps ( Search L_Acces_dungeon: )

  3. using System;
    using System.Collections.Generic;
    using System.Globalization;
    using System.IO;
    using System.Linq;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Documents;
    using System.Windows.Media;
    using System.Windows.Media.Imaging;
    using ErrorManager;
    using GRF.FileFormats.ActFormat;
    using GRF.FileFormats.SprFormat;
    using GRF.FileFormats.PalFormat;
    using GRF.Image;
    using GRF.Image.Decoders;
    using GRF.Graphics;
    using GrfToWpfBridge;
    using TokeiLibrary;
    using TokeiLibrary.WPF;
    using Action = GRF.FileFormats.ActFormat.Action;
    using Frame = GRF.FileFormats.ActFormat.Frame;
    using Point = System.Windows.Point;
    
    namespace Scripts {
        public class Script : IActScript {
    		public object DisplayName {
    			get { return "MyCustomScript"; }
    		}
    		
    		public string Group {
    			get { return "Scripts"; }
    		}
    		
    		public string InputGesture {
    			get { return null; }
    		}
    		
    		public string Image {
    			get { return null; }
    		}
    		
    		public void Execute(Act act, int selectedActionIndex, int selectedFrameIndex, int[] selectedLayerIndexes) {
    			if (act == null) return;
    			
    			try {
    				act.Commands.Begin();
    				act.Commands.Backup(_ => {
    					act.SetColor("#99F80909");
    				}, "MyCustomScript", true);
    			}
    			catch (Exception err) {
    				act.Commands.CancelEdit();
    				ErrorHandler.HandleException(err, ErrorLevel.Warning);
    			}
    			finally {
    				act.Commands.End();
    				act.InvalidateVisual();
    				act.InvalidateSpriteVisual();
    			}
    		}
    		
    		public bool CanExecute(Act act, int selectedActionIndex, int selectedFrameIndex, int[] selectedLayerIndexes) {
    			return act != null;
    		}
    	}
    }

    use Scripts, line 49 is act.SetColor("#99F80909"); Change it any way.

    • Upvote 2
  4. -	script	Sample	-1,{
    	OnInit:
    		set .amount, 40; // amount of item to shower
    		set .item_id, 7227; // item id to shower
    		set .map$, "prontera"; // map to shower
    		end;
    	OnMinute00:
    		while ( .count < .amount ) {
    			do {
    				.@x = rand(1,500);
    				.@y = rand(1,500);
    			} while (!checkcell(.map$,.@x,.@y,cell_chkpass));
    			makeitem .item_id,1,.map$,.@x,.@y;
    			set .count, .count + 1;
    		}
    		set .count, 0;
    		end;
    }

     

    • Upvote 1
×
×
  • Create New...