Jump to content

Akbare

Members
  • Posts

    478
  • Joined

  • Last visited

  • Days Won

    4

Posts posted by Akbare

  1. sory im need advice sir

    this my config

    ; ------------------------------------------------------------------
    ; Elurair
    ; (c) 2012-2022 Ai4rei/AN
    ;
    ; ------------------------------------------------------------------
    
    ; Lines starting with ; are comments and can be removed before
    ; embedding the config.
    
    ; Numbers are always considered decimal (base 10) unless stated
    ; otherwise.
    
    ; Text is assumed to be UTF-8, some fields may be interpreted as
    ; system code page (ACP/ANSI).
    
    ; When a color value is required, it can be in one of the following
    ; CSS-like formats:
    ;       #rgb                    hexadecimal (short)
    ;       #rrggbb                 hexadecimal (long)
    ;       rgb(r,g,b)              decimal or hexadecimal
    ;       rgb(r%,g%,b%)           percentage
    
    [ROCred]
    ; Identifies this specific Elurair setup. This may be anything that
    ; uniquely describes the publisher of this setup, such as the server
    ; name.
    ; Note: This is needed for the password saving feature to work and
    ;       allows for different games to have separately saved
    ;       passwords.
    ;ConfigID=nachtwolke.ai4rei.com/sakray
    ConfigID=http://localhost/
    
    ; Whether or not username is remembered.
    ; Values:
    ;       0: No
    ;       1: Yes
    CheckSave=0
    
    ; Whether or not password is remembered in addition to the username.
    ; Values:
    ;       0: No
    ;       1: Yes
    CheckSavePassword=0
    
    ; Remembered user name.
    ; Note: If the password saving feature is enabled and active, this
    ;       value is not used and the user name saved with the password
    ;       is used instead.
    UserName=
    
    ; Whether or not password should be MD5 hashed.
    ; Values:
    ;       0: Plaintext
    ;       1: MD5 hash
    ; Note: Depending on server-software, you may need to disable
    ;       server-side hashing, to prevent the MD5 hashes from being
    ;       rehashed before comparison with stored hashes.
    HashMD5=0
    
    ; Salt pattern, when MD5 password hashing is used.
    ; Note: The user password is indicated with {password} and it may
    ;       appear anywhere in the salt.
    ; Note: To use arbitrary byte values in the salt, use C-style
    ;       escaping characters.
    ; Note: Using salted hashes may improve password safety against pre-
    ;       computed attacks, but may require additional changes to the
    ;       server software.
    ; Note: To not use salty MD5 hashes, leave the value blank.
    ; Example:
    ;       \x8A\x16\x38\x73\x6B\x15\x73\x58\x4C\x13\x57\x1D\x6A\xA8\xE4\x31\x00\xEE\xB7\xA1\xA6\x6C\xA5\xBB\x41{password}\x38\xEC\xF7\xD3\xD6\xA8\x7E\x49\x89\x9C\x84\x98\x41\x87\x14
    HashMD5Salt=
    
    ; Whether second instances are allowed or not.
    ; Values:
    ;       0: No
    ;       1: Yes
    ; Note: This setting is not meant as measure to prevent double
    ;       clienting.
    SecondInstance=0
    
    ; Whether or not the checkbox for remembering user name is
    ; available.
    ; Values:
    ;       0: Available
    ;       1: Unavailable
    PolicyNoCheckSave=0
    
    ; Whether or not the notification icon is displayed when in
    ; background waiting for the client to complete.
    ; Values:
    ;       0: Display
    ;       1: Hide
    PolicyNoTrayIcon=0
    
    ; Whether or not password is kept during a session when in
    ; background waiting for the client to complete.
    ; Values:
    ;       0: Kept (Convenience)
    ;       1: Not kept (Security)
    PolicyNoSessionPassword=0
    
    ; Whether or not the credentials (user name and password) are
    ; requested when launching an application as client (ActionType 4).
    ; Values:
    ;       0: Launcher with user name and password input
    ;       1: Launcher without user name and password input (user
    ;          authenticates through other means, ex. in the client)
    ; Note: When enabled, user name, password and save check box
    ;       controls are not displayed and the MiscInfo setting has no
    ;       effect.
    PolicyNoCredentials=0
    
    ; Font face of the dialog.
    ; Note: This should be one of the commonly installed type faces,
    ;       such as Tahoma or Segoe UI.
    ; Note: If left empty, default UI font will be used. While this may
    ;       make the UI style unpredicable to certain extent, it may be
    ;       needed for non-latin scripts.
    FontFace=Tahoma
    
    ; Font size of buttons and edit controls in points.
    FontSize=9
    
    ; Font size of status bar in points.
    FontSize2=9
    
    ; Provides miscellaneous client information to the server as part of
    ; the password/hash data. The password/hash is provided as "key".
    ; Bitmask:
    ;       &1: Hardware address of the network adapter (mac).
    ;           Internet-bound adapters are searched first, otherwise
    ;           the first available is picked. If the MAC address cannot
    ;           be retrieved, "000000000000" is passed.
    ; Note: The user receives an agreement prompt the first time they
    ;       provide the data to the server (privacy).
    ; Note: The server must be modified to support the data format.
    ;       Example: mac=112233445566&key=mypwd123
    ; Note: Password is always the last key-value pair and is not
    ;       urlencoded.
    ; Note: Has no effect when PolicyNoCredentials is set.
    MiscInfo=1
    
    ; Visual Customization (skinning)
    ;
    ; Note: This adjusts the visual aspects of the main window, such as
    ;       control positions and sizes. All values are in pixels, so be
    ;       sure to test the configuration on high-DPI systems.
    ; Note: Background picture is taken from bgskin.bmp, which can also
    ;       be embedded (BGSKIN). Transparent color is assumed to be
    ;       #ff00ff (magenta).
    ; Note: Buttons skins do not support transparent color, use the
    ;       underlying background for non-button areas to simulate it.
    ;       The bitmap contains the three states of a button: normal,
    ;       focus and clicked (in that order). The resulting button size
    ;       can be of any size, but the total width must be divisible
    ;       by 3.
    
    ; Username text box
    IDC_USERNAME.X=44
    IDC_USERNAME.Y=69
    IDC_USERNAME.W=391
    IDC_USERNAME.H=23
    
    ; Password text box
    IDC_PASSWORD.X=44
    IDC_PASSWORD.Y=149
    IDC_PASSWORD.W=391
    IDC_PASSWORD.H=23
    
    ; Save check box
    ; Note: The skin for this control contains 6 sprites. One set for
    ;       unchecked state and one set for checked state.
    IDC_CHECKSAVE.X=52
    IDC_CHECKSAVE.Y=209
    IDC_CHECKSAVE.W=17
    IDC_CHECKSAVE.H=17
    
    ; Status bar
    IDC_STATUSBAR.X=44
    IDC_STATUSBAR.Y=210
    IDC_STATUSBAR.W=391
    IDC_STATUSBAR.H=23
    
    ; Progress bar
    ; Note: The skins for this control are PROGRESSBG, PROGRESSLEFT,
    ;       PROGRESSCENTER and PROGRESSRIGHT.
    ; Note: PROGRESSLEFT and PROGRESSRIGHT are optional, but
    ;       recommended, unless you want the progress indicator to cover
    ;       the whole width of the control.
    IDC_PROGRESSBAR.X=44
    IDC_PROGRESSBAR.Y=234
    
    ; Whether or not the text boxes are transparent.
    ; Values:
    ;       0: System default
    ;       1: Reserved
    ;       2: Custom foreground and background colors.
    EditBackground=0
    
    ; Text box background color.
    ; Note: EditBackground must be set to 2 for this setting to have
    ;       any effect.
    EditBackgroundColor=#fff
    
    ; Text box foreground (text) color.
    ; Note: EditBackground must be set to 2 for this setting to have
    ;       any effect.
    EditForegroundColor=#000
    
    ; Whether or not the text boxes have a frame.
    ; Values:
    ;       0: System default
    ;       1: Without frame
    ; Note: Frameless edit controls are typically used, when the
    ;       background skin provides some atypical shape for the edit
    ;       controls (such as rounded corners/ends).
    EditFrame=1
    
    ; Controls the way the progress indicator center piece is drawn.
    ; Values:
    ;       0: Left-aligned clip (bar revealed left to right)
    ;       1: Right-aligned clip (bar grows left to right)
    ;       2: Stretch
    ;       3: Tile
    ; Note: Clip (values 0 and 1) requires the center piece bitmap to be
    ;       as wide as the background without the left and right ends.
    ProgressCenterMode=0
    
    ; Whether or not to show the native window caption and frame.
    ; Values:
    ;       0: Hide caption, skin covers entire window
    ;       1: Show caption, skin covers only client area
    ; Note: Even when the caption is hidden, you can provide minimize
    ;       and close actions with custom buttons.
    ShowWindowCaption=1
    
    ; Whether or not the status bar is transparent.
    ; Values:
    ;       0: System default
    ;       1: Transparent
    ;       2: Custom foreground and background colors.
    StatusBackground=0
    
    ; Status bar background color.
    ; Note: EditBackground must be set to 2 for this setting to have
    ;       any effect.
    StatusBackgroundColor=#fff
    
    ; Status bar foreground (text) color.
    ; Note: EditBackground must be set to 1 or 2 for this setting to
    ;       have any effect.
    StatusForegroundColor=#000
    
    ; Define this to 1.
    ; Values:
    ;       0: Elurair is not configured.
    ;       1: Elurair is configured.
    ; Note: This setting is to prevent starting an uninitialized
    ;       configuration that would result in broken, unusable UI.
    ConfigIsReady=0
    
    ; Action Buttons
    ;
    ; You can register buttons to appear on the user interface, that
    ; will do a predefined action. Each section in the format
    ; ROCred.Buttons.<your button identifier> will create a new button.
    ; The button identifier may consist of A-Z, 0-9 and _ (underscore),
    ; must be unique (among other custom buttons) and also serves as
    ; name for skins (see skinning section for more details on button
    ; skinning). The amount of buttons is only limited by available
    ; memory and GDI resources.
    
    ; Start button
    ; Note: If you specify a button skin (btnstart.bmp / BTNSTART)
    ;       W and H members will be ignored and taken from the bitmap.
    [ROCred.Buttons.BTNSTART#1]
    X=219
    Y=239
    W=75
    H=23
    DisplayName=#1005
    ActionType=4
    ActionData=Ragnarok.exe 1rag1
    ActionHandler=
    
    ; Close button
    ; Note: If you specify a button skin (btnclose.bmp / BTNCLOSE)
    ;       W and H members will be ignored and taken from the bitmap.
    [ROCred.Buttons.BTNCLOSE#2]
    X=339
    Y=239
    W=75
    H=23
    DisplayName=#1006
    ActionType=2
    ActionData=
    ActionHandler=
    
    ; Sample button
    [ROCred.Buttons.CUSTOM1]
    
    ; Position of the button.
    X=7
    Y=43
    
    ; Size of the button.
    ; Note: If you specify a button skin, values will be ignored and
    ; taken from the bitmap.
    W=75
    H=23
    
    ; Text to be displayed on the button.
    ; Note: If you specify a button skin, this becomes a tool tip for
    ;       the button.
    ; Note: To refer to a string table entry, use #<number> (ex. #123).
    DisplayName=Website
    
    ; Action to invoke when the button is pressed.
    ; Values:
    ;       0: Launch application or website
    ;       1: Launch application or website, and close application
    ;       2: Close application
    ;       3: Display a message (uses C-style escaping characters)
    ;       4: Launch application as client (with credentials and other
    ;          stuff), this allows running alternative clients
    ;       5: Minimize application window
    ActionType=0
    
    ; Data associated with button's action type.
    ; Note: To refer to a string table entry, use #<number> (ex. #123).
    ; Note: If you specify arguments for action 4, they will be
    ;       concatenated with the credential arguments.
    ;ActionData=ragexeRE.exe 1sak1
    ActionData=http://localhost/
    
    ; Handler associated with button's action type.
    ; ActionType:
    ;    0, 1: See the documentation of SHELLEXECUTEINFO::lpClass as to
    ;          what values this setting may take. When the value is
    ;          empty, the handler is inferred.
    ;          You can use this to specify the file extension to use
    ;          when running a file which has a different extension or
    ;          none at all. Specify ".exe" if you want to run an
    ;          executable that has the extension ".bin" for example.
    ; 2, 3, 5: Ignored.
    ;       4: Ignored, always assumed to be ".exe" type.
    ; Note: The only handlers for ActionType 0 and 1 supported on
    ;       Windows XP and earlier are file extensions, file classes
    ;       and GUIDs.
    ActionHandler=
    
    ; Web Browsers
    ;
    ; You can register (web) browsers to appear on the user interface to
    ; display local or remote HTML resources. Each section in the format
    ; ROCred.Browsers.<your browser identifier> will create a new
    ; browser. The browser identifier may consist of A-Z, 0-9 and
    ; _ (underscore) and must be unique (among other custom controls).
    ; The amount of browsers is only limited by available memory and GDI
    ; resources. For seamless integration into the skin, following CSS
    ; styles may come handy:
    ; html { border-width:0; }  /* disables frame* around the browser */
    ; body { background-attachment:fixed; }  /* static background */
    ; html { overflow:hidden; } /* IE6: disable scrollbars */
    ; body { overflow:hidden; } /* IE7+: disable scrollbars */
    ; Note: If disabling frame does not work, specify following tag in
    ; <head> tag:
    ; <meta http-equiv="X-UA-Compatible" content="IE=6">
    
    ; Sample Browser
    [ROCred.Browsers.CUSTOM2]
    
    ; Position of the browser.
    X=7
    Y=7
    
    ; Size of the browser.
    W=210
    H=120
    
    ; URL/Website to open in the browser.
    ; Note: This is not restricted to internet locations, a local file
    ;       may also be specified.
    ; Note: Supported protocols are:
    ;       - relative/path/file.htm
    ;           Urls missing a protocol specficiation (ex. relative
    ;           paths) are transformed to file: protocol.
    ;       - http://domain.tld/path/to/file.htm
    ;           Recommended. Works on all Windows versions.
    ;       - https://domain.tld/path/to/file.htm
    ;           May not work on older versions with certain server
    ;           configurations.
    ;       - res://file/id or res://file/type/id
    ;           Content stored as a resource (inside an EXE or DLL).
    ; Note: To refer to a string table entry, use #<number> (ex. #123).
    Url=http://localhost/rathenapatcher/notice.html
    
    ; Patch Configurations
    ;
    ; You can register patch processes to run before ActionType=4 button
    ; actions can be executed. Each section in the format
    ; ROCred.Patcher.<your config identifier> will create a separate
    ; patch process. The config identifier must be unique (among other
    ; patch configs), but is otherwise meaningless. Patch processes run
    ; sequentially in given order. The amount of patch configs is only
    ; limited by available memory.
    ; Each downloaded file is processed by a file type handler, that may
    ; or may not post-process it. By default the application comes with
    ; the follwing handlers:
    ;       - *.gpf (merged into archive defined in PakFile)
    ;       - *.rgz (unpacked)
    ;       - *.zip (unpacked)
    ;       - *.*   (will save unhandled files as is)
    ; When at least one patch process is registered, the patcher can be
    ; updated by distributing the updated version as "elurair.new".
    [ROCred.Patchers.Main]
    
    ; Local file name to record patch progress in.
    InfFile=main.inf
    
    ; Local file name for archive-style patches. Actual meaning depends
    ; on the archive handler in use.
    PakFile=main.grf
    
    ; Remote file name that contains list of patches to download and
    ; apply. Each line corresponds to one patch. Use only characters
    ; from the ASCII character set. Empty lines and lines starting with
    ; // are ignored.
    ; Format:
    ;       <incremental counter> <patch file name>
    ; RegExp:
    ;       /^(\d{2,}|[1-9])[ \t]+([^\r\n]+)$/m
    ; Example:
    ;       1   20XX-07-04SetupFix.rgz
    ;       2   20XX-07-05PatchFix.rgz
    ;       //3 20XX-07-11Event.gpf
    ;       4   20XX-07-11Event2.gpf
    WebList=patch_main.txt
    
    ; Path on the patch server that will be used when downloading remote
    ; files.
    WebPath=http://localhost/rathenapatcher/
    
    ; Patch server IP/domain name that will be used when downloading
    ; remote files.
    WebSite=http://localhost/
    
    ; Protocol to use when downloading remote files.
    ; Values:
    ;       http
    WebProt=http
    
    [ROCred.Patchers.PK]
    InfFile=pk.dat
    PakFile=pk.pak
    WebList=patch_pk.txt
    WebPath=/
    WebSite=pkpatch.example.com
    WebProt=http
    

    im use builder and get notice

    thx for advice sir

    cats.jpg

  2. On 2/14/2022 at 6:02 PM, chadness said:

    hello i would like to ask how to disable players to warp in the mvp maps thanks in advance

     

     

    jus add line 32

    "~ MVP warp",Mvpwarp,

     

    add line 126

    Mvpwarp:
    mvp1: Go("prontera",155,183);
    mvp2: Go("prontera",155,183);
    and etc

    change map name and coordinat

     

    owh sorry im wrong read the thread 😅

  3. On 2/9/2022 at 9:20 PM, girinaum said:

    perfect, I found here why this script does not work, my emulator that I have here is very old, is there a way for me to update it without losing the ekips and quests that I created? or at least a way to check in which "pull" my server was downloaded?

    update your emulator and move anything your edit in old server

    • Upvote 1
  4. I want to remove this button, because it is an etc item not equip

    On 1/24/2022 at 12:51 PM, EIysium said:

    I don't know why id 1001 is considered a card lol.

    go to data/cardprefixnametable.txt and data/carditemnametable.txt

    find 1001# and erase (should be first on the list).

    hahaha very unexpected

    thx bro work like a charm

  5. On 1/15/2022 at 8:50 PM, BugMeNot2014 said:

    yes, sorry. 

    https://prnt.sc/26dzglm

    For example in act editor, for each animation, there are 8 directions, for each animation(idle, moving, attacking) in each direction, there are some frames(different frame count for different mobs). So I want to remove all frames from all animations from all directions.

    So it will be 1 frame (it actually showing 0 frames) for each direction, for each animation. 

    Right now Im doing this manually by hands, but I think for such repititive actions should be some automatisation 

    delete manual with CTRL+DEL every frame anda save .act

    copy .act file and rename file to other sprite 

    maybe can work

  6. 2 hours ago, Rynbef said:

    @Akbaremaybe remove "disable_items;" after:

    mes "Requirements:";

     

    Normally it blocks changing equipment while talking to npc but it could be possible that it couldn't count ur item because it is an equipment item.

     

    Rynbef~

     

    thx for your reply

    but it didn't work till now

  7. //===== rAthena Script =======================================
    //= Euphy's Quest Shop
    //===== By: ==================================================
    //= Euphy
    //===== Current Version: =====================================
    //= 1.6c
    //===== Compatible With: =====================================
    //= rAthena Project
    //===== Description: =========================================
    //= A dynamic quest shop based on Lunar's, with easier config.
    //= Includes support for multiple shops & cashpoints.
    //= Item Preview script by ToastOfDoom.
    //===== Additional Comments: =================================
    //= 1.0 Initial script.
    //= 1.2 Added category support.
    //= 1.3 More options and fixes.
    //= 1.4 Added debug settings.
    //= 1.5 Replaced categories with shop IDs.
    //= 1.6 Added support for purchasing stackables.
    //= 1.6a Added support for previewing costumes and robes.
    //= 1.6b Added 'disable_items' command.
    //= 1.6c Replaced function 'A_An' with "F_InsertArticle".
    //============================================================
    
    // Shop NPCs -- supplying no argument displays entire menu.
    //	callfunc "qsLegendShop"{,<shop ID>{,<shop ID>{,...}}};
    //  ADD YOUR NPC HERE
    //============================================================
    prontera,139,225,6	script	Quest Exchange#1	851,{ callfunc "qsLegendShop"; }
    // prontera,165,203,6	script	Quest Shop#2	998,{ callfunc "qsLegendShop",1,2; }	// call the shop 1 and 2 defined below
    // etc.. Add your Shop NPCs 'Quest Shop#XXX' here
    //============================================================
    
    
    // Script Core - DO NOT DUPLICATE THIS NPC !!!!!!!!!!!!!
    //============================================================
    -	script	quest_shop	-1,{
    function Add; function Chk; function Slot;
    OnInit:
    	freeloop(1);
    
    // -----------------------------------------------------------
    //  Basic shop settings.
    // -----------------------------------------------------------
    
    	set .Announce,1;	// Announce quest completion? (1: yes / 0: no)
    	set .ShowSlot,1;	// Show item slots? (2: all equipment / 1: if slots > 0 / 0: never)
    	set .ShowID,1;  	// Show item IDs? (1: yes / 0: no)
    	set .ShowZeny,0;	// Show Zeny cost, if any? (1: yes / 0: no)
    	set .MaxStack,100;	// Max number of quest items purchased at one time.
    
    // -----------------------------------------------------------
    //  Points variable -- optional quest requirement.
    //	setarray .Points$[0],"<variable name>","<display name>";
    // -----------------------------------------------------------
    
    	setarray .Points$[0],
    		"#CASHPOINTS", "Cash Points";
    
    
    //=====================================================================================
    // ------------------- ADD YOUR SHOPS NAME AND ITEMS SHOPS STARTING HERE --------------
    //=====================================================================================
    
    // -----------------------------------------------------------
    //  Shop IDs -- to add shops, copy dummy data at bottom of file.
    //	setarray .Shops$[1],"<Shop 1>","<Shop 2>"{,...};
    // -----------------------------------------------------------
    
    	setarray .Shops$[1],
    		"legendary Quest Exchange";	// Shop Named 1
    
    // -----------------------------------------------------------
    //  Quest items -- do NOT use a reward item more than once!
    //	Add(<shop ID>,<reward ID>,<reward amount>,
    //	    <Zeny cost>,<point cost>,
    //	    <required item ID>,<required item amount>{,...});
    // -----------------------------------------------------------
    
    // Shop 1
    	Add(1,2319,1,20000000,0,2317,4 );
    
    // -----------------------------------------------------------
    
    //=====================================================================================
    // ------------------- YOUR SHOPS AND ITEMS SHOPS HAVE BEEN ADDED ---------------------
    //=====================================================================================
    
    	freeloop(0);
    	set .menu$,"";
    	for(set [email protected],1; [email protected]<=getarraysize(.Shops$); set [email protected],[email protected]+1) {
    		set .menu$, .menu$+.Shops$[[email protected]]+":";
    		npcshopdelitem "qsLegendShop"[email protected],909;
    	}
    	end;
    
    OnMenu:
    	set [email protected], getarraysize(@i);
    	if ([email protected]) set @shop_index, select(.menu$);
    	else if ([email protected] == 1) set @shop_index, @i[0];
    	else {
    		for(set [email protected],0; [email protected]<[email protected]; set [email protected],[email protected]+1)
    			set [email protected]$, [email protected]$+.Shops$[@i[[email protected]]]+":";
    		set @shop_index, @i[select([email protected]$)-1];
    	}
    	deletearray @i[0],getarraysize(@i);
    	if (.Shops$[@shop_index] == "") {
    		message strcharinfo(0),"An error has occurred.";
    		end;
    	}
    	dispbottom "Select one item at a time.";
    	callshop "qsLegendShop"+[email protected]_index,1;
    	npcshopattach "qsLegendShop"[email protected]_index;
    	end;
    
    OnBuyItem:
    	// [email protected][] : RewardID, BoughtAmt, RewardAmt, BaseAmt, ReqZeny, ReqPts, { ReqItem, ReqAmt, ... }
    	setarray [email protected][0],@bought_nameid[0],((@bought_quantity[0] > .MaxStack)?.MaxStack:@bought_quantity[0]);
    	copyarray [email protected][3],getd(".q_"[email protected]_index+"_"[email protected][0]+"[0]"),getarraysize(getd(".q_"[email protected]_index+"_"[email protected][0]));
    	set [email protected][2],[email protected][1]*[email protected][3];
    	if ([email protected][2] || [email protected][2] > 30000) {
    		message strcharinfo(0),"You can't purchase that many "+getitemname([email protected][0])+".";
    		end;
    	}
    	mes "[Quest Shop]";
    	mes "Reward: ^0055FF"+(([email protected][2] > 1)[email protected][2]+"x ":"")+Slot([email protected][0])+"^000000";
    	mes "Requirements:";
    	disable_items;
    	if ([email protected][4]) mes " > "+Chk(Zeny,[email protected][4]*[email protected][1])+([email protected][4]*[email protected][1])+" Zeny^000000";
    	if ([email protected][5]) mes " > "+Chk(getd(.Points$[0]),[email protected][5]*[email protected][1])+([email protected][5]*[email protected][1])+" "+.Points$[1]+" ("+getd(.Points$[0])+"/"+([email protected][5]*[email protected][1])+")^000000";
    	if ([email protected][6]) for(set [email protected],6; [email protected]<getarraysize([email protected]q); set [email protected]i,[email protected]i+2)
    		mes " > "+Chk(countitem([email protected][[email protected]]),[email protected][[email protected]+1]*[email protected][1])+((.ShowID)?"{"[email protected][[email protected]]+"} ":"")+Slot([email protected][[email protected]])+" ("+countitem([email protected][[email protected]])+"/"+([email protected][[email protected]+1]*[email protected][1])+")^000000";
    	next;
    	setarray @qe[1], getiteminfo([email protected][0], ITEMINFO_LOCATIONS), getiteminfo([email protected][0], ITEMINFO_VIEW);
    	if (@qe[2] > 0 && ((@qe[1] & EQP_HEAD_LOW) || (@qe[1] & EQP_HEAD_TOP) || (@qe[1] & EQP_HEAD_MID) || (@qe[1] & EQP_COSTUME_HEAD_TOP) || (@qe[1] & EQP_COSTUME_HEAD_MID) || (@qe[1] & EQP_COSTUME_HEAD_LOW) || (@qe[1] & EQP_GARMENT) || (@qe[1] & EQP_COSTUME_GARMENT)))
    		set [email protected],1;
    	addtimer 1000, strnpcinfo(0)+"::OnEnd";
    	while(1) {
    		switch(select(" ~ Purchase ^0055FF"+getitemname([email protected][0])+"^000000:"+(([email protected] && [email protected][7])?" ~ Preview...":"")+": ~ ^777777Cancel^000000")) {
    		case 1:
    			if (@qe[0]) {
    				mes "[Quest Shop]";
    				mes "You're missing one or more quest requirements.";
    				close;
    			}
    			if (!checkweight([email protected][0],[email protected][2])) {
    				mes "[Quest Shop]";
    				mes "^FF0000You need "+((([email protected][2]*getiteminfo([email protected][0], ITEMINFO_WEIGHT))+Weight-MaxWeight)/10)+" additional weight capacity to complete this trade.^000000";
    				close;
    			}
    			if ([email protected][4]) set Zeny, Zeny-([email protected][4]*[email protected][1]);
    			if ([email protected][5]) setd .Points$[0], getd(.Points$[0])-([email protected][5]*[email protected][1]);
    			if ([email protected][6]) for(set [email protected],6; [email protected]<getarraysize([email protected]q); set [email protected]i,[email protected]i+2)
    				delitem [email protected]q[[email protected]i],[email protected]q[[email protected]i+1]*[email protected]q[1];
    			getitem [email protected]q[0],[email protected]q[2];
    			if (.Announce) announce strcharinfo(0)+" has created "+(([email protected]q[2] > 1)[email protected][2]+"x "+getitemname([email protected][0]):callfunc("F_InsertArticle",getitemname([email protected][0])))+"!",0;
    			specialeffect2 EF_FLOWERLEAF;
    			close;
    		case 2:
    			setarray @qe[3], getlook(LOOK_HEAD_BOTTOM), getlook(LOOK_HEAD_TOP), getlook(LOOK_HEAD_MID), getlook(LOOK_ROBE), 1;
    			if ((@qe[1] & 1) || (@qe[1] & 4096)) changelook LOOK_HEAD_BOTTOM, @qe[2];
    			else if ((@qe[1] & 256) || (@qe[1] & 1024)) changelook LOOK_HEAD_TOP, @qe[2];
    			else if ((@qe[1] & 512) || (@qe[1] & 2048)) changelook LOOK_HEAD_MID, @qe[2];
    			else if ((@qe[1] & 4) || (@qe[1] & 8192)) changelook LOOK_ROBE, @qe[2];
    			break;
    		case 3:
    			close;
    		}
    	}
    
    OnEnd:
    	if (@qe[7]) {
    		changelook LOOK_HEAD_BOTTOM, @qe[3];
    		changelook LOOK_HEAD_TOP, @qe[4];
    		changelook LOOK_HEAD_MID, @qe[5];
    		changelook LOOK_ROBE, @qe[6];
    	}
    	deletearray @qe[0],8;
    	end;
    
    function Add {
    	if (getitemname(getarg(1)) == "null") {
    		debugmes "Quest reward #"+getarg(1)+" invalid (skipped).";
    		return;
    	}
    	setarray [email protected][0],getarg(2),getarg(3),getarg(4);
    	for(set [email protected],5; [email protected]<getargcount(); set [email protected],[email protected]+2) {
    		if (getitemname(getarg([email protected])) == "null") {
    			debugmes "Quest requirement #"+getarg([email protected])+" invalid (skipped).";
    			return;
    		} else
    			setarray [email protected][[email protected]],getarg([email protected]),getarg([email protected]+1);
    	}
    	copyarray getd(".q_"+getarg(0)+"_"+getarg(1)+"[0]"),[email protected][0],getarraysize([email protected]);
    	npcshopadditem "qsLegendShop"+getarg(0),getarg(1),((.ShowZeny)?getarg(3):0);
    	return;
    }
    
    function Chk {
    	if (getarg(0) < getarg(1)) {
    		set @qe[0],1;
    		return "^FF0000";
    	} else
    		return "^00FF00";
    }
    
    function Slot {
    	set [email protected]$,getitemname(getarg(0));
    	switch(.ShowSlot) {
    		case 1: if (!getitemslots(getarg(0))) return [email protected]$;
    		case 2: if (getiteminfo(getarg(0), ITEMINFO_TYPE) == 4 || getiteminfo(getarg(0), ITEMINFO_TYPE) == 5) return [email protected]$+" ["+getitemslots(getarg(0))+"]";
    		default: return [email protected]$;
    	}
    }
    }
    
    function	script	qsLegendShop	{
    	deletearray @i[0],getarraysize(@i);
    	for(set [email protected],0; [email protected]<getargcount(); set [email protected],[email protected]+1)
    		set @i[[email protected]],getarg([email protected]);
    	doevent "quest_shop::OnMenu";
    	end;
    }
    
    
    // Dummy shop data -- copy as needed.
    //============================================================
    -	shop	qsLegendShop1	-1,909:-1

    My problem is the requirements Slot item not showing

    set .ShowSlot,1;	// Show item slots? (2: all equipment / 1: if slots > 0 / 0: never)

    change to 1 or 2 not effect in script

    maybe someone can help me

    thx to advance

     

    slot.jpg.6343e561e39c15fbc86f6e7d02758b9a.jpg

     

     

    SOLVED

    i'm use OLD version script THX ALL

  8. 12 hours ago, worn said:

    Hey guys, I would like to know if there is a way to make all monsters drop a certain item with drop percentage, without putting it in drop one by one in mob_db I would also like to know if you can only put it on certain example maps lhz_dun03 all monsters from lhz drop this item and other maps do not

    try edit in : db/mob_item_ratio.txt

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.