Jump to content

Angelmelody

Members
  • Content Count

    772
  • Joined

  • Last visited

  • Days Won

    23

Everything posted by Angelmelody

  1. my for loop did the below things .@rand= rand(1,100) if( .@rand <= rate A){ do A; }else if (.@rand <= rate A+ rate B ){ do B; } else if(.@rand <= rate A+B+C){ do C; } .....and so on
  2. try to rename the name of item id 30000 { Id: 30000 AegisName: "Zeny" Name: "Zeny" Type: 3 Sell: 10 Weight: 10 },
  3. find .@rand = rand(1,10000); for (.@i = 0; .@i < getarraysize( getd(".pet"+ .@pet_class[.@s]) ); .@i++){ if (!getd( ".petc"+.@pet_class[.@s] +"["+.@i+"]")){set getd( ".petc"+.@pet_class[.@s] +"["+.@i+"]"),10000;} if (.@rand <= getd( ".petc"+.@pet_class[.@s] +"["+.@i+"]")){ if (getd(".petc"+.@pet_class[.@s] +"["+.@i+"]") > .@chance){ .@chance = getd( ".petc"+.@pet_class[.@s] +"["+.@i+"]"); .@a_id = .@i; } } } change to .@rand = rand(1,100); for (.@i = 0; .@i < getarraysize( getd(".pet"+ .@pet_class[.@s]) ); .@i++){ .@ac += getd( ".petc"+.@pet_class[.@s] +"["+.@i+"]"); if (.@rand <= .@ac ){ .@chance = .@ac; .@a_id = .@i; break; } } e.g. setarray getd( ".petc"+ 1002 ), 30, 50; // total chance = 100 ,so fail chance was 100-30-50= 20
  4. if (getd(".petc"+.@pet_class[.@s] +"["+.@i+"]" > .@chance)){ change to if (getd(".petc"+.@pet_class[.@s] +"["+.@i+"]") > .@chance){
  5. bindatcmd is case sensitive,that means gm still can use the original commands @str 、 @agi 、@vit 、 @dex、@int、@luk by converting some letters of cmd to uppercase/lowercase e.g. #aGI player01 100 modify one word in atcmmand.c ,the bindatcmd will work properly
  6. Hope Hercules to implement this fix , Cuz player still can wear the restricted equipments of disabled_items
  7. in doc/effect_list.txt there are 99 aura and old third class 150 aura ,but i cant find any effect number about 175 yellow aura. I just want to show aura through auraset command, and let player to choose what kind of aura they like.
  8. @Neo I'd like to request 'disable 99 and 175 aura options' , since we had auraset command Can you add it into NEMO?
  9. Dos anyone know its effect number ?
  10. Compiling with MSCV was successful , I think fucntion scanf_s and sprintf_s are only compatible with MSCV ,So you can just try changing scanf_s and sprintf_s to scanf and sprintf are u using the latest one? Hm.Hm.. Auraset 1.0a and my server git hash :70a33d3 It's still error in gcc. auraset.c: In function ‘atcommand_aura’:auraset.c:93: warning: passing argument 2 of ‘sprintf’ makes pointer from integer without a cast/usr/include/stdio.h:363: note: expected ‘const char * __restrict__’ but argument is of type ‘long unsigned int’auraset.c: In function ‘status_change_end_postAura’:auraset.c:228: warning: unused variable ‘opt_flag’make[1]: Leaving directory `/root/rosfus/trunk/src/plugins' sprintf_s(mes,sizeof(mes), "Aura Set %d:%d:%d.", aura, aura1, aura2);change to sprintf(mes,"Aura Set %d:%d:%d.", aura, aura1, aura2);
  11. Compiling with MSCV was successful , I think fucntion scanf_s and sprintf_s are only compatible with MSCV ,So you can just try changing scanf_s and sprintf_s to scanf and sprintf are u using the latest one? Hm.Hm.. Auraset 1.0a and my server git hash :70a33d3
  12. Compiling with MSCV was successful , I think fucntion scanf_s and sprintf_s are only compatible with MSCV ,So you can just try changing scanf_s and sprintf_s to scanf and sprintf
  13. item_db.h -#define MAX_ITEMDB 0x8000 // 32k array entries in array (the rest goes to the db) +#define MAX_ITEMDB 0x10000 // 64k array entries in array (the rest goes to the db) /src/common/mmo.h - short nameid; + unsigned short nameid; here i can use '@item 600001' to create item with id 60001 ----------------------------------------------------------------- and more adjust mysql card0~ card3 field type change to int and adjust bonus script param type bonus2 bAddMonsterDropItem,n,x bonus3 bAddMonsterDropItem,n,x,y;
  14. I had same problem two days ago,bug got solved by recompiling all my plugin codes like evilpuncker says.
  15. add this into your afk.c #include "../common/HPMDataCheck.h"
  16. a simple script cooomand that make pet return to an egg CMD to use: if(checkidle() > 180 ) pet2egg; download: pet2egg.c
  17. its useful to view spr without installing any app and would be more friendly if GRF Viewer support different Character encoding (krean..chinese..japanese.. )
  18. castrate_dex only affect pre-pre casting time so... fixed = (int)time * 5 / 100; // fixed time time = time * 95 / 100; // variable time vcast was set to 400 once a player hits 400 stats, yup~ it'll instacast. if( (status_get_dex(bl)*2 + status_get_int(bl)) >= battle_config.vcast_stat_scale) fixed = 0;
  19. ok, thank you, I try to add setdir command, still noob at plugin system
  20. get the direction from an unit (pc、 npc or mob) or set the direction of an unit(pc、 npc or mob) CMD to use: getunitdir (<GID>{,<type>}); setunitdir(<GID>,<body direction>{,<head drection>}); the type and head direction param are only available for PC the value of type 1 means head direction ,otherwise if type =0 or with no type param means body direction example: prontera,155,177,5 script testgetdirection 4W_SAILOR,{ if(!.mgid).mgid = bg_monster(1,strnpcinfo(4),157,179, "--ja--",1674,""); mes "your body direction is "+getunitdir(getcharid(3)); mes "your head is "+getunitdir(getcharid(3),1); mes "npc direction is "+getunitdir(getnpcid(0)); mes "mob direction is "+getunitdir(.mgid); next; mes "please input your body direction"; input .@pcbd; next; mes "please input your head direction"; input .@pchd; next; mes "please input npc body direction"; input .@npcbd; next; mes "please input mob body direction"; input .@mobbd; next; setunitdir(getcharid(3),.@pcbd,.@pchd); setunitdir(getnpcid(0),.@npcbd); setunitdir(.mgid,.@mobbd); next; mes "your body direction is "+getunitdir(getcharid(3)); mes "your head is "+getunitdir(getcharid(3),1); mes "npc direction is "+getunitdir(getnpcid(0)); mes "mob direction is "+getunitdir(.mgid); close;} getunitdir.c
  21. I extract monster_talk_table from kro official grf and put it into my data folder, my client was read data folder first but still dosn't work for me , dunno why Ind sir's monster_talk_table works properply for him. Did I forget something?
  22. I'm using 2013-12-30 ragexe with 'enable monster table' diff option now , but that doesn't seems working for me,I wonder how can I make it work?
  23. 1. use rentitem script + set itemtype to 11 2. I m not aware of that
  24. prontera,155,188,5 script reset castles 100,{ if(getgmlevel()!=99) { mes "you are not admin!"; close; } mes "Are you sure reset all castles ?"; if(select("no:yes") == 2 ) { set .@gid,getcharid(2); if(!.@gid) { mes "you haven't joined a guild!"; close; } setarray .@maps$[0],"aldeg_cas01","aldeg_cas02","aldeg_cas03","aldeg_cas04","aldeg_cas05"; setarray .@maps$[5],"gefg_cas01","gefg_cas02","gefg_cas03","gefg_cas04","gefg_cas05"; setarray .@maps$[10],"payg_cas01","payg_cas02","payg_cas03","payg_cas04","payg_cas05"; setarray .@maps$[15],"prtg_cas01","prtg_cas02","prtg_cas03","prtg_cas04","prtg_cas05"; for( set .@i, 0; .@i <= 19; set .@i, .@i+1 ) SetCastleData .@maps$[.@i],1,.@gid; mes "All castles have been set to"+getguildname(.@gid)+"!"; } close; }
  25. add it back? http://trac.rathena.org/changeset/16203/rathena http://trac.rathena.org/changeset/16204/rathena
×
×
  • Create New...

Important Information

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