Jump to content

Ninja

Members
  • Posts

    513
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Ninja

  1. If you find something not working please make sure to post server-sided errors too. We cannot help you much if you provide inadequate information. Anyway, edited Emistry's entry on the switch statement. /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * * ~~~~~~~~ Euphy's MVP Ladder v1.3 ~~~~~~~~ * * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ prontera,148,170,6 script MVP Ladder 891,{ mes "[Rank MVP]"; mes "Hello."; mes "What are you doing here"; next; switch(select("Check Ranking.:My points.:"+( getgmlevel() >= 99 ) ? "RESET":""+":Nothing...")) { case 1: mes "[Rank MVP]"; query_sql("SELECT char_id, CAST(`value` AS SIGNED) FROM `char_reg_num` WHERE `key` = 'MVP_Rank' ORDER BY CAST(`value` AS SIGNED) DESC LIMIT 20",.@cid,.@value); for(set .@i,0; .@i<getarraysize(.@cid); set .@i,.@i+1) { query_sql("SELECT `name` FROM `char` WHERE char_id = "+.@cid[.@i]+";",.@j$); set .@name$[.@i], .@j$; } if (!getarraysize(.@cid)) mes "The rankings are empty."; else for(set .@i,0; .@i<getarraysize(.@cid); set .@i,.@i+1) mes "["+(.@i+1)+"] "+.@name$[.@i]+" ~ "+.@value[.@i]+" kills"; close; case 2: mes "[Rank MVP]"; mes "You killed "+((MVP_Rank)?"^0055FF"+MVP_Rank:"no")+"^000000 MVP"+((MVP_Rank == 1)?".":"s."); close; case 3: if ( select( "Confirm","Cancel" ) == 1 ) { query_sql("UPDATE `char_reg_num` SET `value` = '0' WHERE `key` ='MVP_Rank'"); close2; addrid(0); MVP_Rank = 0; end; } close; default: close; } OnNPCKillEvent: if (getmonsterinfo(killedrid,22)) { set MVP_Rank, MVP_Rank+1; if (MVP_Rank == 1) query_sql("INSERT INTO `char_reg_num` (`char_id`,`key`,`index`,`value`) VALUES ("+getcharid(0)+",'MVP_Rank','0',1)"); else query_sql("UPDATE `char_reg_num` SET `value` = '"+MVP_Rank+"' WHERE char_id = "+getcharid(0)+" AND `key` ='MVP_Rank'"); dispbottom "~ You killed "+MVP_Rank+" MVP"+((MVP_Rank == 1)?"":"s")+". ~"; dispbottom " ~ Reward: Cash + 1 ~ "; set #CASHPOINTS, #CASHPOINTS + 1; specialeffect2 313; } end; OnInit: waitingroom "MVP LADDER!",0; } please try this one.
  2. https://github.com/rathena/rathena/blob/master/npc/merchants/cash_trader.txt
  3. what emulator are you using? This currently works only on rathena and hercules.
  4. A little tip, if you are setting/checking string/char types, always enclose them into quotation marks. Numbers, you don't have to unless your variable type is char or string.
  5. You can try to create an item in your item database with an OnEquip/OnUnequip script and use atcommand "@adjgroup <group id>"; then use rentitem to limit the duration of the item. Also try looking at the VIP system.
  6. Follow up question. I got the patcher to connect and run, but it seems currently. I cannot get the patch to overwrite the correct file in the correct locations. It seems i can add files to the data folder, but what im trying to do is add monsters. I'm trying to adjust the jobname and npcidentity After i created the thor patcher, i ran it through the grf viewer. And I notice that the files are located under Root. I figure that might be the reason it's not overwritting the correct files. Any idea what i can do? Make sure that you use "Ascii" since you're prolly hitting on stuff originally-written in Korean. Also, you can open your Thor file and check if you have done it correctly. Check below:
  7. Hi, I'm not sure, I havent tried using it on eA.
  8. the last time I checked you're the one needing help here. Maybe you can be a little bit more polite.
  9. Make sure that this is your "ragnarok.exe." if you did make sure that you configured it right, put the "patcher.exe" inside the configuration folder + instead of packing the "patcher.exe" drag the big 3D box to your patcher folder to produce a configuration file
  10. OVH is a good choice. It's a bang for the buck deal IMO. Finding a good host would also mean that you have to know where do you want it geolocated. I think OVH has CA, and UK hosts.
  11. Try 20130807
  12. Hi, Just wanted to share my mirror site for 20150601 Clean Ragnarok Client. Originally from Nickyzai's site. Decided to share it because their HTTP link is dead. It has 3 links in it and will be expanding it soon. Report any dead link here. Thanks. Regards, Jess
  13. Hi has anyone ever encountered this problem? [Error]: WFIFOSET: Maximum write buffer size for client connection 8 exceeded, most likely caused by packet 0x008e (len=68, ip=xxxxxxxxxxxxxxx). [Error]: WFIFOSET: Maximum write buffer size for client connection 8 exceeded, most likely caused by packet 0x008e (len=57, ip=xxxxxxxxxxxxxxx). IP addresses intentionally deprecated from post. //edit solved. fixed "addtimer" in one of my scripts.
  14. you only need to issue yum install git*
  15. Hi, I have consolidated some solutions for the Common Problems that everybody (including myself) encounters. I have updated the Thor Patcher Wiki with these and I hope everyone can contribute to it so that we can have a one-stop solutions page. Hope it'll be helpful. Regards, Jezznar
  16. https://rathena.org/wiki/Thor_Patcher#Common_Problems
  17. Will get back at you soon. I'm on a holiday, I got no pc accessc at the moment. Isn't a problem bro ! I test your script and it was perfect. I can post the solution after.. Thank you for appreciating I think it lies on on the "sleep" in the scripts which should've been "sleep2"
  18. Will get back at you soon. I'm on a holiday, I got no pc accessc at the moment.
  19. Edit the select menu. switch(select(""+((getarg(0)=="")?"":"Harder Monsters")+":Heal:Exit:Talk to the Keeper")) add another case. case 4: set .@arg, getarg(0); mes "[ ^0065DF"+strnpcinfo(1)+"^000000 ]"; mes "Which arena would you"; mes "like to enter?"; for(set .@i,1; .@i<9; set .@i,.@i+1) set .@menu$, .@menu$+"Arena "+.@i+" ["+getmapusers("pvp_n_"+.@i+"-"+.@arg)+"/20]:"; set .@i, select(.@menu$); if (getmapusers("pvp_n_"+.@i+"-"+ .@arg)>19) { mes "[ ^0065DF"+strnpcinfo(1)+"^000000 ]"; mes "Sorry, this arena is full!"; close; } warp "pvp_n_"+.@i+"-"+ .@arg,102,102; break;
  20. You might be questioned by IPB regarding license issue, better go directly to their website. Ok. Thnx man
  21. Is this legit @Elsa Mist Googled "download ipb" https://code.google.com/p/marciodias/downloads/detail?name=IP.%20Board%203.3.4.zip&can=2&q=
  22. Hi, anyone knows how to do this? THanks. ~Jess
  23. Sure, what can I do for you? Skype me.
  24. - script louInvasion -1,{ OnInit: initnpctimer; end; OnMinute12: stopnpctimer; monster "louyang",0,0,"Kaguya",1630,1,"louInvasion::OnKaguyaDead"; monster "louyang",0,0,"Disguise",1506,100; end; OnKaguyaDead: killmonster "louyang","louInvasion::OnInvasionMonsters"; initnpctimer; end; } I've removed the event lable for the normal monsters, I'm assuming that the event ends once "Kaguya" gets killed. Try to do away with putting a While-loop inside OnInit. and prolly the problem lies on OnInit: While (1) { initnpctimer; end; IMO,It'll get stuck here.
  25. Awesome!
×
×
  • Create New...