Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/23/17 in all areas

  1. This mod was ported from a Hercules plugin by @bio which can be found here. Thank you for the great idea. This mod implements a new script command called `sellitem` which works just like `callshop`, but only for selling items. This command has an ability to filter out unwanted items that you don't want to display in selling shop. The <type> parameter is for specifying the filter type. SFT_TYPE - Type filter SFT_ID - ID filter Item type filter hides every item that isn't of type specified in <param> parameter. You can set nth bit of <param> to allow certain item type to be displayed. Where n is an item type's numerical value. See src/map/script_constants.h for more info. Item ID filter hides every item whose ID isn't equal to <param>. <Overcharge> parameter controls whether overcharge skill will affect item value display in the window. Example usages: mes "[ Jellopy Lover ]"; mes "I buy Jellopy for 50 Poring coins each."; close2; npcshopattach "JellopyShop"; sellitem "JellopyShop",SFT_ID,909; end; mes "[ Rare Items Collector ]"; mes "Sell me some rare items and cards"; close2; .@filter |= 1 << IT_CARD; .@filter |= 1 << IT_ARMOR; .@filter |= 1 << IT_WEAPON; npcshopattach "CardShop"; sellitem "CardShop",SFT_TYPE,.@filter; end; DOWNLOAD THE DIFF FILE
    1 point
  2. For some time now, the Badges and Awards system has been dormant while cleanups of the forums has taken a priority. I'm pleased to announce that this system is now back in effect The process is the same for badge recommendations. You can recommend a member of rAthena for a badge and one of the Moderators will take care of the issuance. The requirements for badges has changed and is now no longer a set "You need to have x quality releases" as everyone's opinion of what "quality" is can vary. Both members and staff are encouraged to discuss the outcome of the recommendation before a decision to award is made (or declined). You can view the available badges and awards from the Awards link under "Community" in the main navigation. You will also find the link to the recommendations page there too! We've tried to remove some of the stigma and seriousness of these badges and would like to promote them as a fun addition to the forums. Each of the tiered sets contains 3 badges. While there are a total of 27 badges available, you will only be able to have a maximum of 12 due to the lower tier badges being swapped out for the higher tier. So far the highest badge count for any user on the forums is 3 badges, so it should be easy enough to catch up and overtake older members if you're active enough. Gotta Catch 'em All!?
    1 point
  3. Send me a badge too please. Also +1 to Skorm's idea about the community scripting event. I'll probably lose out, but I do want to test out stuff here and there and see how it works, so yeah, that would favor those who are still learning and those who already got it in the bag.
    1 point
  4. Hold another community scripting event I'm mad that goddamnit is the only one with that badge. Perhaps whoever can come up with the best instance. Then they will all be released for free. But thanks for adding this back I haven't a single badge, so it's cool.
    1 point
  5. I just wanted to add on Akky's answer a little. I don't necessarily recommend either of these options because if your server has lots of players it can create stress. You should always remove the variable from the script that originally assigned it after it's done being used. With that said here are two ways of removing a variable/array when players enter a specific map. Method one OnPCLoadMapEvent: - script delete_var_123 -1,{ OnPCLoadMapEvent: if( strcharinfo(3) == "prontera" ) { deletearray player_array; // You can remove arrays with this command. player_variable = 0; // As Akky said remove variables by setting them to zero. } } prontera mapflag loadevent Method two OnTouch: prontera,1,1,1 script delete_var_111 111,1111,1111,{ OnTouch: deletearray player_array; // You can remove arrays with this command. player_variable = 0; // As Akky said remove variables by setting them to zero. }
    1 point
  6. Not that I know of... I've never tried OnEquip_Script inside of a npc script but I don't see how that would even work. That being said there is an alternative. I'm just going to post the two methods I worked out feel free to use either although they are both untested. Simple: - script set_script_npc -1,{ for( .@a = 0; .@a < .len; .@a++ ) setitemscript .item_ids[.@a], "{ atcommand \"@refine "+getiteminfo( .item_ids[.@a], 5 )+" 20\"; }", 1; end; OnInit: setarray .item_ids, 2220, 2301, 1201, 2101; .len = getarraysize( .item_ids ); } Convoluted: - script set_script_npc -1,{ for( .@a = 0; .@a < .len; .@a++ ) { .@equip_loc = getiteminfo( .item_ids[.@a], 5 ); for( .@b = 0; pow( 2, .@b ) <= .@equip_loc; .@b++ ) if( .@equip_loc & pow( 2, .@b ) ) { setitemscript .item_ids[.@a], "{ callfunc(\"on_eq_refiner\","+.script_equip_slot[.@a]+"); }", 1; break; } } end; OnInit: setarray .item_ids, 2220, 2301, 1201, 2101; setarray .script_equip_slot, EQI_HEAD_LOW, EQI_HAND_R, EQI_ACC_R, EQI_ARMOR, EQI_HAND_L, EQI_SHOES, EQI_ACC_L, EQI_HEAD_TOP, EQI_HEAD_MID, EQI_COSTUME_HEAD_TOP, EQI_COSTUME_HEAD_MID, EQI_COSTUME_HEAD_LOW, EQI_COSTUME_GARMENT, 0, EQI_AMMO, EQI_SHADOW_ARMOR, EQI_SHADOW_WEAPON, EQI_SHADOW_SHIELD, EQI_SHADOW_SHOES, EQI_SHADOW_ACC_R, EQI_SHADOW_ACC_L; .len = getarraysize( .item_ids ); } function script on_eq_refiner { .@refine = getequiprefinerycnt( getarg(0) ); if( .@refine < 20 ) successrefitem getarg(0), 20 - .@refine; return; }
    1 point
  7. 1 point
  8. Version , the white city

    2506 downloads

    Livion is a white city ^^ I hope enjoy it xD
    Free
    1 point
  9. Found in clif.c #if PACKETVER >= 20070918 clif_partyinvitationstate(sd); clif_equipcheckbox(sd); #endif Comment them to remove.
    1 point
×
×
  • Create New...