Angery Woodpecker

Members
  • Content count

    11
  • Joined

  • Last visited

About Angery Woodpecker

  • Rank
    Member

Profile Information

  • Gender
    Not Telling
  • Emulator:
    Hercules
  1. Guys, if there is no way to do that I need to know too. Thanks in advance.
  2. Hi, I want to make a script that is affected by the player luk, the problem is that I can only read the base luk, while I wanted to read the base luk + bonus from equipment + bonus from status change. Is there any way to do that? Thank you!
  3. Hello, so here is the whole story: we had this specific monster that could spawn only at night, so we made a script that checks every 10 minutes if it is night, then spawn the said monster. The problem is that this monster is for a quest, and it is required to tame this monster, but it seems that the ::OnKill event wasn't triggered this way, so we had to put another check there to count how many mobs are alive. tl;dr is there anyway to detect if a monster was tamed via script? I think it would require a source modification, but not sure where (thought this is a harder solution for a specific problem). Thanks
  4. What I usually do in cases like yours is to use attachrid() on every index of the info arrays, then do something for each player In your case, I think that you will need to run this loop twice: on the first time, you will for(blablabla){ attachrid(); if(BloodQuest != 6){ announce strcharinfo(0)+" needs to talk to the NPC first"; end; } } then in the second loop for(blablabla){ attachrid(); warp "map", x, y; } That way you wont need to use SQL. Search in the forum/downloads for the addrid() script command (plugin?), it may help a bit.
  5. Hmm I'll check it if it works it will solve this kind of problem for me. Thank you o/
  6. Oh :/ Well, that would be useful when using menus inside loops, because it prints each message line after line and, after some time, you need to scroll down the message window, and using a next button in this case would make things a bit annoying (extra click).
  7. Good morning Anyone knows if is there anyway to clear a message window without using the next/close buttons (followed by another mes command)? Thanks o/
  8. I'm not sure if I understood what you want. If you are talking about day/night time durations, there is a configuration somewhere to modify it. But if you are talking about making the time go faster, I think it is not "possible", but you could do it from zero with a NPC controlling it. Since the time you want is 1/12 of the original, maybe a npc that triggers every 83 ms (OnTimer83:) could increase a variable for seconds by 1, then after 3 increases it increase again to avoid desynchronization. OnTimer83: ++$sec; ++$secsinc; if($secsinc == 3){ $secsinc = 0; ++$sec; } initnpctimer; then do the rest for minutes, hours, etc.
  9. If the items can be repeated: setarray [email protected] , ....; for([email protected] = 0; [email protected] < 5; [email protected]) getitem [email protected][rand(getarraysize([email protected]))],1; end;/close; If they cant be repeated: setarray [email protected] , ....; for([email protected] = 0; [email protected] < 5; [email protected]){ [email protected] = rand(getarraysize([email protected])); getitem [email protected][[email protected]],1; deletearray [email protected][[email protected]],1; } end;/close; just be sure that you use setarray everytime the script is called, since it removes from the array :3