Jump to content

  •  

x13th

Member Since 13 Jul 2013
Offline Last Active Apr 14 2017 04:51 PM
-----

#78404 Best hosting

Posted by x13th on 23 November 2016 - 02:06 AM

Visit this site

http://www.webhostingtalk.com/

 

if you're looking for better hosting don't pick those ragnarok hosting because most of them are just reseller.




#78374 Warper npc

Posted by x13th on 22 November 2016 - 07:07 AM

change to getgmlevel() to getgroupid() in the warper script




#78367 Warper npc

Posted by x13th on 22 November 2016 - 02:31 AM

add this function below Restrict function

function VIP {
        // getarg(0) is the level of the vip that can access the map
	if ( getarg(0) > getgmlevel() ) {
	    if (getarg(1,0)) {
            	@vip_block = 0;
            	for (.@i = 1; .@i < getargcount(); .@i++)
            		@vip_block = @vip_block | (1<<getarg(.@i));
            } else {
		    message strcharinfo(PC_NAME),"Only VIP have access in this map.";
		    close;
            }
	}
	return;
}

 

replace function Pick with this

function Pick {
	.@warp_block = @warp_block;
	@warp_block = 0;
	.@vip_block = @vip_block;
	@vip_block = 0;
	.@select = select(@menu$);
	if (getarg(0) == "") {
		.@i = .@select;
		.@map$ = getarg(.@i);
	} else {
		.@i = .@select-getarg(1,0);
		.@map$ = getarg(0)+((.@i<10)?"0":"")+.@i;
	}
	if (.@warp_block & (1<<.@select)) {
		message strcharinfo(PC_NAME),"This map is not enabled in "+(RENEWAL?"":"Pre-")+"Renewal.";
		end;
	}
	if (.@vip_block & (1<<.@select)) {
    		message strcharinfo(PC_NAME),"Only VIP have access in this map.";
    		close;
    }
	.@x = @c[.@i*2];
	.@y = @c[.@i*2+1];
	deletearray @c[0],getarraysize(@c);
	Go(.@map$,.@x,.@y);
}

How to use?

Call the function VIP before the warp function.

 

Example

For town warps:

 

VIP(1) = the number 1 is the level that can access the map

T1: VIP(1);
    Go("prontera",155,183);

For fields and dungeons:

F5: VIP(1,2,9);
    Restrict("Pre-RE",5);
	setarray @c[2],180,178,231,160,191,172,228,194,224,203,190,223,234,177,194,175,172,172;
	Disp("Comodo Field",1,9); Pick("cmd_fild");

As you can see we have 3 argument, ( 1, 2 , 9 )

1 = the number 1 is the level that can access the map

2 = is the second comodo field that have restriction

9 = is the 9th comodo field that have restriction

 

You can add more arguments. VIP(1, 1,2,3... )

 

Hope this will fulfill your request :)




#78158 Doubts - src -skill

Posted by x13th on 15 November 2016 - 02:12 PM

Hi. What's now working? Is it the increment of "ataq" or your printf? I suggest to change printf to sprintf

 

char output_message[128];
sprintf(output_message, "basic hit number: %d",ataq);
clif->messagecolor_self(sd->fd, COLOR_DEFAULT, output_message);

And can you please explain more.

 

Edit:

ataq++ won't really work because you're just simply adding + 1 with your declared ataq integer. Instead, try using the val1 or any value of sc->data[YOUR_SC_SKILL] that you're not using.

 

Sample

if(t_bl->type==BL_MOB){
    sc->data[YOUR_SC_SKILL]->val1 = sc->data[YOUR_SC_SKILL]->val1 + 1;
    sprintf(output_message, "basic hit number: %d",sc->data[YOUR_SC_SKILL]->val1);
    clif->messagecolor_self(sd->fd, COLOR_DEFAULT, output_message);
}

82388052529542e782fb52c66e064723.png




#77613 [Flux Addon] View Equip

Posted by x13th on 23 October 2016 - 06:14 AM

I'm planning to release this add on for free. Leave a comment :) Thanks.

 

e6021e27cf6f48b6b8769866ccc92bc4.png