Jump to content

KirieZ

Core Developers
  • Content Count

    234
  • Joined

  • Last visited

  • Days Won

    23

Everything posted by KirieZ

  1. @@JoyRo If I remember well you can run a query on account_data table and set base_exp to 2 for an account id, it will have double exp (maybe instead of 2 you may have to put the new rate) So you've to add/set to a higher value when vip starts, and set back to 1 when vip ends
  2. I've submited the new version, waiting for review.
  3. For zeny you can set it at conf/char-server.conf, search for: start_zeny For knife I think it's not possible to give a refined item through the config (unless you give a box) but you can do with script. Something like: OnPCLoginEvent: if (!firstLogin) { getitem2 1201,1,1,10,0,0,0,0,0; firstLogin = 1; }end; I've not tested it but it should work without errors. This will give for a knife for each character on its first login, if you want one per account change firstLogin to #firstLogin
  4. @@xlaws27 I made it already together with another request and I'm planning to release it soon, but I have yet to test, as I rewrote most of the code. Maybe until the end of the week it's done. This will be the new setting: // The chance of each special fail result to occur.// If none of them happen, item will be destroyed.// 100 = 100%setarray .FailResults[0], 30, // Stay as is 40, // Go down one level 25; // Go down to +0 and if none of the special fails occur, item will break.
  5. I believe you can use EquipLv: [min, max] although I don't know if it will produce the expected behavior. Another way would be using OnPCBaseLvUpEvent and OnPCJobLvUpEvent. Doing something like (not tested): OnPCBaseLvUpEvent:OnPCJobLvUpEvent: if (BaseLevel == 99 && JobLevel == 50 && Class == BaseClass) { // 1-1 Jobs /* unequip */ } else if (BaseLevel == 99 && JobLevel == 50 && Class != BaseClass && Upper == 0) { // 2-x Jobs (non-trans) /* unequip */ } end;
  6. @@xlaws27 in data folder, at sprites/Àΰ£Á·/¸öÅë/¿© for Female bodies and sprites/Àΰ£Á·/¸öÅë/³² for male bodies
  7. @@xlaws27 If you want to just change the appearance, not changing skills nor name, you have to add 3rd job sprites and rename then with the name of transcedent sprites. For example, male Lord Knight sprite name is: ·Îµå³ªÀÌÆ®_³².spr if you add the rune knight sprite to the folder with this name, it will override original lord knight's one, so it will show up as rune knight It isn't a script though Hope it helps
  8. @@rector If I've checked it right, this seems like a revision from august 2013, true and false constants were added on november 2013, but even if you manually add them you'll probably run into other problems because of a too old version, you should update it, I can't help too much with these old revisions, but at least for true and false, you have to add this commit to your emulator: https://github.com/HerculesWS/Hercules/commit/463cbc94ea4124a35ad5bf3222b510ad979d8805
  9. @@rector Which emulator and revision are you using?
  10. You're using the old version, I think, refiner 1.0 is the old version and maybe you're on rAthena? Download refiner.txt instead of refiner 1.0.txt
  11. @@Helena I was using 50, not sure if it needs to be that high.
  12. @@rector Seems like you've modified the code, the problem is probably at '+'+.@i , it should be ++.@i (or as originally, .@i++)
  13. @@Helena If the error message about event queue is being shown on you console, then probably yes. I believe it happens with any monster that trigger labels. cause there'll be too many events to be triggered at once
  14. When I got the first problem I found out that everytime it happens an error about the Event Queue being full was showing up on the console. To fix it I used to increase #define MAX_EVENTQUEUE 2 to a higher value. This seems to happen when you kill too many monsters that triggers a label (gets worse if you have OnNPCKillEvent) About the second one I've never seen, but I used to notice that when I was mobbing sometimes monsters just stopped from following me (with an emoticon). Hope it helps
  15. @@Frost When you run a SELECT query, you must pass variables to store the returned data. query_sql("SELECT `cash_point` FROM `cash` WHERE `account_id` = "+getcharid(3), .@newCash);dispbottom "Now you have " + .@newCash;
  16. I was a too lazy to get the correct Item IDs/Aegis Names, but here it's, as far as I've tested it's working fine. I've used @@GmOcean cutins. It is in a function so you can handle its requirements in the way you want. just callfunc "F_LuckSpin"; The example in the end uses an on login method that runs once per day per account. function script F_LuckSpin { // Prizes ID, Prize Ammount // You can use IDs: // 0 - Nothing // 1 - Zeny setarray .@Prizes[0], 0, 0, 1, 100000, 502, 2, 503, 3, 504, 4, 505, 5, 506, 6, 507, 7, 508, 8, 509, 9, 510, 10, 511, 11, 512, 12, 513, 13, 514, 14, 515, 15, 516, 16, 517, 17, 518, 18, 519, 19, 520, 20, 521, 21, 522, 22, 523, 23; .@size = getarraysize(.@Prizes)/2; .@fullSpins = rand(1, 3); .@stop = rand(0, .@size); for (.@i = 0; .@i < .@fullSpins; .@i++) { for (.@j = 0; .@j < .@size; .@j++) { cutin "spin_" + (.@j + 1), 4; sleep2 50; } } for (.@i = 0; .@i < .@stop; .@i++) { cutin "spin_" + (.@i + 1), 4; sleep2 50 + 30 * .@stop; // Makes it go slower each time } .@pId = .@Prizes[.@stop * 2]; .@pAm = .@Prizes[(.@stop * 2 + 1)]; if (.@pId == 0) return; else if (.@pId == 1) Zeny += .@pAm; else getitem .@pId, .@pAm; sleep2 500; cutin "", 255; return;}- script DailyLuckSpin -1,{OnPCLoginEvent: .@today = atoi(gettimestr("%Y%m%d",10)); if (#LastSpinDay < .@today) { callfunc "F_LuckSpin"; #LastSpinDay = .@today; } end;} If someone rans into any problem, let me know.
  17. Through my tests seems like the problem is the ":D" in the last dispbottom, more specifically the ":", not sure why though, it normally works but in this specific case it's crashing.
  18. KirieZ

    NPC Help

    @@Emszy prontera,150,150,4 script Bossnia 1_ETC_01,{ mes "Hello."; close;}- script bossnia#disable -1,{ OnInit: disablenpc "Bossnia"; end; OnClock1500: goto startbossnia; end; startbossnia: announce "Bossnia: You wretched players.",0; sleep2 10000; announce "Can you face the wrath of the monsters in my map?",0; sleep2 10000; announce "Come inside if you dare.. *Evil laugh*",0; sleep2 10000; announce "A random NPC showed up in Prontera!",0; enablenpc "Bossnia"; initnpctimer; end; OnTimer1800000: announce "Bossnia: Last 30 Minutes before the entrance closes.",0; sleep2 5000; announce "Bossnia: Are all scared? Come on >:)",0; end; OnTimer2400000: announce "Bossnia: Last 20 Minutes before the entrance closes.",0; end; OnTimer3000000: announce "Bossnia: Last 10 Minutes before the entrance closes.",0; end; OnTimer3600000: announce "Bossnia: Times up! I will summon him again tomorrow.",0; end; OnTimer3610000: disablenpc "Bossnia"; stopnpctimer; end;} Other than the extra '}' I've noticed that some labels didn't have the "end;" . Also, make sure that your Bossnia npc is before the bossnia#disable
  19. Not sure if I understood what you want, but Flux CP has an item/mob db by default and if you convert and import your item and mob db to your sql you can display custom data on it, but I'm not sure if there's a more complete database system for download, I remember that some years ago I saw one somewhere, but I don't remember where and if it was complete or not. @edit: now I understood the title of the topic, but I don't know if this exact system is available
  20. @Aurora I understood that, but I didn't get if your suggestion is that the player choose to de-refine or if it is a consequence of a refine fail.
  21. @@Aurora : Can't see why not, but would it be a option or it will de-refine when a refine fails? (for example, if you are refining with a secure item and it fails, it will downgrade instead of breaking)
  22. I've never used 2014 clients, but I think this is an effect from System/monster_size_effect.lub, if you scroll down the file you'll see monster ID's with size and effect fields, I tried on 2013-08-07 but I was only able to change the size, probably the effects are in newer clients.
  23. Não sei quão antigo é o emulador, mas acredito que tenha essas funções, vou dar uma ideia para você resolver. Fazer o portal aparecer/sumir em horários: Você pode usar OnClockHHMM e verificar o dia com gettime(4), e então ativar ou desativar o portal com com enablenpc e disablenpc. Para fazer o portal checar, você pode usar um código parecido com o abaixo (retirado de um portal de brasilis): bra_in01,12,185,0 script inbathroom#bra WARPNPC,1,1,{OnTouch_: if (brazil_ghost > 6) warp "bra_in01",138,176; else { mes "The entrance has been blocked."; close; } end;} E para verificar o mapa, você pode usar a label OnPCLoadEvent (leia a documentação para mais informações de como usar)
  24. I'm not completely sure but I think that this happens because your OnMinute36 label is not calling anything in the bidder to start its timer. I've not tested in-game, but maybe this will fix the problem: At the end of OnMinute36: (add the donpcevent) announce "The portal has been closed.",0;disablenpc "Pracewarp";donpcevent "Bidder#prace0::OnStart1";sleep 5000; In the bidder, change Start1: to OnStart1: and at OnTimer120000: change goto Start1 to goto OnStart1 Hope it helps.
  25. @Vlync: It was approved already, the current version (1.1) is fully working on rAthena.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.