Jump to content

Keitenai

Members
  • Posts

    98
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Keitenai

  1. No need to make additional function for item check, plus you will also free a small portion of your server resources by removing the function script.
  2. or try to remove the "||" on your function: function script D_huntermark { return (countitem(47007) > 0); } and keep everything else as it was
  3. are you using it for other script? if so then you can just change the: if (!callfunc("D_huntermark")) { in to this: if(!countitem(47007)){
  4. Try this: if(!countitem(47007)){
  5. post the full script. perhaps a revision is needed
  6. prontera,155,175,2 script 3rd Job Check 754,{ @eac = eaclass(); if(@eac&EAJL_THIRD){ @atcommand "@die"; dispbottom "3rd Job confirmed"; } end; }
  7. try check all your custom scripts and see if there's a duplicated function as @n0tttt suggests
  8. function script D_huntermark { return (countitem(1004) > 0 || countitem(1006) > 0); end; } add the "function" on your script
  9. sounds like an auction
  10. try closing the function script with "end;" function script D_huntermark { return (countitem(1004) > 0 || countitem(1006) > 0); end; }
  11. @Noctis Try this ( based on your script ) if (!callfunc("D_huntermark")) { mes "You need to have a"; mes "^4d4dff'Hunter License'^000000"; mes "to receive this mission."; close; } if (checkquest(70255) != -1) { if (checkquest(70255,HUNTING) != 2 ) { mes "[Leorio Veteran Hunter]"; mes "Are you done with those Ferus? Quit slacking?"; next; switch(select("Yes:No:I want to withdraw from this mission")) { case 1: mes "[Leorio Veteran Hunter]"; mes "Other Hunters would be honoured to receive such an assignment."; mes "Don't ever think of coming back until the task is done, got it?"; close; case 2: mes "[Leorio Veteran Hunter]"; mes "You STILL haven't suceed? Time is short, make it quick!"; close; case 3: mes "[Leorio Veteran Hunter]"; mes "Not everyone's up for a challenge. You need to train harder."; mes "Are you 100% sure you want to withdraw?"; next; switch(select("Yes:No")) { case 1: mes "[Leorio Veteran Hunter]"; mes "Until we meet again, Hunter."; erasequest 70255; close; case 2: mes "[Leorio Veteran Hunter]"; mes "That's the spirit! No quitters! Give 'em hell!"; close; } } } mes "[Leorio Veteran Hunter]"; mes "You proved yourself worthy and willing. Congratulations, you've been rewarded."; specialeffect2 EF_MAGICALATTHIT; specialeffect2 EF_POTION2; specialeffect2 EF_ANGEL2; getexp 18818,7527; erasequest 70255; close; } if ((BaseLevel > 141) && (BaseLevel < 150)) { mes "[Leorio Veteran Hunter]"; mes "Name's Leorio. Im a Veteran Hunter for the Rune Midgard Hunting Elite, we have plenty of tasks that need a hand, and will receive some loot in return."; mes "What do you say? Willing to work for us?"; next; switch(select("Sure:No")) { case 1: mes "Are you absolutely sure about this?"; next; switch(select("Of course:Just kidding")) { case 1: if(BaseLevel > 151){ mes "[Leorio Veteran Hunter]"; mes "Let the low ones get these leftovers, go talk to someone else within the Rune Midgard Hunting Elite."; close; } if(character_delay>gettimetick(2)){ mes "[Leorio Veteran Hunter]"; mes "You need to wait"; set .@h,((character_delay-gettimetick(2))/3600); set .@m,((character_delay-gettimetick(2))-(.@h*3600))/60; if( .@m > 0 ){ if( .@h > 0 ) mes "^4d4dff"+.@h+"^000000:^4d4dff"+.@m+"^000000 hour(s)"; else mes "^4d4dff"+.@m+"^000000 minutes"; } mes "to get new mission."; close; } mes "[Leorio Veteran Hunter]"; mes "Seems like you can be worthy. Let's see if you can handle my task. I doubt it, but we'll see."; setquest 70255; set character_delay,gettimetick(2)+86400; close; case 2: mes "[Leorio Veteran Hunter]"; mes "On second thought, I guess there's no harm in joining."; close; } case 2: mes "[Leorio Veteran Hunter]"; mes "We only want the best with us either way."; close; } } mes "[Leorio Veteran Hunter]"; mes "This is way ahead of your league, newbie. Go back to the safety of Prontera."; close; } I haven't tested but i think it will work
  12. Hello! Same with many rAthena users, I too have encountered the massive warnings upon compiling the latest git. So i took my time to google around and finally was able to find something that could solve this issue without using Centos7. Just follow the sequence below and you'll have your gcc updated to 4.9 in no time! First you need to login as root. yum install centos-release-scl yum install devtoolset-4-toolchain scl enable devtoolset-4 bash Then login to your non-root "user". scl enable devtoolset-4 bash After the 1st and 2nd step, you may now check your gcc version gcc --version g++ --version gfortran --version Recompile your rathena and you will find that the shadow warnings are all gone =) CHEERS! UPDATE: from devtoolset-3 to devtoolset-4
  13. @simplexjay2 i have uploaded a new diff to fix the compatibility with the latest rathena's revision. Update: Added feature which disconnects anyone who does inhumanly spamming. Fixed compatibility with rathena 8d8712f revision ( as of 05/26/2017 ) Implemented "Show skill delay" for the Mod configuration only ( for testing purposes ).
  14. Wow, sorry bout that. It probably got corrupted during uploading. i've reuploaded the diff.
  15. The default skill_cast_db can be bypassed by 3rd party speedhack programs (cheats) enabling them to do "0" aftercast delay. Plus i also include a separated skill delays for WoE setting which can be helpful to make use of a certain skill instead of disabling it.
  16. File Name: Keitenai_Delay_System File Submitter: keitenai File Submitted: 4 Dec 2016 File Category: Src Modification Content Author: keitenai Information: Speed hacking 3rd party programs to bypass skill delays are hard to eliminate specially if you don't have a game guard for you server. This modification makes it impossible for speed hacking programs to bypass the delay that has been set. How does it work? I've added a simple skill requirement to the skills before a player can re-cast certain skill. This requirement is 'time'. So to put it simple, skill will be hard locked after casting and will be unlocked once the delay is over. Features: Configurable hard skill delay. Separate configuration of hard skill delay for WoE settings MoD can be enable / disable. Supports current available skills ready for configuration. Disconnects anyone who does inhumanly spamming ( Sensitivity configuration included ). Implemented "Show skill delay" for the Mod configuration only ( for testing purposes ). WARNING: A player may be detected as spam flood if the said player is having lag spike issues while consistently using skill. //------------------------------------------------------------------ // Skill delay settings // Value is in milliseconds (1000 = 1 second) //------------------------------------------------------------------ // Note that this delay setting still depends on the 'skill_cast_db' // delay settings. This will not decrease the skill delay that has // been set in 'skill_cast_db' although this setting can increase // the delay if value is higher than 'skill_cast_db' delay //------------------------------------------------------------------ //================= // Swordman //================= SM_BASH: 210 SM_MAGNUM: 180 Installation: 1. Download the Diff file. 2. Simply apply the diff to your trunk, or apply it manually. 3. Recompile your server. 4. Configure your skill delays 5. ALL DONE! Compatible with: rAthena 97b5f3b ( as of JULY 31, 2022 ) Compatible with: rAthena 03da2f6 Compatible with: rAthena 8d8712f Download : keitenai_SpeedHack_Protection_V5.diff keitenai_SpeedHack_Protection_V4.diff keitenai_SpeedHack_Protection_V3.diff keitenai_SpeedHack_Protection_V2.diff Keitenai_Delay_System_V1.diff Edit: Fixed compatibility with rathena 97b5f3b revision ( as of 07/31/2022 ) Add new 4th job skills Fixed bug on melee skills
  17. Try this, I added GM access to start the event. FFA.txt
  18. File Name: RandomOptionDealer File Submitter: keitenai File Submitted: 1 Dec 2016 File Category: Utilities Content Author: keitenai Random item option Dealer NPC Script Information: This NPC script will be dealing 'random option enchantment' to players for a price of Zeny/Cashpoint Features: Configurable NPC dealing currency to 'Zeny' or 'Cashpoints'. Configurable dealing price. Configurable to allow overwriting the already existing option enchantment or not. Configurable fail chance rate. Configurable Minimum & Maximum option enchant effect Values. Configurable Maximum item Option slots. Version 1.1 Implemented optional Item requirement. WARNING: This random enchantment NPC have a chance of failing, and breaking the player's Chosen equipment along with its compounded cards. You can set the Fail chance rate from 0% to 100% NPC will warn the player about the Fail chance rate (%). The NPC will ask the player if he wants to take the risk and proceed with the random enchantment. Upon selecting the option to proceed, the player's item will get a "Random" option enchantment. Compatible with: rAthena ac2ba09 Download V1.1: RandomOptionDealer V1.1.txt Download V1: RandomOptionDealer.txt Hope you find this useful
  19. did you set your english grf in your data.ini as fist priority?
  20. File Name: itemoption File Submitter: keitenai File Submitted: 21 Nov 2016 File Category: Utilities Content Author: keitenai @ command itemoption Script Information: This script allows you to apply random option on a selected equipped item. The Option types can be found in const.txt : LINK!! The Value is the rate of the option type effect. eg: `10` = 10% bonus attack Index location is the Option Slot location. 0 = First item option slot 1 = Second item option slot 2 = Third item option slot 3 = Fourth item option slot 4 = Fifth item option slot NOTE that you will not see the Option type's description (Client Side) if the Option Slots are not filled by sequence (missed a slot). With this i added a security check that if you missed/jump an index slot, the script will automatically fix it for you. @ itemoption makes it easier to apply random option in your item quite easily. Compatible with : rAthena 633a642 Download : itemoption.txt Hope you find this useful itemoption.txt
  21. File Name: itemoptionFile Submitter: keitenaiFile Submitted: 17 Nov 2016File Category: UtilitiesContent Author: keitenai Simple Clan Manager NPC This script Let's a player join in one of 4 different Clans after obtaining certain amount of required item. The 4 clans are as follows: "Swordman Clan" "Arcwand Clan" "Golden Mace Clan" "Crossbow Clan" And leave if the player wants to leave. Compatible with : rAthena 633a642 Download : clanmanager.txt Hope you find this useful
  22. This is the answer to Everybody's confusion. Reference : https://github.com/zephyrus-cr/eamod
×
×
  • Create New...