Jump to content

REKT

Members
  • Content Count

    372
  • Joined

  • Days Won

    1

Posts posted by REKT


  1.  

    -	script	OnPCDieViewMap	-1,{
    OnPCDieEvent:
    	if( getcharid(1) )
    	{
    		getmapxy( .map$, .x, .y, UNITTYPE_PC );
    		getpartymember getcharid(1), 1;
    		getpartymember getcharid(1), 2;
    		
    		copyarray .@paid[0], $@partymemberaid[0], $@partymembercount;
    		copyarray .@caid[0], $@partymembercid[0], $@partymembercount;
    		
    		for( .@i = 0; .@i < getarraysize(.@paid); .@i ++ )
    		{
    			if( isloggedin( .@paid[.@i], .@caid[.@i] ) )
    			{
    				attachrid( .@paid[.@i] );
    				.@id = rand(500);
    				if( strcharinfo(3) == .map$ )
    					viewpoint 0, .x, .y, .@id, 0xFF0000;
    				detachrid;
    			}
    			
    		}
    	}
    	end;
    }
    

    Preview:

     

    https://gyazo.com/1e8aaaa304e13d9f9745264c9a0def08

    https://gyazo.com/77928f04c9f80b8313200452bcfff33d

     

     

     

    How to make the View Point permanent pinging? it will be removed if the player is ALIVE, and i notice that a couple of seconds the viewpoint went gone?


  2. Hello, i couldn't find this from the msgstringtable or even in the source, probably everything is on the Client-Side?

    is there way i can remove this? the one i circled? and also the one i "BOX" is there where i can edit that instead of Total i want to change to Total Points?

     

    ZCF2yyV.png

     

    Please let me know, or i can charge with this one if just incase if needs a hard coded.

    Thank you :D


  3. FYI, I've noticed that the use of this script causes memory leakage from the cash shop being reloaded.

    I personally see around 763 bytes that fails to be released after a reload. Running the command twice left 1426 bytes that the Memory Manager had to clean up afterwards. 

    Not that this is that much, but I imagine it could become an issue with extended use.

     

    Not sure if there's much that can be done on this one. 

     

    The code looks like it frees up the struct it creates, and deletes the timer. I'll look at it later on when I have some time to see if there's something that can be done.

     

    Alternatively, is anyone else noticing this?

    I haven;t try this but i'm planning to add but i notice that you've posted something about it, so you want to make another code for this one?

×
×
  • Create New...

Important Information

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