Jump to content

Keitenai

Members
  • Posts

    85
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Keitenai

  1. 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
  2. @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 ).
  3. Wow, sorry bout that. It probably got corrupted during uploading. i've reuploaded the diff.
  4. 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.
  5. 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 03da2f6 ( as of Nov 23, 2017 ) Compatible with: rAthena 8d8712f Download : keitenai_SpeedHack_Protection_V3.diff keitenai_SpeedHack_Protection_V2.diff Keitenai_Delay_System_V1.diff Github Link: https://github.com/keitenai/keitenai/blob/master/keitenai_SpeedHack_Protection.diff Edit: Fixed compatibility with rathena 03da2f6 revision ( as of 11/23/2017 ) Add new summoner skills
  6. Try this, I added GM access to start the event. FFA.txt
  7. 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
  8. did you set your english grf in your data.ini as fist priority?
  9. 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
  10. 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
  11. This is the answer to Everybody's confusion. Reference : https://github.com/zephyrus-cr/eamod
  12. Humonculus is causing server to crash with internal guard
  13. i'm getting this compilation error after updating my rathena 1>..\src\map\pc.c(503): warning C4133: 'function' : incompatible types - from 'bool (__cdecl *)(int,unsigned int,int,intptr_t)' to 'TimerFunc' 1>..\src\map\pc.c(536): warning C4133: 'function' : incompatible types - from 'bool (__cdecl *)(int,unsigned int,int,intptr_t)' to 'TimerFunc' 1>..\src\map\pc.c(559): warning C4133: 'function' : incompatible types - from 'bool (__cdecl *)(int,unsigned int,int,intptr_t)' to 'TimerFunc' 1>..\src\map\pc.c(562): warning C4133: 'function' : incompatible types - from 'bool (__cdecl *)(int,unsigned int,int,intptr_t)' to 'TimerFunc' 1> pc_groups.c 1>..\src\map\pc.c(12051): warning C4133: 'function' : incompatible types - from 'bool (__cdecl *)(int,unsigned int,int,intptr_t)' to 'TimerFunc'
  14. OMG!! this explains literally "EVERYTHING" !!! thank you so much from the bottom of my heart!
  15. Card for costume / shadow armor is not supported. unless you hard code it in src
  16. perhaps you should ask your client provider to fix it. coz as i can see from your screen shots, it's provided by ro-vps hosting.
  17. Hello, This is my first script release as a newbie in developing a server. Hopefully you guys find this script useful somehow. 3E Job Changer NPC Supports 3rd jobs, and Expanded Classes (Rebellion, Oboro, Kagerou) version 1.0 = 3E_jobchanger.txt
  18. im having same issue when compiling, as stated by markherras2003
  19. Thank you guys, euphy's woe controller is awesome. Though it would be more amazing if it has a countdown timer. is there any possible way to add a countdown ticker on Euphy's?
  20. payon,34,56,4 duplicate(Ammunition) Ammunition#pay01 880,1766:2,1755:2......
  21. Hello, I'd like to change my current WoE schedule but Toasty's site were i can edit the script is not available anymore. Can anyone help me on changing the sched? here's my working WoE controller: //====================================================================================================== //= Toasty's WoE Controller (formerly WoE Info Banner) //===== By: ============================================================================================ //= ToastOfDoom (aka: iHeart) //===== Current Version: =============================================================================== //= 1.22 //===== Description: =================================================================================== //= A WoE Controller function which controls castle based WoE by utilising npc events. //= Includes a NPC that provides information on the next WoE session //= //= This script is kinda @reloadscript/@loadnpc safe, provided that someone clicks the NPCs afterwards //= to start the OnInit function. That said..it is recommended that you don't use @reloadscript/@loadnpc //= but reset your server. //===== Changelog: ===================================================================================== //= 1.22 //= - Fixed an issue regarding the controller getting confused when using @reloadscript/loadnpc while //= WoE was still active. (thanks to annie for pointing out) //= 1.21 //= - Fixed a misspelt variable name (thanks to rahuldev345 for pointing out) //= 1.20 //= - Project renamed to 'Toasty's WoE Controller'. The script originally was only used to display WoE //= times then I 1st wrote it 3yrs ago and I feel it's purpose is more to control WoE these days. So //= name change to better reflect purpose. //= - Added support for novice WoE. Region teleport goes to the Novice Warper NPC (default in prontera) //= Change position in .region_maps, .region_x, .region_y if needed. //= - Region warp now only displays regions that have castles used at least once. (eg. If you don't //= configure any castles for Payon region, payon will not show up) //= - Optimised WoE Active/Inactive map notifier. Old method used too many loops for something that //= can happen alot. //= - Adjusted menus to be abit more friendly. 'next's will always display before 'menu's //= - Fixed bug with WoE autostarting when only configured for 2 sessions in one day //= - Added some nifty code that prevents catastrophic failure of the script if you try to run a trunk //= version on a stable server (ie. if you do, it will show an error message, but script will still //= run perfectly fine - check out WoEToggler function for those that want to peek at it =P) //= 1.11 //= - Fixed timer glitch when players only configured sessions for one day of the week //= - Adjusted timer to show remaining time more accurately //= - Modified .num_woes calculation due to bug regarding 0's being counted as unset values in arrays //= 1.10 //= - Expanded script to allow castle based configuration //= - Moved away from portal based woe control. Now using donpcevents to OnAgitEnd/2 events. Provided //= castles are linked to the main agit commands in this manner, they will be controllable using this //= script. //= - Added an onLoadMap WoE available notifier. Can be disabled by setting .notify_woe to 0 in the //= CONFIG section. //= - Did some funky color coding. //= - Added Coordinate based warping per region (see .region_x & .region_y in the CONSTANTS section) //= 1.02 //= - Added delwaitingroom to banner npc to prevent memory leaks from bug #2325 //= - To reduce spamming of waitingroom packets to players banner NPC only now updates when the banner //= text changes. Thus min time between updates is now 1sec regardless of setting. //= - Added setting for rate which banner time is updated (.banner_refresh_rate) in the CONFIG section. //= - Added agitstart2/end2 to provide WoE2 support (Hope it works //= 1.01 //= - Hardcoded in refresh value for banner npc instead of getting it from config from WoEInfoBase. Had //= issues starting the script after @reloadscript/@loadnpc //====================================================================================================== - script WoEInfoBase -1,{ OnStartMenu: if(.init == 0) donpcevent strnpcinfo(3)+"::OnInit"; OnStartMenu2: mes "The " + ((.state)?"^00DD00current":"^DD0000next") + "^000000 WoE session is: "; mes " "; mes "Day: ^0000DD" + .daysOfWeek$[.woe_day[.woe_index]]; mes "^000000Start time: ^00DD00" + .woe_0_str$[.woe_index]; mes "^000000End time: ^DD0000" + .woe_1_str$[.woe_index]; mes "^000000Region:"; set [email protected]_strs$, ".woe_state_str_" + .woe_state[.woe_index] + "$"; for(set [email protected], 0; [email protected] < .num_regions; set [email protected], [email protected] + 1) { set [email protected]$, getd([email protected]_strs$ + "[" + [email protected] + "]"); if([email protected]$ != "") mes "^000000- ^0000DD" + [email protected]$; } next; if(getgmlevel() >= .gm_access) select( "Warp to Castle Grounds", "View Castle Owners", "View all WoE times", ((!.state)?"Start next WoE":"End current WoE"), ((.state)?"":"Skip next WoE session") ); else select( "Warp to Castle Grounds", "View Castle Owners", "View all WoE times"); switch(@menu) { case 1: //warp mes "Which region would you like to warp to?"; next; select(.region_warp$[.woe_state[.woe_index]]); if(@menu < 1 || @menu > .num_regions) close; close2; warp .region_maps$[@menu - 1], .region_x[@menu - 1], .region_y[@menu - 1]; end; case 2: //view set [email protected]_state_array$, ".woe_state_" + .woe_state[.woe_index]; for(set [email protected], 0; [email protected] < .num_regions; set [email protected], [email protected] + 1) { set [email protected], 0; set [email protected]$, ".castles_" + .regions$[[email protected]] + "$"; set [email protected]_check, getd([email protected]_state_array$ + "[" + [email protected] + "]"); while([email protected]_check && [email protected] < .num_castles[[email protected]]) { if([email protected]_check & (1 << [email protected])) { set [email protected]$, getd([email protected]$+"["[email protected]+"]"); if (GetCastleData([email protected]$,1)) { dispbottom "The [" + GetCastleName([email protected]$) + "] castle of the [" + .region_names$[[email protected]] + "] region is currently held by the [" + GetGuildName(GetCastleData([email protected]$,1)) + "] guild."; } else { dispbottom "The [" + GetCastleName([email protected]$) + "] castle of the [" + .region_names$[[email protected]] + "] region is currently unoccupied."; } set [email protected]_check, [email protected]_check - (1 << [email protected]); } set [email protected], [email protected] + 1; } } break; case 3: //woe times for(set [email protected], 0; [email protected] < .num_woes; set [email protected], [email protected] + 1) { dispbottom "- " + .daysOfWeek$[.woe_day[[email protected]]] + " " + .woe_0_str$[[email protected]] + "-" + .woe_1_str$[[email protected]]; set [email protected]_state_str_array$, ".woe_state_str_" + .woe_state[[email protected]] + "$"; for(set [email protected], 0; [email protected] < .num_regions; set [email protected], [email protected] + 1) { set [email protected]$, getd([email protected]_state_str_array$ + "[" + [email protected] + "]"); if([email protected]$ != "") dispbottom " " + [email protected]$; } } break; case 4: //start next; if(getgmlevel() <.gm_access) close; mes "^FF0000Are you sure you want to " + ((!.state)?"start the next WoE session?":"end the current WoE session?"); next; if(select("Yes:No") == 2) break; set .remainTime, 0; //might not work sometimes...you have like a 500ms window out of 505ms i guess.. sleep2 .timer_refresh_rate; //wait abit so the menu doesn't screw up (how long it takes for the timer to update) break; case 5: //skip next; if(getgmlevel() <.gm_access || .state) close; mes "^FF0000Are you sure you want to skip the next WoE session^000000"; next; if(select("Yes:No") == 2) break; if(.state) { //you really can't do this with woe active next; mes "Sorry, in the time you took making your decision, WoE started"; mes "Please either manually end it first or wait"; break; } set .woe_index, (.woe_index + 1) % .num_woes; donpcevent strnpcinfo(3)+"::OnUpdateCountTick"; sleep2 .timer_refresh_rate; break; default: close; } goto OnStartMenu2; OnInit: //-----------------------------------------------------------------------------------------// //CONFIG START // //-----------------------------------------------------------------------------------------// set .gm_access, 60; //WoE timings needs to be ordered ascendingly unless you want to do weird //stuff like skip a region every other week or so... //Also times can't overlap. Uses second of day(gettimetick(1)) for timing // eg 1am -> 3600, 2:30pm -> 52200, midnight -> 86400 (anything past that doesn't work) //Note: woe_0 is start times, woe_1 is end times. Ignore how it's called but // don't change it either since it's dynamically used // Also..woe has to end on the same day it starts (it's easier that way..) setarray .woe_day[0], 0, 5, 6; setarray .woe_0[0], 57600,57600,57600; setarray .woe_1[0], 61200,61200,61200; setarray .woe_state[0], 0, 0, 0; //WoE state settings. Every WoE session can be defined as a particular state of castle configuration. //.woe_state_#[%] = $ // # - state number // % - region number // $ - binary representation of castles that are active for that region in that state ( // (ie. 0 is no castles, 5 is castle 0 and 2 (2^0 + 2^2 = 5)) setarray .woe_state_0[0],31,0,0,0,0,0,0; //Setting for if script handles WoE controller function. Disable agit_controller.txt if you are using this. //For if you want to use something else to handle your woe stuff but only this script //to show info (1 - on, 0 - off...duh) set .active_woe, 1; //WoE inactive on map notifier. Basically notifies player if the castle they are entering is //WoE active or not //set .notify_woe, 1; //-----------------------------------------------------------------------------------------// //CONFIG END // //-----------------------------------------------------------------------------------------// //-----------------------------------------------------------------------------------------// //CONSTANTS START - Don't touch this unless you know what you are doing // //-----------------------------------------------------------------------------------------// //castle maps by region setarray .castles_prtg$[0],"prtg_cas01","prtg_cas02","prtg_cas03","prtg_cas04","prtg_cas05"; setarray .castles_payg$[0],"payg_cas01","payg_cas02","payg_cas03","payg_cas04","payg_cas05"; setarray .castles_gefg$[0],"gefg_cas01","gefg_cas02","gefg_cas03","gefg_cas04","gefg_cas05"; setarray .castles_aldeg$[0],"aldeg_cas01","aldeg_cas02","aldeg_cas03","aldeg_cas04","aldeg_cas05"; setarray .castles_arug$[0],"arug_cas01","arug_cas02","arug_cas03","arug_cas04","arug_cas05"; setarray .castles_schg$[0],"schg_cas01","schg_cas02","schg_cas03","schg_cas04","schg_cas05"; setarray .castles_novi$[0],"nguild_alde","nguild_gef","nguild_pay","nguild_prt"; //woe kill functions for each castle setarray .woe_kill_prtg$[0],"Agit#prtg_cas01::OnAgitEnd","Agit#prtg_cas02::OnAgitEnd","Agit#prtg_cas03::OnAgitEnd","Agit#prtg_cas04::OnAgitEnd","Agit#prtg_cas05::OnAgitEnd"; setarray .woe_kill_payg$[0],"Agit#payg_cas01::OnAgitEnd","Agit#payg_cas02::OnAgitEnd","Agit#payg_cas03::OnAgitEnd","Agit#payg_cas04::OnAgitEnd","Agit#payg_cas05::OnAgitEnd"; setarray .woe_kill_gefg$[0],"Agit#gefg_cas01::OnAgitEnd","Agit#gefg_cas02::OnAgitEnd","Agit#gefg_cas03::OnAgitEnd","Agit#gefg_cas04::OnAgitEnd","Agit#gefg_cas05::OnAgitEnd"; setarray .woe_kill_aldeg$[0],"Agit#aldeg_cas01::OnAgitEnd","Agit#aldeg_cas02::OnAgitEnd","Agit#aldeg_cas03::OnAgitEnd","Agit#aldeg_cas04::OnAgitEnd","Agit#aldeg_cas05::OnAgitEnd"; setarray .woe_kill_arug$[0],"Manager#aru01_02::OnAgitEnd","Manager#aru02_02::OnAgitEnd","Manager#aru03_02::OnAgitEnd","Manager#aru04_02::OnAgitEnd","Manager#aru05_02::OnAgitEnd"; setarray .woe_kill_schg$[0],"Manager#sch01_02::OnAgitEnd","Manager#sch02_02::OnAgitEnd","Manager#sch03_02::OnAgitEnd","Manager#sch04_02::OnAgitEnd","Manager#sch05_02::OnAgitEnd"; setarray .woe_kill_novi$[0],"Agit_N01::OnAgitEnd","Agit_N02::OnAgitEnd","Agit_N03::OnAgitEnd","Agit_N04::OnAgitEnd"; //region prefixs setarray .regions$[0],"prtg","payg","gefg","aldeg","arug","schg","novi"; //region info setarray .region_names$[0],"Prontera", "Payon", "Geffen", "Aldebaran", "Arunafeltz", "Schwarzwald", "Novice Castles"; setarray .region_maps$[0],"prt_gld", "pay_gld", "gef_fild13", "alde_gld", "aru_gld", "sch_gld", "prontera"; //coords to warp player to region (0 is random) setarray .region_x[0],0, 0, 0, 0, 0, 0, 148; setarray .region_y[0],0, 0, 0, 0, 0, 0, 163; setarray .waitMsg$[0], "WoE Starts: ", "WoE Ends: "; setarray .startMsg$[0], "WoE is Starting", "WoE is Ending"; set .ticks_in_day, 86400; //mmm...magic numbers setarray .daysOfWeek$[0], "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"; set .timer_refresh_rate, 500; //how many ms per timer refresh...keep less than 1000 (in milliseconds) set .change_state_sleep, 3000; //how long to show "WoE is Start|End-ing" msg for in ms. (in milliseconds) //Make sure WoE sessions are longer than this xD set .banner_refresh_rate, 10; //how many seconds per banner refresh...keep 1 or above (in seconds) //-----------------------------------------------------------------------------------------// //CONSTANTS END // //-----------------------------------------------------------------------------------------// set .num_regions, getarraysize(.regions$); set .num_woes, getarraysize(.woe_1); //force WoE to end if active callfunc "WoEToggler", 0; for(set [email protected], 0; [email protected] < .num_regions; set [email protected], [email protected] + 1) { //count num castles per region set .num_castles[[email protected]], getarraysize(getd(".castles_" + .regions$[[email protected]] + "$")); } //convert timestamps to readable format for(set [email protected], 0; [email protected] < .num_woes; set [email protected], [email protected] + 1) { set [email protected], .woe_0[[email protected]] / 3600; set [email protected], .woe_0[[email protected]] % 3600 / 60; set [email protected]$, (([email protected] % 12)[email protected]%12:12) + ":" + (([email protected] < 10)?"0"[email protected]:[email protected]) + " " + (([email protected] > 12)?"PM":"AM"); set .woe_0_str$[[email protected]], [email protected]$; set [email protected], .woe_1[[email protected]] / 3600; set [email protected], .woe_1[[email protected]] % 3600 / 60; set [email protected]$, (([email protected] % 12)[email protected]%12:12) + ":" + (([email protected] < 10)?"0"[email protected]:[email protected]) + " " + (([email protected] > 12)?"PM":"AM"); set .woe_1_str$[[email protected]], [email protected]$; } //calc number of woe states and consolidate states to create list of castles used set .num_states, 0; while(getarraysize(getd(".woe_state_" + (.num_states)))) { set [email protected]$, ".woe_state_" + .num_states; set [email protected], 0; while([email protected] < getarraysize(getd([email protected]$))) { set .castleUsage[[email protected]], .castleUsage[[email protected]] | getd([email protected]$ + "[" + [email protected] + "]"); set [email protected], [email protected] + 1; } set .num_states, .num_states + 1; } for(set [email protected], 0; [email protected] < .num_states; set [email protected], [email protected] + 1) { set [email protected]_state_array$, ".woe_state_" + [email protected]; for(set [email protected], 0; [email protected] < .num_regions; set [email protected], [email protected] + 1) { if(.castleUsage[[email protected]] > 0) { set [email protected]$, ".castles_" + .regions$[[email protected]] + "$"; set [email protected]_check, getd([email protected]_state_array$ + "[" + [email protected] + "]"); if([email protected]_check == 0) { //region not in this state //region warp menu string set .region_warp$[[email protected]], .region_warp$[[email protected]] + "^DD0000" + .region_names$[[email protected]] + "^000000:"; continue; } else { if([email protected]_check >= ((1 << .num_castles[[email protected]]) - 1)) { //includes all castles...just list as region. setd(".woe_state_str_" + [email protected] + "$[" + [email protected] + "]", .region_names$[[email protected]]); //region warp menu string set .region_warp$[[email protected]], .region_warp$[[email protected]] + "^00DD00" + .region_names$[[email protected]] + "^000000:"; } else { set [email protected], 0; set [email protected]$, ""; while([email protected] < .num_castles[[email protected]]) { if([email protected]e_check & (1 << [email protected])) { set [email protected]$, [email protected]$ + GetCastleName(getd([email protected]$+"["[email protected]+"]")); set [email protected]_check, [email protected]_check - (1 << [email protected]); if([email protected]_check) { if([email protected]$ != "") set [email protected]$, [email protected]$ + ", "; } else break; } set [email protected], [email protected] + 1; } setd(".woe_state_str_" + [email protected] + "$[" + [email protected] + "]", .region_names$[[email protected]] + " ("+ [email protected]$ + ")"); //region warp menu string set .region_warp$[[email protected]], .region_warp$[[email protected]] + "^00DD00" + .region_names$[[email protected]] + " ("+ [email protected]$ + ")^000000:"; } } } else { set .region_warp$[[email protected]], .region_warp$[[email protected]] + ":"; } } } donpcevent strnpcinfo(3)+"::OnFindCurIndex"; donpcevent strnpcinfo(3)+"::OnUpdateCountTick"; if(.active_woe) { if(.notify_woe) { //set mapflag for all castle maps for(set [email protected], 0; [email protected] < .num_regions; set [email protected], [email protected] + 1) { set [email protected]_array$, ".castles_" + .regions$[[email protected]] + "$"; for(set [email protected], 0; [email protected] < .num_castles[[email protected]]; set [email protected], [email protected] + 1) { setmapflag getd([email protected]_array$ + "[" + [email protected] + "]"), mf_loadevent; setd(".loadmap_region_" + getd([email protected]_array$ + "[" + [email protected] + "]"), [email protected] + 1); setd(".loadmap_castleIndex_" + getd([email protected]_array$ + "[" + [email protected] + "]"), [email protected]); } } } //activates WoE if needed donpcevent strnpcinfo(3)+"::OnDoWoE"; } //flag that init occured set .init, 1; OnWoETimer: //timer stuff while (1) { set .remainTime, .count_tick - gettimetick(2); set .bannerTimer, .remainTime - (.remainTime % .banner_refresh_rate) + .banner_refresh_rate; set .min, .bannerTimer / 60; set .sec, .bannerTimer - .min * 60; set .hr, .min / 60; set .min, .min - .hr * 60; set .roomMsg$, .waitMsg$[.state] + .hr + ":" + ((.min < 10 )?"0":"") + .min + ":" + ((.sec < 10 )?"0":"") + .sec; sleep .timer_refresh_rate; if(.remainTime <= 0) { if(.active_woe) { donpcevent strnpcinfo(3)+"::OnDoWoE"; } set .roomMsg$, .startMsg$[.state]; set .woe_index, (.woe_index + .state) % .num_woes; //go to next index if needed set .state, (.state + 1) % 2; //flip state donpcevent strnpcinfo(3)+"::OnUpdateCountTick"; sleep .change_state_sleep; } } end; //obligatory end =D OnUpdateCountTick: set .count_tick, getd(".woe_" + .state + "[" + .woe_index + "]"); set .count_tick, gettimetick(2) + .count_tick - gettimetick(1) + (.woe_day[.woe_index] - gettime(4) + 7) % 7 * .ticks_in_day; if(gettimetick(2) > .count_tick) set .count_tick, .count_tick + 7 * .ticks_in_day; end; OnFindCurIndex: set [email protected]_day, gettime(4); set [email protected]_tick, gettimetick(1); set .woe_index, 0; set .state, 0; for(set [email protected], 0; [email protected] < .num_woes; set [email protected], [email protected] + 1) { if(.woe_day[[email protected]] < [email protected]_day) continue; if(.woe_day[[email protected]] == [email protected]_day) { if(.woe_0[[email protected]] >= [email protected]_tick) { set .woe_index, [email protected]; set .state, 0; break; } if(.woe_1[[email protected]] >= [email protected]_tick) { set .woe_index, [email protected]; set .state, 1; break; } } if(.woe_day[[email protected]] > [email protected]_day) { set .woe_index, [email protected]; set .state, 0; break; } } end; //On map notifier //Comment out OnPCLoadMapEvent label if .notify_woe is disabled to prevent unnecessary triggering OnPCLoadMapEvent: if(.state && .notify_woe) { getmapxy([email protected]$, [email protected], [email protected], 0); set [email protected], getd(".loadmap_region_" + [email protected]$) - 1; if([email protected] >= 0) { set [email protected], getd(".loadmap_castleIndex_" + [email protected]$); if(getd(".woe_state_" + .woe_state[.woe_index] + "[" + [email protected] + "]") & 1 << [email protected]) dispbottom "The [" + GetCastleName([email protected]$) + "] castle is available for conquering during this WoE session"; else dispbottom "The [" + GetCastleName([email protected]$) + "] castle is NOT available for conquering during this WoE session"; } } end; //------------------------------------------------------------------------------ // WoE Controller Stuff Here //------------------------------------------------------------------------------ OnDoWoE: if((.state == 0 && .init) || (.state == 1 && !agitcheck())) { //starting callfunc "WoEToggler", 1; //kills WoE in all castles that shouldn't have WoE set [email protected]_state_array$, ".woe_state_" + .woe_state[.woe_index]; for(set [email protected], 0; [email protected] < .num_regions; set [email protected], [email protected] + 1) { set [email protected]$, ".castles_" + .regions$[[email protected]] + "$"; set [email protected]_check, getd([email protected]_state_array$ + "[" + [email protected] + "]"); for(set [email protected], 0; [email protected] < .num_castles[[email protected]]; set [email protected], [email protected] + 1) { set [email protected]$, getd([email protected]$+"["[email protected]+"]"); if(([email protected]_check & (1 << [email protected])) == 0) { donpcevent getd(".woe_kill_" + .regions$[[email protected]] + "$[" + [email protected] + "]"); } } } announce "The War Of Emperium has begun!",bc_all; donpcevent strnpcinfo(3)+"::OnDisplayOwners"; } else { //ending if(agitcheck()) { callfunc "WoEToggler", 0; announce "The War Of Emperium is over!",bc_all; donpcevent strnpcinfo(3)+"::OnDisplayOwners"; } } end; OnDisplayOwners: //displays based on current region set [email protected]_state_array$, ".woe_state_" + .woe_state[.woe_index]; for(set [email protected], 0; [email protected] < .num_regions; set [email protected], [email protected] + 1) { set [email protected], 0; set [email protected]_check, getd([email protected]_state_array$ + "[" + [email protected] + "]"); set [email protected]$, ".castles_" + .regions$[[email protected]] + "$"; while([email protected]_check && [email protected] < .num_castles[[email protected]]) { if([email protected]_check & (1 << [email protected])) { set [email protected]$, getd([email protected]$+"["[email protected]+"]"); if (GetCastleData([email protected]$,1)) { announce "The [" + GetCastleName([email protected]$) + "] castle of the [" + .region_names$[[email protected]] + "] region is currently held by the [" + GetGuildName(GetCastleData([email protected]$,1)) + "] guild.",bc_all; } else { announce "The [" + GetCastleName([email protected]$) + "] castle of the [" + .region_names$[[email protected]] + "] region is currently unoccupied.",bc_all; } set [email protected]_check, [email protected]_check - (1 << [email protected]); } set [email protected], [email protected] + 1; } } end; } prontera,155,196,4 script WoE Info 837,{ if(getwaitingroomstate(3, strnpcinfo(3)) == -1) donpcevent strnpcinfo(3)+"::OnInit"; doevent "WoEInfoBase::OnStartMenu"; end; OnInit: while (1) { //only updates if msg is different set .banner$, getwaitingroomstate(4, strnpcinfo(3)); if(getvariableofnpc(.roomMsg$, "WoEInfoBase") != .banner$) { delwaitingroom; waitingroom getvariableofnpc(.roomMsg$, "WoEInfoBase"), 0; } sleep 500; } end; } //duplicates!! izlude,128,120,6 duplicate(WoE Info) WoE Info#2winfo 837 geffen,125,71,6 duplicate(WoE Info) WoE Info#3winfo 837 rachel,130,121,6 duplicate(WoE Info) WoE Info#4winfo 837 //--------------------------------------------------------------------------------------------------------------------- function script WoEToggler { //<state> = 0|1 if(getarg(0)) { AgitStart; } else { AgitEnd; } return; } I'd like to change my WoE schedule to: Skoegul - Tuesday - 1pm-2pm Gundol - Tuesday - 1pm-2pm Skoegul - Wednesday - 1pm-2pm Gundol - Wednesday - 1pm-2pm Fadhgrid - Thursday - 1pm-2pm Swanhild - Thursday - 1pm-2pm Fadhgrid - Friday - 1pm-2pm Swanhild - Friday - 1pm-2pm Kriemhild - Saturday - 1pm-2pm Kriemhild - Sunday - 1pm-2pm Hope someone could help me out thanks.
  22. I've tested different client versions already, but... everytime i warp in, or login, and started walking, the view of Robe sprite disappears from other player's View point. I hope someone could help out on this mystery thanks
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.