Jump to content

Sehrentos

Members
  • Content Count

    87
  • Avg. Content Per Day

    0
  • Joined

  • Last visited

  • Days Won

    1

Sehrentos last won the day on October 12 2018

Sehrentos had the most liked content!

Community Reputation

20 Excellent

4 Followers

About Sehrentos

  • Rank
    Santa Poring
  • Birthday 05/03/1989

Profile Information

  • Gender
    Male
  • Location
    Finland
  • Github
    Sehrentos
  • Interests
    Life, code, games

Recent Profile Visitors

1,654 profile views
  1. Hey, Have you tried with this ? *recovery <type>{,<option>,<revive_flag>{,<map name>}}; This command will revive and fully restore the HP/SP of the selected characters. It returns 1 upon successful use. <type> is the target, and determines the <option> parameter: 0: Player -> Character ID number 1: Party -> Party ID number 2: Guild -> Guild ID number 3: Map -> Map name (a string) 4: All -> None (takes <revive_flag> as option) If no option is specified, the invoking player's character ID, party ID, guild ID, or map will be used. <revive_flag> determines the action: 1: Revive and heal all players (default) 2: Heal living players only 4: Revive dead players only <map name> can optionally be used to define a single map to execute the command on for types 1 (party) and 2 (guild). Example: recovery 1, getcharid(1);
  2. Hey, Use instance commands when targeting instance NPC's, like the ones you commented out. instance_npcname(strnpcinfo(0))+"::OnMobDead"
  3. Yes, unit commands and you can also use a timer to check for nearby players to get players GID
  4. I don't have enough time or interest to continue updating this any further. If some one want's to continue or update it, feel free to do so. Thank you all for your feed back and support and have a happy late summer!
  5. Hi, I think its because inarray function does not exist. Check if your server support it in script commands.
  6. Filter multiple accounts to have 1 loot access instead of many? update: Added filter_same_ip option in this test version. @Radian This need more testing and if possible, a better detection. Link: https://pastebin.com/4AEtSbVb
  7. @Radian Yes, it's possible. I made a small update to the script.
  8. Hey @max65 No idea.. I have not been able to produce this effect on my test server. Hey @melv0 I have not been able to produce this effect on my test server. @CyberDevil Yes, i have not added amount array for the loots so that would need a little editing. To disable random appearance, comment (//) these lines out: // Set NPC size if class_id supports [email protected]_class = rand(495, 498); [email protected]_size = rand(0, 2); // 0=normal, 1=small, 2=big setnpcdisplay(strnpcinfo(0), strnpcinfo(1), [email protected]_class, [email protected]_size); Sorry for slow reply. I don't visit here so often any more.
  9. Yes, that is very much the same and that waiting room displaying time left is great addition.
  10. Greetings, Many times when i see some monster scripts like where you kill a MVP and get extra loots from. It is many times implemented as treasure chest monster that get summoned after MVP is killed and will trigger OnMobDie label. There it checks if he was the actual killer and is able to receive rewards. If there are many players nearby trying to kill same MVP and spamming AOE skills. This treasure chest's event label will get triggered on the first one who got the kill. So players keep spamming AOE, and the actual player who has the right to claim the reward keeps spamming AOE or wait until all players leave or get a lucky hit on it. How I implement this kind of event is by calling an NPC to that location and only the player who has access to the rewards will have a dialog open etc. So, my question is (I'm interested) how would you proceed in this kind of situation? Would it be with a Treasure Monster or Treasure NPC or Not summoning a visual treasure and just open dialog on MVP kill? Here is sample with monster unit: - script Sample -1,{ OnInit: monster "prontera",0,0,"--ja--",1093,1,strnpcinfo(0)+"::OnMobDie"; end; OnMobDie: getmapxy([email protected]$,[email protected],[email protected],0); monster [email protected]$,rand([email protected],[email protected]),rand([email protected],[email protected]),"--ja--",1324,1,strnpcinfo(0)+"::OnBoxKill"; end; OnBoxKill: // If checks your able to receive rewards //... // Else summon Treasure Chest again... getmapxy([email protected]$,[email protected],[email protected],0); monster [email protected]$,rand([email protected],[email protected]),rand([email protected],[email protected]),"--ja--",1324,1,strnpcinfo(0)+"::OnBoxKill"; end; } Here is sample with npc unit: - script Sample -1,{ OnInit: monster "prontera",0,0,"--ja--",1093,1,strnpcinfo(0)+"::OnMobDie"; end; OnMobDie: // ... save players access data ... // Get map coordinates for the Treasure Chest NPC getmapxy(.event_map$, .event_x, .event_y); [email protected] = 0; // Select what treasure npc to open [email protected]$ = "Treasure Chest#tc_"+ [email protected]; donpcevent [email protected]$ +"::OnEnable"; end; } // Treasure Chest NPC index = 0 prontera,0,0,5 script Treasure Chest#tc_0 1324,{ // If check player is able to receive rewards //... dialogs ... // If player received rewards, remove treasure NPC after close close2; [email protected] = 0; [email protected]$ = "Treasure Chest#tc_"+ [email protected]; donpcevent [email protected]$ +"::OnDisable"; end; OnInit: [email protected]$ = strnpcinfo(0); getmapxy(.map$, .x, .y, UNITTYPE_NPC); // Save default position disablenpc [email protected]$; end; OnDisable: [email protected] = getnpcid(0); [email protected]$ = strnpcinfo(0); unitwarp( [email protected], .map$, .x, .y ); // Return to default position disablenpc( [email protected]$ ); end; OnEnable: [email protected] = getnpcid(0); [email protected]$ = strnpcinfo(0); // get coordinates from event npc [email protected]$ = "Sample"; [email protected]$ = getvariableofnpc(.event_map$, [email protected]$); [email protected] = getvariableofnpc(.event_x, [email protected]$); [email protected] = getvariableofnpc(.event_y, [email protected]$); enablenpc( [email protected]$ ); unitwarp( [email protected], [email protected]$, [email protected], [email protected] ); // Move to new position end; } // You can also duplicate more treasure chests, if you need more alberta,0,0,5 duplicate(Treasure Chest#tc_0) Treasure Chest#tc_1 1324 I would love to hear your thoughts and ideas. Thanks
  11. Updated v2.9.3 changed the WorldBossRates NPC script to properly check for .use_floating_rates setting. Reported by @Quesooo
  12. Hey, Thank you. There is option to turn off the floating rates: .use_floating_rates = 0; // Increase servers exp and drop rates for 1 hour after boss kill(0=Disable, 1=Enable)
  13. Open the file in any text editor and edit that query_sql line: query_sql "SELECT char.char_id, char.name, char_reg_num.value FROM char_reg_num LEFT JOIN `char` ON char.char_id=char_reg_num.char_id WHERE char_reg_num.key='brokeemp' ORDER BY CAST(char_reg_num.value AS UNSIGNED) DESC LIMIT 10", [email protected]_id, [email protected]$, [email protected]; Then save it Complete sample: https://pastebin.com/5EFXpJnH
  14. Hey, The error says: Table global_reg_value doesn't exist. So, you can try and change the SQL statement: SELECT char.char_id, char.name, char_reg_num.value FROM char_reg_num LEFT JOIN `char` ON char.char_id=char_reg_num.char_id WHERE char_reg_num.key='brokeemp' ORDER BY CAST(char_reg_num.value AS UNSIGNED) DESC LIMIT 10; Hope this helps.
×
×
  • Create New...

Important Information

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