-
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
-
lol http://www.eathena.ws/board/index.php?showtopic=241950 when I wrote that script I did use OnWhisperGlobal to turn event on and off but his script uses different direction -> actively register to start, and when over, another 2 guilds can sign up again either you try to expand my script there ( I already learned battleground script system by then ) or you have to figure out the way how to stop active-registration ... btw since this is support section, at least show which part of the script you have edited
-
yes, similar to that however I still think its much better to script this using battleground system as the battleground system itself auto-create team and prevented players killing teammate PS: this topic also now under 1 of my to-do list, please leave this topic to me I did say I wanted to support anyone who wanted to make that but nobody even PM me how to make it so I guess I personally make this myself
-
your custom *.wav file must be PCM type and mono http://www.eathena.w...dpost&p=1486262
-
you didn't even show your script, how do I know will they conflict ? but as long as you are not having other script spawn monster inside 06guild_0x, yeah it wont conflict
-
no prontera,155,177,0,0 boss_monster Maya 1147,1,7200000,600000,1 to have a MVP tomb, boss_monster is needed and my script uses *monster script command, its different and what's the point having MVP tomb in this script ? this script supposed to let players freely kill MVP as much as they want you'll mostly found this npc in medium/high rate server
-
for soundeffect or soundeffectall , the file name must be within 23 characters INCLUDE the .wav extension soundeffect "1234567890123456789.wav", 0; // this will play the soundeffect sleep2 1000; soundeffect "12345678901234567890.wav", 0; // throw gravity error
-
he need spoon feed private mvp room 1.4a.txt here you go
-
by just reading through the script (I didn't test, I can read eathena script language like a storybook) this is a pvp script (moderator pls move) players can warp inside the map anytime the map is pvpon and that map has all bunch of tinker toys to kill other players and all bunch of mines that you step on it you get debuff/hp loss... etc wow ... really nice idea ... never thought of that
-
stop bumping I already having this topic bookmarked in my to-do list give me 1 week its kinda sad its still too few members can make battleground script so I think I'll write as much as possible until scripting support start having battleground related question EDIT: forgot to say this will be a public release script I'll post in this topic when almost done
-
I know this topic might be old, but just like to see more members can make battleground script increase the number and recompile
-
o.O http://www.eathena.w...dpost&p=1517519 I strongly against having a npc pop up for receiving rewards because all battleground script has a timeout to prevent player sit inside own the map for themself, other players no chance to play so I suggest giving the rewards straight after event finish set .atkteam, waitingroom2bg( "prontera", 152,187, "", "", "Attack Team" ); copyarray .atkteam_aid, $@arenamembers, $@arenamembersnum; // retrieve all account ID of offensive team set .defteam, waitingroom2bg( "prontera", 160,187, "", "", "Defend Team" ); copyarray .defteam_aid, $@arenamembers, $@arenamembersnum; // retrieve all account ID of defensive team if ( .endbykill ) { announce "attacker won", 0; for ( .@i = 0; .@i < 2; .@i++ ) getitem 673, 1, .atkteam_aid[.@i]; } else { announce "defender won", 0; for ( .@i = 0; .@i < 2; .@i++ ) getitem 673, 1, .defteam_aid[.@i]; killmonster "bat_a01", "custom_bg#control::onend"; }
-
- script blah blah blah -1,{ OnInit: if ( $rachel_donate < 10000 ) $rachel_donate = 10000; end; } solved
-
http://rathena.org/w...g)#Label_Timers OnMinute00: if u don't know how that script command works, you can also search in Wiki or your rathena\doc\script_commands.txt file
-
prontera,151,188,5 script kdjshfskh 100,{ // monster_hunt_deny = 0; if ( .start == 2 ) { mes "sry somebody already started"; close; } if ( .start == 0 ) { mes "sry event not running"; close; } mes "open"; next; select "register"; if ( getcharid(1) == 0 ) { mes "you must be in a party"; close; } if ( getpartyleader( getcharid(1), 2 ) != getcharid(0) ) { mes "you are not party leader"; close; } getpartymember getcharid(1), 1; if ( $@partymembercount < .partysize ) { mes "you must form a party of "+ .partysize; close; } getpartymember getcharid(1), 2; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) .@count++; if ( .@count < .partysize ) { mes "you must have "+ .partysize +" party members online"; close; } .@origin = getcharid(3); for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { attachrid $@partymemberaid[.@i]; if ( baselevel < .baselevel || joblevel < .joblevel ) { .@name$ = strcharinfo(0); attachrid .@origin; mes .@name$ +" does not meet the level requirement"; close; } if ( monster_hunt_deny + .deny > gettimetick(2) ) { .@name$ = strcharinfo(0); attachrid .@origin; mes .@name$ +" are still under 5 min cooldown"; close; } } } for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { attachrid $@partymemberaid[.@i]; monster_hunt_deny = gettimetick(2); } } warpparty "pvp_n_1-3", 100, 109, getcharid(1); monster "this", -1,-1, "--ja--", 1002, 1, strnpcinfo(3)+"::Onmobdead"; announce strcharinfo(1) +" has started monster hunting", 0; .start = 2; .partyid = getcharid(1); close; Onmobdead: announce strcharinfo(1) +" has completed monster hunting", 0; getpartymember getcharid(1), 2; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) getitem 501, 1, $@partymemberaid[.@i]; warpparty "SavePointAll", 0,0, .partyid; .start = 0; .partyid = 0; end; //OnWhisperGlobal: OnMinute00: if ( .start == 2 ) warpparty "SavePointAll", 0,0, .partyid; announce "monster hunting is open", 0; .start = 1; end; OnPCDieEvent: OnPCLogoutEvent: if ( strcharinfo(3) != "pvp_n_1-3" ) end; announce strcharinfo(1) +" has failed monster hunting", 0; warpparty "SavePointAll", 0,0, .partyid; .start = 1; .partyid = 0; end; OnInit: .deny = 300; // 300 seconds to deny players going in again .partysize = 3; // 10 player members needed to start .baselevel = 99; .joblevel = 1; // level requirement end; } simply 1 of the simplest event script that I can write on fly EDIT: forgot to add mapflag like nowarpto nowarp noteleport partylock nomemo nopenalty nosave =/
-
1 way I can think of is OnPCLogoutEvent: query_sql "update `char` set zeny = "+ zeny +" where account_id = "+ getcharid(3); which would save their zeny after they logout but just like you say something about server crash and possible exploits good luck in finding these in sourceand use Sql_Query .... its the command used in the source instead query_sql used by eathena script its too hassle to do this I don't find this modification has any practical uses
-
you can try use attachrid-on-all-accounts, loop through all accounts on the server with checkvending() or use addrid script command http://www.eathena.w...howtopic=186459 but I'm not a fan of using addrid because there's been reported it produce lag-spike personally, I better off just write a new command BUILDIN_FUNC(getusers_novend) { struct s_mapiterator* iter = mapit_getallusers(); struct map_session_data* sd; int count = 0; for ( sd = (TBL_PC*)mapit_first(iter); mapit_exists(iter); sd = (TBL_PC*)mapit_next(iter) ) if ( sd->state.autotrade == 0 && sd->state.vending == 0 && sd->chatID == 0 ) count++; script_pushint( st, count ); mapit_free(iter); return 0; } BUILDIN_DEF(getusers_novend,""), announce getusers_novend() +"", 0; announce total players exclude vending/autotrade/chat-box just replace getusers_novend() with getusers(1)
-
of course not it just some newbie script that warp back to town after repeatedly killed the same person and I tot that script has already put in comments the hint is change warp into #cashpoints-- EDITED: I forgot that I changed to warp instead of atcommand @jail
-
got a PM to write this... BUILDIN_FUNC(getitemslotspc) { TBL_PC* sd = script_rid2sd(st); int pos = script_getnum( st, 2 ), i; if ( sd == NULL ) return 0; if ( pos < 0 || pos >= ARRAYLENGTH(equip) ) { script_pushint(st,-1); return 0; } i = pc_checkequip( sd, equip[pos -1] ); if ( i < 0 ) script_pushint( st, -1 ); else script_pushint( st, sd->inventory_data[i]->slot ); return 0; } BUILDIN_DEF(getitemslotspc,"i"), what a joke, 2 hours to tackle this <.< *getitemslotspc( <equip slot> ); return the amount of slot from equipment if return -1 means that equip position is not equipped dispbottom getitemslotspc(EQI_HEAD_TOP)+""; // show the amount of slots available on top headgear
-
https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/db/map_index.txt https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/conf/maps_athena.conf I couldn't find 1@gl_k or rsu- in either file http://www.eathena.ws/board/index.php?showtopic=214364 http://rathena.org/wiki/Custom_Maps
-
Suggest to add a script command run item script inside npc script
AnnieRuru replied to QQfoolsorellina's topic in Implemented
http://rathena.org/wiki/Enable_items EDIT: you mean enable to run *bonus inside npc script .... I thought that should be done using sc_start ... -
http://www.eathena.w...howtopic=155874 LMAO this was 1 of my script before I became scripting mod xD now reading back how I posted 5 years ago, I also laugh at myself xDDD
-
I'm having popcorn watching them fight each otherhttp://www.eathena.w...howtopic=274304
-
finally found it ( fuh ... over 30 mins search ... I suddenly remember it's done with @fakename ) http://www.eathena.ws/board/index.php?showtopic=270970 and again its not completed @fakename doesn't seem to work and I don't know how to do packet sending either even today
-
http://www.eathena.ws/board/index.php?showtopic=244519
-
I believe this is source code related ... and I also remember brainstorm reply something it have to be done inside clif.c something ... weirdly, I can't get the topic now using search button...