Jump to content

Angelmelody

Members
  • Content Count

    772
  • Joined

  • Last visited

  • Days Won

    23

Everything posted by Angelmelody

  1. 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)
  2. 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
  3. 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;
  4. 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..
  5. StartNode("Nameless Island", "function", "f_questnameless"); AddMap("Nameless Island", "nameless_n", 256, 215); EndNode(); function script f_questnameless { return (checkquest(xxxx) == 2); }
  6. It's time to go back , hercules need you
  7. I think Mob Spawn info in lua is from spawn script in npc folder
  8. 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
  9. Have you rebuilded that dll again? that plugin works fine for me
  10. srry, I dunno what happened.. Are there 2 sleep command existing at the same time(one in atcommand.c the other in plugin)?
  11. It's need a new script command to refresh banking zeny in RAM
  12. coz you had patched wrong file here is the plugin file plugin http://upaste.me/6611107511ac763ee
  13. ........... you should post in rathena forum
  14. 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;}
  15. 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)){
  16. nope, should look like pc_readaccountreg(sd2,"#DOMINATION")<1
  17. 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;}
  18. 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)){
  19. 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.....
  20. !pc_readaccountreg(sd2,script->add_str("#DOMINATION"))
  21. Hi mam Angelmelody is this like this? http://herc.ws/board/topic/2706-itemmap/ nope
  22. Hum..Hum.., Am I the only one experiencing this issues?
×
×
  • Create New...

Important Information

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