Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/19/22 in all areas

  1. Hi. Script: | autobonus3 "{ bonus2 bSkillAtk,\"GN_CART_TORNADO\",20; }",1000,60000,"GN_CARTBOOST";
    1 point
  2. sorry i had a typo in the code. this one should work : - script max_castle_guild_members -1,{ OnInit: //settings here setarray .maps$, "prtg_cas01","prtg_cas03"; // insert your woe castles here .max_members_in_castle = 1; // set the maximum number of guild members in a castle //don't edit this for(.@i = 0; .@i < getarraysize(.maps$); .@i++) { if(!getmapflag(.maps$[.@i], mf_loadevent)) setmapflag .maps$[.@i], mf_loadevent; } end; OnPCLoadMapEvent: if(inarray(.maps$, strcharinfo(3)) == -1) end; if(getmapguildusers(strcharinfo(3), getcharid(2)) > .max_members_in_castle) { dispbottom "There can only be "+.max_members_in_castle+" guild members inside a castle during woe."; warp "SavePoint",0,0; } end; }
    1 point
  3. [SOLVED] thanks @Daegaladh ? For those of us who use PRE-RENEWAL, it is possible to disable that "warning" in conf/battle/feature.conf
    1 point
  4. change all the getitem / delitem part to this.... if( checkweight( 7037,.@num ) ){ getitem 7037,.@num; delitem 607,.@num*500; }else{ mes "You are Overweight"; } *checkweight(<item id>,<amount>) *checkweight("<item name>",<amount>) This function will compute and return 1 if the total weight of a specified number of specific items does not exceed the invoking character's carrying capacity, and 0 otherwise. It is important to see if a player can carry the items you expect to give them, failing to do that may open your script up to abuse or create some very unfair errors. This function, in addition to checking to see if the player is capable of holding a set amount of items, also ensures the player has room in their inventory for the item(s) they will be receiving. Like 'getitem', this function will also accept an 'english name' from the database as an argument.
    1 point
×
×
  • Create New...