Jump to content

mawjustin

Members
  • Posts

    121
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by mawjustin

  1. omg. thank you! I forgot its not on raw view.
  2. Hi Team, I would like to ask if its possible to have a copy of your latest accessoryid.lub for lua files inside .grf? The one I got is only up to 2203, I was wondering if somebody got a complete copy of this as it is painful to add these items manually. This is the renewal item that I'm trying to get, along with other items available on 2023 data.grf and rdata.grf Thank you.
  3. Hi Team, Is it possible to check if the equipped item in Left Hand is a Weapon or a Shield? I'm trying to separate the Enchantments for Weapon and Shield. If I will use EQI_HAND_L as a parameter Sinx can easily bypass this by wearing 2 weapons left and right. I want to add a scan if the selected equipment is a Shield type. Thank you.
  4. Hi Team, May I ask if this is possible? Scenario: I am killing/attacking a Poring. Poring drops a slotted knife, jellopy, apple, empty bottle, mucus, etc. based on chance. A script will then check if the item dropped is a weapon, armor, consumable, or an etc. After checking the item dropped, it will then check if the equipment (weapon, armor, etc) is a Level 1 to Level 4 equipment. After checking the equipment dropped, it can then check if the item is a dagger class, a spear class, or a rod class, etc. Basically what I want to do is to check if the item dropped by a monster is an equipment, if its an equipment, I then want to check what type of equipment it is (dagger, sword, rod, etc.), after that I want to check what level is the equipment (Level 1 to Level 4). Is this possible? I'm planning on doing this in script instead of manually checking the mob_db.yml. Thank you.
  5. Hi Team, I'm trying to make a custom Random Option using .yml file. I've checked everything, but I'm still getting this error: I have no idea why it says incorrect indentation when the line itself is just a replica of the previous lines used in pre-re and re .yml random option file. Attached is the data I'm trying to fix. Thank you. item_randomopt_group.yml
  6. sample in /npc/custom/barter.yml. # This file is a part of rAthena. # Copyright(C) 2022 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/>. # ########################################################################### # Barter Database ########################################################################### # # Barter Settings # ########################################################################### # - Name NPC name. # Map Map name. (Default: not on a map) # X Map x coordinate. (Default: 0) # Y Map y coordinate. (Default: 0) # Direction Direction the NPC is looking. (Default: North) # Sprite Sprite name of the NPC. (Default: FakeNpc) # Items: List of sold items. # - Index Index of the item inside the shop. (0-...) # Maximum index depends on client. # Item Aegis name of the item. # Stock Amount of item in stock. 0 means unlimited. (Default: 0) # Zeny Cost of them item in Zeny. (Default: 0) # RequiredItems: List of required items (Optional) # - Index Index of the required item. (0-4) # Item Aegis name of required item. # Amount Amount of required item. (Default: 1) # Refine Refine level of required item. (Default: 0) ########################################################################### Header: Type: BARTER_DB Version: 1 Body: - Name: barter_refine_11 Map: prontera X: 150 Y: 150 Direction: South Sprite: 1_etc_01 Items: - Index: 0 Item: Oridecon RequiredItems: - Index: 0 Item: Oridecon_Stone Amount: 5 - Index: 1 Item: Elunium RequiredItems: - Index: 0 Item: Elunium_Stone Amount: 5 - Index: 2 Item: Bradium Zeny: 50000 RequiredItems: - Index: 0 Item: Oridecon Amount: 3 - Index: 3 Item: Carnium Zeny: 50000 RequiredItems: - Index: 0 Item: Elunium Amount: 3 - Index: 4 Item: Carnium Zeny: 50000 RequiredItems: - Index: 0 Item: Purified_Bradium
  7. Hi Team, How do we remove a specific random option only? I understand that we can just reroll it instead of removing, but I'm curious if we can only remove it instead of reroll. Example: I want to remove Max HP +1 only. This script does not work. .enval = 0; .randomizedfinal = 0; setrandomoption(.part,.enindex,.randomizedfinal,.enval,0); Is there a way to do this via script? or if not can we do this via db? Thank you.
  8. How do we implement this? I'm confused as to how to use this based on the instructions given on script commands. https://raw.githubusercontent.com/rathena/rathena/master/doc/script_commands.txt
  9. Hi Team, How do we merge arrays and use them as a single array? Example: setarray .attr1[0],4700,4701,4702,4703,4704,4705,4706,4707,4708,4709; setarray .attr2[0],4730,4731,4732,4733,4734,4735,4736,4737,4738,4739; setarray .attr3[0],4740,4741,4742,4743,4744,4745,4746,4747,4748,4749; setarray .attr4[0],4710,4711,4712,4713,4714,4715,4716,4717,4718,4719; setarray .attr5[0],4720,4721,4722,4723,4724,4725,4726,4727,4728,4729; setarray .attr6[0],4750,4751,4752,4753,4754,4755,4756,4757,4758,4759; I want to use them as setarray .combinedArray[0], attr1, attr2, attr3, attr4, attr5, attr6; This way I can only modify a specific attribute if necessary without affecting the entire list of array, as the other .attr arrays are used in other functions. Thank you.
  10. @sader1992 can we remove the group on this one and enable all equipment to have random option?
  11. Hi Team, May I ask if this is possible? I have a sample here that requires user to select which choice a player will choose. Instead of selecting from switch expression, can we randomize this without changing the switch statement? The script will randomly choose from Case 1 to Case 4 without changing the switch statement. Is this possible? switch(expression) { case x: // code block break; case y: // code block break; default: // code block } Thank you.
  12. Hi Team, Is there a way to check for monster level for every monster kill? I would like to give a reward to player based on monster level. ie. If player kills a Kobold (Level 31), they will have a chance to get a reward for level 30-40 monsters. Thank you.
  13. Hi, I tried adding Random Option support for this, but it seems its only limited to cards, is there a way to fix this?
  14. Hi Team, May I ask on how we can detect if the random option is already assigned in either 1st to 5th random option slot? I'm trying to avoid duplicate random option on mob drops. I've used this post of mine as reference, random option is working. My problem now is I cannot stop the duplication of random option, the random option always ends up being duplicated on either 1st to 5th slot. I'm using this line. What I would like to achieve is that if the code detects the same random option id on the 1st to 5th slot, it will either break it, or reroll and add another random option. Random Option must be unique and does not have a duplicate on all slots. Thank you.
  15. After more than a year I managed to make this work. Thank you everyone. @Tokei @-to-
  16. Hi Team, May I ask for clarification about getitembound3 ? specifically Bound_Account? why is it that I cannot store it in my storage? Is there a way to force this into storage?
  17. I see, I guess I that's the only option for now.
  18. Hi Team, I tried checking on rathena document, but I am unable to find the following, I'm not sure if I am looking in the wrong files or data: 1. How to check Random Option Element either from 1-5? 2. How to check Armor Element? 3. How to check Card slotted element? Thank you in advance.
  19. For IP, time_created, and redeem_time problems use this. /* DROP TABLE IF EXISTS `reward_codes`; DROP TABLE IF EXISTS `reward_logs`; CREATE TABLE IF NOT EXISTS `reward_codes` ( `promo` VARCHAR(26) NOT NULL DEFAULT '', `nameid` INT(11) UNSIGNED NOT NULL DEFAULT '0', `item_name` VARCHAR(50) NOT NULL DEFAULT '', `amount` SMALLINT(6) UNSIGNED NOT NULL DEFAULT '0', `time_created` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, `limit` INT(10) UNSIGNED NOT NULL DEFAULT '0', `pool` INT(10) UNSIGNED NOT NULL DEFAULT '0', PRIMARY KEY (`promo`) ) ENGINE = MYISAM; CREATE TABLE IF NOT EXISTS `reward_logs` ( `account_id` int(11) unsigned NOT NULL default '0', `last_ip` BINARY( 15 ) NOT NULL, `code` VARCHAR( 26 ) NOT NULL, `redeem_time` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, `claim` INT( 10 ) NOT NULL, PRIMARY KEY (`code`) ) ENGINE = MYISAM; */
×
×
  • Create New...