Jump to content

QQfoolsorellina

Members
  • Posts

    587
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by QQfoolsorellina

  1. Reduce damage taken from demi human by 3% bonus2 bSubRace,7,3; Max HP + 3% bonus bMaxHPrate,3; Max SP + 2% bonus bMaxSPrate,2; Increase Physical and Magical damage to demi humans by 3% bonus2 bAddRace,7,3; bonus2 bMagicAddRace,7,3;
  2. https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/doc/item_bonus.txt
  3. @ Phantom Of Rogue-Gon - script test1234 -1,{ OnNPCKillEvent: for(;.@i<.size;.@i++) if(killedrid== .cm[.@i]) set .@f,1; if(!.@f) end; set .@pid,getcharid(1); if(!.@pid)end; set .map$,strcharinfo(3)); addrid(2,0,.@pid); if( HP && .map$==strcharinfo(3)) set #CASHPOINTS,#CASHPOINTS+20; end; OnInit: setarray .cm[0],1002; //put mob id here set .size,getarraysize(.cm); } @Emistry .@ this type of var will be gone when you use addrid , so strcharinfo(3) == .@map$ was wrong
  4. http://rathena.org/board/files/file/2240-release-script-command-equip2/
  5. They are different , @autobuy allow you use item id to create buying shop without checking whether the item exist or not , but official buying store must to check
  6. if(killedrid== mob classID ){ .....} - script test1234 -1,{ OnNPCKillEvent: if(killedrid== mob classID ){ set .@pid,getcharid(1); if(!.@pid)end; setd("."+getcharid(1)+"m$",strcharinfo(3)); addrid(2,0,.@pid); if(getd("."+getcharid(1)+"m$")==strcharinfo(3)) set #CASHPOINTS,#CASHPOINTS+20; setd("."+getcharid(1)+"m$",""); } end; }
  7. - script test1234 -1,{ OnNPCKillEvent set .@pid,getcharid(1); if(!.@pid)end; setd("."+getcharid(1)+"m$",strcharinfo(3)); addrid(2,0,.@pid); if(getd("."+getcharid(1)+"m$")==strcharinfo(3)) set #CASHPOINTS,#CASHPOINTS+20; setd("."+getcharid(1)+"m$",""); end; }
  8. 1. killerrid > 3000000 was not mob 2. kName was not unique
  9. script_pushint(st,(int)md->vd->class_); if you setting a mob to other mob SpriteID in mob_avail.txt , the code you write will return the view id not real monster id change to the below code would be better... script_pushint(st,(int)md->class_);
  10. I believe what you want are the resource files of the map : .rsm objects. When displaying object properties, list of strings are now displayed as well so you'll see all the .rsm used by the map (ModelResources). For the textures used for the ground, see the .gnd file. If that's not what you wanted, give an example or more details! yes , I mean the resource files of the map . sorry for bad English description. I already got the feature I want by updating to version 1.32 thanks for your new version older version 1.30 cant show the resource files of the map when I view the *.rsw file
  11. Hi~Tokei, Can you add the source files list which the map uses when the user view the *.rsw file
  12. what does the -1, -1 mean? current coordinate ..... Thanks, get a new good knowledge I think it can also be done with this type of mob spawn, if only to kill and summon a mob <map name>,<x1>,<y1>,<x2>,<y2>%TAB%monster%TAB%<monster name>%TAB%<mob id>,<amount>,<delay1>,<delay2>,<event>
  13. I think it using effect to show not using sprite
  14. Happy Birthday,May all your wishes come true
  15. rathena already fixed that isse http://rathena.org/board/tracker/issue-6472-about-pet-item-data/
  16. How to enable the feature description display when mouse move over an option setting box? ------------------------------------------------------------------------------- Solved thanks to Ai4rei
  17. try to modify status.c case SC_INSPIRATION: if( sd ) { val2 = (40 * val1) + (3 * sd->status.job_level); // ATK bonus - val3 = (sd->status.job_level / 10) * 2 + 12; // All stat bonus + val3 = 25 ; // All stat bonus } val4 = tick / 1000; tick_time = 1000; // [GodLesZ] tick time status_change_clear_buffs(bl,3); //Remove buffs/debuffs break;
  18. http://www.eathena.ws/board/index.php?showtopic=270648
  19. There are a set of configuraiton settings ,you can disable it conf/battle/misc.conf // Define duration in msec of the day (default: 7200000 = 2 hours) // Set to 0 to disable day cycle (but not @day GM command). // Except 0, minimum is 60000 (1 minute) day_duration: 0 // Define duration in msec of the night (default: 1800000 = 30 min) // Set to 0 to disable night cycle (but not @night GM command). // Except 0, minimum is 60000 (1 minute) night_duration: 0
  20. clif.c find for(i=0,n=0; i < MAX_INVENTORY; i++) { if (tsd->status.inventory[i].nameid <= 0 || tsd->inventory_data[i] == NULL) // Item doesn't exist continue; if (!itemdb_isequip2(tsd->inventory_data[i])) // Is not equippable continue; + if(tsd->inventory_data[i]->equip >= 1024) + continue; // Add item info : refine, identify flag, element, etc. clif_item_sub(WBUFP(buf,0), n*s+43,i + 2, &tsd->status.inventory[i], tsd->inventory_data[i], pc_equippoint(tsd, i)); n++; }
  21. try this ... BUILDIN_FUNC(getdirection) { int udir; struct block_list* bl; bl = map_id2bl(script_getnum(st,2)); if( bl == NULL ){ script_pushint(st,-1); return 0; } udir = (bl->type == BL_NPC ? ((TBL_NPC*)bl)->ud.dir :unit_bl2ud(bl)->dir); script_pushint(st,udir); return 0; } BUILDIN_DEF(getdirection,"i"),
×
×
  • Create New...