-
Posts
459 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Everything posted by rakuzas
-
Hi, As before, I added bg_emperium from rathena git.. And @Athan17 help adding rewards for loser.. And this time.. I tried same method he showed for https://github.com/rathena/rathena/blob/master/npc/custom/battleground/bg_pvp.txt, but somehow only winner got the prize.. Maybe I make mistake again when edit this script.. Below is my example script which not working at the moment.. //===== rAthena Script ======================================= //= Battleground: PVP //===== By: ================================================== //= AnnieRuru //===== Current Version: ===================================== //= 1.0 //===== Compatible With: ===================================== //= rAthena Project //===== Description: ========================================= //= A simple battleground script: //= Kill players from the other team. //===== Additional Comments: ================================= //= 1.0 First version, edited. [Euphy] //============================================================ - script bg_pvp#control -1,{ OnInit: .minplayer2start = 2; // minimum players to start (ex. if 3vs3, set to 3) .eventlasting = 20*60; // event duration before auto-reset (20 minutes * seconds) setarray .rewarditem[0], // rewards for the winning team: <item>,<amount>,... 501, 10; setarray .rewardloser[0], // rewards for the winning team: <item>,<amount>,... 501, 1; end; OnStart: if ( getwaitingroomstate( 0, .rednpcname$ ) < .minplayer2start || getwaitingroomstate( 0, .bluenpcname$ ) < .minplayer2start ) end; // create Battleground and teams .red = waitingroom2bg( "guild_vs3", 13,50, strnpcinfo(0)+"::OnRedQuit", strnpcinfo(0)+"::OnRedDead", .rednpcname$ ); copyarray .team1aid, $@arenamembers, $@arenamembersnum; .team1count = .minplayer2start; .blue = waitingroom2bg( "guild_vs3", 86,50, strnpcinfo(0)+"::OnBlueQuit", strnpcinfo(0)+"::OnBlueDead", .bluenpcname$ ); copyarray .team2aid, $@arenamembers, $@arenamembersnum; .team2count = .minplayer2start; delwaitingroom .rednpcname$; delwaitingroom .bluenpcname$; bg_warp .red, "guild_vs3", 13,50; bg_warp .blue, "guild_vs3", 86,50; .score[1] = .score[2] = .minplayer2start; bg_updatescore "guild_vs3", .score[1], .score[2]; // match duration sleep .eventlasting * 1000; // end match, destroy Battleground, reset NPCs if ( .score[1] > .score[2] ) { mapannounce "guild_vs3", "- Red Team is victorious! -", bc_map; callsub L_Reward, 1; } else if ( .score[1] < .score[2] ) { mapannounce "guild_vs3", "- Blue Team is victorious! -", bc_map; callsub L_Reward, 2; } else mapannounce "guild_vs3", "- The match has ended in a draw! -", bc_map; bg_warp .red, "prontera",152,178; bg_warp .blue, "prontera",154,178; bg_destroy .red; bg_destroy .blue; donpcevent .rednpcname$ +"::OnStart"; donpcevent .bluenpcname$ +"::OnStart"; end; L_Reward: for ( .@i = 0; .@i < getd(".team"+ getarg(0) +"count"); .@i++ ) getitem .rewarditem[0], .rewarditem[1], getd(".team"+ getarg(0) +"aid["+ .@i +"]" ); for ( .@i = 0; .@i < getd(".team"+ getarg(1) +"count"); .@i++ ) getitem .rewardloser[0], .rewardloser[1], getd(".team"+ getarg(1) +"aid["+ .@i +"]" ); return; // "OnDeath" event OnRedDead: callsub L_Dead, 1; OnBlueDead: callsub L_Dead, 2; L_Dead: .score[ getarg(0) ]--; bg_updatescore "guild_vs3", .score[1], .score[2]; while ( getd( ".team"+ getarg(0) +"aid["+ .@i +"]" ) != getcharid(3) && .@i < getd(".team"+ getarg(0) +"count") ) .@i++; deletearray getd( ".team"+ getarg(0) +"aid["+ .@i +"]" ), 1; setd ".team"+ getarg(0) +"count", getd(".team"+ getarg(0) +"count") -1; bg_leave; if ( !.score[ getarg(0) ] ) awake strnpcinfo(0); sleep2 1250; percentheal 100,100; end; // "OnQuit" event OnRedQuit: callsub L_Quit, 1; OnBlueQuit: callsub L_Quit, 2; L_Quit: .score[ getarg(0) ]--; bg_updatescore "guild_vs3", .score[1], .score[2]; percentheal 100, 100; while ( getd( ".team"+ getarg(0) +"aid["+ .@i +"]" ) != getcharid(3) && .@i < getd(".team"+ getarg(0) +"count") ) .@i++; deletearray getd( ".team"+ getarg(0) +"aid["+ .@i +"]" ), 1; setd ".team"+ getarg(0) +"count", getd(".team"+ getarg(0) +"count") -1; if ( !.score[ getarg(0) ] ) awake strnpcinfo(0); end; } prontera,152,178,5 script Red Team#bg_pvp 733,{ end; OnInit: sleep 1; set getvariableofnpc( .rednpcname$, "bg_pvp#control" ), strnpcinfo(0); OnStart: waitingroom "Red Team", getvariableofnpc( .minplayer2start, "bg_pvp#control" ) +1, "bg_pvp#control::OnStart", getvariableofnpc( .minplayer2start, "bg_pvp#control" ); end; } prontera,154,178,5 script Blue Team#bg_pvp 734,{ end; OnInit: sleep 1; set getvariableofnpc( .bluenpcname$, "bg_pvp#control" ), strnpcinfo(0); OnStart: waitingroom "Blue Team", getvariableofnpc( .minplayer2start, "bg_pvp#control" ) +1, "bg_pvp#control::OnStart", getvariableofnpc( .minplayer2start, "bg_pvp#control" ); end; } guild_vs3 mapflag battleground 2 guild_vs3 mapflag nosave SavePoint guild_vs3 mapflag nowarp guild_vs3 mapflag nowarpto guild_vs3 mapflag noteleport guild_vs3 mapflag nomemo guild_vs3 mapflag nopenalty guild_vs3 mapflag nobranch guild_vs3 mapflag noicewall //guild_vs3 mapflag hidemobhpbar
-
Thanks.. Learn another useful lesson today.. Thank you very much @Athan17..
-
Hi, I tried to make NPC with OnTouch function.. But.. Currently its working with normal talk (click).. Not when we come near, it auto run the script.. I tried compare with poring war script and many more but still not work Ontouch.. May I know which part I do wrong? Thank you.. prontera,150,150,5 script Guard 966,{ OnTouch: mes "[Guard]"; mes "Halt!! This area is off limit!!"; close; }
-
Custom Battleground (rathena) cannot give rewards to Lose Team? (SOLVED)
rakuzas replied to rakuzas's question in Scripting Support
No wonder I got error about that.. Ok.. Thank you.. -
Custom Battleground (rathena) cannot give rewards to Lose Team? (SOLVED)
rakuzas replied to rakuzas's question in Scripting Support
Its working.. I spend hours to make it right.. But I put it at wrong line.. And make it worse.. I tried make .loseside.. But i put getarg (2).. But it suppose as 0.. No wonder I got error.. And my other mistake put wrong script too.. Its a good lesson for me.. Thank you very much.. I will remember this.. Need more to learn and still long way to go.. Edit : BTW.. Why I got error unrecognized mapflag hidemobhpbar? rAthena updated this mapflag? Because my last update when release clan function.. -
Hi, I found out this script in git : https://github.com/rathena/rathena/blob/master/npc/custom/battleground/bg_emp.txt and also this script available in my rathena directory too.. I tried to use it.. Its working.. But only winner can get the prize.. I tried to make lose team also got the prize but much less than winning team.. But somehow I stuck either winning team get double his rewards or both team not receive any rewards or when enter the chat room, but chatroom gone and nothing happened.. I need to learn more for make this work i guess.. Tried almost 2 days trial and error but still failed.. At first I dont want to ask here.. But since I reach my limit.. Here I am.. Sorry for bothering any of you as I keep asking help here.. Thank you in advance..
-
So it is possible.. I love rAthena.. Thanks @Emistry for guiding me.. Going to try now..
-
Hi, I edit map gat from unwalkable into walkable.. But player can get in by warp only.. Somehow.. Random spawn monster are accidentally warp into that square/pond.. Is it possible to make it only available for NPC and player only? Means monster cannot spawn or teleport in there.. Just curious.. Thanks..
-
Your server is renewal or pre-renewal? Please edit the mob_db files depend on your server type.. If default, its renewal.. So, please edit mob_db inside renewal/re folder..
-
Yup.. And I keep reading from the top.. BTW.. Thanks @Lemongrass too.. And all of you guys here..
-
Yeah my bad.. Sorry.. But it still works btw.. But as you said.. just for best pratices to code mob_db...
-
better you put at the end of code like : 2474,MG_F_UNDEAD_KNIGHT,Undead Knight,Undead Knight,133,500000,0,4500,3375,2,751,880,122,62,122,87,54,65,103,65,14,16,2,7,80,0x6203695,170,140,384,288,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,501,1 at the end of my example : 501 = ID of items you want to drop 1 = rate of drop if player kill your monster And don't forget to reload item_db after you make changed..
-
Welcome.. And next time maybe can just using edit button.. Have a nice day~
-
Yup.. Just edit item_db..
-
Quests, Games: MVP Ladder - Instanced Edition
rakuzas replied to Secrets's topic in Game, Event, Quest Script Releases
Try this : OnMyMobDead: ++'round; IDK what I fix before.. But I already implement this script at my live server.. And working perfectly.. -
You may try this.. Since I use it in my live server.. For drop rate, maybe you need to tweak it.. But for my server, I make 3 type of Dokebi.. 1 dokebi Drop royal jelly, 1 drop yggdrasilberry.. and for boss I using furios dokebi and get gold.. Its pretty easy to configure.. Good luck..
-
hugel,217,228,6 script WeaponShopQuest 856,{ callfunc "qshopw"; } - shop qshopw1 -1,909:-1 - shop qshopw2 -1,909:-1 - shop qshopw3 -1,909:-1 - shop qshopw4 -1,909:-1 - shop qshopw5 -1,909:-1 can you see whats wrong? At 1st glance I notice your problem.. change qshopw into qshopw1 as in your dummy data.. That's all..
-
Hi, I'm using latest rAthena Flux CP, working paypal business email, and already set IPN at my business paypal account.. Player can donate and I get email from paypal I receive payments and my paypal balance increasing.. But player not receive donation credit.. Already gogling around and trial and error about 3 hours but still failed.. Tried so many tutorial and guides.. But still failed.. Already follow tutorial from http://www.screencast.com/t/dKCCSWnZVw but also still failed.. Now I don't know what to do and here I am.. Below is my paypal.log : <?php exit('Forbidden'); ?> [2016-10-05 19:00:47] Received notification from 173.0.81.1 (notify.paypal.com) [2016-10-05 19:00:47] Query string: cmd=_notify-validate&mc_gross=85.00&protection_eligibility=Ineligible&address_status=unconfirmed&payer_id=T7J2X8BNF83FY&tax=0.00&address_street=P.O.+Box+37600%2C+Dubai+Logistics+City%2C+Plot+WB54+Dubai+World+Central&payment_date=04%3A01%3A22+Oct+05%2C+2016+PDT&payment_status=Completed&charset=windows-1252&address_zip=37600&first_name=Mark&mc_fee=5.74&address_country_code=AE&address_name=Mark+Banaag¬ify_version=3.8&custom=YToyOntzOjExOiJzZXJ2ZXJfbmFtZSI7czoyMzoiTWlsZW5pYSBSYWduYXJvayBPbmxpbmUiO3M6MTA6ImFjY291bnRfaWQiO3M6NzoiMjAwMDA5OSI7fQ%3D%3D&payer_status=unverified&business=mileniarops%40gmail.com&address_country=United+Arab+Emirates&address_city=Dubai&quantity=0&verify_sign=Aq14Jfs7PmvRmNDKOh0qJmUQHi3uAnlYMrfrkiejpf7SyfR6Cfof5GgT&payer_email=mkbanaag%40live.com&txn_id=9F179001LF6609704&payment_type=instant&last_name=Banaag&address_state=UAE&receiver_email=fayyadtech%40gmail.com&payment_fee=&receiver_id=EPNYVUR79KC8C&txn_type=web_accept&item_name=Donation+Credits%3A+85+CREDIT%28s%29&mc_currency=MYR&item_number=&residence_country=AE&receipt_id=4697-5271-1176-6293&transaction_subject=YToyOntzOjExOiJzZXJ2ZXJfbmFtZSI7czoyMzoiTWlsZW5pYSBSYWduYXJvayBPbmxpbmUiO3M6MTA6ImFjY291bnRfaWQiO3M6NzoiMjAwMDA5OSI7fQ%3D%3D&payment_gross=&ipn_track_id=7e4a34d1a67f8 [2016-10-05 19:00:47] Establishing connection to PayPal server at www.paypal.com:80... [2016-10-05 19:00:48] Connected. Sending request back to PayPal... [2016-10-05 19:00:48] Sent 1270 bytes of transaction data. Request size: 1415 bytes. [2016-10-05 19:00:48] Reading back response from PayPal... [2016-10-05 19:00:48] Notification failed to verify. (recv: ) [2016-10-05 19:00:48] Transaction invalid, aborting. [2016-12-29 23:23:54] Received notification from 173.0.81.1 (notify.paypal.com) [2016-12-29 23:23:54] Query string: cmd=_notify-validate&mc_gross=1.00&protection_eligibility=Eligible&address_status=unconfirmed&payer_id=MZ9R7N8MNHP5C&tax=0.00&address_street=28+kg+sungai+lesong&payment_date=07%3A23%3A38+Dec+29%2C+2016+PST&payment_status=Completed&charset=windows-1252&address_zip=31920&first_name=shah&mc_fee=1.00&address_country_code=MY&address_name=FAYYAD+TECHNOLOGY¬ify_version=3.8&custom=YToyOntzOjExOiJzZXJ2ZXJfbmFtZSI7czoyMzoiTWlsZW5pYSBSYWduYXJvayBPbmxpbmUiO3M6MTA6ImFjY291bnRfaWQiO3M6NzoiMjAwMDA5MyI7fQ%3D%3D&payer_status=unverified&business=mileniarops%40gmail.com&address_country=Malaysia&address_city=tapah&quantity=0&verify_sign=AfAkavmC3xOd-bBA3ryNkIOB-nAFATlWZD5XxACMv7j5byGTd628fGTF&payer_email=incikrakuzas%40gmail.com&txn_id=83849370D8924852W&payment_type=instant&payer_business_name=FAYYAD+TECHNOLOGY&last_name=nizam&address_state=perak&receiver_email=mileniarops%40gmail.com&payment_fee=&receiver_id=EPNYVUR79KC8C&txn_type=web_accept&item_name=Donation+Credits%3A+2+CREDIT%28s%29&mc_currency=MYR&item_number=&residence_country=MY&transaction_subject=YToyOntzOjExOiJzZXJ2ZXJfbmFtZSI7czoyMzoiTWlsZW5pYSBSYWduYXJvayBPbmxpbmUiO3M6MTA6ImFjY291bnRfaWQiO3M6NzoiMjAwMDA5MyI7fQ%3D%3D&payment_gross=&ipn_track_id=3e2a55dd8092 [2016-12-29 23:23:54] Establishing connection to PayPal server at www.paypal.com:80... [2016-12-29 23:23:54] Connected. Sending request back to PayPal... [2016-12-29 23:23:54] Sent 1221 bytes of transaction data. Request size: 1366 bytes. [2016-12-29 23:23:54] Reading back response from PayPal... [2016-12-29 23:23:54] Notification failed to verify. (recv: <HTML><HEAD><TITLE>ACCESS DENIED</TITLE></HEAD><BODY><H1>ACCESS DENIED</H1>YOU DON'T HAVE PERMISSION TO ACCESS "HTTP://WWW.PAYPAL.COM/CGI-BIN/WEBSCR" ON THIS SERVER.<P>REFERENCE #18.DE63C617.1483025035.15BA4555</BODY></HTML>) [2016-12-29 23:23:54] Transaction invalid, aborting. [2016-12-29 23:54:35] Received notification from 173.0.81.1 (notify.paypal.com) [2016-12-29 23:54:35] Query string: cmd=_notify-validate&mc_gross=1.00&protection_eligibility=Eligible&address_status=unconfirmed&payer_id=MZ9R7N8MNHP5C&tax=0.00&address_street=28+kg+sungai+lesong&payment_date=07%3A54%3A10+Dec+29%2C+2016+PST&payment_status=Completed&charset=windows-1252&address_zip=31920&first_name=shah&mc_fee=1.00&address_country_code=MY&address_name=FAYYAD+TECHNOLOGY¬ify_version=3.8&custom=YToyOntzOjExOiJzZXJ2ZXJfbmFtZSI7czoyMzoiTWlsZW5pYSBSYWduYXJvayBPbmxpbmUiO3M6MTA6ImFjY291bnRfaWQiO3M6NzoiMjAwMDA5MyI7fQ%3D%3D&payer_status=unverified&business=mileniarops%40gmail.com&address_country=Malaysia&address_city=tapah&quantity=0&verify_sign=AdTGBgLJqHB6BwcvxY6ANgjjL6RcACxNRxIIlNGWVXc6LNDI2PCTMlOv&payer_email=incikrakuzas%40gmail.com&txn_id=38U77609NX699574E&payment_type=instant&payer_business_name=FAYYAD+TECHNOLOGY&last_name=nizam&address_state=perak&receiver_email=mileniarops%40gmail.com&payment_fee=&receiver_id=EPNYVUR79KC8C&txn_type=web_accept&item_name=Donation+Credits%3A+2+CREDIT%28s%29&mc_currency=MYR&item_number=&residence_country=MY&transaction_subject=YToyOntzOjExOiJzZXJ2ZXJfbmFtZSI7czoyMzoiTWlsZW5pYSBSYWduYXJvayBPbmxpbmUiO3M6MTA6ImFjY291bnRfaWQiO3M6NzoiMjAwMDA5MyI7fQ%3D%3D&payment_gross=&ipn_track_id=9925c9c0a3e9e [2016-12-29 23:54:35] Establishing connection to PayPal server at www.paypal.com:80... [2016-12-29 23:54:35] Connected. Sending request back to PayPal... [2016-12-29 23:54:35] Sent 1222 bytes of transaction data. Request size: 1367 bytes. [2016-12-29 23:54:35] Reading back response from PayPal... [2016-12-29 23:54:35] Notification failed to verify. (recv: <HTML><HEAD><TITLE>ACCESS DENIED</TITLE></HEAD><BODY><H1>ACCESS DENIED</H1>YOU DON'T HAVE PERMISSION TO ACCESS "HTTP://WWW.PAYPAL.COM/CGI-BIN/WEBSCR" ON THIS SERVER.<P>REFERENCE #18.15E0FC7D.1483026876.146DD36D</BODY></HTML>) [2016-12-29 23:54:35] Transaction invalid, aborting. [2016-12-30 00:00:07] Received notification from 173.0.81.1 (notify.paypal.com) [2016-12-30 00:00:07] Query string: cmd=_notify-validate&mc_gross=1.00&protection_eligibility=Eligible&address_status=unconfirmed&payer_id=MZ9R7N8MNHP5C&tax=0.00&address_street=28+kg+sungai+lesong&payment_date=07%3A59%3A27+Dec+29%2C+2016+PST&payment_status=Completed&charset=windows-1252&address_zip=31920&first_name=shah&mc_fee=1.00&address_country_code=MY&address_name=FAYYAD+TECHNOLOGY¬ify_version=3.8&custom=YToyOntzOjExOiJzZXJ2ZXJfbmFtZSI7czoyMzoiTWlsZW5pYSBSYWduYXJvayBPbmxpbmUiO3M6MTA6ImFjY291bnRfaWQiO3M6NzoiMjAwMDA5MyI7fQ%3D%3D&payer_status=unverified&business=mileniarops%40gmail.com&address_country=Malaysia&address_city=tapah&quantity=0&verify_sign=AA5-MECTA9ewcabfxYBNqYXkb1uvAuIW3Lx.LQ9.k7KS-39tgKEgWcP6&payer_email=incikrakuzas%40gmail.com&txn_id=16709116G9325093W&payment_type=instant&payer_business_name=FAYYAD+TECHNOLOGY&last_name=nizam&address_state=perak&receiver_email=mileniarops%40gmail.com&payment_fee=&receiver_id=EPNYVUR79KC8C&txn_type=web_accept&item_name=Donation+Credits%3A+2+CREDIT%28s%29&mc_currency=MYR&item_number=&residence_country=MY&transaction_subject=YToyOntzOjExOiJzZXJ2ZXJfbmFtZSI7czoyMzoiTWlsZW5pYSBSYWduYXJvayBPbmxpbmUiO3M6MTA6ImFjY291bnRfaWQiO3M6NzoiMjAwMDA5MyI7fQ%3D%3D&payment_gross=&ipn_track_id=8c1c9511bf1f3 [2016-12-30 00:00:07] Establishing connection to PayPal server at www.paypal.com:80... [2016-12-30 00:00:07] Connected. Sending request back to PayPal... [2016-12-30 00:00:07] Sent 1222 bytes of transaction data. Request size: 1367 bytes. [2016-12-30 00:00:07] Reading back response from PayPal... [2016-12-30 00:00:07] Notification failed to verify. (recv: <HTML><HEAD><TITLE>ACCESS DENIED</TITLE></HEAD><BODY><H1>ACCESS DENIED</H1>YOU DON'T HAVE PERMISSION TO ACCESS "HTTP://WWW.PAYPAL.COM/CGI-BIN/WEBSCR" ON THIS SERVER.<P>REFERENCE #18.24965468.1483027208.28B31A8</BODY></HTML>) [2016-12-30 00:00:07] Transaction invalid, aborting. And one more thing.. I notice when we already paid, when I click "Return to myRO" like that button, I see in that tutorial suppose to open the IPN I set in paypal.. But somehow it just return to http://myro.com/module=main and not http://myro.com /?module=donate&action=notify and when we open that address in new tab.. just blank.. Does this normal or something wrong here? Hmmm.. Does this paypal donation no longer works right now? Because in 2013 I have no trouble at all.. And I read about paypal changed their reading IPN things like that.. Thank you in advance.. PS : myro.com just random address I put as example.. Sorry..
-
Ahhh.. I just notice it in sample doc.. Thanks.. I will try it now..
-
Hi, I want to confirm something.. Does instance_id no longer working? Because I read in rathena doc, it shows instance_id.. *instance_id() Returns the unique instance id of the attached script. If the script is not attached to an instance, the instance of the currently attached player is used (if it is a character, party, or guild mode). If it is not owned by anyone, no player needs to be attached. If that fails, the function will return 0. But when I using custom instance script, i got error parse callfunc : expected ')' on every instance_id(1) or instance_id(0).. So, if this not working? Have any suggestion? Or need to try rewrite the script to support latest instance system as in below? But after googling around.. I found this sample : https://github.com/rathena/rathena/blob/master/doc/sample/instancing.txt and instance_id () only.. Hmm.. So, maybe the conclusion is need to rewrite the script? To make it support latest rAthena? Thank you..
-
PVP, WoE, GVG: The Lord of the Ring
rakuzas replied to Norm Hmuryj's topic in PvP, GvG, WoE, Battleground Script Releases
Ohh.. Its not working anymore.. My bad.. I thought something wrong with my rathena.. Maybe can edit this topic and warn or make it broken or not working? Sorry.. -
PVP, WoE, GVG: The Lord of the Ring
rakuzas replied to Norm Hmuryj's topic in PvP, GvG, WoE, Battleground Script Releases
Just tried this script.. But its not working anymore.. Tried to modded it.. But I make it worse.. xD When talk to aragorn, keep getting error script_op1 or op2 invalid data.. -
PVP Ladder Annieruru's edition - Some question (SOLVED)
rakuzas replied to rakuzas's question in Scripting Support
Thank you very much.. -
PVP Ladder Annieruru's edition - Some question (SOLVED)
rakuzas posted a question in Scripting Support
Hi, I'm using Annieruru's PVP Ladder as my main PVP Warper and room for my server since its simple.. But below is my question. 1. Why player within same guild cannot attack each other? Tried manually @gvgon but still cannot attack each other.. How to fix it? 2. How to make player warp into respawn point when logout? Currently it still load spawn in pvp room till died or using npc for warp out or using butterfly wing.. Thank you.. -
Ok.. Thank you~