Jump to content

Dori

Members
  • Posts

    332
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Dori

  1. This is a disguise script made by a friend of mine. This part right here, blocks all the monster IDs that does not exist in the mob_db.txt or the ID you don't want the npc to choose: I was wondering if someone could help me to write this part in a simpler way? So it is more organized and I could keep the unwanted IDs organized. Because currently I think I am missing some of the IDs and the script has some mini glitches due to that. Thank you for any help.
  2. I want to know how to completely clear everything related to a certain account (char, storage, inventory, pets..etc) with SQL. Thank you.
  3. Is there any way to do this through src instead of script?
  4. So...I want this for ever single quest in-game.. Making an Oninit script like the one below would do that? OnInit: .Party = 3; // Party options: 0 (exclude party kills), 1 (include party kills), 2 (same map only), 3 (screen area only) end; }
  5. Currently when you are doing an hunting quest with a party, the party has to be close by to each other for the kill count to be shared. I want to make it so that the party gets the kill count shared regardless of their position, in the same map. How do I go about doing this? Help is appreciated, thanks.
  6. So, here I am after 100 hours of struggling with this shit. I need someone's help, cuz I have NO CLUE on what the heck is wrong! First, the problem: It stay stuck like that....forever. This is what I have in the config.ini: Here is what I have on main.ini: Screenshot of the file setup SS: I have tried everything and I am so lost. Any help would be super massively and greatly appreciated!! SOLVED: problem was a missing '/' at the end of the folder path
  7. Hi, How can I write this using @kami? announce "A poring has appeared in "+setchar(.maps$[.raretreasure], strtoupper(charat(.maps$[.raretreasure],0)), 0)+"!",bc_all,0x5AFD4D; something like this atcommand "@kamic 7de2ff "+.News$[ rand( getarraysize( .News$ ) ) ]; Edit:Already figured it.
  8. Thank you so much for your help
  9. Oh ok so I did do it right..but it didn't work. it gave me debugs. Could you tell me how to get this work with @kami? announce .News$[ rand( getarraysize( .News$ ) ) ],bc_all,0xffb9f3;
  10. Where exactly do I put that in the script?
  11. But that would be a pain in the ass... I want the sound to play in all maps..
  12. I have this auto announce script and I want to add a sound effect when it announces, but the sound effect is not working. This is the script: - script News -1,{ OnInit: set .Time,30; // Announce every x Seconds. setarray .News$[0], // Random Message to be Announced "Message 1", "Message 2", "Message 3"; while(1) { soundeffectall "beep.wav",0; announce .News$[ rand( getarraysize( .News$ ) ) ],bc_all,0xffb9f3; sleep ( .Time * 1000 ); } end; }
  13. This way seems really annoying to do for over 500 pets.. Isn't there away to fix getitem issue for pet eggs? cuz long time ago I used the exact same method for my pet eggs (through a box) and worked like a charm. And back then pet eggs would break when hatching if the eggs were dropped by monsters, but that issue seems fixed now. It would be much better if I could fix this through src, would you know anything about how to fix it through src?
  14. Could you please show me how its done with a small example? because I also need to put a rate for these eggs.
  15. Hi, The pets in my server are obtained through a usable item box. The box gives random pet eggs using an item group in item_package.txt I receive the eggs from the box fine, the problem is when hatching the eggs break. Is there a way to fix this problem? If this cannot be fixed, is there away to do this somehow through a script and still keep the box item?
  16. This is the first time I've seen this debug, but when I opened an old blue box I kept getting the following debug: [Debug]: Source (NPC): FAKE_NPC (invisible/not on a map) I didn't get any items out of the obb either. I re-booted the server and it was working fine again. I want to know what caused it so it doesn't happen again in the future. Any ideas?
  17. What I'm saying is increasing the max hp through conf should not effect the bonus script. because all the items/equips that give hp and sp (armors etc) will also be effected. And you have to go edit them manually. I have set my max hp to double in the conf. now if I give an armor +100 hp in the script it will double and give 200. so if i want to give 100 i have to half it in the script. This is why I'm saying that these 2 (max hp on conf and bonus script) should be separated (in src).
  18. I've increase my max hp rate through conf. // Players' maximum HP rate? (Default is 100) hp_rate: 200 But I noticed that it is effecting the bonus scripts as well. I've noticed the ones shown below, and I'm not sure what other hp related bonuses are effected by this. bonus bMaxHP,n; MaxHP + n bonus bMaxHPrate,n; MaxHP + n% I want to remove this from effecting bonus scripts. Hopefully someone can guide me on this. Thank you rathena really should separate these 2. The bonus scripts should have nothing to do with increasing max hp.
  19. I'm not sure if this is a bug...but I want to know if anyone else experienced this. After reloadingscripts sometimes my NPC names change to '??????'. It doesn't happen with all of them but only like 1 or 2. Any ideas?
  20. I tried it out, but I keep getting the first item on the list. I don't get any of the other items. Here is what I have: function script rewardchest { setarray .@reward, 501,1, 60, 502,2, 40, 503,1, 40, 504,4, 30, 505,1, 20, 506,2, 10; .@size = getarraysize( .@reward ); for( set .@i, 2; .@i < .@size; .@i += 3 ) .@percent[.@i] += .@reward[.@i]; .@r = rand( .@percent[ .@size -1 ] +1 ); for( set .@i, 2; .@i < .@size; .@i += 3 ) if( .@percent[.@i] > .@r ) break; getitem .@reward[ .@i-2 ], .@reward[ .@i-1 ]; return; } EDIT: Nevermind, I found a better way of doing this using the item_package.txt Thanks anyways Capuche!
  21. I found this script on another topic made by Capuche. I want to be able to add an amount to the items received from the box. So for example: Apple x2 Orange x1 Red Potion x3 Here is the script: function script rewardchest { setarray .@reward, 20103, 60, 20104, 10, 20105, 10, 20106, 10, 20106, 5, 20107, 5; .@size = getarraysize( .@reward ); for( set .@i, 1; .@i < .@size; .@i += 2 ) .@percent[.@i] += .@reward[.@i]; .@r = rand( .@percent[ .@size -1 ] +1 ); for( set .@i, 1; .@i < .@size; .@i += 2 ) if( .@percent[.@i] > .@r ) break; getitem .@reward[ .@i-1 ], 1; return; } Thanks in advance for any help!
  22. Thank you Winz and Emistry!
  23. I have like...over 130 quests. Will I be able to fit it all in this? Is there no other way to like...set a starting range and an ending number? Something that basically tells the npc, ok if you find quests that are between 2200 - 2500, delete whichever?
×
×
  • Create New...