Jump to content

Mabuhay

Members
  • Posts

    446
  • Joined

  • Last visited

  • Days Won

    34

Everything posted by Mabuhay

  1. Version 1.0.0

    429 downloads

    I know it exists somewhere in the forum but for the sake of lazy people searching in forum, here is @itemrain command as what the command name says, it will make / drop items around the one who used the command on 14 cells wide ( about the size of the screen ) @item <item_id> <amount> Items created by this command is limited to 100 only just to put a little bit of cap into it. use at your own risk. Compatibility is your responsibility.
    Free
  2. Fixed the variable problem with the script. It should work now when script is gonna be approved. Thanks to @sader1992 for pointing it out. Edit: you can also use `.itemid_var` instead of global temp var `$@itemid_var` that i used in the script (same goes to amount var) . Lol, i just realised it now. But no biggy..
  3. View File @giveitem command Just a simple command for events or compensation reward to all online players. @giveitem <item id> <amount> <area|map|all> Area - ppl around your screen size Map - ppl in the map of the invoking character All - self explanatory Submitter Mabuhay Submitted 10/23/2019 Category Utilities Video Content Author Mabuhay  
  4. Version 1.0.2

    790 downloads

    Just a simple command for events or compensation reward to all online players. @giveitem <item id> <amount> <area|map|all> Area - ppl around your screen size Map - ppl in the map of the invoking character All - self explanatory
    Free
  5. prontera,150,180,0 script asjdnakjn 123,{ switch(Class) { case Job_Sniper: getitem 607, 1; getitem 608, 1; break; case Job_Professor: getitem 609, 1; getitem 610, 1; break; ...... } } You get the idea.. Just add a char or acc variable checker to make sure players dont abuse this system.
  6. OnNPCKillEvent: if ( killedrid == 1002 ) { getmapxy (.@map$, .@x, .@y, BL_PC); getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; for ( .@i = 0; .@i < $@partymembercount; ++.@i ) if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { attachrid ( $@partymemberaid[.@i]); getmapxy ( @map$, @x, @y, BL_PC ); if ( distance(.@x, .@y, @x, @y) < 15 && @map$ == .@map$ ) { // reduced the distance to 15 cells .@partymemberaid[.@c] = $@partymemberaid[.@i]; .@c++; } } sleep 1; getitem 607, 1, .@partymemberaid[rand(.@c)]; } end; @Rizz still untested
  7. The skills you added are treated like platinum skills. You need to adjust a lot a lot of stuff and i think you missed that part. I think both client and server side should be adjusted. Tbh, i think this isn't a script problem.
  8. If you want to use multiple mobs, just put them in array and run a loop. As for probability, do as you wish. I am only on mobile and i dont have any test server. So it is quite impossible for me to test if the code i wrote would work as per only party members around or within the screen will be rewarded. Afaik, there is no way in default rathena to retrieve if the player is currently dead. So it still might trigger if the party member who's dead would get the items long as he is within the mvp killer range (20 cells)
  9. OnNPCKillEvent: if ( killedrid == 1002 ) { getmapxy (.@map$, .@x, .@y, BL_PC); getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; for ( .@i = 0; .@i < $@partymembercount; ++.@i ) if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { attachrid ( $@partymemberaid[.@i]); getmapxy ( @map$, @x, @y, BL_PC ); if ( distance(.@x, .@y, @x, @y) > 20 && @map$ != .@map$ ) continue; else { .@partymemberaid[.@c] = $@partymemberaid[.@i]; .@c++; } } sleep 1; getitem 607, 1, .@partymemberaid[rand(.@c)]; } end; Untested
  10. View File Last Man Standing - Yet another version UPDATE: version 1 = I removed all my modifications on this script version 2 = Has timers and will most likely be in-conflict with other event scripts i made. Here is my take on a LMS Event. Just a simple one. Runs hourly or Manually run by a GM Reward can be set Enjoy. UPDATE 2.0: Changed to a new version that works like my other script events. ? Still runs hourly and manually run by a gm. Submitter Mabuhay Submitted 10/21/2019 Category Games, Events, Quests Video Content Author Mabuhay
  11. Look for sader's gepard variable function. You should see how to make this
  12. Version 2.0.1

    822 downloads

    UPDATE: version 1 = I removed all my modifications on this script version 2 = Has timers and will most likely be in-conflict with other event scripts i made. Here is my take on a LMS Event. Just a simple one. Runs hourly or Manually run by a GM Reward can be set Enjoy. UPDATE 2.0: Changed to a new version that works like my other script events. ? Still runs hourly and manually run by a gm.
    Free
  13. If pet reaches to certain level, it will change to another pet basically like pokemon. if baphomet jr pet reaches to level 50 > it will change to Baphomet pet Lv50 as well if possible with same intimacy as the baphomet jr before it evolved.
  14. resolved. use the item_db found in re folder. for some reason, they changed the weapon type as 5 and armor as 4 in item_db structure
  15. - script hourlypoints -1,{ OnPCLoginEvent: if(#limit == 1) { dispbottom "You have already reached the maximum points per day."; dispbottom "Wait until the next day for the timer to start."; } else { dispbottom "Hourly Points has been initiated in this account.";} set #Clock,#minute; set .@i, (gettime(7) * 365 * 24) + (gettime(8) * 24) + gettime(3);// this will set time of origional loging if(.@i >= (#LastClock + .ResetHours)){ set #LastClock,.@i; set #Clock,0; } else { set #minute,#Clock; } attachnpctimer(); startnpctimer(); end; OnTimer60000: if(#limit == 1) { stopnpctimer(); } else { setarray .@h_maps$[0],"vend_zone","vip_lounge"; for (set .@a, 0; .@a < getarraysize(.@h_maps$); set .@a, .@a + 1) { if(strcharinfo(3) == .@h_maps$[.@a]) { dispbottom "Hourly points is restricted in this map."; dispbottom "Please change map and relog if you wish to continue Hourly points."; stopnpctimer(); end; } } set #minute, #minute + 1; if(#minute == 60){ set .point_amt, 1; set #KAFRAPOINTS, #KAFRAPOINTS + .point_amt; dispbottom "You received "+.point_amt+" Free Donation points for staying in-game for 1 hour"; dispbottom "Current Balance = "+#KAFRAPOINTS+" Free Donation Points"; } if(#minute == 120){ set .point_amt, 2; set #KAFRAPOINTS, #KAFRAPOINTS + .point_amt; dispbottom "You received "+.point_amt+" Free Donation points for staying in-game for 2 hours"; dispbottom "Current Balance = "+#KAFRAPOINTS+" Free Donation Points"; } if(#minute == 240){ set .point_amt, 4; set #KAFRAPOINTS, #KAFRAPOINTS + .point_amt; dispbottom "You received "+.point_amt+" Free Donation points for staying in-game for 4 hours"; dispbottom "Current Balance = "+#KAFRAPOINTS+" Free Donation Points"; } if(#minute == 480){ set #minute,0; set #limit,1; set .point_amt, 13; set #KAFRAPOINTS, #KAFRAPOINTS + .point_amt; dispbottom "You received "+.point_amt+" Free Donation points for staying in-game for 8 hours"; dispbottom "Current Balance = "+#KAFRAPOINTS+" Free Donation Points"; sleep2 2000; dispbottom "You have already reached the maximum points per day."; dispbottom "Wait until 12:01 for the timer to start."; } stopnpctimer(); initnpctimer(); } end; OnInit: set .ResetHours,24; OnClock0001: set #minute,0; set #limit,0; sleep2 1000; stopnpctimer(); initnpctimer(); dispbottom "Timer has been restarted."; end; } So here is my hourly script. Based on multiple hourly points i have seen, however, i have this problem. I want to reset #minute and #limit to 0 when the server ticks to the next day. This script does that but only if the player is online. if he/she is not online, it wont be reset-ed.
  16. Any guides how can I make a custom MVP?
  17. How do I delete all Existing Memory of Thanatos Card [Weapon] Item ID# 4399 (Thanatos_Card) in my server? Thanks
  18. Paladin skills that requires shield, like defender, reflect shield, auto-guard, shield boomerang, and etc. , says Skill Failed even thou Im wearing a shield. Im using the latest SVN, and I dont think i messed up with something. Im using 2012-07-16 client thou. Everything works fine except for that.
  19. How come when I use any Paladin Skill that requires shield, It wont work? It says skill has failed. Btw, shield is already on.
  20. Fixed. Problem was packet related.
  21. Seem that im having trouble with regards on the guild position title. Everytime i try to change it, it will turn back to its original or sometimes it goes blank o_o
  22. Thanks for the quick response! Sorry I still learning to script though. LOL. Anyways, i'll try it when i get home
×
×
  • Create New...