Jump to content

Stolao

Developer
  • Posts

    1,443
  • Joined

  • Last visited

  • Days Won

    39

Posts posted by Stolao

  1. 8 hours ago, JusJusJus said:

    Gates of Hell damage is affected by range modifier and should not be the official behavior of the skill. Any idea on how to fix this ?

    Source: https://irowiki.org/wiki/Gates_of_Hell

     

    image.thumb.png.aeda726f22d3107c5b212040cc6e148a.png

    rAthena follows kro not iro but to 'fix' you just need to flag it as ranged.

  2. 3: would require you recode BB butmain part you want to change is the "--ja--" to "["+strcharinfo(0)+"] "+commandformobname()

    4: might already exists bit add a variable to autoloot (either script or src) if the variable is active disable it on map entry

    4b: can also make a script that drops the items for those monster instead of having in the mobs drops.

     

    On phone but you should get idea

  3. 15 hours ago, Zycron said:

    Thanks if I make these changes will people have to re level characters or will it adjust existing characters?

    This will adjust all character of class you edit once this is reloaded.

  4. I'm mostly here to make a project I enjoy making and playing I don't care about player base nor what others want for most part. If your here to make the next big server I wish you the best of luck.

     

    As for a place to practice your coding rAthena is a good emulator to work in I have found most the restrictions you will find are client side rather then server side as a heads up.

  5. 4 hours ago, sokarpupe said:

     

    Stolao, excuse me, any solution?

    21031,Caja_1,Caja de Nivel,2,0,,0,,,,,0xFFFFFFFF,63,2,,,70,,2000,{ callfunc("F_RandWeight",501,1,502,1,503,1,504,1); },{},{
    

    it was missing a comma in the other one, creating inf loop, fixed
    this works fine just tested

     

  6. 1 hour ago, klesler said:

    I tested it with some changes:

     

    .@m = select(implode(.@MapList$,":")) - 1;
    			if(.MapMode[.@m]&2){
    				mes "You are about to enter NIGHTMARE PvP, on death you will lose gear randomly.";
    				if(select("Nevermind:Continue") == 2) {
    						if(.MaxPlayers[.@m] && getmapusers(.MapName$[.@m]) >= .MaxPlayers[.@m]){
    								mes "Room is Full.";
    								close;
    							} else	if(.MapMode[.@m]&8 && (countitem(607) || countitem(608))){
    							 	mes "No "+getitemname(607)+" or "+getitemname(608)+" Allowed.";
    							 	close;
    						 	} else 	if(.MapMode[.@m]&16){
    								mes "No 3rd Classes Allowed.";
    								close;
    							} else	if(.MapMode[.@m]&32){
    								mes "No Trans Classes Allowed.";
    								close;
    							} else {
    								warp .MapName$[.@m],0,0;
    								announce "[ PvP Warper ] "+strcharinfo(0)+" has entered in "+((.MapMode[.@m]&1)?"GvG":"PvP")+" Room",0,((.MapMode[.@m]&1)?0x00CC99:0xEE0000);
    							}
    				} else { close; }
    			}
    	}
    	end;

    And it worked well, maybe it just need some refactoring, but I'll let this part with you :D

    The problem was indeed caused by the close; right after your if () {

    Best,
    Gabriel.

    I see my error, on selection of continue it falls through all the way to the end instead of the warp.

     

    Ty for reporting

  7. 2201,Sunglasses,Sunglasses,5,5000,,100,,0,,0,0xFFFFFFFF,7,2,512,,0,0,12,{  },{ set @gear,3; callfunc ChooseHeadgear; },{ setlook 3,0; }
    Like so
     
     
    You want a setlook "gear",0; in the on unequip field
  8. 1 hour ago, joao said:

    Despite of rAthenas' scripts not supporting decimals, I was wondering if there's a way to, for example, write a formula in C, compile it, and then call this C script inside a rAthena script (or must I do everything in C?). If you guys know any other way, or have any other suggestions on using decimals in rAthena, I'd love to hear. Thanks for the support!

     

    EDIT: If I, for example, assign a formula to a variable (even if it contains divisions), and then multiply it by 10000000 (assuming there's a limit to the decimals), would it work properly or would I have any problem (maybe overflow)? Example:

    [email protected] = (x/7)*100000000

    You should organize your equation with fractions in mind.

     

    You can write formula 'supporting' decimals but doing something along these lines

    X = 123456

    Mes X/100 +"."+ (X%100);

     

    This will show "123.456"

     

     

  9. 8 hours ago, sokarpupe said:

    thx, I use your scrip, but ... it did not work, I don't know which direction to enter the script in my rA emulator, i entry this in rA/npc/custom and, use the line item

    .

    21031,Caja_1,Caja de Nivel,2,0,,0,,,,,0xFFFFFFFF,63,2,,,70,,2000,{ callfunc "F_RandWeight",501,1,502,1503,1,504,1; },{},{}

    and it did not work :(

     

    Ok I haven't updated/tested the script in a while let me check once I get home assuming someone else doesn't show a fix before then

  10. 6 minutes ago, klesler said:
    case 1:
    			.@m = select(implode(.MapList$,":")) - 1;
    			.@executa = 1;
    			if( .MapMode[.@m]&2 ){
    				mes "You are about to enter NIGHTMARE PvP, on death you will lose gear randomly.";
    				if(select("Nevermind:Continue") != 2) .@executa = 0;
    			}
    			
    			if(getmapusers(.MapName$[.@m]) >= .MaxPlayers[.@m]){
    				mes "Sala Cheia.";
    				.@executa = 0;
    			} else	if(.MapMode[.@m]&8 && (countitem(607) || countitem(608))){
    				mes "No "+getitemname(607)+" or "+getitemname(608)+" allowed.";
    				.@executa = 0;
    			} else 	if(.MapMode[.@m]&16){
    				mes "No 3rd Classes Allowed.";
    				.@executa = 0;
    			} else	if(.MapMode[.@m]&32){
    				mes "No Trans Classes Allowed.";
    				.@executa = 0;
    			} 
    			
    			if (.@executa == 1) { 
    				warp .MapName$[.@m],0,0;
    				announce "[ PvP Warper ] " + strcharinfo(0)+" has entered in "+((.MapMode[.@m]&1)?"GvG":"PvP")+" "+((.MapMode[.@m]&2)?"Nightmare":" "),0,((.MapMode[.@m]&1)?0x00CC99:0xEE0000);			
    			} else {
    				close;
    			}
    	}

    I think the close; right after the if() is causing the issue, I solved it a long time ago by just separating it in a case.

    Let me re-write the bug report, since I struggled to express myself the previous post:

    1 - The nightmare room is not working as intended, even if I choose to enter, I'm not getting teleported

    2 - It seems that the banner/chat which appears above the NPC is not being updated with the number of players inside the rooms

    Best,
    Gabriel.

    Ty, I'll look into this once I can. If you need and any other issue let me know.

  11. 10 hours ago, klesler said:

    Stolao, it seems that the number of players in the pvp room is not being updated.

     

    9 hours ago, klesler said:

    I think the problem is this "close;"

    if(select("Nevermind:Continue") == 1) close;

     

    In which part, the scrolling or in the click on?

     

    Also that would have 0 effect on it as that only triggers if you are trying to enter a Nightmare PvP map.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.