Angelmelody
Members-
Content Count
772 -
Joined
-
Last visited
-
Days Won
23
Content Type
Profiles
Forums
Downloads
Staff Applications
Calendar
Everything posted by Angelmelody
-
nonono ... lolgetstrlen( getarg(0) ) also wont show warning ... getstrlen(1234) or getstrlen("1234") also wont show warning ... only dispbottom getstrlen(1234); will show warning mathematics if getarg(0) is 12345 -> .@i = getstrlen( .@str$ = getarg(0) ) -3; -> .@i = getstrlen( .@str$ = 12345 ) -3; -> .@i = getstrlen(12345) -3; .@str$ = 12345; // <-- perform 2 equations ... split them -> .@i = 5 -3; .@str$ = 12345; -> .@i = 2; .@str$ = 12345; Thanks ,but I test this script with passing an int variable as param,my map console show warning function script int__ {.@i = getstrlen(getarg(0)) -3; //----> without assigning.@is_negative = charat( .@str$, 0 ) == "-";while ( .@i > .@is_negative ) {.@str$ = insertchar( .@str$, ",", .@i );.@i -= 3;}return .@str$;}prontera,153,180,5 script aaaa 100,{mes callfunc("int__",Zeny);close;} [Warning]: Unexpected type for argument 1. Expected stri[Debug]: Data: param name='Zeny' type=20[Debug]: Function: getstrlen[Debug]: Source (NPC): aaaa at prontera (153,180)
-
so.... getstrlen( .@str$ = getarg(0) ) -->pass an int type param won't show warning getstrlen( getarg(0) ) --->pass an int type param will show warning Assigning to a varaible is so amazing
-
Isn't there any warning if getarg(0) is interger type? maybe getarg(0) shoud be converted to string type first .@i = getstrlen( .@str$ = ""+getarg(0) ) -3;
-
map_zone_db.conf allows to restrict an ITEM TYPE
Angelmelody replied to AnnieRuru's topic in Suggestions
I hope it can also restrict an item group so that we can define our custom group for example mvpcard group 、 god item group and so on.. -
StartNode("Nameless Island", "function", "f_questnameless"); AddMap("Nameless Island", "nameless_n", 256, 215); EndNode(); function script f_questnameless { return (checkquest(xxxx) == 2); }
-
It's time to go back , hercules need you
-
Navi Lua Generator Staff Plugins Map Crashes.
Angelmelody replied to THPO's question in Plugin Support
I think Mob Spawn info in lua is from spawn script in npc folder -
oh man ... that one ... really put a shame on my country it won't happen again(I hope so)....... That was horrible. Anyway,glad to see you back again , we can learn more script technologies
-
Badly missing you...
-
Navi Lua Generator Staff Plugins Map Crashes.
Angelmelody replied to THPO's question in Plugin Support
Have you rebuilded that dll again? that plugin works fine for me -
Need a @sleep script for Hercules
Angelmelody replied to snowflake1963's question in Source Requests
srry, I dunno what happened.. Are there 2 sleep command existing at the same time(one in atcommand.c the other in plugin)? -
It's need a new script command to refresh banking zeny in RAM
-
How to add a global reg value requirement in script.c
Angelmelody replied to vijay's question in Source Requests
sd ----change to---> sd2 ? -
Need a @sleep script for Hercules
Angelmelody replied to snowflake1963's question in Source Requests
coz you had patched wrong file here is the plugin file plugin http://upaste.me/6611107511ac763ee -
"Add Friend" error (client crash).
Angelmelody replied to XIxJEALOUSxIX's question in General Server Support
........... you should post in rathena forum -
P.S , how can i make it just drop on where im standing the for example i just @flooritem apple 10 .. it will scatter 10 apple on where am standing and as i increase the flooritem amount that the time it will go far to me. sorry for my english try this... - script test1235678 -1,{end;OnInit: bindatcmd "flooritem", strnpcinfo(0)+"::OnFI", 60,90; ; end;OnFI: .@hditemid = atoi(.@atcmd_parameters$[0]); .@damount = atoi(.@atcmd_parameters$[1]); if ( !.@damount ) { message strcharinfo(0), "@flooritem <Itemid or itemname> <amount>"; end; } if ( .@damount < 0 ) { message strcharinfo(0), "@flooritem -> Invalid amount"; end; } if ( getitemname(.@hditemid) == "null" && !searchitem(.@temp[0],.@atcmd_parameters$[0]) ) { message strcharinfo(0), "@alootnoitem -> Invalid Item ID"; end; } if(.@temp[0]) .@dropitemid = .@temp[0]; else .@dropitemid = .@hditemid; .@r = (sqrt(.@damount) > 16 ? 16 :sqrt(.@damount)); getmapxy(.@m$,.@px,.@py,0); .@min_x =((.@px-.@r) < 1?1:(.@px-.@r)); .@max_x =((.@px+.@r) > 512 ? 512:(.@px+.@r)); .@min_y =((.@py-.@r) < 1?1:(.@py-.@r)); .@max_y =((.@py+.@r) > 512 ? 512:(.@py+.@r)); freeloop(1); for(.@j=0;.@j< .@damount;.@j++) { while (checkcell(.dm$[.@i],.@dx=rand(.@min_x, .@max_x),.@dy=rand(.@min_y , .@max_y), cell_chknopass)); makeitem .@dropitemid,1,.@m$,.@dx,.@dy; } freeloop(0); end;}
-
How to add a global reg value requirement in script.c
Angelmelody replied to vijay's question in Source Requests
int f; ARR_FIND( 0, MAX_INVENTORY, f, sd2->status.inventory[f].nameid == 18540 ); if(sd2 &&(f >= MAX_INVENTORY || pc_readaccountreg(sd2,"#DOMINATION")<1 || sd2->status.base_level<200 || sd2->status.class_==JOB_NOVICE || sd2->status.class_==JOB_BABY || sd2->status.class_==JOB_NOVICE_HIGH)){ -
How to add a global reg value requirement in script.c
Angelmelody replied to vijay's question in Source Requests
nope, should look like pc_readaccountreg(sd2,"#DOMINATION")<1 -
ok, I finished it ....you can add map by editing .dm$ array - script test1235678 -1,{end;OnInit: setarray .dm$,"prontera","prt_fild08"; .msize = getarraysize(.dm$); bindatcmd "flooritem", strnpcinfo(0)+"::OnFI", 60,90; ; end;OnFI: .@hditemid = atoi(.@atcmd_parameters$[0]); .@damount = atoi(.@atcmd_parameters$[1]); if ( !.@damount ) { message strcharinfo(0), "@flooritem <Itemid or itemname> <amount>"; end; } if ( .@damount < 0 ) { message strcharinfo(0), "@flooritem -> Invalid amount"; end; } if ( getitemname(.@hditemid) == "null" && !searchitem(.@temp[0],.@atcmd_parameters$[0]) ) { message strcharinfo(0), "@alootnoitem -> Invalid Item ID"; end; } if(.@temp[0]) .@dropitemid = .@temp[0]; else .@dropitemid = .@hditemid; freeloop(1); for(.@i=0;.@i<.msize;.@i++) { for(.@j=0;.@j< .@damount;.@j++) { while (checkcell(.dm$[.@i],.@x=rand(1, 512),.@y=rand(1, 512), cell_chknopass)); makeitem .@dropitemid,1,.dm$[.@i],.@x,.@y; } } freeloop(0); end;}
-
How to add a global reg value requirement in script.c
Angelmelody replied to vijay's question in Source Requests
updated,try again.. -
How to add a global reg value requirement in script.c
Angelmelody replied to vijay's question in Source Requests
coz that's herc format , I think you arent using herc emulator? if(sd2 &&( !pc_readaccountreg(sd2,"#DOMINATION") || sd2->status.base_level<200 || sd2->status.class_==JOB_NOVICE || sd2->status.class_==JOB_BABY || sd2->status.class_==JOB_NOVICE_HIGH)){ -
Hi mam Angelmelody is this like this? http://herc.ws/board/topic/2706-itemmap/ nope it does not drop a certain amount of item on a map? its no need to create plugin ,you can try bindatcmd then makeitem param param.....
-
How to add a global reg value requirement in script.c
Angelmelody replied to vijay's question in Source Requests
!pc_readaccountreg(sd2,script->add_str("#DOMINATION")) -
Hi mam Angelmelody is this like this? http://herc.ws/board/topic/2706-itemmap/ nope
-
Hum..Hum.., Am I the only one experiencing this issues?