Jump to content

ran0120

Members
  • Posts

    25
  • Joined

  • Last visited

Everything posted by ran0120

  1. I'm trying to create an item for a guild leader in which the effect will be: +20 MATK per online guild member Here's my current script: set .@gid, getcharid(2); if ( strcharinfo(0) == getguildmaster(getcharid(2)) ) { getguildmember .@gid; bonus bMatk,$@guildmembercount*20; } if ( getcharid(2) == 0 ) { end; } end; It does work though the value still adds even if the guild members are offline. Is there away to add an online check on this script? Edit: NVM. Made it work. Just added a login check in the item script and a seperate Log In/Log Out Event NPC to equip/unequip the item to refresh it's effect when a guild member logs in or out.
  2. I did try the script using other element and it did work (set it up to -100% Fire reduction and fire spells immunity has been reached.). Just wondering how it works in spells but not with physical attacks.
  3. It seems to only apply to the four major elements. How about for the other elements? Specifically poison?
  4. Wouldn't this script be it? I mean if the poison damage is 100 and you put bonus2 bSubEle,Ele_Poison,100; the damage reduction becomes 100% thus making the poison damage 0?
  5. I'm tring to create an item that will make users immunte to poison status and attack. The immunity to the status immunity works but for the immunity to status attack bit, it seems that instead of immunity, I'm getting reduction instead. My current script is: When I tried it with an Assassin with Enchant Poison or A Sniper with Rusty Arrow, the damage the damage got reduced from 230 to 170. Shouldn't it mke the attack miss or make the damage 1? What's wrong with the script?
  6. asdasd asdasd I have an item and my intended effect is for variable to be added everytime a player attacks someone in a specific area when their HP is 10% or lower. My rough script is: autobonus "{ if ( readparam(Hp) <= readparam(MaxHP)/10 ) { set haki,haki+1; } }",1000,1000,0,"{}"; this part of the script works and I'm getting a variable everytime I hit someone when my HP falls below to 10%. How can I modify this so that it only works on specific maps? I tried it like: 1. autobonus "{ if ( readparam(Hp) <= readparam(MaxHP)/10 && strcharinfo(3) == "guild_vs1" ) { set haki,haki+1; } }",1000,1000,0,"{}"; = this one has an error in the map server. parse_callfunc: not enough arguements, expected ','. The 2. if ( strcharinfo(3) == "guild_vs1" ) { autobonus "{ if ( readparam(Hp) <= readparam(MaxHP)/10 && strcharinfo(3) == "guild_vs1" ) { set haki,haki+1; } }",1000,1000,0,"{}" end; } end; and it did work on the specified map but when I leave the map, the autobonus part of the script still works, any fix on this?
  7. What I meant was when a character uses @size to change their size, the size of the player changes from medium to small/large. If for example, the player uses @size 2 to change in size and their sprite becomes bigger, I want their overall size to be changed from medium to large as well so that if another player has a Minorous Card equipped the big player will receive 15% more damage as they are now considered as a Large enemy. Like how a mounted character changes from medium to large if the settings are enabled in the conf folder.
  8. Is it possible to change the player's size when they use @size from medium to large/small for them to be affected by equip/card modifiers like Minorous Card? Thank you.
  9. Exactly what I'm looking for. Thank for this.
  10. I'm trying to setup a quest wherein the player plants a seed and after 10 days, the seed will grow into an item. my current script works something like this. The problem is that when I tried it on the script. Instead of adding the variable for the day of the year, it's just added next to it. (Current day of year: 200. If I put +10 to add on the variable instead of it being 210, it becomes 20010 instead.) How can I fix this? yggdrasil01,194,95,0 script Cultivated Soil HIDDEN_NPC,{ if ( plant_for_me == 1 ) goto plant_count; if ( countitem(512) > 0 ) goto plant_here; plant_here: delitem 512,1; mes "Seed planted. Let's wait 10 days before harvesting."; set plant_day1,gettime(DT_DAYOFYEAR); set plant_for_me,1; close; plant_count: if ( plant_day1 > plant_day+10 ) { getitem 607,1; end; } mes "This is still not ripe for the picking."; next; mes "Let's wait until it's ready for harvest."; close; }
  11. Attached is the error message. I just don't know what's causing the issue as well. Really weird as I'm following the exact format as shown in the item_bonus.txt from the docs folder. What's funny is that the same error appears on a duplicate item without the script from the original item. *EDIT: Stupid me. The problem is not with the script but for the one above it. bonus2 bSkillCooldown,"DC_SCREAM,-2000; without the closing ". RESOLVED. thank you.
  12. Just want to ask why I'm getting this error in this script: The error on the map server says unexpected new line @ string. Anyone knows how to fix this?
  13. I'm doing an item evolution script wherein when a player stays on the map for a specific time while a certain item is equipped, said item will evolve to another item. The script works as advertises but it still runs even if the player leaves the map. I would like for the timer to stop if the player leaves the designated map. How can I modify the script to do just that? - script Fire Wings Evolution -1,{ OnPCLoadMapEvent: while ( isequipped(30058) && strcharinfo(3) == "thor_03" ) goto start_fire_time; start_fire_time: set fire_wings_evo,1; attachnpctimer; initnpctimer; end; OnTimer10000: if ( fire_wings_evo > 0 ) { unequip EQI_HEAD_LOW; getitem 30035,1; sleep2 100; delitem 30058,1; equip 30035; stopnpctimer; detachnpctimer; end; } end; OnPCDieEvent: if ( fire_wings_evo > 0 ) { set fire_wings_evo,0; end; } } thor_v03 mapflag loadevent
  14. I added the charmader line in the database but the evolution still doesn't work. pet_db.yml - Mob: CHARMANDER TameItem: Unripe_Apple EggItem: Pokeball_Charmander FoodItem: Live_Coal Fullness: 3 IntimacyFed: 50 CaptureRate: 2000 Script: > .@i = getpetinfo(PETINFO_INTIMATE); if (.@i >= PET_INTIMATE_LOYAL) { bonus bLuk,3; bonus bCritical,1; } else if (.@i >= PET_INTIMATE_CORDIAL) { bonus bLuk,2; bonus bCritical,1; } Evolution: - Target: CHARMELEON ItemRequirements: - Item: Leaf_Of_Yggdrasil Amount: 10 - Item: Unripe_Apple Amount: 3 - Mob: CHARMELEON EggItem: Pokeball_Charmeleon FoodItem: Cold_Magma Fullness: 2 HungryDelay: 120 IntimacyFed: 15 CaptureRate: 0 SpecialPerformance: false AllowAutoFeed: true Script: > .@i = getpetinfo(PETINFO_INTIMATE); if (.@i >= PET_INTIMATE_LOYAL) { bonus bLuk,3; bonus bCritical,3; } else if (.@i >= PET_INTIMATE_CORDIAL) { bonus bLuk,3; bonus bCritical,2; } else if (.@i >= PET_INTIMATE_NEUTRAL) { bonus bLuk,3; bonus bCritical,1; } else { bonus bLuk,2; bonus bCritical,1; } Evolution: - Target: CHARIZARD ItemRequirements: - Item: Leaf_Of_Yggdrasil Amount: 10 - Item: Unripe_Apple Amount: 3 - Mob: CHARIZARD EggItem: Pokeball_Charizard Fullness: 1 HungryDelay: 120 IntimacyFed: 15 CaptureRate: 0 SpecialPerformance: false AllowAutoFeed: true Script: > .@i = getpetinfo(PETINFO_INTIMATE); if (.@i >= PET_INTIMATE_LOYAL) { bonus bMaxHPrate,2; bonus bHealPower,8; } else if (.@i >= PET_INTIMATE_CORDIAL) { bonus bMaxHPrate,2; bonus bHealPower,6; } else if (.@i >= PET_INTIMATE_NEUTRAL) { bonus bMaxHPrate,1; bonus bHealPower,4; } else { bonus bMaxHPrate,1; bonus bHealPower,2; } petinfo - petnametable: [jobtbl.JT_CHARMANDER] = "CHARMANDER", [jobtbl.JT_CHARMELEON] = "CHARMELEON", [jobtbl.JT_CHARIZARD] = "CHARIZARD", petinfo - petstringtable: [jobtbl.JT_CHARMANDER] = "Charmander", [jobtbl.JT_CHARMELEON] = "Charmeleon", [jobtbl.JT_CHARIZARD] = "Charizard", petinfo - PetEggItemID_PetJobID: [75000] = jobtbl.JT_CHARMANDER, [75001] = jobtbl.JT_CHARMELEON, [75002] = jobtbl.JT_CHARIZARD, petinfo - PetFoodTable: [jobtbl.JT_CHARMANDER] = 7098, [jobtbl.JT_CHARMELEON] = 7096, [jobtbl.JT_CHARIZARD] = 7097, petevolutioncln_true: InsertEvolutionRecipeLGU(75000, 75001, 610, 10) InsertEvolutionRecipeLGU(75000, 75001, 619, 3) InsertPetAutoFeeding(75001) InsertEvolutionRecipeLGU(75001, 75002, 610, 10) InsertEvolutionRecipeLGU(75001, 75002, 619, 3) InsertPetAutoFeeding(75002) However, the evolution option still not showing. How can I fix this?
  15. Yeah. I forgot to include the script that I was using and you're correct I used the OnNPCKillEvent. I tested your array script and it's working fine with normal boss monsters as well as quest and instance mvps. Thank you.
  16. When a boss monster is killed in my server, a TCG Card (7227) is given to the player. However, boss monsters that is not spawn normally (quest mvps, instances, etc.) isn't giving out the item upon them dying. I feel like starting with the endless tower would be beneficial as it has around 20 boss monsters. I was able to resolve this in the past as the script for the endless tower is separated individually by floors. But checking on the script now, it's different as multiple variables are just used and there's no way to differentiate which floor is which. Is there a mod I can do or insert in the existing script for the TCG Card (7227) to be automatically given to the player when killing a monster inside the endless tower?
  17. Is there a way to remove the ASPD penalty on weapons on shield thru script? I'm trying to make an item that would do just that. As the base ASPD for the jobs are constant what sort of formula could be used if there's any?
  18. I did just that and it fixed the palettes for most of the classes. However, the 3rd jobs still hasn't been fixed. Most of the dyes colors also their bodies. I opened the grf and it doesn't have the 3rd jobs sprites on them.
  19. So I have the Kamishi 700 pals and I'm using 04-06-2022 client and all the palettes are looking weird. Is the client not compatible? Is there a diff that I need to apply?
  20. I'm trying to create an item in which the effect would be like: 20% chance to activate the effect of Randgris Card for 10 seconds when attacking. The script that I came up is this: autobonus "{ bonus bUnbreakableWeapon; bonus2 bAddClass,Class_All,10; bonus3 bAutoSpell,"SA_DISPELL",1,50; }",200,10000,0,"{ specialeffect2 368; }"; I get an error every time I load it. However, when I remove the bonus3 bAutoSpell,"SA_DISPELL",1,50; it works fine. So does that mean it won't work because it's a chance within a chance? 20% chance (from the autobonus) to active a 5% chance (from Randgris). Is there any other way to make this effect work?
  21. I'm trying to implement a race change system in which when a player kills a certain number of say, angel monsters, their race will be changed to demon. I already have the bRace diff implemented and I'm just setting up the script but I can't seem to get the error. I have done this script in the past but I can't remember now as it has been multiple years since then. Here's the rough script: I'm setting up the condition that when the player has the quest variable and they kill an angel monster, the script will run. Any help on this?
  22. Fixed. Found the error: Typo. Please close
  23. I tried adding all the MvPs that I can find in the mob_summon file and I get an error when it comes to Despair God Morroc. I can summon him fine with an @command but when I added his aegis name on the file, it gives me an error. I tried summoning all the monsters on my BB list using their Aegis name but I really don't understand why I can't summon his. His aegis name in the db is MM_MOROCC_ADT it shows up in the db when I search it but with the BB modification and summoning him in game with the aegis name, he does not come out. Any idea on this issue?
  24. I have TownInfo.lub and TownInfo_EN.lub in my System folder. Should I remove the TownInfo.lub and rename the EN file to replace it? Edit: I tried doing this but still the same thing Edit #2: Nvm, I fixed it. Changed the mapInfo_true in my system file with the mapInfo_true_EN.
  25. I'm trying to create a server again after so many years and there's a lot of things that has been changed and I'm not aware of. I was able to login to my server but once I did, the name of the map that shows when you enter a map and when I type /where it shows this korean//ascii-ish text. Any one know how to fix this? Thanks.
×
×
  • Create New...