Jump to content

Mabuhay

Members
  • Posts

    446
  • Joined

  • Last visited

  • Days Won

    34

Everything posted by Mabuhay

  1. - script mvpkill -1,{ OnNPCKillEvent: if ( getmonsterinfo( killedrid, MOB_MVPEXP ) && rand(100) < 20 ) { if ( getcharid(1) ) { getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { // what happens if someone in the party member is offline =/ .@partymemberaid[.@c] = $@partymemberaid[.@i]; .@c++; } } getitem 8400, 2, .@partymemberaid[ rand( .@c ) ]; announce "Player ["+ strcharinfo(0) +"] of ["+ strcharinfo(1) +"] party has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" at "+ strcharinfo(3), 0; } else { getitem 8400, 2; announce "Player ["+ strcharinfo(0) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" at "+ strcharinfo(3), 0; } } if( getmonsterinfo(killedrid, 21) & 0x0020 && rand(100) < 20 ) { if ( getcharid(1) ) { getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { // what happens if someone in the party member is offline =/ .@partymemberaid[.@c] = $@partymemberaid[.@i]; .@c++; } } getitem 8404, 1, .@partymemberaid[ rand( .@c ) ]; announce "You have received an item by killing "+ getmonsterinfo( killedrid, MOB_NAME ) +" .", bc_self; } else { getitem 8404, 1; announce "You have received an item by killing "+ getmonsterinfo( killedrid, MOB_NAME ) +" .", bc_self; } } end; } i made this script. upon killing a mini boss, player must get the item. but the problem is that even the MVP will drop the same item. help!
  2. Every hour/2 hours (much better if it can be easily configured) a random MVP will be spawned in a random town map. the npc will announce what MVP and what town was it summoned. upon summoning, the players will only have 2 mins (or configurable) to kill it, otherwise, the MVP will be automatically be killed and no one gets the reward. countdown timer will be announced. 30 secs before the MVP will die if players fail to kill mvp, it will kill everyone in the map then mvp disappears. The one who kills the MVP before the designated time will be rewarded a special item (607). Other mvp drop items are disabled aside from that reward specified. MVP killer will be announced.
  3. basically, a box when opened will give random item reward with a success chance. sample, yggdrasil berry will be attained with a chance of 60%, yggdrasil seed will be attained with a chance of 40%, gold will be attained for 2%. the thing here is that, once the box is opened, there will be a progress bar for like 2 secs before the item is attained. my purpose of this is to prevent unwanted spam of the box. also, if someone happens to receive an item with a success chance of 5% and below will announce to the whole server that player1 has attain a rare item [item name] Thanks in advance :3 Done with the box and rewards, all i need is the progress bar thingy. Please help
  4. woopsies. some more problems. only one member can see the announcement, the rest cant @_@ event the leader himself cant see his msg.
  5. This is what im looking for!! weeeeeee no src mod. THanks Capuche! PS: Bugged, it announce to all, not exclusive on guild mems only
  6. with this function, the guild leader can announce/broadcast to the members and members will read the guild leader's command easily. Thanks patskie! will try this soon.
  7. the title says it. a script that will make a broadcast announcement for guild mem on a guild only. thanks :3
  8. prontera,148,189,5 script Map Warper 456,{ function t; .@item_required = 607; .@timer_allow = 3600 * 2; // allow to warp 1h .@level_required = 255; .@special_map$ = "map_01"; .@special_map1$ = "map_02"; .@special_map2$ = "map_03"; if ( #allow_use_warper && #allow_use_warper > gettimetick(2) ) { mes "you can use the warp for "+ t( #allow_use_warper - gettimetick(2) ); next; } else { if ( #allow_use_warper && #allow_use_warper < gettimetick(2) ) { #allow_use_warper = 0; setd ".allow_"+ getcharid(3), 0; } if ( BaseLevel < .@level_required ) { mes "you must be level "+ .@level_required +" to go further."; close; } else if ( countitem( .@item_required ) == 0 ) { mes "you need a "+ getitemname( .@item_required ); close; } else if ( #delay_special_warp > gettimetick(2) ) { mes "I'm sorry you can't use this warper. you must wait "+ t( #delay_special_warp - gettimetick(2) ); close; } } mes "Where would you want to go?"; switch(select( "map_01:map_02:map_03" )) { Case 1: warp .@special_map$,0,0; // your warp map if ( !#allow_use_warper ) { #allow_use_warper = gettimetick(2) + .@timer_allow; #delay_special_warp = gettimetick(2) + 86400 / 7; // 1 week of delay } if ( !getd( ".allow_"+ getcharid(3) ) ) { setd ".allow_"+ getcharid(3), 1; attachnpctimer; initnpctimer; } end; Case 2: warp .@special_map1$,0,0; // your warp map if ( !#allow_use_warper ) { #allow_use_warper = gettimetick(2) + .@timer_allow; #delay_special_warp = gettimetick(2) + 86400 / 7; // 1 week of delay } if ( !getd( ".allow_"+ getcharid(3) ) ) { setd ".allow_"+ getcharid(3), 1; attachnpctimer; initnpctimer; } end; Case 3: warp .@special_map2$,0,0; // your warp map if ( !#allow_use_warper ) { #allow_use_warper = gettimetick(2) + .@timer_allow; #delay_special_warp = gettimetick(2) + 86400 / 7; // 1 week of delay } if ( !getd( ".allow_"+ getcharid(3) ) ) { setd ".allow_"+ getcharid(3), 1; attachnpctimer; initnpctimer; } end; } OnTimer300000: // check timer every 5mins OnTimer600000: OnTimer900000: OnTimer1200000: OnTimer1500000: OnTimer1800000: OnTimer2100000: OnTimer2400000: OnTimer2700000: OnTimer3000000: OnTimer3300000: OnTimer3600000: if ( strcharinfo(3) == .@special_map$ && #allow_use_warper && #allow_use_warper < gettimetick(2) ) { stopnpctimer; warp "prontera",0,0; message strcharinfo(0), "end of time"; setd ".allow_"+ getcharid(3), 0; } else if ( strcharinfo(3) != .@special_map$ ) stopnpctimer; end; function t { function s; set .@left, getarg(0); if ( .@left <= 0 ) return getarg(0); set .@day, .@left / 86400; set .@hour, .@left % 86400 / 3600; set .@min, .@left % 3600 / 60; set .@sec, .@left % 60; return ( ( .@day ? .@day +" day"+ s( .@day ) : "" ) + ( .@hour ? .@hour +" hour"+ s( .@hour ) : "" ) + ( .@min ? .@min +" min"+ s( .@min ) : "" ) + ( .@sec ? .@sec +" sec"+ s( .@sec,1 ) : "" ) ); function s { return ( ( getarg(0) > 1 ? "s" : "" ) + ( getarg(1,0) ? "" : " " ) ); } } } I need a little help for that script. = The required item will be consumed once upon activating the warper. = While warper is activated, the npc will not ask for the required item anymore until the next day he enters. = So the next time the player reactivates the warper, it will ask for the requirement again. Thanks :3
  9. I added a custom bow, problem is that the server does not detect it as a bow. does not even uses arrow. My item_db2: 21000,Soaring_Bird,Soaring Bird,4,50,10,30,60,,10,4,0x000A0848,7,2,34,4,1,1,98,{},{},{} 98 is my custom weapon view id. Weapontable.lua WEAPONTYPE_Soaring_Bird = 98, ... [Weapon_IDs.WEAPONTYPE_Soaring_Bird] = "_21000", ... [Weapon_IDs.WEAPONTYPE_Soaring_Bird] = Weapon_IDs.WEAPONTYPE_BOW, Any problem with this? help Tried using the 1700 and above also with 18100 above ids for bow, still not working.. fixed
  10. Thanks Capuche! I'll try this one later once i get home :3
  11. which file did u use? ur svn? getting any error when patching and recompiling? btw, map crashed after u running it on recompile. No errors after patching and recompiling. Map server crashes after i log in to any characters. Im using 17300+ something.
  12. After casting asura *SOMETIMES, it does NOT CONSUME SP. *SOMETIMES, with a little SP, then casting asura WILL FULLY RECOVER THE SP. Help! Using pre-re fixed - i messed up my src files
  13. *A warper to a certain map that requires a certain item. *After consuming item, player can use the warper but for 1hr only. *After an hour, he can enter again only after a day. *basically, one hour per day. *This is an account based timer not per character More specific explanation: sample: required item is 607 NPC will require the player to be max-ed level 99 with 1pc of 607 as requirement. If confirmed, NPC will consume 1pc of 607 then player can now use the warper freely for 1hr. Also, while player is in the map, player has only 1 hr to stay. After an hour, he will be warped out from the map. After his time expires, there will be one day delay before he can enter again. After a day, NPC will again require the item and so on. Please help thanks :3
  14. crashed my map-server after recompiling
  15. I thought of this. So, I guess there is no other way. Thanks Euphy and Emistry!
  16. Dunno if im in the right section to post. Anyways, please move it if not. How this works: This is like the system implemented in Dragon Nest. A weapon/armor can be enhanced by using suffixes like <Weapon name> (Suffix) ,example: Knife(Wind). So basically, knife without suffix gives a normal knife stat. but after adding the suffix, knife now, since wind (suffix), will have extra agility. Is it possible to implement this also in ragnarok? Any one who can possibly do this, please post here or simply PM me.
  17. I wanna help on a little edit for my script. I want to manually set the number of special zombies in-game and number of normal zombies. Also, i want to reset the no skill mapflag after the event has ended. here is my script: removed Thanks
  18. How to disable using pots for 5 seconds after asura strike has been casted? i set my server at a 0 casting rate and 0 delay rate -- incase this info would be helpful
  19. @cydh what if i want to add extra bonus to a specific weapon only? i mean if i want item 11607(sword for example) to have extra + 5 str per refine but i want item 11608(another sword) to have extra + 10 str per refine
  20. Thanks for the Info Euphy! I'll be waiting for this
  21. Not really sure if im in the right section i saw this link on Hercule http://hercules.ws/board/topic/1105-hercules-wpe-free-june-14th-patch/page-2#entry8222 I was wondering if anyone can convert this for rA?
  22. Thanks About this part. Im not good at scripting, so if you mind? how can i fix this
×
×
  • Create New...