Jump to content

ran0120

Members
  • Posts

    25
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

ran0120's Achievements

Poporing

Poporing (4/15)

  • Collaborator
  • One Month Later
  • Dedicated
  • Week One Done
  • First Post

Recent Badges

0

Reputation

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