Jump to content

Daraen

Members
  • Content Count

    55
  • Joined

  • Last visited

  1. @Dastgir Why not have included the @listenbg commands for everyone, @bgstart or @bgstop for server administrators?
  2. Looks like you are using rAthena. You are on the wrong forum, however, solutions already exist on rAthena for your search. https://pastebin.com/raw/h33rNwKc
  3. Add this on your scroll item script
  4. It seems to me that you cannot use empty parentheses as your mistake indicates. Instead of the first parethesis, the script expects a ";" thus ignoring the rest of your line. So try without the parentheses. I don't have gepard so can't try your script.
  5. Can you give the details of your error in your console?
  6. Try to make this in src conf/plugins.conf and recompile plugins_list: [ /* Enable HPMHooking when plugins in use rely on Hooking */ "HPMHooking", //"db2sql", //"sample", //"other", "ExtendedBG", "ExtendedBG-char" ]
  7. Daraen

    Punching Bag

    Doing it like this, they work perfectly.
  8. Hello @Battosai I found this top mvp ranking from this link. Keep in mind that the wainting room doesn't update on its own, I just added it so you don't have to. Also keep in mind that the script is not up to date and only replaces the top # 1 value. So you have to do it by yourself. Also note that the variables are temporary and therefore that each time the server is restarted, the ranking is reset. //= ===== Hercules Script ====================================== //= MvP Rank Improved v1.0 //= ===== Hercules Script ====================================== //= This Rank will count every MvP you kill, //= to be more clear, will count every mob //= defined inside the array ".mobid[0]", //= so, if you add the poring ID will count in the rank //= you can modify and ad miniBoss because this array //= only have all MvPs, that's the idea, only MvPs... //= ============================================================ // --- Re-coded by Cookie --- // ===== Functions ===== function script mvp_rank { set @mvptotal, getarg(0); set @nomb$, getarg(1); for (set [email protected], 0; [email protected] < [email protected]; set [email protected], [email protected] + 1) { if (@mvptotal >= getd("$topmvp" [email protected])) { if (strcharinfo(0) == getd("$topmvp" [email protected] +"$")) { setd "$topmvp" [email protected], @mvptotal; setd "$topmvp" [email protected] +"$", @nomb$; return; } else { if (getd("$topmvp" +([email protected] + 1) +"$") == "") { setd "$topmvp" [email protected], @mvptotal; setd "$topmvp" [email protected] +"$", @nomb$; return; } else { setd "$topmvp" +([email protected] + 1), getd("$topmvp" [email protected]); setd "$topmvp" +([email protected] + 1) +"$", getd("$topmvp"[email protected]+"$"); setd "$topmvp" [email protected], @mvptotal; setd "$topmvp" [email protected] +"$", @nomb$; return; } } } } return; } function script mvp_rank_date { return gettime(7) + "-" + gettime(6) + "-" + gettime(5) + " " + gettime(3) + ":" + gettime(2) + ":" + gettime(1); } // ===== Script ====== - script Rank MvP -1,{ OnInit: // Set npc-specific variables setarray .mobid[0],1511,1647,1785,1630,1399,1039,1874,2068,1272,1719,1046,1389,1112,1115,1957,1418,1871,1252,1885,1768,1086,1688,1646,1373,1147,1059,1150,1956,2022,1087,1190,1038,1157,1159,1502,1623,1650,1583,1708,1312,1751,1685,1648,1917,1658,2238,1832,1492,1734,1251,1779,2156,2087; // MvP Ids set .a, 1; // Broadcast who killed the MvP and wich MvP and wick Map [0 Off - 1 On] set [email protected], 5; // Max. Top Rank (Hihgly recommended between 5~10, more maybe bug the server (limited variables) end; OnNPCKillEvent: // Script execution for (set [email protected], 0; [email protected] < getarraysize(.mobid); set [email protected], [email protected] + 1) { if (killedrid == .mobid[[email protected]]) { set [email protected], 1; // If a MvP } } if ([email protected]) // Indicates if not a MVP; if so, end script execution. end; if (.a) // If announcement is toggled, execute broadcast. //announce "[MVP System] " +strcharinfo(0) +" has killed a MVP [ " +getmonsterinfo(killedrid,0) +" ]",0,0xFFFFFF; // Check if MVP rank date perma-var is same as char var; if not, rank was reset and therefore the character var MvP should be if (mvp_rank_date$ != $mvp_rank_date$) { set mvp_rank_date$, $mvp_rank_date$; set MvP, 0; } set MvP, MvP + 1; callfunc ("mvp_rank",MvP,strcharinfo(0)); end; } prontera,156,181,4 script MVP Ranking Board 857,{ function checkPerm; // Check GM level; if (checkPerm()) { set [email protected], select ("Show Ranking:^FF0000Reset MVP Ranking^000000"); if ([email protected] == 2) { // Reset Ranking mes .npcname$; mes "Are you sure you would like to reset the MVP Ranking?"; next; set [email protected], select ("Confirm:Cancel"); if ([email protected] == 1) { for (set [email protected], 0; [email protected] < [email protected]; set [email protected], [email protected] + 1) { setd "$topmvp" [email protected], 0; setd "$topmvp" [email protected] +"$", ""; } set $mvp_rank_date$, callfunc("mvp_rank_date"); mes .npcname$; mes "The Ranking has been reset."; close; end; } else { close; end; } } } mes .npcname$; for (set [email protected], 0; [email protected] < [email protected]; set [email protected], [email protected] + 1) { mes "#^FF0000" +([email protected] + 1) +"^000000 [ ^0000FF" +getd("$topmvp" [email protected] +"$") +"^000000 ] with ^FF0000" +getd("$topmvp" [email protected]) +"^000000 MvP killed."; } close; end; // ========================= // ===== Configuration ===== // ========================= OnInit: set .npcname$, "[ MvP Rankings ]"; setarray .gm_perm[0],99; // Set all of the GMs that can access this if ($mvp_rank_date$ == "") { set $mvp_rank_date$, callfunc("mvp_rank_date"); } //waitingroom "Top Hunter ["+getd("$topmvp" [email protected] +"$") +"]",0; end; function checkPerm { for (set [email protected], 0; [email protected] < getarraysize(.gm_perm); set [email protected], [email protected] + 1) { if (getgmlevel() >= .gm_perm[[email protected]]) // Change this to >= or == dependent on if you're specifically wanting to set individual GM levels (==) or hierarchy (>=) return 1; } return 0; } }
  9. The command to change group_id is @adjgroup <group_id> use @ if you want it on yourself. Use #adjgroup to use it on a player! example: #adjgroup <char name> <parameters>. Regarding the script item, I haven't tested but don't forget to add it in "OnEquipScript:" this will allow the player to switch to group_id 10 as soon as he equips the object. If he disconnects, the player will revert to the default value defined in the sql. However, if the hat is still equipped when reconnecting, the group id will go back to 10 ( Thesis to be checked because it is not an OnPCLoginEvent : ). To switch back to group_id 0 when unequipping the object, use the same functions as in "OnEquipScript:" in an "OnUnequipScript:" and set the value to 0
  10. I am currently using this client with all of its sql and src features! I use the pre-renewal mechanics however star emperor and soul reaper not seem to be implanted. The project remains downloadable ^^ Changes your job. ----- Novice / 1st Class ----- 0 Novice 1 Swordman 2 Magician 3 Archer 4 Acolyte 5 Merchant 6 Thief ----- 2nd Class ----- 7 Knight 8 Priest 9 Wizard 10 Blacksmith 11 Hunter 12 Assassin 14 Crusader 15 Monk 16 Sage 17 Rogue 18 Alchemist 19 Bard 20 Dancer ----- High Novice / High 1st Class ----- 4001 Novice High 4002 Swordman High 4003 Magician High 4004 Archer High 4005 Acolyte High 4006 Merchant High 4007 Thief High ----- Transcendent 2nd Class ----- 4008 Lord Knight 4009 High Priest 4010 High Wizard 4011 Whitesmith 4012 Sniper 4013 Assassin Cross 4015 Paladin 4016 Champion 4017 Professor 4018 Stalker 4019 Creator 4020 Clown 4021 Gypsy ----- 3rd Class (Regular) ----- 4054 Rune Knight 4055 Warlock 4056 Ranger 4057 Arch Bishop 4058 Mechanic 4059 Guillotine Cross 4066 Royal Guard 4067 Sorcerer 4068 Minstrel 4069 Wanderer 4070 Sura 4071 Genetic 4072 Shadow Chaser ----- 3rd Class (Transcendent) ----- 4060 Rune Knight 4061 Warlock 4062 Ranger 4063 Arch Bishop 4064 Mechanic 4065 Guillotine Cross 4073 Royal Guard 4074 Sorcerer 4075 Minstrel 4076 Wanderer 4077 Sura 4078 Genetic 4079 Shadow Chaser ----- Expanded Class ----- 23 Super Novice 24 Gunslinger 25 Ninja 4045 Super Baby 4046 Taekwon 4047 Star Gladiator 4049 Soul Linker 4050 Gangsi 4051 Death Knight 4052 Dark Collector 4190 Ex. Super Novice 4191 Ex. Super Baby 4211 Kagerou 4212 Oboro 4215 Rebellion 4218 Summoner ----- Baby Novice And Baby 1st Class ----- 4023 Baby Novice 4024 Baby Swordman 4025 Baby Magician 4026 Baby Archer 4027 Baby Acolyte 4028 Baby Merchant 4029 Baby Thief ---- Baby 2nd Class ---- 4030 Baby Knight 4031 Baby Priest 4032 Baby Wizard 4033 Baby Blacksmith 4034 Baby Hunter 4035 Baby Assassin 4037 Baby Crusader 4038 Baby Monk 4039 Baby Sage 4040 Baby Rogue 4041 Baby Alchemist 4042 Baby Bard 4043 Baby Dancer ---- Baby 3rd Class ---- 4096 Baby Rune Knight 4097 Baby Warlock 4098 Baby Ranger 4099 Baby Arch Bis hop 4100 Baby Mechanic 4101 Baby Glt. Cross 4102 Baby Royal Guard 4103 Baby Sorcerer 4104 Baby Minstrel 4105 Baby Wanderer 4106 Baby Sura 4107 Baby Genetic 4108 Baby Shadow Chaser ---- Modes And Others ---- 22 Wedding 26 Christmas 27 Summer 4048 Star Gladiator (Union)
  11. Yes, my teammate find the solution, I upvote the answer so that everyone who has the problem can solve it!
  12. @anacondaq can you explain why i have this thing. I am using the files from your youtube video : -> Did you modify a few things to achieve this result?
  13. Need help, really important please.
  14. Before switching to Hercules, I was using rAthena and there was no such regen showing. We would say that it displays a skill regen such as increase HP recovery or increase SP recovery when it is not. How to remove this effect please?
×
×
  • Create New...

Important Information

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