-
Posts
2044 -
Joined
-
Last visited
-
Days Won
51
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Everything posted by AnnieRuru
-
and where is crazyarashi script ?
-
https://herc.ws/board/topic/7218-sample-questlog-achievement-script/?tab=comments#comment-43794. https://github.com/AnnieRuru/Release/blob/master/scripts/Quest %26 Shops/quest log/daily_quest_log_1.1.txt#L175 rathena doesn't have *getcalendartime script command to do this though https://github.com/HerculesWS/Hercules/pull/1593#issuecomment-284083798
-
Additional Feature for my own Broadcaster NPC
AnnieRuru replied to Gidz Cross's question in Scripting Support
yes originally I was also thinking about storing it on SQL table or using a $PERMANENT_GLOBAL_ARRAY so can GM can track which announcement are still being queue or deny the same player from using auto-broadcast over and over, but somehow I went for the easier route and do things that is easier to be made ... probably because he didn't pay me to do it so I made it easy hahaha initnpctimer and sleep doesn't persist after server reboots, I think the only way is use OnMinute00: OnMinute03: ... OnMinute57: ... ? -
interesting script, but low readability if ( .@cond_ofthemonth ) { .@count += .reward_month; login_reward = login_reward + pow( 2,30 ); .@montly_message$ = " and " + .reward_month +" coin for being online a month"; } if I understood this correctly, this means... if I being online everyday for 2 months on 1st month, no problem but on 2nd month, login += pow(2,30) again and will cause integer overflow I think just use a simple daily login script like Poring King provided earlier ... if its bug, anyone can fix it easily, not like this one using confusing bitmask where it doesn't actually saving in bits ...
-
@JinYuichi https://github.com/AnnieRuru/Release/blob/master/scripts/Utility/stylist/stylist_r2.0.txt
-
I tested this grf only has 35 cloth color no additional body style on 3rd job (arch bishop) or doram(Job_Summoner) few days ago I saw a topic on script release that has additional job sprite like 4th job and jro sprite ... I downloaded that before it was taken down, but I couldn't get it to work either retry again ..... I just unpack this grf using grf editor .... first thing I noticed is ... yes changing the bodystyle needs to reset cloth color to 0 2nd thing is ... bodystyle number 2 only has 1 cloth color which value at 0, anything above it will client crash ok after talked with Zell, he answered a lot 1. is human race and doram race separate hairstyle and haircolor ? yes 2. is the additional bodystyle based on basejob ? eg: rune knight, rune knight T and baby rune knight share same bodystyle number ... no knight and lord knight is separate rune knight, rune knight T and baby rune knight DOES share the same ... .... gravity logic 3. if having addition bodystyle, means also need to add palettes too right ? because if it doesn't, means my script needs each bodystyle has custom cloth range yes however you should fix that yourself by adding additional palette to your custom bodystyle number
-
@JinYuichi, send me your data.grf over discord, my PM box is full on this forum
-
Error on adding a condition statement at OnAgitBreak
AnnieRuru replied to Poring King's question in Scripting Support
HAHAHAHAHAHA !!! ok you must have learn from my scripts, but strnpcinfo(NPC_NAME_HIDDEN)is HERCULES only constant in rathena, because NPC_NAME_HIDDEN isn't declare as constant number 2, it becomes 0, means strnpcinfo(0) = the full name of the npc //== AGIT Manager ========================================== prtg_cas01,197,197,0 duplicate(Gld_Agit_Manager) Agit#prtg_cas01 FAKE_NPC change strnpcinfo(NPC_NAME_HIDDEN) into strnpcinfo(2), because you are using rathena, not hercules ok some more pointing query_sql "SELECT `castle_name` FROM `agit_defend_stats`",.@castle_ranks$; if( !getarraysize(.@castle_ranks$) ){ just do query_sql "SELECT COUNT(1) FROM `agit_defend_stats`, .@count; if (!.@count) if I remember correctly, our query_sql doesn't have a row limit on how much it can fetch ... so if this having a large table, executing this line can cause server to lag SELECT `defend_time`,`guild_id`,`woe_ended` FROM `agit_defend_stats` WHERE `castle_name`='" + .@castleName$ + "' ORDER BY `defend_time` DESC LIMIT 10 index the `castle_name` and `defend_time` column -
Adding automatically Database Table
AnnieRuru replied to Poring King's question in Scripting Support
well yes its actually better to create table with phpmyadmin why use OnInit and access query_sql everytime ? query_sql is a slow operation (a simple line is fine but if having multiple lines you'll start notice the lag) anyway, I don't recommend using OnInit, but here's the answer - script jsdfksfj 1_F_MARIA,{ OnInit: .@query$ = "CREATE TABLE IF NOT EXISTS `blah` (" + "`id` INT AUTO_INCREMENT PRIMARY KEY," + "`points` INT," + "`breaktimestamp` DATETIME," + "KEY(`points`)" + ") ENGINE = InnoDB;"; query_sql .@query$; } by the way I didn't see your table is index properly anything that has SELECT <something> FROM `table` WHERE `column` ... this `column` has to be index -
Would you still help people that did not appreciate your effort ?
AnnieRuru replied to Poring King's topic in rAthena General
I don't really come in to serve anyone, but only to serve my knowledge every time I wrote a script free on the forum, I get a feedback tells my script has bugs, then I learn my mistakes I didn't really come for likes or compliments, though -
Disable mini boss and boss card in Card Trader
AnnieRuru replied to DrakeSky's question in Scripting Support
it supposed to look like this here is the documentation from script_commands.txt https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L1101-L1118 if your client don't support it then change F_MesItemInfo into getitemname as usual -
oh =/ I linked to version 1.3, I have version 1.6 in my repo https://github.com/AnnieRuru/Release/blob/master/scripts/Utility/stylist/stylist_r1.6.txt let's do 1.7 .... https://github.com/AnnieRuru/Release/blob/master/scripts/Utility/stylist/stylist_r1.7.txt done
-
I wish n0tttt still around =/
-
disable @autopot by checking pc_block PCBLOCK_SKILL
AnnieRuru replied to iraciz's question in Scripting Support
@Mael oh that, players can enable the command and bring it into the map ... OnStart: if (!getstatus(SC_BERSERK) && !getstatus(SC_SATURDAYNIGHTFEVER) && !getstatus(SC_GRAVITATION) && !getstatus(SC_TRICKDEAD) && !getstatus(SC_HIDING) && !getstatus(SC__SHADOWFORM) && !getstatus(SC__INVISIBILITY) && !getstatus(SC__MANHOLE) && !getstatus(SC_KAGEHUMI) && !getstatus(SC_HEAT_BARREL_AFTER) && !getstatus(SC_STONE) && !getstatus(SC_FREEZE) && !getstatus(SC_STUN) && !getstatus(SC_SLEEP) && !getmapflag(strcharinfo(3), MF_BATTLEGROUND) && !getmapflag(strcharinfo(3), MF_PVP) && !getmapflag(strcharinfo(3), MF_GVG)) { its more like replacing with this condition, so it doesn't trigger with mapflags -
Disable mini boss and boss card in Card Trader
AnnieRuru replied to DrakeSky's question in Scripting Support
open another topic, you always seems to asking questions on another person's topic and mess up the conversation same goes to this -> https://rathena.org/board/topic/126009-deadbloody-branch-timer/?do=findComment&comment=386976 I'll ignore all your post on this forum from now on if you don't open a new topic, I'm backseat moderating atm I don't have moderation power on rathena forum, https://github.com/AnnieRuru/Release/blob/master/scripts/Utility/choose3card_1randomcard/choose3card_1randomcard_0.2r.txt -
if you mean my old script from 2013, yeah I have learned things since then in fact anything I made before 2015 should be scrap I've seen your script collection release topic, you should be able to handle this kind of modification .... this is script support section after all ... no spoon feed and ? which part you don't understand ? just add the ON DUPLICATE KEY UPDATE statement inside OnAgitBreak label of woe script
-
I don't recommend alter a column from official table honestly just create a new table CREATE TABLE `guild_woe_points` ( `guild_id` INT PRIMARY KEY, `guild_name` VARCHAR(23), `woe_points` INT, KEY(`woe_points`) ) ENGINE = InnoDB; then just query_sql "INSERT INTO `guild_woe_points` VALUES ("+ getcharid(2) +", '"+ escape_sql(strcharinfo(2)) +"', 1) ON DUPLICATE KEY UPDATE `woe_points` = `woe_points` +1;
-
dynamic shop can show in dispbottom, but it isn't real time for example, 2 players access to the same shop at the same time, if 1 player buy out all available stocks, the other player will still see it as having stock available only if that other player trying to buy something then npc will tell ya out of stock means RO actually doesn't have a system for item shop with limited stock, we just emulate it with custom variables marketshop can accept item ID, not zeny don't understand what this sentence means
-
Disable mini boss and boss card in Card Trader
AnnieRuru replied to DrakeSky's question in Scripting Support
wow !! who actually write out this formula, marvelous !! me wanna give credits to whoever can write this formula out anyways, all you have to do is just add an SQL query for it https://github.com/AnnieRuru/Release/blob/master/scripts/Utility/choose3card_1randomcard/choose3card_1randomcard_0.1r.txt EDIT: found out -> https://rathena.org/board/topic/124490-3-cards-of-your-choice-1-random-card/?do=findComment&comment=381238 -
https://herc.ws/board/topic/11717-ragnarok-online-access-card/
-
use *unitwalk script command or just use WARPNPC (45) I see the initial *initnpctimer script command, where is the loop for it ? specialeffect 317; unfortunately this line won't work that's why `@auraset` exist to persist the specialeffect of certain effects, because specialeffect only cast once and won't be seen by players outside `area_size` battle_config warp "guild_vs5", 0,0; why not just change this line ...? I guess the PCBLOCK_MOVE trigger before every round start https://github.com/AnnieRuru/Release/blob/master/scripts/Games %26 Events/Run and Hide/runandhide_0.3r.txt
-
event script .... oh yeah its been a while ... rathena doesn't have OnUntouch: label ... but I think its still do-able with setpcblock after trigger OnTouch label https://github.com/AnnieRuru/Release/blob/master/scripts/Games %26 Events/Run and Hide/runandhide_0.2r.txt .... as usual there are always some people trying to ruin my fun =/ also that event script that @Poring King link to ... doesn't really fit the description in this topic, this one wants a several npc for players to hide, and I think only 1 npc for each player ? because he said mean once a player stand next to an npc, the npc will also goes into hiding that event script only has 1 set of npc doing specialeffect and ALL players are force to stand in that location
-
- script command_controller -1,{ OnInit: bindatcmd("roks", strnpcinfo(0) +"::OnRoks", 99, 99); end; OnRoks: if (!getstrlen(.@atcmd_parameters$)) { message strcharinfo(0), "Please input a player name."; end; } .@aid = getcharid(3, .@atcmd_parameters$); if (!.@aid) { message strcharinfo(0), "Player not online or not found."; end; } .@origin$ = strcharinfo(0); attachrid .@aid; message .@origin$, "This player has "+ #CASHPOINTS +" RoK Points"; end; } com'on don't have to write everything out ... right ?
-
disable @autopot by checking pc_block PCBLOCK_SKILL
AnnieRuru replied to iraciz's question in Scripting Support
simple, why not just disable `@autopot` in a pvp/gvg/battleground maps ? save a lot of time doing so after all I think autopot feature should only use on pve = player vs monsters, its broken in player vs player situations -
make a custom GM command via bindatcmd Onaaa: message strcharinfo(0), "This player has "+ getvar(#CASHPOINTS, getcharid(0, .@atcmd_parameters$)) +" cashpoints"; something like that