Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/27/12 in all areas

  1. I think it would be useful to add a can_attack permission, so you can prevent GMs to attack monsters or players (to prevent corruption acts like: tanking players, get items to give to players, etc...). I've just coded it by myself, so here's the code Edit: I think I should add a check to pets, homunculus, mercenaries and elementals too... pc_groups.c { "use_changemaptype", PC_PERM_USE_CHANGEMAPTYPE }, { "all_commands", PC_PERM_USE_ALL_COMMANDS }, { "receive_requests", PC_PERM_RECEIVE_REQUESTS }, + { "can_attack", PC_PERM_ATTACK}, }; /** pc.h PC_PERM_USE_CHANGEMAPTYPE = 0x04000, PC_PERM_USE_ALL_COMMANDS = 0x08000, PC_PERM_RECEIVE_REQUESTS = 0x10000, + PC_PERM_ATTACK = 0x20000, }; #define pc_setdead(sd) ( (sd)->state.dead_sit = (sd)->vd.dead_sit = 1 ) clif.c : case 0x00: // once attack case 0x07: // continuous attack + if( !pc_has_permission(sd, PC_PERM_ATTACK) ) + return; + if( pc_cant_act(sd) || sd->sc.option&OPTION_HIDE ) return; if( skilllv < 1 ) skilllv = 1; //No clue, I have seen the client do this with guild skills :/ [skotlex] + if( !pc_has_permission(sd, PC_PERM_ATTACK) ) + return; + tmp = skill_get_inf(skillnum); if (tmp&INF_GROUND_SKILL || !tmp) return; //Using a ground/passive skill on a target? WRONG. /// There are various variants of this packet, some of them have padding between fields. void clif_parse_UseSkillToPos(int fd, struct map_session_data *sd) { + if( !pc_has_permission(sd, PC_PERM_ATTACK) ) + return; if (pc_cant_act(sd)) return; if (pc_issit(sd))
    2 points
  2. Packet_db 2012-06-18aRagexeRE //2012-06-18aRagexeRE[/size][/font] 0x0078,55 0x007c,44 0x00aa,9 0x00f3,-1,globalmessage,2:4 0x0193,2,closekafra,0 0x01a2,37 0x01fd,15,repairitem,2 0x0202,5,changedir,2:4 0x022c,65 0x022d,19,wanttoconnection,2:6:10:14:18 0x0281,-1,convertitem,2:4:8:12 0x0288,-1,npcpointshopbuy,2:4:8:10 0x0289,12 0x029b,80 0x035f,6,ticksend,2 0x0360,6,clickbuyingstorereq,2 0x0361,5,hommenu,4 0x0362,6,dropitem,2:4 0x0364,8,movefromkafra,2:4 0x0368,6,solvecharname,2 0x0369,7,actionrequest,2:6 0x0437,5,walktoxy,2 0x0438,10,useskilltopos,2:4:6:8 0x0439,8,useitem,2:4 0x07d9,268 0x07e4,6,takeitem,2 0x07ec,8,movetokafra,2:4 0x0802,26,partyinvite2,2 0x0815,-1,openbuyingstorereq,2:4:8:9:89 0x0817,2,closebuyingstorereq,0 0x083c,10,useskilltoid,2:4:6 0x0856,26,friendaddrequest,2 0x0940,-1,sellbuyingstorereq,2:4:8:12 0x096a,6,getcharnamerequest,2 Download 2012-06-18aRagexeRE.exe [Thank's Judas] Fix of Cart's/Favority Table ~ New carts, Favorite item tab, EFST_SIT [Post] Lua Files Up-to-date Version [Download] ~ Use Tortoise SVN to download that! Lua Files with missing Lub Files [Download] OBS: You will need ShinsDiffPatcher[SVN] with WDGSkipPacketHeaderObfuscation.dll from earthlingz. Preview of Client!
    1 point
  3. Kein Problem,wenn du nicht alles verstehst und danach noch fragen hast,sag mir bescheid!
    1 point
  4. data/viewpointtable.txt // ¸Ê À̸§ range scope range_IN rotationFrom rotationTo rotation_IN altitudeFrom altitudeTo altitude_IN abbey01.rsw# 250# 50# 270# 25# 65# 45# -50# -65# -50# abbey02.rsw# 250# 50# 270# 25# 65# 45# -50# -65# -50# abbey03.rsw# 250# 50# 270# 25# 65# 45# -50# -65# -50# delet this part Seizu~
    1 point
  5. Already have an topic talking about it: http://rathena.org/board/topic/66111-eathena-down/ Please, use it.
    1 point
  6. the one you show for tutorial in my post. i have read and no understand. some part tutorial missing. but for this.. is wow... teach every single part. thanks..... i will learn from this =)
    1 point
  7. I have some problem at Class Mastery: 1. The original job before purchase lost after purchase class and revert to it. - Suggestion : Add the original Job to Change class list 2. After Revert, We gain all the skills from that class. So its's kinda messy with max job lvl - Suggestion : Reset the jobskill and jobstat with total joblvl as current. So it will make the build manager do the work also. 3. When we change the class, The NPC become invisible. But if we @refresh it become visible again (i dunno if it was on purpose) But your script was really genius!!! i love it all~
    1 point
  8. WOE Controller updated to v1.1. This adds more useful configuration options, including auto-kicking from inactive castles during WOE, warps to active castles only, and support for multiple rewards, as requested by Lelouch.
    1 point
  9. @Jhosef, Brynner, Lunna, and everyone else with that problem: I've fixed that in the WOE Setter I wrote, if you'd like to try it~
    1 point
  10. Hi, Ibig mong sabihin i-fix na 200 ang required dex para sa no-cast? Or yung casting rate? Kung yung required 200 dex for no cast. Edit mo sa skill.conf Kung yung casting rate, edit mo ito sa skill.conf pa din. Hope that helps
    1 point
  11. [ Update ] : Added a Class Restriction Script : Description : This Script allow certain Maps to Block / Restrict certain Job Class. Configurations can be varies across the Maps settings. If the Class that are Blocked entering the Map, the Characters will be warped out from the Map within few seconds after they enter the Map. This Script will be able to answer / solve those below problems. Configuration : Bitwise Table and Usage : // -------- BitMasks -------- // 1 - Normal jobs, // 2 - Adv jobs. // 4 - Baby jobs, // 8 - Normal 3rd jobs. // 16 - Adv. 3rd jobs. // 32 - Baby 3rd jobs. // 64 - Certain Jobs ( Specific ) // ----- Mode Example : ( Blocked Class ) ------ // 63 - All Class that has been defined // 64 - Only the Specific Job you defined // 7 - Normal + Advanced + Baby Jobs // 56 - Normal 3rd + Advanced 3rd + Baby 3rd Jobs Notes : Just add in the Value for the Bitmask. Aware of the Usage of Certain Jobs. --- If you using Bitmask Above , aware of the Limit Reach. ( ~128 Total Class ) --- If your Bitmask = ( 63 + 64 ) , Your "Certain Jobs" have only about 20 Slots. --- Anyway, i dont think you will do so since Bitmask 63 will block most of the Class already. * Common Sense : Make sure the Array ".@Restrict" didnt exceed limit of 128 element. You may edit these below parts... but by default, i have list down most of the Job Class accordingly... // Normal Jobs if( getarg(0) & 1 ) setarray .@Restrict[getarraysize(.@Restrict)],0,1,2,3,4,5,6,7,8,9,10,11,12,14,15,16,17,18,19,20,23,24,25,4046,4047,4049; // Adv Jobs if( getarg(0) & 2 ) setarray .@Restrict[getarraysize(.@Restrict)],4001,4002,4003,4004,4005,4006,4007,4008,4009,4010,4011,4012,4013,4015,4016,4017,4018,4019,4020,4021; // Baby Jobs if( getarg(0) & 4 ) setarray .@Restrict[getarraysize(.@Restrict)],4023,4024,4025,4026,4027,4028,4029,4030,4031,4032,4033,4034,4035,4037,4038,4039,4040,4041,4042,4043,4045; // Normal 3rd Jobs if( getarg(0) & 8 ) setarray .@Restrict[getarraysize(.@Restrict)],4054,5055,4056,4057,4058,4059,4066,4067,4068,4069,4070,4071,4072; // Adv 3rd Jobs if( getarg(0) & 16 ) setarray .@Restrict[getarraysize(.@Restrict)],4060,4061,4062,4063,4064,4065,4073,4074,4075,4076,4077,4078,4079; // Baby 3rd Jobs if( getarg(0) & 32 ) setarray .@Restrict[getarraysize(.@Restrict)],4096,4097,4098,4099,4100,4101,4102,4103,4104,4105,4106,4107,4108; However,.....this is a special case ....... // Certain Jobs ( Specific Your Own Class Restriction ) if( getarg(0) & 64 ) setarray .@Restrict[getarraysize(.@Restrict)],4046,4002,4004,4013,4011; It would be better to Not using Bitwise 64 if your script already block all of the job class above ( Bitwise : 63 ) This is because, the limit might be exceed if you add too much Job Class in the Array for Bitwise ( 64 + 63 ) Anyway, i think it is still Okay to use Bitwise ( 64 + some of the other Bitwise ) ...but not All Bitwise combined. Settings : I guess you should be able to understand this part right ? so, i will skip this parts. // Wait X Seconds before warped out. set .Sec,5; // Lowest GM Level to Bypass set .LowGMLvl,80; Here come the Maps Settings Parts. setarray .Map$, // <Mapname>,<Mode>.... ( Mode = Bitwise Value ) Max of ~64 Map Settings. "prtg_cas01","63", "prtg_cas02","64", "prtg_cas03","3", "prtg_cas04","2", "prtg_cas05","1"; You should be able to realize that....the setting are done in this Format.. <MapName>, <Mode>, ......... <MapName>, <Mode>; the Mode refer to the Bitwise Value ( Blocked Class for the Map ) and the Mode are write within Quotation Mark ( " " ) as a string. refer to above Bitwise Table for how to configure the Bitwise Value for Restrict those Job Class. You may add up to ~64 Maps. Example : "prtg_cas01","63", // --------> Restrict "All" the Job Class ( Except "Certain Jobs" ) "prtg_cas02","64", // --------> Restrict "Certain Jobs" ( Specified by Yourself ) "prtg_cas03","3", // --------> Restrict "Normal & Advanced Job" Class "prtg_cas04","2", // --------> Restrict "Advance" Jobs "prtg_cas05","1"; // --------> Restrict "Normal" Jobs Class Restriction [ Version 2 ] Changelog : Scripts : View ♥ Download Please spend your time to read all the things i have write / mentioned in the post before you asking any questions. if got bug / problems please do report to me.
    1 point
×
×
  • Create New...