Jump to content

mawjustin

Members
  • Posts

    121
  • Joined

  • Last visited

  • Days Won

    1

mawjustin last won the day on August 26 2023

mawjustin had the most liked content!

About mawjustin

  • Birthday May 24

Profile Information

Contact Methods

Recent Profile Visitors

2825 profile views

mawjustin's Achievements

Santa Poring

Santa Poring (3/15)

  • Reacting Well
  • Dedicated
  • Conversation Starter
  • First Post
  • Collaborator

Recent Badges

6

Reputation

  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.
×
×
  • Create New...