Dastgir
Script Developers-
Content Count
3805 -
Joined
-
Last visited
-
Days Won
250
Content Type
Profiles
Forums
Downloads
Staff Applications
Calendar
Everything posted by Dastgir
-
do you have HPMHooking enabled via plugins.conf?
-
1) .buff_price = atoi(""+ ( .include_buffs?"0":"5000" ) +""); Why not have it something like .buff_price = ((.include_buffs)?0:5000); 2) switch( select("Yes, heal me.", ""+ ( .include_buffs?"::":"I want buffs" ) +"", "No thank you") ) { TO switch( select("Yes, heal me.", ( .include_buffs?"":"I want buffs" ), "No thank you") ) { you don't require those ""+, you can directly start with those conditions. Else everything seems fine, keep updating the guide.
- 40 replies
-
- guides
- scripting support
-
(and 5 more)
Tagged with:
-
About continuity of custom NPCs on Hercules Repository.
Dastgir replied to jaBote's topic in Development Discussion
I agree and disagree. If we remove it cool and all but we'll get 2x or 3x as many "give me healer script that make buff" or "make job changer that take jellopy to change" ^ Agree Keep some useful ones and remove all others. -
cAn you explain how it fail, how its not working? (With screenshots will help to answer fast)
-
If the map doesnt have any warps, it wont add it, and will result in fail to navigate (no results)
-
Even the paid gameguard out currently is bypassable.
-
Just 3 things for now to say 1) Encourage constants to be used (making it easy to read, like sprite 936, i would have no idea what it is, but replacing 936 by 4_F_ARUNA_POP would give me idea about what sprite that is and so same applies to monster and item constants to be used (for future tuts)) 2) make if condition more readable if you want to use it. ex, instead of if( Zeny < 1000 && @menu == 1 || Zeny < 5000 && @menu == 2 ) { Have if( (Zeny < 1000 && @menu == 1) || (Zeny < 5000 && @menu == 2) ) { This make clear about what condition is. 3) Direction constants DIR_NORTH 0 DIR_NORTHWEST 1 DIR_WEST 2 DIR_SOUTHWEST 3 DIR_SOUTH 4 DIR_SOUTHEAST 5 DIR_EAST 6 DIR_NORTHEAST 7
- 40 replies
-
- guides
- scripting support
-
(and 5 more)
Tagged with:
-
low-mid rates are good in terms of stability and enjoying gameplay(<< Low Rate for this) + server should have some content updates every now and then to not make it boring.
-
we don't have #define PRERE Instead on renewal.h find //#define DISABLE_RENEWAL and uncomment it #define DISABLE_RENEWAL and recompile, That will disable renewal system, or while compiling ./configure --disable-renewalmake all will do the same.
-
http://herc.ws/board/topic/7526-guide-adding-new-status-icons/ then in item_db, something like sc_start SC_MYCUSTOMEFFECT,Time(in ms),0; Above would show only icon for time(in ms), if you want sc to provide some bonuses, customize it from src.
-
Hello Hercules Community, Here's a Guide to Add a New Custom Status Icons(the one displayed on the right) What you Need? Knowledge of Editing and Compiling Server(and ofcourse custom icons) 1) Server Side Edits: open src/map/status.h Find SC_MAX Add Before SC_MYCUSTOMBUTTON, Find SI_MAX, Add Before SI_MYCUSTOMBUTTON = ID_OF_BUTTON, (ID of Button can be any, but I suggest to have them > 2000, so not to avoid any updates with kRO(which is at 900) now) P.S: Remember that ID_OF_BUTTON, we gonna need them later. src/map/status.c Find status->IconChangeTable[SC_DECORATION_OF_MUSIC] = SI_DECORATION_OF_MUSIC; Add Below status->IconChangeTable[SC_MYCUSTOMBUTTON] = SI_MYCUSTOMBUTTON; Recompile 2) ClientSide Edits Get a CleanCopy of statusicon folder (https://github.com/ROClientSide/Translation/tree/master/Data/luafiles514/lua%20files/stateicon) Open efstids.lub Find: __newindex = function()error("unknown state") Before it add, EFST_MYCUSTOMBUTTON = ID_OF_BUTTON, P.S: ID_OF_BUTTON should match the one on source(status.h) Open stateiconinfo.lub Find StateIconList[EFST_IDs.EFST_JUMPINGCLAN] = { Add Before StateIconList[EFST_IDs.EFST_MYCUSTOMBUTTON] = { haveTimeLimit = 1, posTimeLimitStr = 2, descript = { { "My Custom Button Heading", COLOR_TITLE_BUFF }, {"%s", COLOR_TIME}, --do not edit this, this shows time remaining { "Description 1" }, { "Description 2" }, { "Description 3" } }} Open stateiconimginfo.lua Find [PRIORITY_GOLD] = { OR [PRIORITY_RED] = { OR [PRIORITY_BLUE] = { OR [PRIORITY_GREEN] = { OR [PRIORITY_WHITE] = { (Depending on what background your Custom Button is) Add below [EFST_IDs.EFST_MYCUSTOMBUTTON] = "MYCUSTOMBUTTONFILE.TGA", P.S: Your Button File must be in .TGA form only. .tga file must go to data/texture/effect/ Folder And Its DONE!!! NOTE: Replace MYCUSTOMBUTTON with your own Icon/Effect Name
- 17 replies
-
If using newer clients, I suggest have them on first grf loaded.
-
Alternately , one can just vanish that last quote, ex:mes "Last Time Online: "+ .@login$; i got this lol i didn't know where to put "("Hmmm,, I was giving exampleJust replace that line by "Last Time Online: "+ .@login$;
-
The solution indeed was right,Adelays is a paid solution to block skill spams and all which have pre-compiled files for 32 and 64bit systems.
-
To avoid this kind of thing, one should use escape_sql ScriptCommand
-
Alternately , one can just vanish that last quote, ex:mes "Last Time Online: "+ .@login$;
-
This script is not woe controller script and is not dependent on any woe controller, I.e you can use any woe controller with this script.
-
Below OnStartArena: npc/guild2/agit_main_se.txt sorry for extremely late reply, what is trouble? Its only 1st guild claim.(found any bugs ?) How can i disable my staff guilds from beeing displayed in the ranking? :| I will update it to add exceptions
-
As Yommy said, your packets.h is outdated, Update your repo and packets.h and then try to run 2014 clients and it will work well. (imo, use 2012-02-05 or below)
-
kRO Introduces Pet Evolution System, Roulette Game,RoDex
Dastgir replied to Dastgir's topic in Ragnarok News
After searching through kRO board and GRF, some of the extra things I found that is released by kRO: Achievement System Title System New Mapflags(To Allow/Disallow Creation/Disband/Changing Postions/Leaving Guilds) Mileage System Pet Evo(Some More INFO : hehe: Item Evolution needs some items and should not have any accessories weared and should be in friendly mode) -
Disconnect a Player: OnClock1800:set .@name$,"PlayerName";atcommand "@kick "+.@name$;end; Disconnect All Players(Including GM's): OnClock1800:atcommand "@kickall";end; else explain a little bit more, so we can know exactly what you are trying to do.
-
Agree with you and kisuka.
-
Not really, if you have custom packet keys, I guess 99% botter will be vanished, because they are noob enough to have knowledge to find and edit to those packet keys, and having encryption means no wpe and rpe, but you will be subjected to cheats like macro and like that stuff.
-
What's the packet and what can i do with it?
Dastgir replied to tmav94's question in General Server Support
add packets in src/map/packets.h but , imo, use 2014-02-05(the last stable client) and hercules emulator have it on packets.h P.S: Don't forget to edit "#define PACKETVER" in src/common/mmo.h to your client-date -
By Updating your kRO