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.
Not Telling
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.
Posted by x13th
on 22 November 2016 - 07:07 AM
change to getgmlevel() to getgroupid() in the warper script
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 ![]()
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);
}

Posted by x13th
on 23 October 2016 - 06:14 AM
I'm planning to release this add on for free. Leave a comment
Thanks.


Find content