Jump to content

RifuI

Members
  • Posts

    9
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling
  • Location
    Melbourne

Recent Profile Visitors

896 profile views

RifuI's Achievements

Poring

Poring (1/15)

0

Reputation

  1. Thank you. I just worked the logic out before you posted this. But your reply helped anyway as before hand I was disabling all npc's and then checking afterwards if they should be enabled. The else statement makes a lot more sense. I'm still having issues with what I thought would be quick and easy =/. OnInit loads before the NPC is actually enabled, so when the server starts I get an stating that the script isn't enabled when it goes to disable it. I've included the whole script because there is probably a better way to do this, I also looked through the thread you linked in but couldn't work out how WoE starts when the server does if it's inside the alotted time. - script Artifact Collector::HE_U 680,{ // NPC Name set .name$,"[ ^FF0000Joseph^000000 ]"; mes .name$; mes "^00FF00 ~If I can just make my way to the center...*^000000"; mes "Who's there?!.."; next; mes "Oh, it's just you.. the one from the Academy right?"; mes "I'm sorry, it's really dark in here and all sorts of"; mes "things are lurking around."; if (select("What are you doing here?:Just passing by.") == 1) { mes "I'm here studying the ancient artifacts."; mes "They have special properties and with the right magic"; mes "one can craft powerful equipment imbued with the essence"; mes "of their power."; close; } else { close; } OnClock1000: enablenpc "Artifact Collector#01"; OnClock1400: disablenpc "Artifact Collector#01"; enablenpc "Artifact Collector#02"; OnClock1800: disablenpc "Artifact Collector#02"; OnClock2200: enablenpc "Artifact Collector#03"; OnClock0200: disablenpc "Artifact Collector#03"; OnInit: // NPC:SunkenShip from 10AM - 2PM Servertime // NPC:Abyss Lake03 from 4PM - 8PM Servertime // NPC:Pyramid 06 from 10PM - 2AM Servertime setarray .mapSunken[0], 10, 14; setarray .mapAbyss[0], 16, 20; setarray .mapPyramid[0], 22, 2; set .time, gettime(3); if( .time >= .mapSunken[0] && .time < .mapSunken[1] ) { enablenpc "Artifact Collector#01"; } else { disablenpc "Artifact Collect#01"; } if( .time >= .mapAbyss[0] && .time < .mapAbyss[1] ) { enablenpc "Artifact Collector#02"; } else { disablenpc "Artifact Collector#02"; } if( .time >= .mapPyramid[0] || .time < .mapPyramid[1] ) { enablenpc "Artifact Collector#03"; } else { disablenpc "Artifact Collector#03"; } end; } treasure02,53,34,0 duplicate(HE_U) Artifact Collector#01 680 abyss_03,95,101,0 duplicate(HE_U) Artifact Collector#02 680 moc_pryd06,186,13,4 duplicate(HE_U) Artifact Collector#03 680
  2. Hi there, I'm trying to get an NPC to spawn at different locations at different times. I want my NPC to be spawned at location x for y amount of time. Here is my issue: if( .time >= 22 && .time < ???? ) { enablenpc "Artifact Collector#03"; } The NPC is supposed to be on this map for 4 hours, between 10PM and 2AM.
  3. Editing a map spawn file "mobs/fields/splendide.txt", I erased all mobs and went about testing my own spawns. spl_fild01,378,317,0,0 monster Poring 1002,2,0,0,0 This spawns 2 Porings on the same cell at the desired location. spl_fild01,378,317,379,316 monster Poring 1002,2,0,0,0 This spawns 2 Porings on two random cells. Am I missing something?
  4. RifuI

    Autoheal

    Fairly new to scripting, so unsure of correct syntax. Tried multiple source edits and haven't been succesful, please point me in the right direction. What i'm trying to achieve(pseudo code): while ( !(combat) ) { for ( time_not_in_combat ) { hp_regen_rate += MaxHp / 10; } } I really did give it a genuine shot, even from a programmer's background, there is so much to learn.
  5. What project would that be? I am actually interested in teaming up with someone as long as they share similar ideas. Hit me up in PM mate, would love to chat. Also you might want to check up on the definition of 'deprecated', your sentence sounds a bit odd hehe.
  6. Hey I found the fix for it. I hadn't included the packet_db for ver 29, but I had ver 30. Must of been because I started with a revision that didn't include it to begin with. After this painstaking quest to find out how to get 2012-04-10aRagexeRE I feel that I should write a complete checklist/guide since the steps involved really are a bit of a treasure hunt. Information is spread far too thin over these forums and too many people tirelessly point people to the search button when that information isn't there anymore due to outdated links. If anyone does require additional help with this, I will gladly help. EDIT: You need these two files to properly diff your client for 2012-04-10aRagexeRE - http://supportmii.com/ro1/Clients/Weediff2012Pack_v5.7.7z - http://aarnet.dl.sourceforge.net/project/atwl/WeeDiffGen/WDGSkipPacketHeaderObfuscation.dll After downloading both files, replace the WDGSkipPacketHeaderObfuscation.dll that comes with Weediff2012Pack_v5.7.7z with the one you downloaded individually.
  7. Did you ever get this fixed man? I have been devouring this forum for answers and cannot for the life of me find a solution. I have read all of your posts regarding the matter and followed your trail, confirming where the error comes from and why it happens, however I can't find a fix for it.
×
×
  • Create New...