Jump to content

Skorm

Forum Moderator
  • Posts

    1282
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Skorm

  1. I'd probably use something like this. - script Guild_House -1,{ OnPCLoadMapEvent: if(getcharid(2)!=getcastledata("prtg_cas01",1) &&strcharinfo(3)=="prt_fild01") warp "prontera",100,100; } prt_fild01 mapflag loadevent
  2. I've been working on this for a few days now... From what I can tell it's working please report any problems you find. This is an event that was celebrated in RO for RWC 2012 that includes some weapons and npc enchantments... I don't know if they were ever done in rAthena- I didn't bother to check, but someone asked me to make these and offered to pay me... I decided to release them for free. Edit-- Poor, Euphy, actually did take time to work on these npcs which are in the source but are disabled by default. If you want something a little closer to the original which also means straight forward and not quite as flexible. I recommend you check his NPC out... and give him some credit. [Downloads] Data: rwc_2012.gpf MediaFire This only includes the RWC Textures and Sprites It's your job to keep a healthy rdata- not mine. NPCS: v1.2: rwc_2012 v1.2.txt v1.2: PasteBin v1.2: uPaste v1.2: Paste: 5k82gyktushy This is the RWC event npcs almost 300 lines. You can switch the hidden npc name character to emulate different npcs because they vary depending on what server you're in. Shop NPCs: http://rathena.org/board/topic/89872-rwc2013-npc-shops/ Database: v1.2: rwc_2012_itemdb1.2.txt v1.2: PasteBin This is my interpretation of the RWC items please tell me if everything is working correctly. If not I'll update it. ItemInfo: rwc_2012_itemInfo.txt MediaFire These are the item info files that go in your System folder. Change Log 8/13/2013: rwc_2012_itemdb.txt - v1.2 Fixed small problem with sql version of item 18821 that I overlooked. 8/13/2013: rwc_2012_itemdb.txt - v1.1 Fixed all problems with curly's!! 8/10/2013: rwc_2012.txt - v1.1 Small Improvements to grammar and fixed a bug when slotting EQs. [sources]
  3. Really weird that it wouldn't work though? 1 AND 2 = 0 | 2 AND 2 = 2.... Hmm
  4. Yeah it really would be awesome I hope you come up with some Goodluck and more power to you... I think we all do that haha... Except for maybe Chapuche O_O;;
  5. Yeah pretty much but the example your using is weird because you're trying to set strings to integer variables and then compare killerrid... and Int to a string without using an atoi... or quotes before it to convert it to a string... A simple atoi(.gid$[.@i])==killerrid would've worked... Your example also shows you setting .@GID... why not just compare that .@GID[.@i] == killerrid. Sorry that was offtopic. prontera,100,100,1 script NPC 100,{ set(.TGT, (.MOB[.NPC]%getarraysize(.MOB))); set(.GID[getarraysize(.GID)],bg_monster(.@f,"prontera",100,100,"Poringz0rd",.TGT,"NPC::OnToughLuck")); set(.KID[getarraysize(.KID)],getcharid(0)); unitemote .GID[getarraysize(.GID)-1],e_no1; .NPC++; end; OnToughLuck: while(.@a++-1<getarraysize(.KID)) if(killerrid == .KID[.@a-1] && killedrid == .MOB[.@a-1]) { npctalk "Wow, you killed your monster!"; end; } while(.@b++-1<getarraysize(.GID)) if(!.GID[.@b-1]) { npctalk "Don't kill someone elses monster!!"; set(.GID[.@b-1],bg_monster(.@f,"prontera",100,100,"Poringz0rd",killedrid,"NPC::OnToughLuck")); end; } end; OnInit: setarray .MOB, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011; }
  6. I don't think there is a way to convert Game ID to Mob ID... I have a topic that is similar to this... http://rathena.org/board/topic/84921-checkgid-attachgid/#entry215402 I could imagine a command like... getgidinfo(<gid>,<type>{,<object>}) etc... etc For something indirect you could use bg_monster with an event label. Then when the mob dies you could use OnEvent to return it's killerrid? If you wanted the monsters rid you would have to use OnNPCKillEvent with some condition exclusive to that monster and again being able to get the GID of a monster is a REALLY great way to single them out from all others... but currently we cannot do that. I had a request to fill killedrid on custom event activation but I don't know if they ever added it. They were going to add a new getmapxy that would allow the return of GID but I don't know if that has happened yet either. Anyways I hope this helps.
  7. Change: if(!select("Yes:No")&2) { To: if(!(select("Yes:No")&2)) { If clicking yes doesn't take you to an input box. If you just want there to be an option to only change the password once then add a check for that global variable.
  8. Sure it is. prontera.gat,150,150,5 script Men In Black 811,{ if(getgmlevel()>=99) { mes "[Men In Black]"; mes "Hello, Mr. GM, Would you like to change the password?"; next; if(!(select("Yes:No")&2)) { mes "[Men In Black]"; mes "Alright input a new password!"; next; input .@lb_pass$; mes "[Men In Black]"; mes "Password successfully changed to ["+.@lb_pass$+"]."; set($lb_pass$,.@lb_pass$); close; } } mes "[Men In Black]"; mes "Enter the password."; next; input .@lb_pass$; if(.@lb_pass$ != $lb_pass$){ mes "[Men In Black]"; mes "Incorrect password."; close; } mes "[Men In Black]"; mes "Correct password, teleporting to the map.."; close2; warp "Prontera",180,150; end; } Just use a constant global variable which is alright for small things like this. Also your error is coming from: if(@lb_pass$ != 123456){ You're comparing a String variable to a constant Integer. Should be: if(@lb_pass$ != "123456"){
  9. Wow great program. I use TSearch and WinGrep but I think Euphy's option might be faster.
  10. Regarding the first npc http://rathena.org/board/topic/66123-where-is-the-magic-gear-npc-in-rathena/ Peco peco remover is also in trunk/npc/merchants/renters.txt use /*<script>*/ to comment it out. Same for Riding Creature Master it's in that file... Edit-- Censorship hasn't allowed me to fully support you and for that I apologize. I will pm you regarding your screenshot problem.
  11. Actually it should be: while(set(.@i,.@i+2)-2<.@len) if(rand(100)<=.@array[.@i-1]) { set .@item, .@array[.@i-2]; Good spot though I put this one together in under 5 minutes and somethings slipped my mind.
  12. For the npc example I gave it should work regardless of what is attacking the character because it checks for a change in his HP and then applies the delay...
  13. If you want it to work when hit by monsters remove if(src->type == BL_PC) { And the } That follows
  14. http://svn.code.sf.net/p/rathena/svn/trunk/db/re/mob_skill_db.txt rightclick -> Saveas
  15. Oops that might've been a test one I had left in comments. You're getting that because it isn't a skill that can be targeted. 999,-1,6,1,-1,0x40,0,10,1,no,0,0,0,weapon,0,STICKYBOMB,Detention Sphere Look at the skill_db text if you need more assistance for setting skills up. 04 inf (0- passive, 1- enemy, 2- place, 4- self, 16- friend, 32- trap)
  16. If you're getting help on a topic don't make another topic about the same thing... This forums has enough post. bif_fild01,163,61,4 script MINING SPOT 66,{ if (countitem(558) > 1) goto OnMine; mes "A big rock."; close; OnMine: setarray .@array, 26106, 10, 26107,10, 640,15, 714,15 , 715,60 , 716,60 , 717,60 , 718,20, 719,20 , 720,20 , 721,20 , 722,20 , 723,20, 724,20 , 725,20 , 726,20 , 727,20 , 728,20, 729,20 , 730,16 , 731,14 , 732,12 , 733,50, 6077,20, 7300,20, 756,20 , 757,20 , 2794,5, 7049,70, 6078,70, 7067,70; set .@len, getarraysize(.@array); delitem 26105,1; if(rand(2)-1) { while(set(.@i,.@i+2)-2<.@len) if(rand(100)<=.@array[.@i-1]) { set .@item, .@array[.@i-2]; misceffect 795; soundeffect "mining.wav",0; progressbar "brown",2; misceffect 795; specialeffect2 610; getitem(.@item,1); mes "You successfully mined a "+getitemname(.@item)+"."; } } else { misceffect 795; soundeffect "mining.wav",0; progressbar "brown",2; misceffect 795; mes "You failed to mine."; specialeffect2 611; } close; }
  17. Use the version from my previous post I updated it awhile back.
  18. It looks like I made some changes to the skill db after I posted that. 999,5,6,2,0,0x02,2,10,1:1:1:1:1:1:1:2:3:5,yes,0,0x0080,5,weapon,1,STICKYBOMB,Detention Sphere The other one should be the same but different skill id and name.
  19. Now or not? In any case if it isn't working try doing @mi Garm in-game to make sure the rates are correct if that doesn't work keep trying different rates. Also you might want to try restarting your server.
  20. I open this post and what I see is wall of text... When posting a quest request you need to be clear specific and precise if you want it to get done. Instead of saying "have a dialogue (is the least then I make up a story), and will ask certain items". Put exactly what the npc will say and what items he wants or gives along with the itemids.
  21. Save and do @reloadbattleconf Ofcourse this method will also announce items with rates lower then 8 percent, but it really is the most server friendly way.
  22. If it's 8% you would do 800 if it's 0.08% you do 8
  23. In trunk/conf/battle/drops.conf Find: rare_drop_announce: 0 And change it to the rate of your mvp card drop.
×
×
  • Create New...