-
Posts
2044 -
Joined
-
Last visited
-
Days Won
51
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Everything posted by AnnieRuru
-
cannot reproduce your problem since I'm using both latest hercules and latest rathena tested on latest rathena Welcome to rAthena! Enjoy! .... means using rAthena to test you should tell which revision you are using ... and did you actually translate this script ?
-
ok ... I got 2 PMs that my script not working in hercules but the weird things is, they PM me in rAthena PM box instead of PM in hercules forum <.< so I post my script here instead private_mvp_room_1.4b.txt yeah my scripting style didn't have case-sensitive, so I have to fix it
-
Suggestion - Add *Equip2 and *Rentitem2 commands~
AnnieRuru replied to Truly's topic in Source Discussion
*equip2 is a must add *getequipexpiretick can work around with *getinventorylist - script kjdfkjsf -1,{ OnInit: bindatcmd "qwer", strnpcinfo(0)+"::Onaaa"; end; Onaaa: rentitem "knife", 10; getinventorylist; for ( .@i = 0; .@i < @inventorylist_count; .@i++ ) { if ( @inventorylist_equip[.@i] ) dispbottom getitemname( @inventorylist_id[.@i] ) +( ( @inventorylist_expire[.@i] )? " : expire in "+( @inventorylist_expire[.@i] - gettimetick(2) ) +" seconds" : "" ); } end; }but this method kinda suxthough, its mostly use to list out which items has expiration is there any practical use of getequipexpiretick ? -
as far as I know most server actually overlook this problem and let the event runs until timeout (default 20~30 mins) because this bug is actually very very rare if I ask the developer to fix this *bg_leave script command will execute <OnQuitEvent> perhaps many battleground script (even the officials) needs to rewrite which ... better not so just leave it as it is yeah somehow I always forgotten about this [paste=7foixe5bo50p]
-
BUILDIN(getmapusers) { struct map_session_data *pl_sd; struct s_mapiterator* iter = mapit_getallusers(); int m = map->mapname2mapid( script_getstr(st,2) ), count = 0; if ( m < 0 ) { script_pushint( st, -1 ); return true; } for ( pl_sd = (TBL_PC*)mapit->first(iter); mapit->exists(iter); pl_sd = (TBL_PC*)mapit->next(iter) ) if ( pl_sd->bl.m == m && !( pl_sd->sc.option & OPTION_INVISIBLE ) ) count++; script_pushint( st, count ); return true; } have fun convert this from hercules into rathena
-
warp a party from prontera to 1@tower then warpparty from 1@tower to prontera whenever they want ? if using instance system, there is no need to fear other party members to come into the map the wiki or script_commands.txt http://rathena.org/wiki/Instancing
-
if emistry saw this topic, he'll definitely say this script can be bypass if just left the next; button stay there for 60 seconds nanakiwurtz is also correct log in the game when aggressive monsters is around, let them kill you, and the npc dialog will disappear, thus bypassing the system or just simply ask a friend to summon a dead branch and let it kill you ... these kind of knowledge can only acquire when you work on a live server ... here I tweak again [paste=4jqw643q81yq]
-
next time anything battleground related, PM me =/ I found this topic when I run a search on the word "battleground" most battleground script opens 24/7 means this one only opens a certain time ? I don't really understand this part you means 2 players can "start" the event, start fighting each other in the map and later more and more player can actually join in until 1 side become imbalance ? similar to assault event ? only 1 emperium, and if emperium down, attacker wins if emperium still up when time limit up, defender wins ... something like this ? everything else seems ok btw, is this battleground rush ? that one in ramod
-
int count; .... for ( loop every player ) if ( mapname == str && player not hiding ) count++; ... script_pushint(st,count);
-
[paste=53zbugq43p0] actually I already made quite a similar one ... but instead of points here, its rounds over there http://rathena.org/board/topic/90734-annieruru-custom-bg
-
use iterator to count all players on the map individually search struct s_mapiterator* iter;inside your \src\ folder for ideas
-
if participants get disconnected, they are out from the match however if you want this kind of modification, you need a section of an unused map act as a waiting room (like gon_test) when they quit the map from guild_vs3, they will warp into gon_test inside gon_test got another npc to join back into the match however doing like this is extremely discourage because I wrote a AFK script to exactly counter some afk players inside a battleground map to cheat for the prize http://www.eathena.ws/board/index.php?showtopic=272411 if you want to make like this, I'm sure they will multi-client to claim multiple prizes so what ... you want another script to prevent multi-client ? lol you needs 3 scripts to run an event ? lol change [20] into [31] inside chat.h, recompile then change the script on Line 11 if ( input( .min2start, 1, 9 ) ) {into if ( input( .min2start, 1, 15 ) ) { Edit, wait a minute, you mean you want a FIXED amount of 15vs15 and it start by itself on certain time of day ?
-
[paste=74qo3zthrrcz] - script OnPCJoinChatEvent -1,{ pc_getwaitingroomlist $@waitingroomowner; dispbottom $@waitingroomcount +""; // for ( .@i = 0; .@i < $@waitingroomcount; .@i++ ) // dispbottom ( .@i +1 )+". "+ rid2name( $@waitingroomaid[.@i] ); announce rid2name( $@waitingroomaid[$@waitingroomcount -1] )+" has join "+ rid2name( $@waitingroomaid[0] ) +"'s waitingroom", bc_all; end; }I wrote this based on hercules emulator =/so try convert it into rathena source code
-
HOW TO CHANGE THE TIME OF KOE EVENT EVERY SATURDAY?
AnnieRuru replied to Renji Abarai's question in Scripting Support
yes rathena only =/ for eathena, is over here http://www.eathena.ws/board/index.php?s=&showtopic=174222&view=findpost&p=1491458 -
when I test on Hercules it doesn't have this problem its rathena can't do a case-sensitive label http://rathena.org/board/tracker/issue-6988-monster-with-onkill-label/?gopid=17168#entry17168 perhaps your server already has OnReddead label somewhere, makes this label unable to run because OnRedDead or OnBlueDead label isn't functioning, that's why the score gets stuck try this one [paste=3hgeb7z95yoo] @Kido doesn't matter to me lol, just make a topic then send me a PM I'll make any battleground script no matter which forum you post on lol
-
source modification http://rathena.org/board/topic/72571-battleground-system-without-waitingroom/ shuffle function function script rand__ { .@range = getarg(0); .@count = getarg(2, 0); if ( !.@count || .@count > .@range ) .@count = .@range; else if ( .@count > 128 ) .@count = 128; while ( .@i < .@count ) { .@r = .@save = rand( .@i, .@range -1 ) ; if ( !getd( ".@tmp1_"+ .@i ) ) { .@r = ( getd(".@tmp1_"+ .@r ) )? getd( ".@tmp2_"+ .@r ) : .@r; setd ".@tmp2_"+ .@i, .@r; setd ".@tmp2_"+ .@save , .@i; setd ".@tmp1_"+ .@save , 1; set getelementofarray( getarg(1), .@i ), .@r; if ( .@save < .@count ) set getelementofarray( getarg(1), .@save ), .@i; } .@i++; } return .@count; }and the scripthttp://rathena.org/board/pastebin/36ijhtnn876m/ @chromus28 only compatible with rathena or hercules eathena or 3ceam is not supported @kido propose in hercules script request section, I'll definitely make it because writing battleground script is my hobby now
-
[rand__] function is inside my script release topic, under shuffle algorithm http://rathena.org/board/topic/78269-annieruru-lame-script-collection/?hl=rand__ I move to hercules because they have better script engine and better source coders rathena emulator took about 4~8 seconds to load the mapcache, hercules took only 1 second etc etc ... well this is not the place to discuss about this so how you want the modification be ? the one inside SVN doesn't has any features ... if I put back all the custom stuffs (including source modifications), the script will be unreadable you still haven't tell me you want 1, 2 or 3
-
I experienced this issue once when I was translating a chinese script all I do is open the script in the trusty microsoft notepad hahaha ! I know it can't color the syntax and lacks a lot of modern features, but just because it lack those features, it can display the hidden character
-
I just load rathena and see my name on the recent topics you should either post the topic in hercules board or send me a PM here now that you say you wanna have the other battleground script yeah, I actually made 2 of them bg_pvp and bg_emp I give you 3 solutions 1. in this script, the maximum player can play is 9vs9 because of the max chatroom size in the source https://github.com/rathena/rathena/blob/master/src/map/chat.h#L27 you can change [20] into [61] to allow 30vs30 2. I made bg_emp, but I haven't made bg_emp_random script that can host by a GM think make one ? 3. I make another bg_pvp_random just with using another map ? xD
-
LOL NO that modification only for npc's chatroom I think your idea needs to do totally in source modification chat_joinchat inside chat.c function
-
http://rathena.org/board/topic/78291-modification-of-bg-emp/?p=177387
-
hmm ... I think I gave wrong answer on previous post ... suddenly I remember in rathena already has OnInstanceInit: label maybe you can just do OnInstanceInit: disablenpc instance_npcname ("npc name"); EDIT: yeah forgot about *instance_npcname
-
no offense but, why not use an array ? http://rathena.org/board/topic/76131-login-commands/?p=166229 I even did this script twice ... http://www.eathena.ws/board/index.php?s=&showtopic=275020&view=findpost&p=1508636
-
actually this isn't a bug when making an instance script all the npc from that map is copy into instance map that's why this bug is unable to fix http://rathena.org/board/tracker/issue-4964-instanced-npc-without-instance-init-error/?gopid=4964#entry4964 the old instance system, you have to use instance_init script command -> instance_init : copy all the npc from source map into instance map the new instance system, already copy the npc along with instance_create that's why I have no idea why @Akinari wants to make instance map without <num>@<string> support because this will reminds the user to duplicate the map last time when I wrote instance script I always use 2@g_vs http://rathena.org/board/topic/72691-evil-clone-on-map-enter/?p=148875 http://rathena.org/board/topic/75356-devil-square-modification/?p=162112
-
some eqps cant wear with particular eqp
AnnieRuru replied to JassMax's question in Scripting Support
yeah my mistakethx for pointing out