Jump to content

iFox

Members
  • Posts

    55
  • Joined

  • Last visited

Posts posted by iFox

  1. On 4/4/2022 at 2:38 AM, cook1e said:

    Here is an example.

    db/item_db.yml
     

    # This file is a part of rAthena.
    #   Copyright(C) 2021 rAthena Development Team
    #   https://rathena.org - https://github.com/rathena
    #
    # This program is free software: you can redistribute it and/or modify
    # it under the terms of the GNU General Public License as published by
    # the Free Software Foundation, either version 3 of the License, or
    # (at your option) any later version.
    #
    # This program is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    # GNU General Public License for more details.
    #
    # You should have received a copy of the GNU General Public License
    # along with this program. If not, see <http://www.gnu.org/licenses/>.
    #
    ###########################################################################
    # Item Database
    ###########################################################################
    #
    # Item Settings
    #
    ###########################################################################
    # - Id                      Item ID.
    #   AegisName               Server name to reference the item in scripts and lookups, should use no spaces.
    #   Name                    Name in English for displaying as output.
    #   Type                    Item type. (Default: Etc)
    #   SubType                 Weapon or Ammo type. (Default: 0)
    #   Buy                     Buying price. When not specified, becomes double the sell price. (Default: 0)
    #   Sell                    Selling price. When not specified, becomes half the buy price. (Default: 0)
    #   Weight                  Item weight. Each 10 is 1 weight. (Default: 0)
    #   Attack                  Weapon's attack. (Default: 0)
    #   MagicAttack             Weapon's magic attack. (Default: 0)
    #   Defense                 Armor's defense. (Default: 0)
    #   Range                   Weapon's attack range. (Default: 0)
    #   Slots                   Available slots in item. (Default: 0)
    #   Jobs                    Jobs that can equip the item. (Map default is 'All: true')
    #   Classes                 Upper class types that can equip the item. (Map default is 'All: true')
    #   Gender                  Gender that can equip the item. (Default: Both)
    #   Locations               Equipment's placement. (Default: None)
    #   WeaponLevel             Weapon level. (Default: 0)
    #   EquipLevelMin           Minimum required level to equip. (Default: 0)
    #   EquipLevelMax           Maximum level that can equip. (Default: 0)
    #   Refineable              If the item can be refined. (Default: false)
    #   View                    View sprite of an item. (Default: 0)
    #   AliasName               Another item's AegisName that will be sent to the client instead of this item's AegisName. (Default: null)
    #   Flags:                  Item flags. (Default: null)
    #     BuyingStore           If the item is available for Buyingstores. (Default: false)
    #     DeadBranch            If the item is a Dead Branch. (Default: false)
    #     Container             If the item is part of a container. (Default: false)
    #     UniqueId              If the item is a unique stack. (Default: false)
    #     BindOnEquip           If the item is bound to the character upon equipping. (Default: false)
    #     DropAnnounce          If the item has a special announcement to self on drop. (Default: false)
    #     NoConsume             If the item is consumed on use. (Default: false)
    #     DropEffect            If the item has a special effect on the ground when dropped by a monster. (Default: None)
    #   Delay:                  Item use delay. (Default: null)
    #     Duration              Duration of delay in seconds.
    #     Status                Status Change used to track delay. (Default: None)
    #   Stack:                  Item stack amount. (Default: null)
    #     Amount                Maximum amount that can be stacked.
    #     Inventory             If the stack is applied to player's inventory. (Default: true)
    #     Cart                  If the stack is applied to the player's cart. (Default: false)
    #     Storage               If the stack is applied to the player's storage. (Default: false)
    #     GuildStorage          If the stack is applied to the player's guild storage. (Default: false)
    #   NoUse:                  Conditions when the item is unusable. (Default: null)
    #     Override              Group level to override these conditions.
    #     Sitting               If the item can not be used while sitting. (Default: false)
    #   Trade:                  Trade restrictions. (Default: null)
    #     Override              Group level to override these conditions.
    #     NoDrop                If the item can not be dropped. (Default: false)
    #     NoTrade               If the item can not be traded. (Default: false)
    #     TradePartner          If the item can not be traded to the player's partner. (Default: false)
    #     NoSell                If the item can not be sold. (Default: false)
    #     NoCart                If the item can not be put in a cart. (Default: false)
    #     NoStorage             If the item can not be put in a storage. (Default: false)
    #     NoGuildStorage        If the item can not be put in a guild storage. (Default: false)
    #     NoMail                If the item can not be put in a mail. (Default: false)
    #     NoAuction             If the item can not be put in an auction. (Default: false)
    #   Script                  Script to execute when the item is used/equipped. (Default: null)
    #   EquipScript             Script to execute when the item is equipped. (Default: null)
    #   UnEquipScript           Script to execute when the item is unequipped or when a rental item expires. (Default: null)
    ###########################################################################
    
    Header:
      Type: ITEM_DB
      Version: 1
    
    Footer:
      Imports:
      - Path: db/pre-re/item_db.yml
        Mode: Prerenewal
      - Path: db/re/item_db.yml
        Mode: Prerenewal
      - Path: db/re/item_db.yml
        Mode: Renewal
      - Path: db/import/item_db.yml

     

    good day sir. Is this also applicable on mob_db.yml and so on? To make it become pre renewal setup?

  2. On 4/9/2023 at 1:24 AM, ryzenthird said:

    This is kinda complicated since you only want to affect the drop rate of certain player.. what comes to my mind is kick the player from server if out of main town if he reaches the time limit set by the script add a checker OnPCLoginEvent: // if in town do not kick then if not in any town kick if reach time limit i think u could do it like this ?

     

    i think like it would go like this only for checker ^_^


     

    i like the idea sir. Thats great! So atleast they can still go roam around the town. But cant go or attack monster on field or dungeon.

  3. 7 hours ago, KazumaSatou said:

    The red box you're saying?
    That's only on the item icon. You can check it on your grf.

    inventory2.png.a18138eca0c4c6f26919a0ad26e95f43.pnginventory.png.90228c1903f468532df0c2bdc68bff14.png

    ive wondering is this on diff,client ver or im missing something on my grf? Mine no box line. Thanks ❤️

  4. barter1.png.4bbec8eecb6103754b2b41864e16d37f.pngimage.png.b9a8c640bdb2216b4e778e06fd0392d7.png.5c1d0588b4678fc08a8d0469f5a2549a.png

    hi guys good day. i hope you are all feeling well. Can you please help me with this one? how come the other server have this kind of barter npc with box on each item? and mine is none?  Thank you so much.

  5. Good day Mam/Sir
    im kindly asking for youre guide how to modify the simple script on the server?
     iwanted to count the player inside the room by showing or talking npc above there head. please help. Thank you so much.

    heres the simple code:


    prontera,167,177,4    script    PvP-Warper    10298,{
    cutin "se_star03",2;
    set .@room1$,"guild_vs3"; //Insert map name into quotation marks & adjust to your desire
    set .@room2$,"pvp_y_1-2"; //Insert map name into quotation marks & adjust to your desire
    set .@room3$,"pvp_n_7-3"; //Insert map name into quotation marks & adjust to your desire
    set .@name$,"[Luke]"; //NPC Dialogue name
    switch(select("Trans Class Only:For All Class")){
    case 2:
    warp .@room1$,0,0;
            announce ""+strcharinfo(0)+" entered the PVP Room for All Class",0,0x33FF00;
    end;
    case 1:
    if(Class >= 4000 && Class <= 4022){ //Allows any Trans Class
    warp .@room2$,0,0;
            announce ""+strcharinfo(0)+" entered the PVP Room Bloody Mode",0,0xFF0066;

    end;
    }
    cutin "", 255;
    close;
    //case 3:
    if(Class >= 4054 || Class <= 4087){ 
    warp .@room3$,0,0;
    end;
    }
    close;
    }
    OnInit:
        while(1) {
            showscript "PVP MASTER", getnpcid(0);
            sleep 1000;
        }
        end;
    }
    pvp_y_1-2    mapflag    nowarpto
    pvp_y_1-2    mapflag    nowarp
    pvp_y_1-2    mapflag    noreturn
    pvp_y_1-2    mapflag    loadevent

  6. good day guys. im hoping someone have idea or can code/mod my request? i wanted to put limit on farming on the server where you will farm only for 3hrs or upto 5. and then right after that the account of any charcter will get tired or decrease the drop rate while farming. please help. looking for a good scripter also.  

×
×
  • Create New...